简体   繁体   中英

AnyLogic Resource Pool

I am modelling a machine that can process two different products. The ratio of space needed per product is 0.75:1 ie product A requires 75% of the spot required for product B. I wanted to draw from the resource pool using float values. That is each time product B is passed it draws one whole unit from the pool while if product A is passed then it should seize only 0.75 units. However it seems the resource pool can only take integer values. Is there any world around for this? Note that the machine is such that it can process both products at the same time.

"

Since resource pools are made up of agents and you can't seize part of an agent the best option I can think of is to multiply the number of resources you have by 100 and then let the products seize 100x of what they normally would.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM