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

Can new variables be added in a callback function?

回答済み

コメント

3件のコメント

  • Jonasz Staszek
    Community Moderator 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 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

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