'Gantt Chart On Python list only results
First of all, I'm sorry it's been a long time to explain it in full.
Actually, I just want to get the result of the Gantt schema as a list, as in the picture, but the problem is the cycle of waiting times. there is probably a simple answer, but I couldn't.
I want to get results in the Gantt schema in my coding on job sorting. I was able to sort jobs into lists, but I couldn't set up the desired loop in the Gantt calculation. The image I uploaded here is gantt of a single rank. I need to write a loop that will get gantt for each sort I find. The basic logic of Gantt is that the work in the first place is not completed until the next one is completed. In other words, we can think of parallel machine sequence (flow type workshop) as M1------> M2------>... M5 in question. The M2 machine can not start working until the M1 machine completes job 3. this is also indicated in Gantt as scanned. The M2 machine waits for the M1 machine for 1 unit and completes job No.3 in 2 units of time. in other words, the M2 machine completes job 3 in 3 units of time. then he needs to move on to the next job, job No.4. But the program is still waiting for the m1 machine to finish job No.4. Again, the program waits for 1 unit of time and starts working, and 8. he's finishing job No. 4 in unit time. the completion times are given in the table below. It is aimed to put things in the best order and ensure maximum flow.The following figures show the completion time of that work on that machine. I mentioned it in terms of understanding logic ; I'm not extending it to avoid confusion for those who know. I get my data from excel in list type.
let me also specify my data in the picture.
business–>
1 2 3 4 5 6 7 8 9
M1 4 3 1 3 7 5 6 3 8
M2 3 7 2 4 1 2 3 2 4
M3 7 2 4 3 6 3 1 5 3
M4 2 8 3 7 4 4 5 4 1
M5 8 5 7 2 8 2 7 5 5
The job ranking is [3, 4, 7, 8, 2, 5, 1, 6, 9] that's the way it is for Gantt. there will be 4 more rankings, and as a result of each ranking, a gantt operation will be performed (the problem is exactly here), and the highest figure will be kept each. I want to get the result of the Gantt chart I uploaded the image of in list format. that is, the list state of the M5 at the bottom of the machine: your first job, that is, 3. the completion time of the work is 17::: 4, which is the next job. The completion time of the work is 20::: ... the last job is 9. The completion time of the work is 63. I would like to subject them to sequence operations as follows. So my aim is to find the number 63. Sorting [3, 4, 7, 8, 2, 5, 1, 6, 9]
M1: [1 , 4, 10, 13, 16, 23, 27, 32, 40]
M2: [3, 8, 13, 15, 23, 24, 30, 34, 44]
M3: [7, 11, 14, 20, 25, 31, 38, 41, 47]
M4: [10, 18, 23, 27, 35, 39, 41, 45, 48]
M5: [17, 20, 30, 35, 40, 48, 56, 58, 63]
I want to get the results. I tried to come to a conclusion by comparing it in the while loop as the first_list and the next_list. It's easy because there's no standby on the M1 machine. I tried to do it by trying comparisons from the previous to the next, but there are always slightly wrong amounts coming in. Since I'm doing 100 machines for 100 jobs, I need to set up the loop properly. Thank you very much in advance to those who have read so far and are considering a solution. It shouldn't be difficult, but I couldn't hopefully there won't be room to question the way I told you. Thank you so much.enter image description here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
