easyiec.strategies.InteractivePSO#

class easyiec.strategies.InteractivePSO(pop_size=9, protocol=None, n_select=1, w=0.7298, c1=1.49618, c2=1.49618, vmax=0.2, **kw)[source]#

Bases: Strategy

Interactive particle swarm optimization (IPSO; Madár, Abonyi and Szeifert, 2005).

The evaluator looks at the current positions of the particles and chooses the best one(s). The top choice becomes the global guide (gbest); every chosen particle stores its position as its personal best (pbest). The velocity update is the canonical one with the constriction-equivalent coefficients w=0.7298, c1=c2=1.49618 (Eberhart and Shi, 2000).

Parameters:
pop_sizeint

Swarm size.

w, c1, c2float

Inertia and acceleration coefficients.

vmaxfloat

Velocity clamp in the unit cube.

Examples using easyiec.strategies.InteractivePSO#

CMA-ES, interactive PSO and pairwise differential evolution

CMA-ES, interactive PSO and pairwise differential evolution

A factorial benchmark with simulated users

A factorial benchmark with simulated users