Anylogic-构建资源池利用率的时间比色图 [英] Anylogic-Build a time color chart for the utilization of resource pools
问题描述
求助于 Anylogic 我构建了一个作业车间调度问题.我有 20 个工作和 5 台机器.我想为我的每台机器的利用率构建一个时间颜色图表(就像甘特图一样),当机器空闲时为红色,机器处于活动状态时为绿色.
您只需在图表中使用数据集并设置颜色映射的值.在我的示例中,它是一个简单的 1 和 0 二进制选项.
您可以使用块内的操作代码记录机器的状态.对于服务块,你可以在这里设置
或者在这里的资源池中
Resorting to Anylogic I buiild a job shop scheduling problem. I have 20 jobs and 5 machines. I want to build a time color chart (Just like a gantt chart) for the utilization of each of my machines, having like red for when the machine is idle and green when is active.
Basically i just want to know what can I do to know if the machines are active or not so that resorting to the time color chart I can build something like this chart.
Gannt Charts are not that easy in AnyLogic, and we have resorted to building our own custom Gantt Charts in our Material Design Library. That said it is possible to create something similar using the Time Color Chart
object
You simply use Data Sets in the chart and set up the values for the color mapping. In my example, it was a simple 1, and 0 binary option.
You can record the state of your machine using the action code inside the blocks. For the service blocks, you can set it up here
Or in the resource pool here
这篇关于Anylogic-构建资源池利用率的时间比色图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!