Originally posted by: SystemAdmin
[daniel said:]
hello,
in a model I defined a dvar as:
dvar Harvest[Areas][Periods];
I get a solution:
Harvest= [ [0 1] [1 0] [1 0] [0 1] ]
How can I get the results like this:
Harvest [1][1] = 0
Harvest [1][2] = 1
Harvest [2][1] = 1
Harvest [2][2] = 0
Harvest [3][1] = 1
Harvest [3][2] = 0
Harvest [4][1] = 0
Harvest [4][2] = 1
I know we can with the script, but after several attemps I'm still not getting it.
Daniel
#DecisionOptimization#OPLusingCPLEXOptimizer