简体   繁体   English

Anylogic:如何在 Anylogic 8.0 中同时向一个资源添加多个代理(作业)?

[英]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.这不是 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!所以 1 个代理可以占用多个资源,但 1 个资源始终只能同时作用于 1 个代理!

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.或者您用您自己的自定义资源代理和您自己的调度/分配/计划逻辑替换资源(以及所有相关的获取、释放、服务块)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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