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 J(x, \theta) be a cost function that depends on a design vector x \in \Rset^{n_x} and on a realization \theta of the random vector \Theta \in \Rset^{n_\theta} with distribution \cD. Let G(x, \theta) be a constraint function. The robust optimization problem reads

\begin{aligned}
& \min_{x \in \mathcal{X}}
& & \rho_{\cD}\bigl[J(x, \cdot)\bigr] \\
& \text{subject to}
& & \lambda_{\cD}\bigl[G(x, \cdot)\bigr] \ge 0,
\end{aligned}

where \rho_{\cD} is a robustness measure on the objective and \lambda_{\cD} is a reliability measure on the constraint. Both are statistical functionals of the random variable obtained by freezing x. The feasible set \mathcal{X} 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 \theta, which is the OpenTURNS parameter of the function. The design vector x 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,

\rho_{\cD}\bigl[J(x, \cdot)\bigr]
= \Expect{J(x, \Theta)}
= \int_{\Rset^{n_\theta}} J(x, \theta)\, \cD(\mathrm{d}\theta).

This is the risk-neutral approach. For a discrete distribution the integral reduces to a weighted sum,

\rho_{\cD}\bigl[J(x, \cdot)\bigr]
= \sum_{i=1}^{N} J(x, \theta_i)\, p_i,

where p_i is the probability of the atom \theta_i. 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,

\rho_{\cD}\bigl[J(x, \cdot)\bigr]
= \Var{J(x, \Theta)}
= \Expect{J(x, \Theta)^2} - \Expect{J(x, \Theta)}^2.

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,

\rho_{\cD}\bigl[J(x, \cdot)\bigr]_k
= (1 - \alpha_k)\, \mu_k(x) + \alpha_k\, \sigma_k(x),

where \mu_k = \Expect{J_k(x, \Theta)}, \sigma_k = \sqrt{\Var{J_k(x, \Theta)}} and \alpha_k \in [0,1] is a trade-off coefficient. The special values are \alpha_k = 0 for the pure mean, \alpha_k = 1 for the pure standard deviation and \alpha_k = 1/2 for equal weights.

Worst case

WorstCaseMeasure computes the extremal value of the function over the support of the distribution,

\rho_{\cD}\bigl[J(x, \cdot)\bigr]
= \inf_{\theta \in \supp{\cD}} J(x, \theta)

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 \theta. 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 \alpha-quantile of the output distribution,

\rho_{\cD}\bigl[J(x, \cdot)\bigr]
= \inf\Bigl\{ t \in \Rset :
  \Prob{J(x, \Theta) \le t} \ge \alpha \Bigr\}.

The implementation solves F(t) = \alpha by Brent root finding when F is continuous, where F is the distribution function of J(x, \Theta). 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 \alpha. 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 g(x) \ge 0 for an inequality constraint, so a reliability requirement \Prob{G(x, \Theta) \ge 0} \ge \alpha must be expressed with GreaterOrEqual.

Joint chance constraint

JointChanceMeasure computes the probability that all constraint components are satisfied simultaneously, mapped through the probit transform \Phi^{-1} and shifted by the target level \alpha:

\lambda_{\cD}\bigl[G(x, \cdot)\bigr]
= \Phi^{-1}\!\left(
  \Prob{\bigcap_{k=1}^{n_g} \{G_k(x, \Theta) \ge 0\}}
  \right) - \Phi^{-1}(\alpha).

The probability is evaluated as

P(x) = \int_{\Rset^{n_\theta}}
  \left(\prod_{k=1}^{n_g}
  \mathbf{1}_{\{G_k(x, \theta) \ge 0\}}\right)
  \cD(\mathrm{d}\theta).

The measure always integrates the event G(x, \Theta) \ge 0; the comparison operator only selects the sign of the returned scalar. With GreaterOrEqual the value is

\lambda = \Phi^{-1}\bigl(P(x)\bigr) - \Phi^{-1}(\alpha),

