RBDOProblem

class otrobopt.RBDOProblem(*args)

Reliability-based design optimization problem.

This class is experimental and may change in future releases.

The problem couples a scalar classical objective f(x) with one joint chance constraint

\ProbCond{\cD}{G(x;\Theta) \ge 0} \ge \alpha

or the variant defined by the comparison operator of the measure. The deterministic bounds, inequality constraints and equality constraints use the usual OptimizationProblem protocol.

Available constructors:

RBDOProblem(objective, jointChanceMeasure)

RBDOProblem()

Parameters:
objectiveFunction

Scalar objective function f(x). Its input dimension defines the design dimension.

jointChanceMeasureJointChanceMeasure

Joint chance constraint. Its limit-state function must have the same input dimension as the objective and its distribution dimension must match the limit-state function parameter dimension.

Methods

GetDefaultCanonicalizationOptions()

Default canonicalization options of the specialized problem.

check()

Check the problem contract.

getBounds()

Accessor to bounds.

getCanonicalDeterministicConstraint(*args)

Accessor to the canonical deterministic inequality constraint.

getCanonicalJointChanceMeasure(*args)

Accessor to the canonical joint chance measure.

getCanonicalProblem(*args)

Accessor to the solver-ready canonical problem.

getCanonicalStartingPoint(*args)

Accessor to the canonical starting point.

getCanonicalizer(*args)

Accessor to the canonicalizer of the problem.

getClassName()

Accessor to the object's name.

getComparisonOperator()

Accessor to the comparison operator of the joint chance constraint.

getConstant()

Accessor to the constant term of the objective.

getDimension()

Accessor to input dimension.

getDistribution()

Accessor to the distribution of the joint chance constraint.

getEqualityConstraint()

Accessor to equality constraints.

getHessian()

Accessor to the Hessian matrix.

getInequalityConstraint()

Accessor to inequality constraints.

getJointChanceMeasure()

Accessor to the joint chance constraint.

getLevelFunction()

Accessor to level function.

getLevelValue()

Accessor to level value.

getLimitStateFunction()

Accessor to the limit-state function of the joint chance constraint.

getLinearConstraintBounds()

Accessor to the linear constraint bounds.

getLinearConstraintCoefficients()

Accessor to the linear constraint term.

getLinearCost()

Accessor to the linear cost.

getName()

Accessor to the object's name.

getObjective()

Accessor to objective function.

getResidualFunction()

Accessor to level function.

getTargetProbability()

Accessor to the target probability of the joint chance constraint.

getVariablesType()

Accessor to the variables type.

hasBounds()

Test whether bounds had been specified.

hasEqualityConstraint()

Test whether equality constraints had been specified.

hasInequalityConstraint()

Test whether inequality constraints had been specified.

hasJointChanceMeasure()

Whether a joint chance constraint is defined.

hasLevelFunction()

Test whether level function had been specified.

hasMultipleObjective()

Test whether objective function is a scalar or vector function.

hasName()

Test if the object is named.

hasResidualFunction()

Test whether a least-square problem is defined.

isContinuous()

Check if the problem is continuous.

isLinear()

Check if the problem is linear.

isMinimization([marginalIndex])

Test whether this is a minimization or maximization problem.

isQuadratic()

Check if the problem is quadratic.

setBounds(bounds)

Accessor to bounds.

setEqualityConstraint(equalityConstraint)

Accessor to equality constraints.

setInequalityConstraint(inequalityConstraint)

Accessor to inequality constraints.

setJointChanceMeasure(jointChanceMeasure)

Set the joint chance constraint.

setLevelFunction(levelFunction)

Accessor to level function.

setLevelValue(levelValue)

Accessor to level value.

setMinimization(minimization[, marginalIndex])

Tell whether this is a minimization or maximization problem.

setName(name)

Accessor to the object's name.

setObjective(objective)

Accessor to objective function.

setResidualFunction(residualFunction)

Accessor to level function.

setVariablesType(variableType)

Accessor to the variables type.

Notes

The joint chance measure returns the probit-transformed reliability index \Phi^{-1}(P)-\Phi^{-1}(\alpha), not the probability itself. The target probability is available through getTargetProbability() and the comparison operator through getComparisonOperator().

The distribution parameter is frozen by default in the canonical problems returned by getCanonicalProblem() and getCanonicalJointChanceMeasure(). Use the overloads that accept CanonicalizationOptions to optimize the active parameter through the canonical decision vector (x,s).

Examples

