Skip to main content

Memory Issue During Optimization with Gurobi

Answered

Comments

3 comments

  • Maliheh Aramon
    Gurobi Staff Gurobi Staff

    Hi Matteo,

    • Do you get an explicit out-of-memory error code with error number 10001 for the 12-day model? The log only shows that the ordering took longer for the 12-day model.  
    • What is the memory capacity of your machine? 
    • Do you run both models in parallel?

    The BarOrder parameter controls the fill-reducing algorithm used for the constraint matrix A. There are two settings with 0 being computationally cheaper and 1 being computationally expensive. You can try BarOrder=0 for the 12-day model to potentially reduce the ordering time. 

    Another general recommendation for managing memory is to experiment with lower values for the Threads parameter. 

    Best regards,

    Maliheh

    0
  • Matteo Catania
    First Comment
    First Question

    Dear Malineh,

    Thank you for your support. Setting BarOrder to 0 resolved the issue within 12 days. However, I have not understood why the optimization stops if I do not set BarOrder to 0, as shown in the image below, which is the error taken directly from Python. I do not believe this is due to a lack of available memory since I have 192 GB of RAM available, and the problem size is less than 2 GB.

     

    Best regards,

    Matteo

    0
  • Marika Karbstein
    Gurobi Staff Gurobi Staff

    Hi Matteo,

    With Gurobi 10, the memory requirements for the barrier were massively overestimated in some cases. Setting the BarOrder parameter helped here to not run in this overestimation. This issue is fixed with Gurobi 11. If possible, please upgrade.

    Best regards,
    Marika

    0

Please sign in to leave a comment.