dynamic

This module implements algorithms for optimization and sampling for consensus based particles systems. All the dynamics inherit from the base class ParticleDynamic.

class polarcbo.dynamic.ParticleDynamic(x, V, beta=1.0)[source]

Bases: object

Particle dynamic class

This class implements the base particle dynamic class. It is used to update the particles in the consensus schemes.

Parameters:
  • x (array_like, shape (J, d)) – The initial positions of the particles. For a system of \(J\) particles, the i-th row of this array x[i,:] represents the position \(x_i\) of the i-th particle.

  • V (obejective) – The objective function \(V(x)\) of the system.

  • beta (float, optional) – The heat parameter \(\beta\) of the system. The default is 1.0.

Standard Consensus Based Schemes

The following classes implement standard consensus based schemes.

CBO

Consensus-based optimization (CBO) class

Polarized Consensus Based Schemes

The following classes implement polarized consensus based schemes as described in [1].

PolarCBO

Polarized CBO class

PolarCBS

Polarized CBS class

Cluster Consensus Based Schemes

These classes implement cluster consensus based schemes as described in [1].

CCBO

Cluster CBO class

CCBS

Cluster CBO class

Not maintained

The following classes implement dynmaics that are currently not maintained.

EMCBO

EMCBO class

KMeansCBO

KMeansCBO class

References