GANTT Chart with ordering of jobs

6 次查看(过去 30 天)
I have made an adaptive scheduler, such that 4 routes are available through the machines as M1/M2 -> M3/M4 -> M5, thus every job need to go through machine 5. Therefore, ordering is added to machine 5. Now I want to put the starting and end times of every job into a GANTT chart. Though the legend of the GANTT chart only letting me put all the jobs in chronological order such that:
Machine 1/2(depends on the route) - times job 1 - times job 2 - times job 3
Machine 3/4(depends on the route) - times job 1 - times job 2 - times job 3
Though in Machine 5, due to the ordering, it could occur that job 2/3 skips or does not wait for job 1:
Machine 5 - times job 2 - times job 3 - times job 1
Now the GANTT chart is making the Machine 5 - times job 2 the same color as the Machine 1/2 - times job 1. Anyone know how to give positions in a matrix the same color and legend?

回答(1 个)

Sai Teja G
Sai Teja G 2024-7-23
Hi Tonn,
I understand that you are getting the Machine 5 – times job 2 the same color as the Machine 1/2 - times job 1.
To assign positions, change colors, or modify the legend for each job over time, regardless of the machine, I suggest utilizing a file exchange that offers the functionality you require. One such option is to use the "ganntChart(_, Name, Value)" function, which allows you to assign different colors to each job.
Here is the link to the MATLAB File Exchange:
Hope this resolves your query!

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by