- Function GMP::Stochastic::GetRelativeWeight(GMP, stage, scenario)¶
GMP::Stochastic::GetRelativeWeight returns the relative
weight of a scenario at some stage in the scenario tree belonging to a
stochastic mathematical program. The weight is relative to the sum of
the weights of all scenarios that have the same parent at that stage.
GMP::Stochastic::GetRelativeWeight( GMP, ! (input) a generated mathematical program stage, ! (input) a scalar reference scenario ! (input) a scenario )
In case of success, the relative weight. Otherwise it returns
The GMP should have been created by the function