|
Optimist
0.0.0
A C++ library for optimization
|
Inertia weight functor, which returns a constant weight. More...
#include <ParticleSwarm.hh>
Public Member Functions | |
| ConstantWeight () | |
| ConstantWeight (const Scalar weight) | |
| Scalar | operator() (const Integer, const Integer) const |
Private Attributes | |
| Scalar | m_weight {1.0} |
| Scalar | Floating-point number type. |
|
inline |
Class constructor with default constant inertia weight equal to 1.0.
|
inline |
Class constructor that accepts the constant inertia weight.
| [in] | weight | Constant inertia weight. |
|
inline |
Get the inertia weight.
| [in] | iteration | Current iteration. |
| [in] | max_iterations | Maximum number of iterations. |
|
private |
Constant inertia weight.