Hi All,
I use CPLEX to solve a MILP problem which basically is a network flow problem. However, I notice that some decision variables are very small variables like -1.00006e-09, -9.02266e-12, instead of zero. BUT I defined them as: decVar.add(IloNumVar(env, 0, 100, IloNumVar::Float)
Is there anyone who knows how to make these decision variables zero in this case? Thank you in advance!
% BAD
x = sdpvar(10,1);Constraints = [...,x(5)==0]
% GOOD
x = sdpvar(10,1);x(5)=0;Constraints = [...]