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

Overhead of adding lazy constraints via callback in Python

回答済み

コメント

3件のコメント

  • Jaromił Najman
    • Gurobi Staff 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 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

サインインしてコメントを残してください。