pabondaniel97 Posted April 27, 2019 Share Posted April 27, 2019 Hi, In the modell I'm working on I have a set of sources that generate different types of entities and two workers that have to grab those entities and trasport then to another node. The decision of which source is unloaded first is defined by a specific probability distribution. However, I don´t know where to define this decision to route the worker. Could someone please help? Link to comment Share on other sites More sharing options...
CWatson Posted April 29, 2019 Share Posted April 29, 2019 Within each of the Source objects, you would specify (within the output node of the Source) that a worker is required to transport the entity(s) to the next node. The decision making of the worker is then handled by the worker itself. The worker has several decision making options - first of all, for transporting, the worker has Transport Logic properties, one of which is the Task Selection Strategy property, which can be set to First In Queue, Largest/Smallest Distance or Largest/Smallest Priority. In addition to that, under the Worker's Add-On Process Triggers properties, you have the Evaluating Transport Request process that can be used to accept or reject any transport request. You can add custom logic, a distribution, etc. within a Decide step in that called process and simply then accept (Token.ReturnValue == True) or reject (Token.ReturnValue == False) a request (which is the first in the allocation queue, as ranked as noted above). You can use the requesting entity location within the decision logic as well. Link to comment Share on other sites More sharing options...
Recommended Posts