UserManual_ActiveLearningReliability
UserManual_ActiveLearningReliability
CH-8093 Z ÜRICH
How to cite UQL AB
S. Marelli, and B. Sudret, UQLab: A framework for uncertainty quantification in Matlab, Proc. 2nd Int. Conf. on
Vulnerability, Risk Analysis and Management (ICVRAM2014), Liverpool, United Kingdom, 2014, 2554-2563.
M. Moustapha, S. Marelli, B. Sudret, UQLab user manual – Active learning reliability, Report UQLab-V2.1-117,
Chair of Risk, Safety and Uncertainty Quantification, ETH Zurich, Switzerland, 2024
BibTeX entry
@TechReport{UQdoc_21_117,
author = {Moustapha, M. and Marelli, S. and Sudret, B.},
title = {{UQLab user manual -- Active learning reliability}},
institution = {Chair of Risk, Safety and Uncertainty Quantification, ETH Zurich,
Switzerland},
year = {2024},
note = {Report UQLab-V2.1-117}
}
Document Data Sheet
Structural reliability methods aim at the assessment of the probability of failure of com-
plex systems due to uncertainties associated to their design, manifacturing, environmental
and operating conditions. The name structural reliability comes from the emergence of such
computational methods back in the mid 70’s to evaluate the reliability of civil engineering
structures. As these probabilities are usually small (e.g. 10−2 − 10−8 ), this type of problems
is also known as rare events estimation in the recent statistics literature. A variety of meth-
ods have been developed to estimate the reliability of structures. However they are often
time-consuming as they require repeated evaluations of the computational model describing
the behavior of the system. Alternative and more affordable methods have been developed
thanks to the introduction of surrogate models as cheap proxies of the computational model.
This manual presents the UQL AB framework for active learning, a process by which the
surrogate models are sequentially enriched so as to accurately estimate the failure probability
with the smallest possible computational cost. The framework is made of four different
components (namely surrogate model, estimation method, learning function and stopping
criterion) which can be combined to build custom active learning schemes.
The active learning reliability user manual is divided in three parts:
• A short introduction to the main concepts and techniques used to solve structural re-
liability problems using active learning, with a selection of references to the relevant
literature
• A detailed example-based guide, with the explanation of most of the available options
and methods
• A comprehensive reference list detailing all the available functionalities in the UQL AB
active learning reliability module.
1 Theory 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Problem statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2.1 Limit-state function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2.2 Failure Probability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Strategies for the estimation of Pf . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Surrogate-model-based strategies . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4.1 Global framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4.2 Surrogate modelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4.3 Reliability analysis algorithm . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.4 Learning function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4.5 Convergence criterion . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.5 Multiple-point enrichment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 Usage 11
2.1 Reference problem: R-S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Problem set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 Basic active learning reliability . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4 Accessing the results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5 Advanced usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.5.1 Individually configure each component . . . . . . . . . . . . . . . . . . 14
2.5.2 Other general options . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.5.3 Asynchronous learning . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.6 Advanced limit-state function options . . . . . . . . . . . . . . . . . . . . . . . 18
2.6.1 Specify failure threshold and failure criterion . . . . . . . . . . . . . . 18
2.6.2 Vector Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.7 Excluding parameters from the analysis . . . . . . . . . . . . . . . . . . . . . 19
3 Reference List 21
3.1 Create a reliability analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.2 Accessing the results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.3 Printing/Visualizing of the results . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.3.1 Printing the results: uq print . . . . . . . . . . . . . . . . . . . . . . . 32
3.3.2 Graphically display the results: uq display . . . . . . . . . . . . . . . . 33
Chapter 1
Theory
1.1 Introduction
1
UQL AB user manual
Figure 1: Schematic representation of the safe and failure domains Ds and Df and the cor-
responding limit-state surface g(x) = 0.
A limit state can be defined as a state beyond which a system no longer satisfies some perfor-
mance measure (ISO Norm 2394). Regardless of the choice of the specific criterion, a state
beyond the limit state is classified as a failure of the system.
Consider a system whose state is represented by a random vector of variables X ∈ DX ⊂ RM .
One can define two domains Ds , Df ⊂ DX that correspond to the safe and failure regions of
the state space DX , respectively. In other words, the system is failing if the current state
x ∈ Df and it is operating safely if x ∈ Ds . This classification makes it possible to construct
a limit-state function g(X) (sometimes also referred to as performance function) that assumes
positive values in the safe domain and negative values in the failure domain:
x ∈ Ds ⇐⇒ g(x) > 0
(1.1)
x ∈ Df ⇐⇒ g(x) ≤ 0
If the random vector of state variables X is described by a joint probability density function
(PDF) X ∼ fX (x), then one can define the failure probability Pf as:
Pf = P (g(X) ≤ 0) . (1.2)
This is the probability that the system is in a failed state given the uncertainties of the state
parameters. The failure probability Pf is then calculated as follows:
Z Z
Pf = fX (x)dx = fX (x)dx. (1.3)
Df {x: g(x)≤0}
Note that the integration domain in Eq. (1.3) is only implicitly defined by Eq. (1.1), hence
making its direct estimation practically impossible in the general case. This limitation can be
circumvented by introducing the indicator function of the failure domain, a simple classifier
given by: (
1 if g(x) ≤ 0
1Df (x) = , x ∈ DX .
0 if g(x) > 0
In other words, 1Df (x) = 1 when the input parameters x cause the system to fail and
1Df (x) = 0 otherwise. This function allows one to cast Eq. (1.3) as follows:
Z
Pf = 1Df (x)fX (x)dx = E 1Df (X) , (1.4)
DX
where E [·] is the expectation operator with respect to the PDF fX (x). This reduces the
calculation of Pf to the estimation of the expectation value of 1Df (X).
From the definition of 1Df (x) in Section 1.2.2 it is clear that determining whether a certain
state vector x ∈ DX belongs to Ds or Df requires the evaluation of the limit-state function
g(x). In the general case this operation can be computationally expensive, e.g. when it
entails the evaluation of a computational model on the vector x. For a detailed overview
of standard structural reliability methods and applications, see e.g. Ditlevsen and Madsen
(1996); Melchers (1999); Lemaire (2009).
In the following, three strategies are discussed for the evaluation of Pf , namely approxima-
tion, simulation and adaptive surrogate-modelling-based methods.
Approximation methods
Approximation methods are based on approximating the limit-state function locally at a
reference point (e.g. with a linear or quadratic Taylor expansion). This class of methods
can be very efficient (in that only a relatively small number of model evaluations is needed
to calculate Pf ), but it tends to become unreliable in the presence of complex, non-linear
limit-state functions. Two approximation methods are currently available in UQL AB:
of FORM. The computational costs associated to this refinement increase rapidly with
the number of input random variables M .
Simulation methods
Simulation methods are based on sampling the joint distribution of the state variables in
X and using sample-based estimates of the integral in Eq. (1.4). At the cost of being com-
putationally very expensive, they generally have a well-characterized convergence behaviour
that can be exploited to calculate confidence bounds on the resulting Pf estimates. Three
sampling-based algorithms are available in UQL AB:
• Monte Carlo simulation – it is based on the direct sample-based estimation of the expec-
tation value in Eq. (1.4). The total costs increase very rapidly with decreasing values
of the probability Pf to be computed.
Note: This user manual focuses only on surrogate model-based adaptive methods. For
more details on the other two classes of methods, please refer to the UQL AB User
Manual – Structural Reliability
This module is based on the global framework for active learning reliability presented in
Moustapha et al. (2021). The framework aims at building a variety of active learning schemes
by non-intrusively combining methods from four different core components. These compo-
nents, illustrated by a few examples, are presented in Figure 2. The first two modules, i.e.
Figure 2: Active learning reliability framework with methods available in UQL AB.
surrogate modelling and reliability method capitalize on readily available tools within UQL AB.
They will be briefly described in the next section and the user is referred to the corresponding
manual for a more detailed description. The other two, i.e. learning function and conver-
gence criteria will be detailed in this manual instead.
Using these four components, an algorithm for active learning reliability can be devised and
summarized as follows:
g(x(1) ), . . . , g(x(N0 ) ) ;
3. R ELIABILITY METHOD : Using the chosen reliability method (column 2 of Figure 2),
estimate a failure probability Pbf with the current surrogate model;
6. E NRICHMENT: add xnext and the corresponding limit-state function response(s) y next =
g(xnext ) to the experimental design of the surrogate model. Return to Step 2;
Surrogate models are used in active learning reliability as a tool to explore the random space
in a much affordable cost. They are built adaptively in an attempt to finely approximate the
limit-state surface in areas of high probability mass.
There are various surrogate modelling approaches currently offered by UQL AB. The follow-
ing will be used within the active learning reliability framework:
• Gaussian process a.k.a. Kriging (UQL AB User Manual – Kriging (Gaussian process mod-
elling));
• Support vector machines for regression (UQL AB User Manual – Support vector ma-
chines regression).
The user is referred to the respective manuals for more details about each of the surrogate
models. Throughout this document, they will be treated as black-boxes, i.e. we will only
be interested in their input-output structures. More specifically, for a given random variable
x, we denote by gb (x) the corresponding surrogate model prediction. Note that in some
cases, such as Kriging and polynomial chaos-Kriging, a second output, namely the prediction
variance, is also available. This can be quite useful in active learning and will be denoted by
sb2 (x).
Reliability algorithms lie at the core of active learning methods, as they are primarily used
to estimate the failure probability. As explained in previous sections, simulation methods
are preferred to approximation ones as they often lead to more accurate results. This comes
however at the expense of generally increased computational costs. When used in conjunc-
tion with surrogate-based methods, however, they can be effectively exploited, due to the
extreme efficiency of surrogate model predictors, which are typically inexpensive to evaluate
(often O(105−6 s−1 )).
This module is also considered black-box and directly calls the following methods from the
UQL AB reliability module:
• Monte Carlo simulation, UQL AB User Manual – Structural Reliability, Section 1.5.1
A learning function is used to identify the points that, once added to the experimental de-
sign, would best reduce the surrogate-induced error in the estimated failure probability. The
candidate point is normally chosen from a suitably defined candidate set S, often a large
Monte-Carlo sampling of the input space, or, in this framework, the full set of limit state eval-
uations performed by the reliability algorithm of choice at the current algorithm iteration. A
wide variety of learning functions have been proposed in the recent literature.
In the current version, UQL AB offers the following four:
Deviation number
Also known as U learning function, the deviation number was developed by Echard et al.
(2011) based on the concept of misclassification probability, and reads:
|b
g (x)|
U (x) = . (1.5)
sb(x)
where = 2b
s(x) and ϕ is the PDF value of a standard normal Gaussian variable. The EFF
function provides an indication of how well the true model response is expected to satisfy
g(x) = 0 and provides a good exploration/exploitation balance for enrichment. It takes large
values when a point is close to the limit-state threshold, i.e. gb(x) ≈ 0 and/or when there
is large uncertainty in the prediction, i.e. sb(x) is large. The next candidate sample is then
chosen as follows:
xnext = arg max EF F (s) . (1.9)
s∈S
Constrained min-max
This learning function was introduced in Moustapha and Sudret (2019) as an adaptation
of Basudhar and Missoum (2008). It aims at finding in the vicinity of the limit-state approx-
imation samples that are the furthest from existing training points. The next sample to add
then reads:
xnext = max0 min ks − x(i) k, (1.12)
s∈S i=1,...,N
where S 0 = {s ∈ S : |b
g (s)| ≤ q} with q being an γ-quantile of |b
g (s)|. The default value
γ = 0.01 is used in UQL AB.
Various convergence criteria can be used to terminate the enrichment process. The stopping
criteria implemented in UQL AB can be split into three categories:
Variance-based criteria
These criteria relate to the surrogate-induced uncertainty in the estimates of the failure
probability or in the associated reliability index β.
b This uncertainty is estimated through the
built-in error measure provided by some surrogates. As such, they apply only to Kriging and
PC-Kriging.
The first criterion is based on bounds of the estimated failure probability and is computed as
follows:
Pbf+ − Pbf−
≤ bound
Pbf
, (1.13)
Pb 0
f
Pbf0 = P (b
g (x) ≤ 0) , (1.14)
Pbf± = P (b
g (x) ∓ kb
s(x) ≤ 0) , (1.15)
where k = Φ−1 (1 − α/2) sets the confidence level (1 − α), typically k = Φ−1 (97.5%) = 1.96.
The second criterion is similarly defined, however using the reliability index instead:
βb+ − βb−
≤ bound
βb
, (1.16)
βb0
where the three reliability indices correspond to the aforementioned failure probabilities:
and
βb(j) − βb(j−1)
≤ stab
βb
(1.20)
βb(j)
(j)
where Pbf and βb(j) respectively represent the estimated failure probability and reliability
index at the j-th iteration.
This is the original AK-MCS stopping criterion and basically means that the probability of
misclassifying any point in the candidate pool is smaller than Φ (−U ).
In a similar fashion, the original EFF stopping criterion is implemented and reads:
Finally, for the min-max criterion, the stopping criterion refers to the minimal distance to the
other experimental design points
where d0 is the minimum distance between the experimental design points at the first itera-
tion.
The set S 00 is then reduced into K cluster centers obtained by weighted K-means clustering
using weights defined according to the learning function. They read as follows:
• Deviation number
w (x) = ϕ (−U (x)) ; (1.27)
• Expected feasibility
w (x) = ϕ (EF F (x)) ; (1.28)
UQL AB-V2.1-117 - 10 -
Chapter 2
Usage
In this section, a reference problem will be set up to showcase how each of the techniques in
Chapter 1 can be deployed in UQL AB.
The benchmark of choice to showcase the methods described in Section 1.3 is a basic problem
in structural reliability, namely the R-S case. It is one of the simplest possible abstract setting
consisting of only two input state variables: a resistance R and a stress S. The system fails
when the stress is higher than the resistance, leading to the following limit-state function:
Solving a structural reliability problem in UQL AB requires the definition of three basic com-
ponents:
• an INPUT object that describes the probabilistic model of the random vector X
11
UQL AB user manual
uqlab
The model in Eq. (2.1) can be added as a MODEL object directly with a M ATLAB vectorized
string as follows:
MOpts.mString = 'X(:,1) - X(:,2)'; % R−S
MOpts.isVectorized = 1;
myModel = uq_createModel(MOpts);
For more details on the available options to create a model object in UQL AB, please refer to
the UQL AB User Manual – the MODEL module.
Correspondingly, an INPUT object with independent Gaussian variables as specified in Table 1
can be created as:
IOpts.Marginals(1).Name = 'R'; % Resistance
IOpts.Marginals(1).Type = 'Gaussian';
IOpts.Marginals(1).Moments = [5, 0.8];
IOpts.Marginals(2).Name = 'S'; % Stress
IOpts.Marginals(2).Type = 'Gaussian';
IOpts.Marginals(2).Moments = [2, 0.6];
myInput = uq_createInput(IOpts);
For more details about the configuration options available for an INPUT object, please refer
to the UQL AB User Manual – the INPUT module.
Running an active learning reliability analysis on the specified UQL AB MODEL and INPUT ob-
jects does not require any specific configuration. The following minimum syntax is required:
ALROpts.Type = 'Reliability';
ALROpts.Method = 'ALR';
ALRAnalysis = uq_createAnalysis(ALROpts);
Once the analysis is performed, a report with the ALR results can be printed on screen by:
uq_print(ALRAnalysis)
UQL AB-V2.1-117 - 12 -
Active learning reliability
which produces the images in Figure 3. Note that the graphical representation of the experi-
mental design (right panel of Figure 3) is only produced for the 2-dimensional case.
Figure 3: Graphical visualization of the results of the basic ALR analysis Section 1.4.
Note: In the preceding example, no specifications are provided. If not further specified,
the ALR runs the following defaults:
The results from the active learning reliability analysis are stored in the ALRAnalysis.Results
structure:
ALRAnalysis.Results
ans =
Pf: 0.0014
CoV: 0.0189
Beta: 2.9888
ModelEvaluations: 11
PfCI: [0.0013 0.0015]
BetaCI: [2.9777 3.0003]
Metamodel: [1x1 uq_model]
UQL AB-V2.1-117 - 13 -
UQL AB user manual
The Results structure contains the following fields: Pf, the estimated Pbf ; Beta, the corre-
sponding generalized reliability index; CoV, the calculated coefficient of variation;
ModelEvaluations, the total number of limit-state function evaluations; PfCI, the confi-
dence intervals; BetaCI, the corresponding confidence intervals on βHL ; History, a struc-
ture containing the convergence of Pf , CoV , the stopping criteria values, upper and lower
bounds on the failure probability (when this applies). The content of the History structure
is used to produce the convergence plot shown in Figure 3. Note that the actual calculation
of each of these results is dependent on the reliability algorithm used. The user should refer
to the corresponding sections in the UQL AB User Manual – Structural Reliability for further
details.
Further, the field Metamodel contains the final metamodel used to estimate the failure prob-
ability. This metamodel can be reused within UQL AB for any other purpose.
In this section, we will discuss how the options for each module of the framework can be set
independently.
The surrogate model can be specified using the command .ALR.Metamodel. For instance,
the user may specify the following command to use Kriging:
ALROpts.ALR.Metamodel = 'Kriging';
Furthermore, the user can specify the options of the chosen surrogate by using the command
.ALR.(MetamodelName), e.g. for Kriging:
KrgOpts.EstimMethod = 'ML' ;
KrgOpts.Corr.Family = 'Gaussian' ;
KrgOpts.Corr.Nugget = 1e-12;
ALROpts.ALR.Kriging = KrgOpts ;
UQL AB-V2.1-117 - 14 -
Active learning reliability
Note: When no surrogate model is specified, PC-Kriging is used with the following de-
faults:
The remaining options are the defaults as defined in the UQL AB User Manual –
PC-Kriging.
All the options available for each surrogate model can be specified here without restrictions,
except for the experimental design, which is handled by the ALR algorithm.
To specify a reliability algorithm, the user must set the command .ALR.Reliability. For
instance, the following code selects subset simulation:
ALROpts.ALR.Reliability = 'Subset' ;
All the options relative to the reliability algorithm can be set as defined in the UQL AB User
Manual – Structural Reliability. For instance, the user can specify the conditional target
failure probability in subset as follows:
ALROpts.Subset.p0 = 0.1 ;
UQL AB-V2.1-117 - 15 -
UQL AB user manual
Note: When no surrogate model is specified, subset simulation is used with the follow-
ing options:
The remaining options are the defaults as defined in the UQL AB User Manual –
Structural Reliability.
The learning function may be specified using the command .ALR.LearningFunction. For
instance, the following line of code specifies the deviation number as learning function:
ALROpts.ALR.LearningFunction = 'U'
It is worth noting that some learning functions are available exclusively for a specific type of
surrogate model. Table 3 shows all the possible combinations.
Table 3: Available combinations of surrogate models and learning function in UQL AB.
Note: When not specified by the user, the default learning function depends on the
surrogate model and is chosen as follows:
The learning function is evaluated on the candidate sample for enrichment S, which corre-
sponds to the samples generated during the latest run of the reliability algorithm. However,
when this sample set is larger than a given value, only a subset is considered. This value is
by default set to 50, 000. It can be specified using the command LearningFunction, e.g.,
ALROpts.ALR.MaxCandidateSize = 1e5 ;
UQL AB-V2.1-117 - 16 -
Active learning reliability
The stopping criterion may be specified by the user using the command .ALR.Convergence.
The following line sets the β-bound criterion (See Eq. 1.16) as stopping criterion:
ALROpts.ALR.Convergence = 'StopBetaBound' ;
To set the corresponding threshold, say bound = 0.05, the following command may be used:
β
b
ALROpts.ALR.ConvThres = 0.05 ;
There are several overarching options that may be needed to configure an ALR analysis.
Some of the most common are summarized below:
• Specify the initial experimental design: Apart from specifying a number of points
and a sampling strategy, the initial experimental design can be specified by providing
X = x(1) , . . . , x(N0 ) in the matrix X and the corresponding limit-state function values
g(x(1) , . . . , x(N0 ) in G:
ALROpts.ALR.IExpDesign.X = X;
ALROpts.ALR.IExpDesign.G = G;
• Specify the maximum number of additional experimental design points: The max-
imum number of samples added to the initial experimental design can be specified to
e.g. 100 as:
ALROpts.ALR.MaxAddedED = 100;
Note that the total number of runs of the limit-state function then is at most the initial
ED size plus the above number.
In some contexts, it is desirable to evaluate the limit state function outside the main UQL AB
or even M ATLAB session. We identify this process as asynchronous learning, because the
learning algorithm and the limit state function evaluations are performed separately, possibly
at different locations and times.
The ALR method supports an asynchronous learning feature, which makes it possible to per-
form active-learning-based reliability analysis also without defining a computational model
within UQL AB. To enable this feature, the following option is needed:
UQL AB-V2.1-117 - 17 -
UQL AB user manual
ALROpts.Async.Enable = true ;
When this option is enabled, instead of evaluating the limit state function, UQL AB will inter-
rupt the execution of the analysis and return the next sample that the user needs to evaluate
to continue the algorithm. This sample is provided in the field .Results.NextSample. The
user can then evaluate this sample outside of UQL AB or M ATLAB, and provide the model
evaluations Ynext back to UQL AB with the uq_resumeAnalysis command:
myALRAnalysis = uq_resumeAnalysis(Ynext)
Note: Beside the next sample that is returned, UQL AB also saves in the field
.Results.Snapshot, a .mat file containing a snapshot of the analysis before
it was interrupted. This can be used to restart to the analysis if the UQL AB ses-
sion / M ATLAB workspace was cleared or if the M ATLAB session was closed. This
can also be used to further investigate the current state of the analysis, e.g. by
graphically displaying the evolution of the failure probability estimates.
While it is normally good practice to define the limit-state function directly as a UQL AB
MODEL object as in Section 2.2, in some cases it can be useful to be able to create one from
small modifications of existing MODEL objects. A typical scenario where this is apparent is
when the same objective function needs to be tested against a set of different failure thresh-
olds, e.g. for a parametric study. In this case, the limit-state specifications can be modified.
As an example, when g(x) ≤ T = 5 defines the failure criterion, one can use the following
syntax:
ALROpts.LimitState.Threshold = 5;
ALROpts.LimitState.CompOp = '<=';
UQL AB offers several possibilities to create simple (or arbitrarily complex) objective functions
from existing MODEL objects (see also UQL AB User Manual – Structural Reliability).
For an overview of the advanced options for the limit-state function, refer to Table 5, page
25.
In case the limit-state function g(x) results in a vector rather than a scalar value, the struc-
tural reliability module estimates the failure probability for each component independently.
UQL AB-V2.1-117 - 18 -
Active learning reliability
However, the implemented methods make use of evaluations of the limit-state function if
available, as follows:
• at the surrogate level: The initial experimental design for the surrogate model of
output component i consists of the final experimental design of component i − 1.
– Monte Carlo simulation: The enrichment of the sample size is increased until the
convergence criteria are fulfilled for all components.
– Subset Simulation: The first batch of samples (MCS) is reused for every output
component of the limit-state.
Furthermore, when the standard deviation of a parameter equals zero, UQL AB treats it as a
Constant. For example, the following uniformly distributed variable whose upper and lower
bounds are identical is automatically set to a constant with value 1:
IOpts.Marginals.Type = 'Uniform' ;
IOpts.Marginals.Parameters = [1 1];
UQL AB-V2.1-117 - 19 -
Chapter 3
Reference List
Structures play an important role throughout the UQL AB syntax. They offer a natural way
to semantically group configuration options and output quantities. Due to the complexity of
the algorithms implemented, it is not uncommon to employ nested structures to fine-tune
the inputs and outputs. Throughout this reference guide, a table-based description of the
configuration structures is adopted.
The simplest case is given when a field of the structure is a simple value or array of values:
Table X: Input
.Name String A description of the field is put here
The columns, from left to right, correspond to the name, the data type and a brief description
of each field. At the beginning of each row a symbol is given to inform as to whether the
corresponding field is mandatory, optional, mutually exclusive, etc. The comprehensive list
of symbols is given in the following table:
Mandatory
Optional
⊕ Mandatory, mutually exclusive (only one of
the fields can be set)
Optional, mutually exclusive (one of them
can be set, if at least one of the group is set,
otherwise none is necessary)
When one of the fields of a structure is a nested structure, a link to a table that describes the
available options is provided, as in the case of the Options field in the following example:
21
UQL AB user manual
Table X: Input
.Name String Description
.Options Table Y Description of the Options
structure
Table Y: Input.Options
.Field1 String Description of Field1
.Field2 Double Description of Field2
In some cases, an option value gives the possibility to define further options related to that
value. The general syntax would be:
Input.Option1 = 'VALUE1' ;
Input.VALUE1.Val1Opt1 = ...;
Input.VALUE1.Val1Opt2 = ...;
Table X: Input
.Option1 String Short description
'VALUE1' Description of 'VALUE1'
'VALUE2' Description of 'VALUE2'
.VALUE1 Table Y Options for 'VALUE1'
.VALUE2 Table Z Options for 'VALUE2'
Table Y: Input.VALUE1
.Val1Opt1 String Description
.Val1Opt2 Double Description
Table Z: Input.VALUE2
.Val2Opt1 String Description
.Val2Opt2 Double Description
Note: In the sequel, double and doubles mean a real number represented in double
precision and a set of such real numbers, respectively.
UQL AB-V2.1-117 - 22 -
Active learning reliability
myAnalysis = uq_createAnalysis(ALROpts)
Input
All the parameters required to determine the analysis are to be given as fields of the structure
ALROpts. Each method has its own options, that will be reviewed in different tables. The
options described in Table 4 are common to all methods.
Note: This manual focuses on active learning reliability methods but is generally part
of the UQL AB reliability manual. All options to any reliability method can be
defined in the fields of the structure ALROpts. However in this manual, only the
options directly related to active learning will be described. For the complete
set of options of the methods available in the UQL AB reliability module, the
user is referred to the corresponding manual (UQL AB User Manual – Structural
Reliability, Section 3).
Table 4: ALROpts
.Type 'uq_reliability' Identifier of the module. The options
corresponding to other types are in
the corresponding guides.
.Method String Type of structural reliability method.
The available options are listed
below:
'ALR' Active learning reliability.
UQL AB-V2.1-117 - 23 -
UQL AB user manual
UQL AB-V2.1-117 - 24 -
Active learning reliability
In order to perform a structural reliability analysis, the limit-state function g(x) is compared
to a threshold value T (by default T = 0). In analogy with Eq. (1.1), failure is defined as
g(x) ≤ T . Alternatively, failure can be specified as g(x) ≥ T by adjustment of the field
ALROpts.LimitState.CompOp to '>='. The relevant options are summarized in Table 5:
Table 5: ALROpts.LimitState
.Threshold Double Threshold T , compared to the
default: 0 limit-state function g(x).
The active learning scheme is built by choosing different methods within various modules of
UQL AB, as well as some overarching options such as the initial experimental design specifi-
cation. In Table 6, the available options are shown:
Table 6: ALROpts.ALR
.Metamodel String Surrogate model type to use in the
default: 'PCK' active learning scheme (as described
in Section 1.4.2).
'PCK' Polynomial Chaos - Kriging.
'Kriging' Kriging.
'PCE' Polynomial chaos expansions.
'SVR' Support vector machines for
regression.
'LRA' Low rank approximation.
.Reliability String Reliability algorithm used in the
default: 'Subset' active learning scheme (as described
in Section 1.4.3).
'MCS' Monte Carlo simulation.
'Subset' Subset simulation.
'IS' Importance sampling.
UQL AB-V2.1-117 - 25 -
UQL AB user manual
UQL AB-V2.1-117 - 26 -
Active learning reliability
The available methods to perform structural reliability analysis within an active learning
scheme are Monte Carlo simulation, importance sampling and subset simulation. They all
share the simulation options which are shown in Table 7:
UQL AB-V2.1-117 - 27 -
UQL AB user manual
Table 7: ALROpts.Simulation
.Alpha Double Confidence level α. For the Monte
default: 0.05 Carlo estimators, a confidence
interval is constructed with
confidence level 1 − α.
The options specifically set for the importance sampling are presented in Table 8. Note that
the options of .Simulation and .FORM (not shown in this manual) are also processed in the
case of importance sampling due to the nature of the MCS, FORM and IS.
Table 8: ALROpts.IS
.Instrumental 1 × Nout INPUT object or Instrumental distribution defined as
Struct either a structure of input marginals
and copula or an INPUT object (refer
to UQL AB User Manual – the INPUT
module for details).
UQL AB-V2.1-117 - 28 -
Active learning reliability
The options specifically set for subset simulation are presented in Table 9. Note that the
options of .Simulation are also processed in the case of subset simulation due to the similar
nature of Monte Carlo simulation and subset simulation.
Table 9: ALROpts.Subset
.p0 Double Target conditional failure probability
default: 0.15 of auxiliary limit-states
(0 <p0≤ 0.5).
The settings of the Markov Chain Monte Carlo simulation in subset simulation are summa-
rized in Table 10. Note that the default values are taken from Au and Beck (2001).
The initial experimental design of surrogate model can either be given by a number of sam-
ples and a sampling method or by a matrix containing the set of input samples and the
corresponding values of the limit-state function.
UQL AB-V2.1-117 - 29 -
UQL AB user manual
Asynchronous learning can be enabled when a computational model is not directly associated
to the analysis. In this case, the analysis is interrupted and the next sample to add to the
experimental design is returned.
UQL AB-V2.1-117 - 30 -
Active learning reliability
myAnalysis = uq_createAnalysis(ALROpts)
Output
The history of the active learning process is saved in the .History field. Its contents is
described in Table 14.
UQL AB-V2.1-117 - 31 -
UQL AB user manual
UQL AB offers two commands to conveniently print reports containing contextually relevant
information for a given result object:
uq_print(myAnalysis);
uq_print(myAnalysis, outidx);
Description
UQL AB-V2.1-117 - 32 -
Active learning reliability
Examples:
uq_print(myAnalysis, [1 3]) prints the reliability analysis results for output variables 1
and 3.
Description
Examples:
uq_display(myAnalysis, [1 3]) will display the reliability analysis results for output
variables 1 and 3.
UQL AB-V2.1-117 - 33 -
References
Au, S. K. and Beck, J. L. (2001). Estimation of small failure probabilities in high dimensions
by subset simulation. Probabilistic Engineering Mechanics, 16(4):263–277. 29
Basudhar, A. and Missoum, S. (2008). An improved adaptive sampling scheme for the con-
struction of explicit boundaries. Struct. Multidisc. Optim., 42(4):517–529. 8
Bichon, B. J., Eldred, M. S., Swiler, L., Mahadevan, S., and McFarland, J. (2008). Effi-
cient global reliability analysis for nonlinear implicit performance functions. AIAA Journal,
46(10):2459–2468. 7
Ditlevsen, O. and Madsen, H. (1996). Structural reliability methods. J. Wiley and Sons,
Chichester. 3
Echard, B., Gayton, N., and Lemaire, M. (2011). AK-MCS: an active learning reliability
method combining Kriging and Monte Carlo simulation. Struct. Saf., 33(2):145–154. 7
Marelli, S. and Sudret, B. (2018). An active-learning algorithm that combines sparse polyno-
mial chaos expansions and bootstrap for structural reliability analysis. Struct. Saf., 75:67–
74. 7
Melchers, R.-E. (1999). Structural reliability analysis and prediction. John Wiley & Sons. 3
Moustapha, M., Marelli, S., and Sudret, B. (2021). A generalized framework for active learn-
ing reliability: survey and benchmark. Reliability Engineering & System Safety. (submitted).
4, 13
Zaki, M. J. and Meira, W. J. (2014). Data Mining and Analysis: fundamental Concepts and
Algorithms. Cambridge University Press. 10
35