Skip to main content

Adding and removing Scenarios in multiscenario setting

Answered

Comments

2 comments

  • Eli Towle
    Gurobi Staff Gurobi Staff

    In your example, you can remove the RHS change of constraint 1 in scenario 1 by setting the constraint's ScenNRHS attribute to \( \texttt{GRB_UNDEFINED} \) or \( \texttt{GRB.UNDEFINED} \) (depending on your API). This way, scenario 1 would only include the change to the RHS of constraint 2. Does this work for you?

    0
  • Seyedkianoush Mousavichashmi
    Gurobi-versary
    First Question
    First Comment

    Thank you very Much! It solved my issue!

     

    Regards,

    Kianoush

    0

Please sign in to leave a comment.