英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论