| find_optimal_alt | R Documentation |
Runs hybrid algorithm combining PSO and Nelder-Mead to find the optimal design of accelerated life test (ALT).
find_optimal_alt(
design_type,
distribution,
design_info,
pso_info,
coef = NULL,
coef_lower = NULL,
coef_upper = NULL,
init_values = NULL,
highest_level = TRUE,
n_threads = 1,
verbose = TRUE,
seed = 42
)
design_type |
Integer. 1: Locally optimal design, 2: Minimax design. |
distribution |
Integer. The assumed failure time distribution, 1: Weibull, 2: Log-normal, 3: Model robust (both distribution Weibull and Log-normal). |
design_info |
A list from 'set_design_info()' containing design specifications. |
pso_info |
A list from 'pso_setting()' defining PSO hyperparameters. |
coef |
Optional. Fixed model coefficients. Required if |
coef_lower |
Optional. Lower bounds for model parameters. Required if |
coef_upper |
Optional. Upper bounds for model parameters. Required if |
init_values |
Optional. A list of initial values from 'initialize_values()'. |
highest_level |
Logical. Whether the highest stress level of the generated design is the upper bound of stress range |
n_threads |
Integer. Number of threads for parallel processing. |
verbose |
Logical. If |
seed |
Integer. Seed for reproducibility |
The global best design found by the hybrid algorithm.
The parameters corresponding to the global best design.
The distribution corresponding to the global best design.
Maximum directional derivative within design space, evaluated using equivalence theorem.
The objective function value corresponding to the global best design.
A vector tracking the best objective function value of each iteration.
A matrix containing each particle's personal best design found during the optimization.
A vector containing the objective function values corresponding to each particle's personal best.
All particle positions of each iteration.
The parameters corresponding to the global best designs of each iteration.
The distribution corresponding to the global best designs of each iteration.
A matrix containing distribution and model parameters of global best particles of each iteration, duplicated models are removed.
The weight assigned to each model in the model set.
Generated designs and their corresponding directional derivative given the optimal design g_best. Each design is a combination of factors with value in [0, 1]. These designs are data for plotting equivalence theorem plot.
Chen P (2024). _globpso: Particle Swarm Optimization Algorithms and Differential Evolution for Minimization Problems_. R package version 1.2.1, <https://github.com/PingYangChen/globpso>.
Kennedy, J., & Eberhart, R. (1995). Particle swarm optimization. In Proceedings of the IEEE International Conference on Neural Networks (ICNN) (Vol. 4, pp. 1942–1948).
Lee, I. C., Chen, R. B., Wong, W. K., (in press). Optimal Robust Strategies for Accelerated Life Tests and Fatigue Testing of Polymer Composite Materials. Annals of Applied Statistics. <https://imstat.org/journals-and-publications/annals-of-applied-statistics/annals-of-applied-statistics-next-issues/>
Meeker, W. Q., & Escobar, L. A. (1998). Statistical methods for reliability data. New York: Wiley-Interscience.
Nelder, J. A. and Mead, R. (1965). A simplex algorithm for function minimization. Computer Journal, 7, 308–313. 10.1093/comjnl/7.4.308.
design_info <- set_design_info(k_levels=2, j_factor=1, n_unit=300,
censor_time=183, p=0.1, use_cond=0, sigma=0.6)
pso_info <- pso_setting(n_swarm=32, max_iter=128, early_stopping=10, tol=0.01)
set.seed(42)
res <- find_optimal_alt(design_type=1, distribution=1, design_info=design_info,
pso_info=pso_info, coef=c(0.001, 0.9), verbose = FALSE)
summary(res)
plot(res, x_l=0, x_h=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.