Originally posted by: SilverOne
Hey there !
I'm looking to perform a conditional sum constraint based on a dvar, here's an example:
{some_tuple} set;
dvar int array[i in set];
subject to {
sum( i in set : array[i] > 20) i;
}
However, the code produces a decision variable (or expression) not allowed error.
Any help is appreciated, I'm a first timer on cplex.
Best Regards,
SilverOne
#DecisionOptimization#OPLusingCPLEXOptimizer