Home > other >  Problem with binary decision variable on CPLEX
Problem with binary decision variable on CPLEX

Time:10-27

Cplex must determine this binary decision variable: dvar boolean y[I][J][M]; // y(jm)=1 if operation O (ij) is assigned to machine m belonging to M (O(ij)) where int num_job=...; range J=1..num_job; //index job j int num_operationsjob=...; range I=1..num_operationsjobj; //index operations

The problem is with M because I have to define the set of machines associated with O (ij) which I have now defined simply with M but it is wrong. I thought about defining them like this:

int machine [I][J] =...;

but now I don't know how to put it inside the decision variable. Do you have any ideas for me? Thank you :)

CodePudding user response:

within Making optimization simple see

array variable indexer size - 3 ways : union , tuple set, decision expression

  • Related