# ScenNObjVal

Filter Content By
Version
Languages

### ScenNObjVal

Type: string No

When the model has multiple scenarios, this attribute is used to query the objective value of the current solution for scenario . You set using the ScenarioNumber parameter. If no solution is available, this returns GRB_INFINITY (for a minimization objective).

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