Usage
AKMCS(dimension,
limit_state_function,
N = 500000,
N1 = 10*dimension,
Nmax = 200,
learn_db = NULL,
lsf_value = NULL,
failure = 0.0,
precision = 0.05,
meta_model = NULL,
kernel = "matern5_2",
learn_each_train = FALSE,
crit_min = 2,
limit_fun_MH = NULL,
sampling_strategy = "MH",
first_DOE = "Gaussian",
seeds = NULL,
seeds_eval = NULL,
burnin = 30,
thinning = 4,
plot = FALSE,
limited_plot = FALSE,
add = FALSE,
output_dir = NULL,
z_MH = NULL,
z_lsf = NULL,
verbose = 0)Arguments
dimension
an integer giving the dimension of the input space.
limit_state_function
the failure function.
N
an integer defining the Monte-Carlo population size for probability estimation.
N1
an integer defining the size of the first Design Of Experiment got by clustering of the N standard gaussian samples.
Nmax
an integer defining the maximum number of calls to the limit state function during refinement steps. This means total number of call will be N1 + Nmax.
learn_db
optional. A matrix of already known points, with dim : dimension x number_of_vector.
lsf_value
values of the limit_state_function on the vectors given in learn_db.
failure
the value defining the failure domain F = { x | limit_state_function(x) < failure }.
precision
the maximum value of the coefficient of variation for proba. If the first run with N gives a too large cov, then approximate necessary N is derived from cov and Monte-Carlo estimate is run a
meta_model
optional. If a kriging based metamodel has already been fitted to the data (from DiceKriging package) it can be given as an input to keep the same parameters. kernel
a specified kernel to be used for the metamodel. See DiceKriging for available options. learn_each_train
specify if hyperparameters of the model should be evaluated each time points are added to the learning database ("TRUE") or only the first time ("FALSE").
crit_min
the minimum value of the criterion to be used for refinement step.
limit_fun_MH
optional. If the working space is to be reduced to some subset defining by a function, eg. in case of use in a Subset Simulation algorithm. As for the limit_state_function, failure domain is defined by points whom values of limit_fun_MH
sampling_strategy
either "AR" or "MH", to specify which sampling strategy is to be used when generating Monte-Carlo population in a case of subset simulation : "AR" stands for accept-reject while "MH" stands for Metropolis-Hastings.
first_DOE
Either "Gaussian" or "Uniform", to specify the population on which clustering if done
seeds
optional. If sampling_strategy=="MH", seeds from which starting the Metrepolis-Hastings algorithm. This should be a matrix with nrow = dimension and ncol = number of vector.
seeds_eval
optional. The value of the limit_fun_MH on the seeds.
burnin
a burnin parameter for Metropolis-Hastings algorithm.
thinning
a thinning parameter for Metropolis-Hastings algorithm. thinning = 0 means no thinning.
plot
a boolean parameter specifying if function and samples should be plotted. The plot is refreshed at each iteration with the new data. Note that this option is only to be used when working on light limit state functions as it requires the c
limited_plot
only a final plot with limit_state_function, final DOE and metamodel. Should be used with plot==FALSE. As for plot it requires the calculus of the limit_state_function on a grid of size 161x161.
add
optional. "TRUE" if plots are to be added to the current active device.
output_dir
optional. If plots are to be saved in .jpeg in a given directory. This variable will be pasted with "_AKMCS.jpeg" to get the full output directory.
z_MH
optional. For plots, if metamodel has already been evaluated on the grid then z_MH (from outer function) can be provided to avoid extra computational time.
z_lsf
optional. For plots, if LSF has already been evaluated on the grid then z_lsf (from outer function) can be provided to avoid extra computational time.
verbose
Eiher 0 for an almost no output message, or 1 for medium size or 2 for full size