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

Overhead of adding lazy constraints via callback in Python

回答済み

コメント

4件のコメント

  • 正式なコメント
    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 Mike,

    Could you please share a minimal reproducible example? Or at least one such hard coded lazy constraint which takes a long time to be added to the model? In particular, it is of interest how dense and numerically stable is your lazy constraint.

    Best regards, 
    Jaromił

    0
  • Mike Lang
    • Gurobi-versary
    • Conversationalist
    • First Question

    Hi Jaromił, 

    thank you for the answer. Can I send the example to you somehow? Even the reduced version is a bit large to post it here. 

    Thank you!

    Mike

    0
  • Jaromił Najman
    • Gurobi Staff

    The issue has been resolved internally. The problem was an inefficient usage of Python data structures. The Knowledge Base article How do I improve the time to build my model? holds many useful tips.

    0

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