MeasureEvaluation¶
- class otrobopt.MeasureEvaluation(*args)¶
Measure evaluation base class.
Base class for measure function evaluations, allows to define robust counterparts of parametric objective or constraint functions.
Methods
Accessor to the object's name.
Distribution accessor.
Function accessor.
getId()Accessor to the object's id.
Accessor to the underlying implementation.
getName()Accessor to the object's name.
Accessor to the dimension of the measure values.
rebuild(*args)Rebuild the measure over a new function and distribution.
Whether rebuilding the measure requires an explicit optimization domain.
setDistribution(distribution)Distribution accessor.
setFunction(function)Function accessor.
setName(name)Accessor to the object's name.
GetClassName
See also
- __init__(*args)¶
- getClassName()¶
Accessor to the object’s name.
- Returns:
- class_namestr
The object class name (object.__class__.__name__).
- getDistribution()¶
Distribution accessor.
- Returns:
- distribution
openturns.Distribution Parameters distribution.
- distribution
- getFunction()¶
Function accessor.
- Returns:
- function
openturns.Function Parametric function.
- function
- getId()¶
Accessor to the object’s id.
- Returns:
- idint
Internal unique identifier.
- getImplementation()¶
Accessor to the underlying implementation.
- Returns:
- implImplementation
A copy of the underlying implementation object.
- getName()¶
Accessor to the object’s name.
- Returns:
- namestr
The name of the object.
- getOutputDimension()¶
Accessor to the dimension of the measure values.
- Returns:
- outputDimensionint
Dimension of the values returned by the measure. It may differ from the output dimension of the underlying function, for example for a joint chance measure over a vector-valued function.
- rebuild(*args)¶
Rebuild the measure over a new function and distribution.
- Parameters:
- function
openturns.Function Parametric function of the rebuilt measure.
- distribution
openturns.Distribution Distribution of the rebuilt measure.
- optimizationDomain
openturns.Interval Optional optimization domain, used by the worst-case measure.
- function
- Returns:
- measure
MeasureEvaluation The rebuilt measure.
- measure
- requiresOptimizationDomain()¶
Whether rebuilding the measure requires an explicit optimization domain.
- Returns:
- requiredbool
True when the measure optimizes over its distribution support and therefore needs a domain when its distribution is replaced.
- setDistribution(distribution)¶
Distribution accessor.
- Parameters:
- distribution
openturns.Distribution Parameters distribution.
- distribution
- setFunction(function)¶
Function accessor.
- Parameters:
- function
openturns.Function Parametric function.
- function
- setName(name)¶
Accessor to the object’s name.
- Parameters:
- namestr
The name of the object.
otrobopt