Robust optimization measures¶
This page is the catalogue of the robustness and reliability measures provided by otrobopt. It states the definition, the output dimension and the intended use of each measure, together with the discretization and solver interfaces. The mathematical contract, the invariance theorem and the canonical transformation are stated in Pushforward, invariance and canonicalization; this page complements it with the measure-by-measure reference.
General formulation¶
Let be a cost function that depends on a design vector
and on a realization
of the random
vector
with distribution
. Let
be a constraint function. The robust optimization
problem reads
where is a robustness measure on the objective and
is a reliability measure on the constraint. Both are
statistical functionals of the random variable obtained by freezing
. The feasible set
carries the deterministic
bounds and constraints of the problem.
The measures are implemented as subclasses of
MeasureEvaluation. A measure evaluates its function at the
design point and integrates, samples or optimizes over the parameter
, which is the OpenTURNS parameter of the function. The
design vector
is the measure input.
Robustness measures¶
Robustness measures quantify the performance of a design under uncertainty.
They are used as the objective, and therefore must be scalar-valued.
RobustOptimizationProblem rejects a vector-valued robust
objective.
Mean¶
MeanMeasure computes the expectation of the objective,
This is the risk-neutral approach. For a discrete distribution the integral reduces to a weighted sum,
where is the probability of the atom
. The mean
is defined for a vector-valued function as well; the scalar restriction comes
from the robust problem, not from the measure.
The integral is evaluated with a density threshold: a density below
getPDFThreshold() (2e-16 by default) is treated as zero. The
threshold applies to the distribution of the measure, so after a
canonicalization it applies to the reference density. Raising it can discard
a region that the original integral would have kept, in particular when the
reference distribution has a different scale from the original one.
Variance¶
VarianceMeasure computes the variance of every output
component,
It is used for risk-averse optimization. The variance is a scalar only when the function is scalar-valued.
Mean-standard deviation tradeoff¶
MeanStandardDeviationTradeoffMeasure computes a convex
combination of the mean and the standard deviation,
where ,
and
is a trade-off coefficient. The special values are
for the pure mean,
for the pure
standard deviation and
for equal weights.
Worst case¶
WorstCaseMeasure computes the extremal value of the
function over the support of the distribution,
for minimization, and the supremum for maximization. When the user sets an
optimization domain with setOptimizationDomain, the extremum is taken over
that domain. Otherwise a continuous distribution is searched over
distribution.getRange(). Canonicalization requires an explicit domain when
the distribution parameter is optimized and the reference distribution is not
the standard normal distribution: the reference support is then unbounded and
the stored domain has no image in the reference space. A frozen parameter and
the standard normal fast path keep the distribution range, so an unbounded
range alone does not require a domain (the domain policy is described in
Pushforward, invariance and canonicalization). For continuous distributions the inner problem is solved
by a nested optimizer (default: TNC). For discrete distributions the support
points whose probability exceeds MeasureEvaluation.getPDFThreshold() are
scanned, and points at or below the threshold are excluded, so the support is
not scanned exhaustively.
The domain stored by a worst-case measure is expressed in the coordinates of
the original uncertain vector . When the distribution parameter
is frozen, the canonicalization keeps these coordinates and preserves the
domain. When the parameter is optimized, the worst-case variable becomes the
reference realization and the stored domain has no image in general: the
canonicalizer rejects the configuration instead of silently dropping the
restriction. Provide the domain in the reference space with
CanonicalizationOptions.setWorstCaseDomain, or freeze the parameter with
setOptimizeParameter(False).
Quantile¶
QuantileMeasure computes the -quantile of the
output distribution,
The implementation solves by Brent root finding when
is continuous, where
is the distribution function of
. For a discrete distribution the measure builds the
finite discrete distribution of the output and calls its quantile function
directly, because a discrete distribution function need not attain
. The measure is restricted to scalar functions.
Reliability measures¶
Reliability measures quantify the feasibility of a design under uncertainty.
They are used as constraints. The otrobopt convention is
for an inequality constraint, so a reliability requirement
must be expressed with
GreaterOrEqual.
Joint chance constraint¶
JointChanceMeasure computes the probability that all
constraint components are satisfied simultaneously, mapped through the probit
transform and shifted by the target level
:
The probability is evaluated as
The measure always integrates the event ; the
comparison operator only selects the sign of the returned scalar. With
GreaterOrEqual the value is
so the constraint is equivalent to
when
lies in
. The implementation
clips
to that interval before the probit transform. With
GreaterOrEqual and
, the constraint cannot be
satisfied. With
Less the value is
which represents when
lies in
, equivalently
.
The
Less form is therefore the complement form, not a different event: it
is satisfied when the probability that at least one component violates its
constraint is at least . The same clipping applies: above
the clipped probability keeps the constraint
positive even when
, and below
it
keeps the constraint negative even when
. A reliability
requirement
uses
GreaterOrEqual.
The probit transform stretches the probability scale near zero and one, which improves the conditioning of the measure for gradient-based optimization. The measure is scalar-valued even when the limit state is vector-valued.
Individual chance constraint¶
IndividualChanceMeasure computes the probability that
each constraint component is satisfied individually, mapped through
the probit transform and shifted by per-component target levels,
for . The output is a vector with one entry per
constraint component and the constraint
is
interpreted componentwise. As for the joint measure, the operator selects the
sign of each component and the integrated event remains
.
Aggregated measure¶
AggregatedMeasure concatenates the outputs of several
measures into a single vector-valued measure,
It is used internally by RobustOptimizationProblem to
assemble the objective and the constraints into one evaluation. The children
share the same distribution and the same parameter vector. A mixed set of
distributions is rejected by the problem when the measures differ at the top
level. The canonicalizer also rejects a mixed set of distributions inside an
aggregate.
Robust optimization problem¶
RobustOptimizationProblem assembles the robustness and
reliability measures into the mathematical program
Either measure can be omitted. If is omitted, the original
deterministic objective is used; if
is omitted, the original
deterministic constraint is used. When both are provided they must share the
same distribution. Deterministic bounds are attached with
setBounds(). The class also rejects
a vector-valued robust objective; a reliability constraint may remain
vector-valued because its components are interpreted componentwise.
Discretization of measures¶
MeasureFactory converts a measure with a continuous
distribution into a measure with an empirical distribution,
where and
are generated by a
WeightedExperiment, for example Monte Carlo, Latin
hypercube sampling or a Sobol sequence. The discrete measure replaces the
integral by a finite sum, which makes the problem tractable with deterministic
solvers.
Sequential Monte Carlo algorithm¶
SequentialMonteCarloRobustAlgorithm iteratively refines the
discretization and re-optimizes until convergence. The algorithm is
The sample starts empty: the first iteration draws
samples. With the default identity
increment, this is
samples, so the first deterministic problem is
solved with
samples and not
.
The main aspects are the following.
Sample size. New samples are added at each iteration to improve the accuracy of the discretization. The increment is configurable; the default adds
new samples.
Multi-start. On the first iteration an optional multi-start search over the bounds, driven by a Sobol low-discrepancy sequence, provides a promising starting point.
Convergence. The algorithm stops when the change of the design point falls below the absolute error tolerance.
Solver tolerance. The tolerance of the inner deterministic solver is tightened as
, where
is a configurable factor.
The sequential approach avoids committing to a fixed discretization level before the optimization: the approximation improves as the optimization progresses, which yields efficient and robust convergence.
Measure summary¶
Measure |
Output |
Use |
|---|---|---|
scalar or vector |
objective, risk-neutral |
|
scalar or vector |
objective, risk-averse |
|
scalar or vector |
objective, risk-averse |
|
scalar |
objective, risk-averse |
|
scalar or vector |
objective, worst case |
|
scalar |
constraint, joint reliability |
|
vector |
constraint, componentwise reliability |
|
concatenation |
assembly of several measures |
The scalar-objective restriction of
RobustOptimizationProblem applies to the assembled
objective, not to the individual measure: the variance and the tradeoff
measure accept vector-valued functions, but their output must be scalar when
they define the robust objective.
otrobopt