Форум

Hi Folks. Im trying to simulate an office where the emplyees have access to 4 printers. I made a resourcepool containing static 4 printers (capacity = 4). When I seize a printer the program captures the first one free. It is possible to seize printer2 for example instead. I know it is a problem, because creating a resourcepool named printer units are not distinguish. But is it possible to get passed that somehow when I know in my simulation im only going to be needing 4 printeres. So if i want to use printer2 a at surden point, I can do that. Hope someone can help me. Thanks. Maria Vitelli.
Hi Maria, I think you can set the resource pool as replicated and specify the capacity "1" for each instance. In this case you will be able to choose from which instance from the replicated array the resource should be seized.
Hi Pavel. Thank you very much for your reply, but it did not help me. Im kind of stuck with this problem. How do I set the Replicate. Replication requires a number. I created a resource pool called LAPTOP, which is portable. Home defined by: Path across nodes and the home path is: LAPTOPHomePath. What is my next move? Is there still hope for me..:) Hehe.. Thank you.. Maria..
Hi Maria, As for the "Laptop" resource pool, you will not be able to make entity to go to the specified unit. It will be chosen automatically according to its state, utilization, etc. If you want to send entity to the specified unit, you should have one pool for each unit. You will need to create e.g. "Select Output" block to make entities go towards the required "Seize" block. Each "Seize" will operate with one specified pool. And how to make several identical pools? You can type e.g. 5 in "Replication" field and in simulation you will have 5 pools. In "Seize" blocks you should access them using the following method "resourcePool.get(some_number)". I hope it will help you.
hi, I have a similar problem. 1)There are say 3 operators( op1,op2,op3 ) . 2) There are say 2 types of jobs (job1,job2) 3) All operators can do job1 , but 4) only operator 2 and operator3 can do job 2 Question1: (for job 1) how to use resourcepool to choose among the 3 operators and with a varity of selection rules (for job2) how could the resourcepool be used to select ( with different selection rules type - cyclic, prefered order, ...) among op2, and op3 ? If possible answer it in a general , because I am going to have more than 3 operators and 2 jobs. I thank you in advance,
Hi Amir, Each operator should be presented as a separate resource pool. So before enter to the seize or service block you should define from what pool the unit should be seized.
thanks Pavel but there are some issues that are not still clear , you know I am new to anylogic .(I used to use Arena , but I am moving to anylogic. In Arena you could use set for similar resources. and choose the selection rules : cyclic, random, prefered order,...) Q : how can I define which resorcepool to be used before an entity moves into a respool?
hi again. in the mean time i worked on the problem and came up with a solution : 1) define a class for the entity ( say, Customer) 2) in the class define a attribute of type Resourcepool ( say Public Resourcepool resCust ) 3) by using conditional statement specify the respool to be selected. I wonder if this is the standard way of there is a better way to do it .
Yes, this approach is used very often if it is required to seize specific unit or units from the specific resource pool.
Hi Amir, I have investigted a similar probem but I used agent based model with Anylogic. In my model I have many workers (agents) which go to stations to perform a task. The movement rules are "assigment rule" for each worker. In similar way, you could model your problem, maybe. Bye
An alternative to resouces pools is to use the Match from the enterprise library. The match allows for a matching condition to match entities to psuedo resouces (entities that represent resouces), and it also has priority queue for sorting the resources. Even if you must have resouce pools, you can still use the Match to help select which pool to draw from.

Ваше сообщение