Skip to main content

RHS Not Being Updated in MultiScenario Problem

Awaiting user input

Comments

1 comment

  • Ryuta Tamura
    Gurobi Staff Gurobi Staff

    Hi,
    You seem to be referring to the RHS attribute for each scenario.

    print(f'Scenario {i} RHS: ', sa.Model.getConstrByName(sa.Model.ScenNName).RHS)

    Does it work if you change it to ScenNRHS attribute?

    print(f'Scenario {i} RHS: ', sa.Model.getConstrByName(sa.Model.ScenNName).ScenNRHS)

    Regards,
    Ryuta

    0

Please sign in to leave a comment.