Skip to main content

Same model, different solve times

Answered

Comments

3 comments

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

    Hi James,

    This effect is called "Performance Variability" and is a well-known phenomenon. Changing the order of variables or constraints or using a different random seed can drastically impact the performance in either direction although the mathematical model is identical. This is described for example in the MIPLIB 2010 paper. Gurobi tries to exploit this a bit when running in ConcurrentMIP mode. Using different hardware also plays an important role as the search path within the branch-and-bound tree can be significantly different.

    You could try running with multiple different random seeds to get a feeling for how large the variability is on your model.

    Cheers,
    Matthias

    1
  • Mohammad Ehsanul Hoque
    • Gurobi-versary
    • First Comment

    Hi James

    I am also interested in neural network verification. Can you please share your code? It would work for me as a starting point. Also, if you like you can share any tutorial/blog about encoding a neural network and using Gurobi solver on it. 

    Thanks

    0

Post is closed for comments.