Originally posted by: JulianF
Hi,
I am formulating a MILP problem with both binary and continuous variables. The problem includes the dual variables that I use in other inequalities. When I get the solution some of my binary variables are not exactly 1 but 0.9999938... which affects considerable the solution I get because another continuous variable, that should be different from 0, becomes 0. My guess is that on 3 of the inequalities I am including 'inf' as a multiplier of the binary variables. Here the inequalities:
-inf*b1 - c1 <= 0 n c1 <= 0
Inf*b1 - c2 + c1 <= inf
c2 - c1 <= 0
(Complementary slack conditions)
where c1 and c2 are continuous and b1 is the binary. With 'inf' the problem gives me very unreasonable solutions. When replacing 'inf' by a "big" number I get the optimal solution but I have the problem of 'b1' not being exactly 1 and c1 being 0 when it shouldn't. Also, the problem becomes highly sensitive to this boundary.
Please let me know if you need more details on the problem and I would greatly appreciate any help.
CPLEX 12.6; Matlab 2012a
Julian
#CPLEXOptimizers#DecisionOptimization