>>> import openturns as ot
>>> import otrobopt
>>> limitState = ot.ParametricFunction(
...     ot.SymbolicFunction(["x", "theta"], ["theta - x"]), [1], [0.0]
... )
>>> measure = otrobopt.JointChanceMeasure(
...     limitState, ot.Normal(), ot.GreaterOrEqual(), 0.9
... )
>>> problem = otrobopt.RBDOProblem(
...     ot.SymbolicFunction(["x"], ["x^2"]), measure
... )
>>> problem.getTargetProbability()
0.9
__init__(*args)
static GetDefaultCanonicalizationOptions()

Default canonicalization options of the specialized problem.

The distribution parameter is frozen by default. Use the overloads of getCanonicalizer(), getCanonicalProblem(), getCanonicalJointChanceMeasure(), getCanonicalDeterministicConstraint() and getCanonicalStartingPoint() that accept CanonicalizationOptions to optimize the active parameter.

Returns:
optionsCanonicalizationOptions

Canonicalization options with optimizeParameter set to False.

check()

Check the problem contract.

Raises:
ValueError

If the objective is missing or not scalar, if the joint chance constraint is missing, if the dimensions do not match, or if the deterministic constraints or bounds are inconsistent with the design dimension.

getBounds()

Accessor to bounds.

Returns:
boundsInterval

Problem bounds.

getCanonicalDeterministicConstraint(*args)

Accessor to the canonical deterministic inequality constraint.

Returns:
constraintFunction

The deterministic inequality constraints lifted to the canonical decision vector, or an empty function when the problem has none.

getCanonicalJointChanceMeasure(*args)

Accessor to the canonical joint chance measure.

Returns:
measureJointChanceMeasure

The joint chance measure rebuilt on the canonical limit-state function and the reference distribution. The measure still carries the target probability and the comparison operator of the original problem.

getCanonicalProblem(*args)

Accessor to the solver-ready canonical problem.

The canonical inequality constraint gathers the joint chance index as its first output and the deterministic inequality constraints as the following outputs. The canonical joint chance measure itself remains available through getCanonicalJointChanceMeasure().

Returns:
problemRobustOptimizationProblem

The canonical problem, whose decision vector is (x,s) when the parameter is optimized and x otherwise.

getCanonicalStartingPoint(*args)

Accessor to the canonical starting point.

Returns:
startingPointPoint

The starting point (x_0,s_0) of the canonical problem. When the distribution parameter is frozen, only x_0 is returned.

getCanonicalizer(*args)

Accessor to the canonicalizer of the problem.

Returns:
canonicalizerRobustOptimizationProblemCanonicalizer

The canonicalizer built from the generic robust problem, with the default options.

getClassName()

Accessor to the object’s name.

Returns:
class_namestr

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

getComparisonOperator()

Accessor to the comparison operator of the joint chance constraint.

Returns:
comparisonOperatorComparisonOperator

The operator that defines the joint chance event.

getConstant()

Accessor to the constant term of the objective.

Only relevant for the quadratic problem type.

Returns:
constantfloat

Constant term of the quadratic objective.

getDimension()

Accessor to input dimension.

Returns:
dimensionint

Input dimension of objective function.

getDistribution()

Accessor to the distribution of the joint chance constraint.

Returns:
distributionDistribution

Distribution of the uncertain vector \Theta.

getEqualityConstraint()

Accessor to equality constraints.

Returns:
equalityFunction

Describe equality constraints.

getHessian()

Accessor to the Hessian matrix.

Only relevant for the quadratic problem type.

Returns:
hessianSymmetricMatrix

Hessian matrix of the quadratic objective.

getInequalityConstraint()

Accessor to inequality constraints.

Returns:
inequalityFunction

Describe inequality constraints.

getJointChanceMeasure()

Accessor to the joint chance constraint.

Returns:
jointChanceMeasureJointChanceMeasure

Joint chance constraint.

Raises:
ValueError

If no joint chance constraint is defined.

getLevelFunction()

Accessor to level function.

Returns:
levelFunction

Level function.

getLevelValue()

Accessor to level value.

Returns:
valuefloat

Level value.

getLimitStateFunction()

Accessor to the limit-state function of the joint chance constraint.

Returns:
limitStateFunctionFunction

The limit-state function G(x;\Theta), whose parameter is the realization of \Theta.

getLinearConstraintBounds()

Accessor to the linear constraint bounds.

Only relevant for the linear problem type.

Returns:
LUInterval

Linear inequality constraint bounds.

getLinearConstraintCoefficients()

Accessor to the linear constraint term.

Only relevant for the linear problem type.

Returns:
AMatrix

