x.add(IloIntVar(env, 1, 5, "x1"));
executing the statement would set the upper and lower bounds the IloIntVar 'x1', but how to assign a specific integer value to "x1"?
I used the following code
x = 2;
but comes with a compiling error 'error C2679: binary '=' : no operator found which takes a right-hand operand of type 'int' (or there is no acceptable conversion)'
any ideas? thanks;)