ParticleSwarmOptimizationParameters¶
- class ParticleSwarmOptimizationParameters(inertia_weight=None, local_acceleration=None, global_acceleration=None, omega=None)¶
ParticleSwarmOptimizationParameters constructor.
- Parameters:
inertia_weight (Non negative float) – The inertia weights parameter. This parameter serves as a scaling factor going from the previous iteration velocities to the next. Default: 0.8
local_acceleration (Non negative float) – The local acceleration parameter. This parameter weights the probability for the particle to move away from the local best fit. Default: 0.2
global_acceleration (Non negative float) – The global acceleration parameter. This parameter weights the probability for the particle to move away from the global best fit. Default: 0.8
omega (Non negative float) – The weight to determine how much the fits should be shifted based on the velocities and the previous fit. Default: 0.5
- globalAcceleration()¶
- Returns:
The global acceleration parameter.
- Return type:
float
- inertiaWeight()¶
- Returns:
The inertia weight.
- Return type:
float
- localAcceleration()¶
- Returns:
The local acceleration parameter.
- Return type:
float
- nlinfo()¶
- Returns:
The nlinfo.
- Return type:
dict
- omega()¶
- Returns:
The fit shift parameter.
- Return type:
float
- uniqueString()¶
Return a unique string representing the state of the object.