Linear inequality constraint term.

Notes

A sparse problem materializes the dense matrix on demand. The experimental LinearProgrammingProblem provides getSparseLinearConstraintCoefficients() to avoid the densification.

getLinearCost()

Accessor to the linear cost.

Only relevant for the linear problem type.

Returns:
costPoint

Linear cost term.

getName()

Accessor to the object’s name.

Returns:
namestr

The name of the object.

getObjective()

Accessor to objective function.

Returns:
objectiveFunction

Objective function.

getResidualFunction()

Accessor to level function.

Returns:
levelFunction

Level function.

getTargetProbability()

Accessor to the target probability of the joint chance constraint.

Returns:
targetProbabilityfloat

The level \alpha of the joint chance constraint.

getVariablesType()

Accessor to the variables type.

Returns:
variablesTypeIndices

Types of the variables.

Notes

Possible values for each variable are ot.OptimizationProblemImplementation.CONTINUOUS, ot.OptimizationProblemImplementation.INTEGER and ot.OptimizationProblemImplementation.`BINARY`.

hasBounds()

Test whether bounds had been specified.

Returns:
valuebool

True if bounds had been set for this problem, False otherwise.

hasEqualityConstraint()

Test whether equality constraints had been specified.

Returns:
valuebool

True if equality constraints had been set for this problem, False otherwise.

hasInequalityConstraint()

Test whether inequality constraints had been specified.

Returns:
valuebool

True if inequality constraints had been set for this problem, False otherwise.

hasJointChanceMeasure()

Whether a joint chance constraint is defined.

Returns:
hasJointChanceMeasurebool

True when a joint chance constraint is defined.

hasLevelFunction()

Test whether level function had been specified.

Returns:
valuebool

True if level function had been set for this problem, False otherwise.

hasMultipleObjective()

Test whether objective function is a scalar or vector function.

Returns:
valuebool

False if objective function is scalar, True otherwise.

hasName()

Test if the object is named.

Returns:
hasNamebool

True if the name is not empty.

hasResidualFunction()

Test whether a least-square problem is defined.

Returns:
valuebool

True if this is a least-squares problem, False otherwise.

isContinuous()

Check if the problem is continuous.

Returns:
isContinuousbool

Returns True if all variables are continuous.

isLinear()

Check if the problem is linear.

Returns:
isLinearbool

Returns True if the problem is of linear type.

isMinimization(marginalIndex=0)

Test whether this is a minimization or maximization problem.

Parameters:
marginal_indexint, default=0

Index of the output marginal (for multi-objective only)

Returns:
valuebool

True if this is a minimization problem (default), False otherwise.

isQuadratic()

Check if the problem is quadratic.

Returns:
isQuadraticbool

Returns True if the problem is of quadratic type.

setBounds(bounds)

Accessor to bounds.

Parameters:
boundsInterval

Problem bounds.

setEqualityConstraint(equalityConstraint)

Accessor to equality constraints.

Parameters:
equalityConstraintFunction

Equality constraints.

setInequalityConstraint(inequalityConstraint)

Accessor to inequality constraints.

Parameters:
inequalityConstraintFunction

Inequality constraints.

setJointChanceMeasure(jointChanceMeasure)

Set the joint chance constraint.

Parameters:
jointChanceMeasureJointChanceMeasure

Joint chance constraint. Its limit-state function must have the same input dimension as the objective and its distribution dimension must match the limit-state function parameter dimension.

setLevelFunction(levelFunction)

Accessor to level function.

Parameters:
levelFunctionFunction

Level function.

setLevelValue(levelValue)

Accessor to level value.

Parameters:
levelValuefloat

Level value.

setMinimization(minimization, marginalIndex=0)

Tell whether this is a minimization or maximization problem.

Parameters:
minimizationbool

True if this is a minimization problem, False otherwise.

marginal_indexint, default=0

Index of the output marginal (for multi-objective only)

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.

setObjective(objective)

Accessor to objective function.

Parameters:
objectiveFunctionFunction

Objective function.

Notes

Constraints and bounds are cleared if the objective has a different input dimension in order to keep the problem valid at all time.

setResidualFunction(residualFunction)

Accessor to level function.

Parameters:
levelFunctionFunction

Level function.

setVariablesType(variableType)

Accessor to the variables type.

Parameters:
variablesTypeIndices

Types of the variables.

Notes

Possible values for each variable are ot.OptimizationProblemImplementation.CONTINUOUS, ot.OptimizationProblemImplementation.INTEGER and ot.OptimizationProblemImplementation.BINARY.