メインコンテンツへスキップ

Memory Issue During Optimization with Gurobi

回答済み

コメント

4件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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.
  • Maliheh Aramon
    • 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
    • Gurobi-versary
    • 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

    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

投稿コメントは受け付けていません。