如何将代理分组以进入流程?

huangapple go评论65阅读模式
英文:

How can I group agents to enter a process?

问题

我正在模拟一个面包店的过程。我的代理是面包车。面包车必须经过发酵隧道,预计每组进入隧道的面包车数量为6。现在,对于最后一批面包车,通常少于6辆,因此输入了那时的面包车数量。我该如何编程?哪些模块可以帮助我模拟这种情况?

哪些模块可以帮助我模拟这种情况?

英文:

I am simulating a bakery process. My agent is bread carts. The bread carts must go through fermentation tunnels, where it is expected to group 6 carts to enter the tunnel. Now, for the last batch of carts, it's usually less than 6, so the number of carts at that time is entered. How can I program? What blocks can help me simulate this situation?

What blocks can help me simulate this situation?

答案1

得分: 1

Batch模块专为此目的而设计。

为了考虑最后一批,可以在适当时候更改所需的批大小,使用set_batchSize(1)

更多详细信息请查看此处链接: https://anylogic.help/library-reference-guides/process-modeling-library/batch.html#batch

英文:

The Batch block is designed for this.

To account for the last batch, you could change the required batch size when it is time, using set_batchSize(1)

More details here: https://anylogic.help/library-reference-guides/process-modeling-library/batch.html#batch

huangapple
  • 本文由 发表于 2023年4月19日 22:58:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76056006.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定