Binary variables
Hi , I am new to optimization.
I am trying to implement a simple linear programming based allocation problem with Binary variables. When binary variable is decided to be 1 by solver , a value gets allocated to related continuous variable , otherwise it stays 0, if the binary variable sets to 0.
I am running 10 iterations of the model.The end results of previous allocation is displayed in the end and helps me track the changes in new iteration.
The program run shows optimal solution found , but in results, I see some continuous variables hold value 0 with their binary value set to 1. And no changes to the allocation is seen to these variables in new iteration., its same as in the previous one.
How to resolve this issue?
Following is the statistic and solution quality I got for one of the iterations creating problems.
Coefficient statistics:
Matrix range [1e+00, 2e+03]
Objective range [0e+00, 0e+00]
Bounds range [1e+00, 1e+00]
RHS range [2e-01, 2e+01]
Solution quality statistics for model M :
Maximum violation:
Bound : 0.00000000e+00
Constraint : 1.77635684e-15 (constraint_No5)
Integrality : 0.00000000e+00
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
Post is closed for comments.
Comments
1 comment