Skip to main content

Is there a way to limit the memory used by Gurobi algorithms ?

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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    Hi Sophie,

    The parameter MemLimit limits the memory used by Gurobi. When the set memory limit is reached, an error is thrown. Thus, this parameter may not be suitable for your application. For very large models it is sometimes just not possible to compress all the model data, i.e., all coefficients, rows, columns, Barrier matrices etc., to a fixed memory amount. I think in your case, you should try to reduce the memory used as discussed in How do I avoid an out-of-memory condition? Usually, the best alternative is to switch to a bigger machine, e.g., a cloud machine, to execute the computations.

    Best regards, 
    Jaromił

    0
  • Sophie Wuyckens
    • Gurobi-versary
    • First Question
    • Conversationalist

    Hi Jaromil,

    Thank you very much. Very informative, exactly what I needed to know.

    Regards,

    Sophie

    0

Post is closed for comments.