Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
MathOpt::PSOSeedParticle Struct Reference

Seed particle for PSO initialization. More...

#include <MathOpt_PSO.hxx>

Public Member Functions

 PSOSeedParticle (const math_Vector &thePos)
 PSOSeedParticle (const math_Vector &thePos, const double theValue)

Data Fields

math_Vector Position
 Initial position (will be clamped to bounds)
std::optional< double > Value
 Known function value (nullopt = will be evaluated)
std::optional< math_Vector > Velocity
 Initial velocity (nullopt = generate bounded random)

Detailed Description

Seed particle for PSO initialization.

Constructor & Destructor Documentation

◆ PSOSeedParticle() [1/2]

MathOpt::PSOSeedParticle::PSOSeedParticle ( const math_Vector & thePos)
inline

◆ PSOSeedParticle() [2/2]

MathOpt::PSOSeedParticle::PSOSeedParticle ( const math_Vector & thePos,
const double theValue )
inline

Field Documentation

◆ Position

math_Vector MathOpt::PSOSeedParticle::Position

Initial position (will be clamped to bounds)

◆ Value

std::optional<double> MathOpt::PSOSeedParticle::Value

Known function value (nullopt = will be evaluated)

◆ Velocity

std::optional<math_Vector> MathOpt::PSOSeedParticle::Velocity

Initial velocity (nullopt = generate bounded random)


The documentation for this struct was generated from the following file: