getPSOInfo {globpso}R Documentation

Generation function of PSO parameter settings

Description

Create a list with PSO parameters for Minimization.

Usage

getPSOInfo(
  nSwarm = 32,
  maxIter = 100,
  psoType = "basic",
  freeRun = 1,
  tol = 1e-06,
  c1 = 2.05,
  c2 = 2.05,
  w0 = 1.2,
  w1 = 0.2,
  w_var = 0.8,
  vk = 4,
  Q_cen_type = 1,
  Q_a0 = 1.7,
  Q_a1 = 0.7,
  Q_a_var = 0.8,
  LcRi_L = 0.01,
  CSO_phi = 0.1,
  TE_b = 2
)

Arguments

nSwarm

A integer number of swarm size in PSO algorithm.

maxIter

A integer number of maximal PSO iterations.

psoType

string. The type of PSO. This package current supports the following types:

"basic"

Linearly Decreasing Weight PSO (Eberhart & Kennedy, 1995)

"quantum"

Quantum PSO (Sun et al., 2004)

"lcri"

LcRiPSO (Bonyadi & Michalewicz, 2014)

"comp"

Competitive Swarm Optimization (Cheng & Jin, 2014)

"dexp"

DExPSO (StehlĂ­k et al., 2024)

freeRun

A number between [0,1] that controls the percentage of PSO iterations which are free from examining the stopping criterion, |f'-f|<\varepsilon where f' and f are the objective function values in the previous and current iterations, respectively. The default is 1.0 implying the PSO will completely ignore the stopping criterion. Otherwise, the PSO checks the stopping criterion after free iterations.

tol

A small value for the tolerance, \varepsilon, in the stopping criterion. For freeRun smaller than 1.0, the default is 1e-6. Otherwise, this value would not affect the algorithm.

c1

The value of cognitive parameter in PSO updating procedure. The default is 2.05.

c2

The value of social parameter in PSO updating procedure. The default is 2.05.

w0

The value of starting inertia weight in PSO updating procedure. The default is 1.2.

w1

The value of ending inertia weight in PSO updating procedure. The default is 0.2.

w_var

A number between [0,1] that controls the percentage of iterations that PSO linearly decreases the inertia weight from w0 to w1. The default is 0.8.

vk

The value of velocity clamping parameter. The default is 4.

Q_cen_type

The type of the center position in QPSO updating procedure (0: local attractor, default; 1: mean best).

Q_a0

The value of starting contraction-expansion (CE) coefficient in QPSO updating procedure. The default is 1.7.

Q_a1

The value of ending contraction-expansion (CE) coefficient in QPSO updating procedure. The default is 0.7.

Q_a_var

A number between [0,1] that controls the percentage of iterations that QPSO linearly decreases the CE coefficient from Q_a0 to Q_a1. The default is 0.8.

LcRi_L

The value of random number generator based on normal density social parameter in LcRiPSO updating procedure. The default is 0.01. (for psoType = c("lcri") only)

CSO_phi

The value of social parameter in CSO updating procedure. The default is 0.1. (for psoType = c("comp", "cdexp") only)

TE_b

The value of random number generator based on double-exponential density. The default is 2.0. (for psoType = c("dexp", "qdexp", "cdexp") only).

Value

A list of PSO parameter settings.

Examples

PSO_INFO <- getPSOInfo(nSwarm = 32, maxIter = 100)

[Package globpso version 1.3.0 Index]