Originally posted by: OPLnewbie
Hey,
I've also got a problem with sets, in this case the difference, here with my example data:
range D = 1..2;
{int} T = {1,2};
{int} ToD[D] = [{1},{1}];
forall( d in D, t in ToD[d]){
X[d][t]<= a[d];
}
forall( d in D, t in (T diff ToD[d])){
X[d][t] == 0;
}
Unfortunately the difference of the set doesn't work, as it puts for all Xdt a value of 0. Can anybody help?
Regards
#DecisionOptimization#OPLusingCPLEXOptimizer