Skip to main content

Objective function result

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    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?.
  • Eli Towle
    Gurobi Staff Gurobi Staff

    Hi Sab,

    The additional variables don't limit the candidate locations. Because your objective is \( 0 \), Gurobi just looks for a feasible solution. There is no incentive in the objective function to utilize additional candidate locations.

    If you solve the exact same model using the exact same parameters, Gurobi should return the same result. Although the \( \texttt{E} \) variables don't show up in any constraints, adding them results in a different model. Thus, Gurobi will not necessarily return the exact same solution as it did when you solved the problem without these variables. You can read more about this in the article Is Gurobi Optimizer deterministic?.

    Thanks,

    Eli

    0

Post is closed for comments.