Originally posted by: NicolasBarnier
Hi,
I've just started to translate ILOG Solve 4.4 code to Concert technology and I
can't figure yet the right way to functionally define a variable from an expression
without specifying its bounds. It seems that my closest try would be to declare
a variable without providing its bounds and bind it with a constraint afterwards :
IloIntVar v(env);
model.add (v == expr);
but the default bounds of the IloIntVar constructor are 0 and IloIntMax, so it
wouldn't be correct if the expression could be negative. Any hint on the subject ?
Best regards,
-- Nicolas Barnier
#CPOptimizer#DecisionOptimization