Skip to main content

Modeling Issue

Answered

Comments

3 comments

  • Michel Soares
    Gurobi-versary
    Thought Leader

    Integer models are solved through branch and cut combined with several heuristics. What you described makes part of the algorithm, having this gap between a relaxed solution and the best integer feasible solution found.

    A model that has a big gap between the relaxed solution and the integer one, is called a weak MIP. For better convergence, you want a strong MIP. Gurobi has a few videos on how to improve your model to make it stronger.

    1
  • Michel Soares
    Gurobi-versary
    Thought Leader

    Hi,

    I am not sure if it would help, but it seems like you do not need Bp[edge], you can use direction_AB and direction_BA instead. It should remove some variables and make your model more dense, which sometimes makes it faster. I believe it is worth giving it a try.

    If I understood it correctly, you have a quadratic constraint with the diamater. This may also be the cause of the slow convergence, it might be worth looking into this constraint as well.

    0
  • atefeh Behzadi
    Gurobi-versary
    Conversationalist
    First Question

    Thank you. I have a question about the method that Gurobi employs to find the best objective function. In many of my optimization models, the Best Bound of Objective Bounds is not feasible, especially in cases of minimization and integer programming, and it tends to be very low. This results in a significant gap between the Incumbent of Objective Bounds and Best Bound, leading to non-convergence of the model. For instance, in such scenarios, I find it necessary to limit the objective function to a reasonable range to adjust the Best Bound of Objective. Could you please provide guidance on addressing this issue?

    0

Please sign in to leave a comment.