Originally posted by: apscomeup
Hi! I am trying to solve linear problem with boolean variables defined on set NODES a
node in NODES.
I want to define constraint which must be satisfied if correspobding variable a
node has the value equeal one, and can not be satisfied if the value equeal zero.
Constraint is like this:
W
node in NODES >= C
where C ia a positive constant.
and W is a positive float.
So i place constraint(for all node in NODES):
W
node +M*(1-a
node)>= C
where M is a positive constant which has great value.
Now i solve the problem for
C = 101
M = 99999
and magnitued of W variables is not mor than 10^3.
CPLEX solves the problem succesfully. But if i replace the value of C constanct with 100.5, CPLEX still give optimal solution with no conflicts but relly constraint is not satisfied!
What are the reasons? explain please
#CPLEXOptimizers#DecisionOptimization