I am working on an assignment problem in which the output would be of assigning tasks to the resources w.r.t minimizing the number of resources. Suppose the following output:
Code: Select all
m1 m2 m3 m4
item1 1.000
item2 1.000
item3 1.000
item4 1.000
item5 1.000
item6 1.000
item7 1.000
item8 1.000
item9 1.000
item10 1.000
item11 1.000
item12 1.000
Code: Select all
m1 : {item4, item10}
...
m4: {item2, item8, item9}
Code: Select all
item1 item2 item3 item4 item5 item6 item7 item8 item9 item10 item11 item12
m1 4.000 10.000
m2 1.000 5.000 6.000 12.000
m3 3.000 7.000 11.000
m4 2.000 8.000 9.000
As an example, in the above sequence, there are two jobs that are processed on the resource m1. Items 4, 10 respectively. And also it would be considered item4 should be processed before item10. This is a general rule to show the order of jobs that need to be processed on each machine. For the above table:
Code: Select all
m1: {1: item4, 2: item10}
...
m4:{1: item2, 2: item8, 3: item9}
Indeed, GAMS comes with an embedded python API, (but I do not have much experience with that) and it would be worth if it may help to reach what I want.
Best regards
Abbas