Anylogic:如何按计划结束等待块,而不是超时

发布于 2025-02-10 02:45:24 字数 228 浏览 2 评论 0原文

从模型开始,我希望每120分钟离开港口一次。

该船以指数分配的形式到达,它进入受限区域(港口),并进入等待区,以便登上所有乘客。我试图使用“超时启用退出”,但是暂停开始时,船进入等待块时,我希望船尊重预定的间隔。 (我不在乎一个小时或每天,但只关心固定间隔)

我使用了一个时间表块,我在等待块上删除了“启用超时出口”,但是我无法在时间表和等待块之间建立连接:目前船留在港口,不离开。

预先感谢您的帮助

I want a boat to leave the port every 120 minutes, from the start of my model.

The boat arrives on an exponential distribution, it enters in a restricted area (the port) and enters in a wait block in order to embark all the passengers. I tried to use "Enable exit on timeout", but the timeout starts when the boat enters the wait block and I want the boat to respect the scheduled intervals.
(I don't care about hour or day, but only about fixed intervals)

I used a schedule block, I removed "Enable exit on timeout" on wait block, but I cannot establish a connection between Schedule and Wait block: for the moment the boat remains at the port and doesn't leave.

Thank you in advance for your help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晨光如昨 2025-02-17 02:45:24

禁用“超时退出”。除非您明确释放它们,否则现在将永远在等待街区。

使用计划操作代码来调用myWaitBlock.free(agent)在其中代理是您要离开的船。

如果您在等待块中只有1艘船,则可以是myWaitBlock.free(mywaitblock.get(0)),否则遍布其中的所有代理,以释放任何想要的船。

Disable the "exit on timeout". Boats will now be in the Wait block forever, unless you free them explicitly.

Use the Schedule action code to call myWaitBlock.free(agent) where agent is the boat you want to leave.

If you only have 1 boat in the wait block, it can be myWaitBlock.free(myWaitBlock.get(0)), else loop across all agents inside it to free whichever boat you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文