ConstantInertia

class ConstantInertia(initialInertia: Double = ParticleSwarmSolver.defaultInitialInertia) : InertiaWeightSchedule(source)

A constant inertia-weight schedule: the inertia weight is the same at every iteration.

Parameters

initialInertia

the (constant) inertia weight. Defaults to ParticleSwarmSolver.defaultInitialInertia.

Constructors

Link copied to clipboard
constructor(initialInertia: Double = ParticleSwarmSolver.defaultInitialInertia)

Functions

Link copied to clipboard
open override fun nextInertia(iteration: Int): Double

Computes the inertia weight for the given iteration.

Link copied to clipboard
open override fun toString(): String