Originally posted by: SystemAdmin
Here is my problem:
I want to pass the solution value of a dvar (x) in my sub-problem to a parameter (x_bound) in my master-problem.
masterData.x_bound = subOpl.x.solutionValue;
Although x is defined to be non-negative, often the sub-problem returns a few x<0.
Is there a way to avoid this OR change negative values in x to zero OR use an absolute value function on subOpl.x.solutionValue.
The function abs(.) as in:
abs(subOpl.x.solutionValue)
is only defined for OPL scripts and not for main blocks.
#DecisionOptimization#OPLusingCPLEXOptimizer