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

getClassName()

Accessor to the object's name.

getDistribution()

Distribution accessor.

getFunction()

Function accessor.

getId()

Accessor to the object's id.

getImplementation()

Accessor to the underlying implementation.

getName()

Accessor to the object's name.

getOutputDimension()

Accessor to the dimension of the measure values.

rebuild(*args)

Rebuild the measure over a new function and distribution.

requiresOptimizationDomain()

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

__init__(*args)
getClassName()

Accessor to the object’s name.

Returns:
class_namestr

The object class name (object.__class__.__name__).

getDistribution()

Distribution accessor.

Returns:
distributionopenturns.Distribution

Parameters distribution.

getFunction()

Function accessor.

Returns:
functionopenturns.Function

Parametric 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:
functionopenturns.Function

Parametric function of the rebuilt measure.

distributionopenturns.Distribution

Distribution of the rebuilt measure.

optimizationDomainopenturns.Interval

Optional optimization domain, used by the worst-case measure.

Returns:
measureMeasureEvaluation

The rebuilt 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:
distributionopenturns.Distribution

Parameters distribution.

setFunction(function)

Function accessor.

Parameters:
functionopenturns.Function

Parametric function.

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.