so the constraint \lambda \ge 0 is equivalent to P(x) \ge \alpha when \alpha lies in [\mathrm{pdfThreshold}, 1 - \mathrm{pdfThreshold}]. The implementation clips P(x) to that interval before the probit transform. With GreaterOrEqual and \alpha > 1 - \mathrm{pdfThreshold}, the constraint cannot be satisfied. With Less the value is

\lambda = \Phi^{-1}(\alpha) - \Phi^{-1}\bigl(P(x)\bigr),

which represents P(x) \le \alpha when \alpha lies in [\mathrm{pdfThreshold}, 1 - \mathrm{pdfThreshold}], equivalently \Prob{\bigcup_{k=1}^{n_g} \{G_k(x, \Theta) < 0\}} \ge 1 - \alpha. 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 1 - \alpha. The same clipping applies: above 1 - \mathrm{pdfThreshold} the clipped probability keeps the constraint positive even when P(x) = 1, and below \mathrm{pdfThreshold} it keeps the constraint negative even when P(x) = 0. A reliability requirement \Prob{G(x, \Theta) \ge 0} \ge \alpha 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,

\lambda_{\cD}\bigl[G(x, \cdot)\bigr]_k
= \Phi^{-1}\!\left(
  \Prob{G_k(x, \Theta) \ge 0}
  \right) - \Phi^{-1}(\alpha_k),

for k = 1, \dots, n_g. The output is a vector with one entry per constraint component and the constraint \lambda_{\cD} \ge 0 is interpreted componentwise. As for the joint measure, the operator selects the sign of each component and the integrated event remains G_k(x, \Theta) \ge 0.

Aggregated measure

AggregatedMeasure concatenates the outputs of several measures into a single vector-valued measure,

\mathcal{M}(x) = \bigl[\rho_1(x), \rho_2(x), \dots, \rho_m(x)\bigr].

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

\begin{aligned}
& \min_{x \in \mathcal{X}}
& & \rho_{\cD}\bigl[J(x, \cdot)\bigr] \\
& \text{subject to}
& & \lambda_{\cD}\bigl[G(x, \cdot)\bigr] \ge 0.
\end{aligned}

Either measure can be omitted. If \rho is omitted, the original deterministic objective is used; if \lambda 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,

\cD \;\longrightarrow\; \sum_{i=1}^{N} \omega_i\, \delta_{\theta_i},

where \{\theta_i\} and \{\omega_i\} 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

\begin{array}{l}
\textbf{Given: } N_0 \text{ (initial sample size)}, \;
  \varepsilon \text{ (convergence tolerance)} \\
\textbf{Initialize: } N \leftarrow N_0 \\
\textbf{Repeat:} \\
\qquad \Delta N \leftarrow \text{samplingSizeIncrement}(N) \\
\qquad \text{Draw } \Delta N \text{ new samples }
  \{\theta_i\} \text{ from } \cD \\
\qquad \text{Append to the existing sample; } N \leftarrow N + \Delta N \\
\qquad \text{Discretize the measures with }
  \texttt{MeasureFactory} \\
\qquad \text{Solve the deterministic problem from } x_{k-1} \\
\qquad \text{Let } x_k \text{ be the new optimum} \\
\qquad \text{Stop when } \|x_k - x_{k-1}\| < \varepsilon
\end{array}

The sample starts empty: the first iteration draws \text{samplingSizeIncrement}(N_0) samples. With the default identity increment, this is N_0 samples, so the first deterministic problem is solved with N_0 samples and not 2N_0.

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 N 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 \varepsilon_k = C/\sqrt{N}, where C 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

Outputs and intended use of the measures.

Measure

Output

Use

MeanMeasure

scalar or vector

objective, risk-neutral

VarianceMeasure

scalar or vector

objective, risk-averse

MeanStandardDeviationTradeoffMeasure

scalar or vector

objective, risk-averse

QuantileMeasure

scalar

objective, risk-averse

WorstCaseMeasure

scalar or vector

objective, worst case

JointChanceMeasure

scalar

constraint, joint reliability

IndividualChanceMeasure

vector

constraint, componentwise reliability

AggregatedMeasure

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.