Skip to main content

"out of memory" error

Answered

Comments

4 comments

  • Matthias Miltenberger
    • Gurobi Staff Gurobi Staff

    Hi Bahar,

    There are a lot of general constraints in your model - these may need to be reformulated during presolving which can require more memory. You should try solving a smaller model to get an idea of how much memory is necessary to handle what size of the problem.

    Alternatively, you could try running on a machine with more memory if that's an option. Since the solver runs into the memory limit very early on, it's not helpful to change the NodeFile parameter as the branching process has not even started.

    Cheers,
    Matthias

    0
  • Bahar Nasirian
    • Gurobi-versary
    • Conversationalist
    • Curious

    Thank you so much for your guidance.

    Regards,

    Bahar

    0
  • D
    • Gurobi-versary
    • Investigator
    • Conversationalist

    How much RAM should be enough to run a complex model with 

    a model with 6336897 rows, 10316000 columns and 148118000 nonzeros
    Model fingerprint: 0x14661732
    Variable types: 2000 continuous, 10314000 integer (10314000 binary)
    0
  • Simranjit Kaur
    • Gurobi Staff Gurobi Staff

    It is hard to predict how much RAM is sufficient by just looking at the model size. Sometimes, solving a smaller model can require a lot of memory, while a larger model may not. Please have a look at our article What hardware should I select when running Gurobi? for general recommendations on how to choose hardware when running Gurobi.

    0

Please sign in to leave a comment.