Originally posted by: pieterce
Hi @AlexFleischer a1d4492b-6cf8-402d-ae3c-dd656c427dc7
Thanks for the quick reply! However, CPLEX returns an error message when I run the following:
forall (t in T)
{
ct1: sum(k in 1..t) G[k] <= t * ravg + sqrt(t) * rstdev * Z_alpha_U;
}
execute
{
writeln( ct1.name," ",ct1.UB," ",ct1.LB," ",ct1.dual," ",ct1.slack);
}
On your link I read:
For technical reasons, the lower and upper bound properties LB and UB are currently accessible only during postprocessing and flow control in constraints assigned in a forall declaration. The undefined value is returned instead.
How can I get the UB, LB, dual and slack for forall loops?
#DecisionOptimization#OPLusingCPLEXOptimizer