Documentation

Filter Content By
Version
Languages

ScenNRHS

Type: double Yes

When the model has multiple scenarios, this attribute is used to query or modify changes of the linear constraint right-hand sides in scenario w.r.t. the base model. You set using the ScenarioNumber parameter.

If an element of this array attribute is set to the undefined value (GRB_UNDEFINED in C and C++, or GRB.UNDEFINED in Java, .NET, and Python), it means that the corresponding value in the scenario is identical to the one in the base model.

The number of scenarios in the model can be queried (or modified) using the NumScenarios attribute.