admin管理员组文章数量:1363286
I am building a DES model of a port and I have a sieze block for resourcePool (forklifts and manpower) when trucks come, a forklift and man are seized and it is connected to a delay block. I am trying to show that if the queue of trucks reaches a threshold, lets say 10 trucks then it will trigger more resources (forklifts) to reduce the queue then go back to its original state of 3 trucks for example.
any help would be appreciated!
I am building a DES model of a port and I have a sieze block for resourcePool (forklifts and manpower) when trucks come, a forklift and man are seized and it is connected to a delay block. I am trying to show that if the queue of trucks reaches a threshold, lets say 10 trucks then it will trigger more resources (forklifts) to reduce the queue then go back to its original state of 3 trucks for example.
any help would be appreciated!
Share Improve this question asked 2 days ago Terence14Terence14 112 bronze badges New contributor Terence14 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.1 Answer
Reset to default 0The way you are describing you want to check for some condition and dynamically adjust the capacity. On the ResourcePool documentation you can see the following description:
The capacity of this block (the number of units) can be defined directly as a number that you type into its Capacity parameter. Then, if you want to change the number of resources dynamically at the model runtime, you can use the set_capacity(new value) function.
So one way to do that would be to check when an agent enters the Service
or Seize
block and adjust capacity accordingly, similar to the following example:
With this code on the Service
block:
本文标签: AnylogicTriggering more resources when an agent is queuing in a seize blockStack Overflow
版权声明:本文标题:Anylogic - Triggering more resources when an agent is queuing in a seize block - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743815141a2543777.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论