如何通过退出和进入块发送代理? [英] How to send agents through exit and enter blocks?
问题描述
我正在尝试使用 anylogic 进行作业车间调度.我有 20 个作业(代理作业"),它们必须经过 5 台机器(每台机器都是一个单位容量资源).我有两个数据库表,一个有每个作业通过机器的特定顺序,另一个有各自机器中作业的处理时间.
I am trying to do a job shop scheduling resorting to anylogic. I have 20 jobs(Agent 'jobs') that have to go through 5 machines(each one a unit capacity resource). I have two database tables, one having the specific order of each job through the machines and the other one has the processing times of the jobs in the respectives machines.
这就是我现在所拥有的.源创建了 20 个作业,我希望出口块通过它们的序列发送作业.我制作了nextmachine"函数,放在每个出口块的 On Exit 部分.
'nextmachine' 代码基于这篇文章 如何在 Anylogic 中的作业车间生产中存储工艺路线.
The 'nextmachine' code was based in this post How to store routings in job shop production in Anylogic.
我之前提出了一个问题通过特定资源中的路由代理任何逻辑.在这里你可以看到我之前的一些疑惑和一些建议.
I made a question previously Routing agents through specific resources in anylogic. Here you can see some of my previous doubts and some of the suggestions.
提前致谢
enterblocks 集合位于作业代理中,并以这种方式定义.
-新错误:我有这个错误,我认为它与集合 col_machineSequence.I 有关将该代码放在启动部分.
推荐答案
这里需要将enterblocks
集合的Elements class属性改为Enter代码>.为此,请在下拉列表中选择其他",然后在下拉列表右侧显示的字段中键入
Enter
.
Here the Elements class property of enterblocks
collections needs to be changed to Enter
. To do this, select 'Other' in the dropdown and type Enter
into the field that will appear to the right of the dropdown.
这篇关于如何通过退出和进入块发送代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!