PsoCtrl: R6 class that defines the PSO controller

Description Arguments Details Value Fields

Description

Constructor of the 'PsoCtrl' class

Getter of the cluster attribute

Transforms the best position found into a bn structure and returns it

Main function of the pso algorithm.

Initialize the particles for the algorithm to random positions and velocities.

Evaluate the particles and update the global best

Arguments

n_it

maximum number of iterations of the pso algorithm

in_cte

parameter that varies the effect of the inertia

gb_cte

parameter that varies the effect of the global best

lb_cte

parameter that varies the effect of the local best

r_probs

vector that defines the range of random variation of gb_cte and lb_cte

ordering

a vector with the names of the nodes in t_0

size

number of timeslices of the DBN

n_inds

number of particles that the algorithm will simultaneously process

v_probs

vector that defines the random velocity initialization probabilities

dt

the dataset used to evaluate the position

Details

The controller will encapsulate the particles and run the algorithm

Value

A new 'PsoCtrl' object

the cluster attribute

the size attribute

Fields

parts

list with all the particles in the algorithm

cl

cluster for the parallel computations

n_it

maximum number of iterations of the pso algorithm

in_cte

parameter that varies the effect of the inertia

gb_cte

parameter that varies the effect of the global best

lb_cte

parameter that varies the effect of the local best

b_ps

global best position found

b_scr

global best score obtained

r_probs

vector that defines the range of random variation of gb_cte and lb_cte


dkesada/PSOHO documentation built on Dec. 7, 2020, 11:35 p.m.