Returning variables into table
I am solving a scheduling problem using gurobi-python.
My binary variable has 5 indices.
x[i,j,k,l,m] : person 'i' does a job 'k' using tool 'j' on day 'l' at time 'm'
I want to make a table using this variable and store information at there.
For example, if I have
x[0, 0, 1, 4, 3] = 1
x[1, 2, 1, 1, 2] = 1
x[3, 0, 1, 4, 3] = 1
then I want to store information [1, 2, 1], [0, 0, 1], [3, 0, 1] at the right time like below.

Thank you for your time and consideration in advance!
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
Post is closed for comments.
Comments
1 comment