Originally posted by: jiaodaxiaozi
Hi
I wrote the following indicator constraints in OPL :
indicatorconstraint = forall (l in L, t in T) t - 1 - delta_a[l] == 0 => ind[l][t] == 1;
Here the results is:
ind = [[0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]
[0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1]]
The value of delta_a[l] = 1 and delta[2] = 2, so I expecting the value of ind is:
ind = [[0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
[0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]]
so how cplex deals with the indicator constraints, I don't understand.
#DecisionOptimization#OPLusingCPLEXOptimizer