I want to formulate a flexible job shop scheduling problem with MIP instead of CP.
If there is an array indicating number of operations of each job.
num_op = [3, 2, 5]
And Xijk is the decision variable indicating if the j-th operation of job i is processed on machine k or not.
My question is that I don't know how t initiate the 3-D array with different number of operations of each job.
I wrote this dvar boolean x[i in Jobs][j in][k in Machs];, and I don't know to how to complete it.
Please help me. Thanks!!