However when i use env.out() to see what are the values of Z .... one
or two or them read 1.11022e -016 .... which is zero but why is is
getting that number instead of just plain 0 . I have also tried
IloNumVarArray Z(env,M,0,1,ILOBOOL); but surprisingly it does the
same.
Any suggestions.
Arush.
It's just rounding error. All variables are double precision during the
computations, and a little decimal dust creeps in sometimes.
/Paul
Presumably, some of the variables are /exactly/ 0 (or 1) because they
have been declared so by branches like "x = 0" or "x = 1" in the B&B
search tree. Others may be zero in the LP relaxation, but come out as
small positive numbers because of roundoff errors. I have seen other
software that can even give small negative numbers, at least in the
older versions of a few years ago.
R.G. Vickson