Yaseen M Al-Wesabi
Yaseen M Al-Wesabi

Reputation: 11

Binary variable in Gurobi solver

I run my code in Julia language, using a notebook, and a Gurobi solver. The problem is I have a defined binary variable, but the Gurobi solver provides me with a numerical value. For example, the results should provide the optimal number of buses in the system, but the result is 7.999?

Upvotes: 1

Views: 241

Answers (1)

Greg Glockner
Greg Glockner

Reputation: 5653

This is how integer programming works; please see the Gurobi knowledge base article Why does Gurobi sometimes return values for integer variables that are not integers?

Upvotes: 2

Related Questions