Originally posted by: SystemAdmin
I defined an IloIntVarArray x and added an instance of IloIntVar with the following code:
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[0] = 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;)
#CPLEXOptimizers#DecisionOptimization