The Four Branch function

Four Branch function contours with limit state and input PDF

Four Branch function: contours, limit state (red), input PDF (transparent)

The Four Branch function is a 2D limit state function introduced by Schueremans and van Gemert (2005) [Schueremans2005] as a benchmark for structural reliability analysis. It represents a series system with four distinct failure modes (branches). The function has been widely used in reliability literature, particularly for testing active learning methods such as AK-MCS [echard2011].

Definition

Let the function f : \mathbb{R}^2 \times \mathbb{R} \rightarrow \mathbb{R} defined by:

\begin{align*}
f(\vect{x}, p) = \min \begin{Bmatrix}
3 + 0.1(x_1 - x_2)^2 - \frac{x_1 + x_2}{\sqrt{2}} \\
3 + 0.1(x_1 - x_2)^2 + \frac{x_1 + x_2}{\sqrt{2}} \\
(x_1 - x_2) + \frac{p}{\sqrt{2}} \\
(x_2 - x_1) + \frac{p}{\sqrt{2}}
\end{Bmatrix}
\end{align*}

The function consists of four branches: - Two quadratic branches (g1, g2) forming a parabolic shape opening upward - Two linear branches (g3, g4) forming a diamond shape

The parameter p controls the position of the linear branches. The standard benchmark value is p = 6.

Probabilistic Inputs (Standard Benchmark)

The two input variables are modeled as independent standard normal random variables:

X_1, X_2 \sim \mathcal{N}(0, 1) \quad \text{independent}

Table 1. Distribution of the input random variables (standard benchmark).

Input variable

Distribution

X_1

Normal(\mu=0, \sigma=1)

X_2

Normal(\mu=0, \sigma=1)

The failure event is defined as:

F = \{ \vect{x} \in \mathbb{R}^2 : f(\vect{x}, p) \leq 0 \}

Reference Failure Probability

The failure probability P_f = \mathbb{P}[f(\vect{X}, 6) \leq 0] has been estimated by several methods in the literature:

Table 2. Reference values for the failure probability with p=6.

Method

N

\hat{P}_f

COV

Source

MCS

10^6

4.416\times10^{-3}

0.15%

Echard et al. (2011)

IS

1469

4.9\times10^{-3}

Echard et al. (2011)

Analysis

The Four Branch function creates a non-convex failure domain with four distinct branches meeting at the origin. The failure domain is the union of four regions:

  1. Region 1 (quadratic): 3 + 0.1(x_1 - x_2)^2 - (x_1 + x_2)/\sqrt{2} \leq 0

  2. Region 2 (quadratic): 3 + 0.1(x_1 - x_2)^2 + (x_1 + x_2)/\sqrt{2} \leq 0

  3. Region 3 (linear): x_1 - x_2 + 6/\sqrt{2} \leq 0

  4. Region 4 (linear): x_2 - x_1 + 6/\sqrt{2} \leq 0

This function is particularly challenging for reliability methods because: 1. The failure domain is non-convex with four distinct components 2. The limit state function is non-smooth (minimum of four functions) 3. The probability of failure is small (rare event, ~0.45%)

It serves as a benchmark for: - Active learning reliability algorithms (AK-MCS, PC-Kriging, etc.) - Subset Sampling and NAIS algorithms - Gaussian Process / Polynomial Chaos metamodeling

References

  • [Schueremans2005] L. Schueremans and D. van Gemert, “Benefit of splines and neural networks in simulation based structural reliability analysis,” Structural Safety, vol. 27, no. 3, pp. 241-258, 2005. DOI: 10.1016/j.strusafe.2004.11.001

  • [echard2011] Echard B., Gayton N., Lemaire M., AK-MCS: an active learning reliability method combining Kriging and Monte Carlo simulation, Structural Safety, 33(2), 145-154, 2011. https://doi.org/10.1016/j.strusafe.2011.01.002

Load the use case

Standard benchmark version (independent standard normals, p=6):

>>> from openturns.usecases import four_branch_function
>>> fb = four_branch_function.FourBranchModel()
>>> print(fb.p)
6.0
>>> print(fb.distribution)
Independent copula
X1 ~ Normal(mu=0, sigma=1)
X2 ~ Normal(mu=0, sigma=1)

Custom parameter p:

>>> fb = four_branch_function.FourBranchModel(p=7.0)
>>> print(fb.p)
7.0

API documentation

class FourBranchModel(p=6.0)

Data class for the Four Branch test function.

The Four Branch function is a 2D limit state function defined by:

f(\vect{x}, p) = \min \begin{Bmatrix}
3 + 0.1(x_1 - x_2)^2 - \frac{x_1 + x_2}{\sqrt{2}} \\
3 + 0.1(x_1 - x_2)^2 + \frac{x_1 + x_2}{\sqrt{2}} \\
(x_1 - x_2) + \frac{p}{\sqrt{2}} \\
(x_2 - x_1) + \frac{p}{\sqrt{2}}
\end{Bmatrix}

The standard benchmark uses independent standard normal inputs:

X_1, X_2 \sim \mathcal{N}(0, 1) \quad \text{independent}

with parameter p = 6 (default).

The failure event is f(\vect{X}, p) \leq 0.

The reference failure probability is approximately P_f \approx 4.4 \times 10^{-3} (MCS with 10^6 samples, Echard et al. 2011).

This function is commonly used as a benchmark in reliability analysis, active learning (AK-MCS), and surrogate modeling.

Attributes:
dimint

The dimension of the problem: dim=2.

pfloat

The constant parameter p (default: 6.0).

X1Normal

First marginal: standard Normal(0, 1).

X2Normal

Second marginal: standard Normal(0, 1).

distributionJointDistribution

The joint distribution of the input parameters (independent standard normals).

modelPythonFunction

The Four Branch function with parameter p.

References

Examples

>>> from openturns.usecases import four_branch_function
>>> # Load the standard Four Branch model (p=6, standard normal inputs)
>>> fb = four_branch_function.FourBranchModel()
>>> print("Inputs:", fb.model.getInputDescription())
Inputs: [X1, X2]
>>> print("Output:", fb.model.getOutputDescription())
Output: [y]
>>> print("p =", fb.p)
p = 6.0
>>> print("Distribution:", fb.distribution)
Distribution: Independent copula
X1 ~ Normal(mu=0, sigma=1)
X2 ~ Normal(mu=0, sigma=1)

Create a model with custom parameter p:

>>> fb = four_branch_function.FourBranchModel(p=7.0)

Examples based on this use case

Four Branch function visualization and reliability analysis

Four Branch function visualization and reliability analysis

Non parametric Adaptive Importance Sampling (NAIS)

Non parametric Adaptive Importance Sampling (NAIS)