write the worker's information

To limit spam this and all Public Forums have very limited ability to attach files. We recommend that support issues and more technical topics be initiated inside one of the Simio Insider (SI) forums below where you can attach your model and see example solutions. See above Welcome forum to join Simio Insiders.
Post Reply
Posts: 2
Joined: Thu Oct 07, 2010 3:29 am

write the worker's information

Post by michael » Mon Nov 08, 2010 11:00 pm

:D When a modelentity enters a server ,a worker is seized. How to write the initial priority of worker seized by the server? thank u.

Simio Team Member
Posts: 94
Joined: Tue Jan 13, 2009 7:33 am
Location: Louisville, KY

Re: write the worker's information

Post by rthiesing » Wed Feb 01, 2012 2:08 pm

In the scenario described here, the ModelEntity is seizing capacity of both the Server object and the Worker object. Therefore, we'll look on the ModelEntity to first see which objects it has seized and then get information about those seized objects. The following expression will return the priority of the Worker:


The SeizedResources function looks at all the objects that this ModelEntity has seized. The function, LastItem, looks at the last item on that seized resources list. In the above scenario, Server is seized first and then the Worker, so it is last in the list. If the object has seized more than two objects, the function ItemAtIndex( ) will return a reference to an object that might be in the middle of the seized resource list. The term Worker in the above expression let's Simio know that you are about to ask for additional information about this object and you need to qualify exactly what type of object it is - in this case, it is a Worker type object. After you type Worker, you can ask for any function, property or state for that Worker object. In this case, we want the expression to return the Priority of that Worker.

-Renee Thiesing
Simio LLC
Renee Thiesing
Simio LLC

Post Reply