简体   繁体   中英

Anylogic: How can I add multiple agents (jobs) to one resource at the same time in Anylogic 8.0?

I am trying to add different jobs to one machine and I cannot use batch because the jobs are grouped based on different conditions. So I want to add the jobs to a resource based on the conditions and then add them to machines, which requires the resource to accept multiple jobs at the same time.

this is not how resources work in AnyLogic. Individual jobs (=agents) seize resources for themselves. So 1 agent can seize several resources but 1 resource always works on 1 agent only at the same time!

So either you pre-group your agents together manually (no need to use batch, you can group them manually yourself based on your conditions).

Or you replace resources (and all related seize,release,service blocks) with your own custom resource agents and your own scheduling/assignment/planning logic.

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