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

Adding constraints based on input flag in Python

回答済み

コメント

3件のコメント

  • 正式なコメント
    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 why not try our AI Gurobot?.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Elvi,

    This is perfectly fine. You will simply end up with two different models depending on the value of the flag. Please note that this is not going to be dynamic in any way. If you change the flag and want to optimize the new model, you will also have to create a new model object.

    Cheers,
    Matthias

    1
  • Elvi Cela
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you for your quick reply. It's clear now.

    Cheers,
    Elvi

    0

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