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

Can new variables be added in a callback function?

回答済み

コメント

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.
  • Jonasz Staszek
    • Community Moderator
    • Gurobi-versary
    • Thought Leader
    • First Question

    Hi Jonas,

    the documentation would suggest that your desired behavior is not supported. Perhaps someone from Gurobi team can confirm this?

    I would recommend that you try to reformulate your problem further, or add the required variables upfront (if they are not too numerous).

    Best regards
    Jonasz

    0
  • Matthias Miltenberger
    • Gurobi Staff

    That's correct - adding variabels on the fly, that is, column generation is not supported out-of-the-box with Gurobi. Please check out this discussion where Tobi explains the situation in some more detail: Column Generation Explanation – Gurobi Help Center

    Cheers,
    Matthias

    0
  • Jonas Saupe
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Jonasz and Matthias,

    thanks for clarifying that. Unfortunately, I will not be able to use lazy constraints in this case.
    But thanks a lot for your help!

    Kind regards
    Jonas

    0

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