I wonder why there is a difference between the following linear programs. They are written in the LP file format. I would assume that x=1
would be the optimal solution in both cases.
Program A:
min: x;
x >= 1;
bin x;
Output:
Value of objective function: 0
Actual values of the variables:
x 0
Program B (simulates the binary constraint with the integer constrain and two additional constrains):
min: x;
x >= 1;
x <= 1;
x >= 0;
int x;
Output:
Value of objective function: 1.00000000
Actual values of the variables:
x 1