Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
MathOpt::GlobalConfig Struct Reference

Configuration for global optimization. More...

#include <MathOpt_GlobOpt.hxx>

Inheritance diagram for MathOpt::GlobalConfig:
Inheritance graph
[legend]

Public Member Functions

 GlobalConfig ()
 Default constructor.
 
 GlobalConfig (GlobalStrategy theStrategy, int theMaxIter=200)
 Constructor with strategy.
 
- Public Member Functions inherited from MathUtils::NDimConfig
 NDimConfig ()=default
 Default constructor.
 
 NDimConfig (double theTolerance, int theMaxIter=100, bool theUseBounds=false)
 Constructor with tolerance.
 
- Public Member Functions inherited from MathUtils::Config
 Config ()=default
 Default constructor with standard tolerances.
 
 Config (double theTolerance, int theMaxIter=100)
 Constructor with custom tolerance (sets all tolerances to same value).
 

Data Fields

GlobalStrategy Strategy = GlobalStrategy::PSOHybrid
 Algorithm to use.
 
int NbPopulation = 40
 Population/swarm size.
 
int NbStarts = 10
 Number of random starts (for MultiStart)
 
double MutationScale = 0.8
 Mutation scale (for DE)
 
double CrossoverProb = 0.9
 Crossover probability (for DE)
 
unsigned int Seed = 6
 Random seed.
 
int PolishBudgetPerDim = 50
 Max polishing evals per dimension (0 = no polishing)
 
- Data Fields inherited from MathUtils::NDimConfig
bool UseBounds = false
 Whether to enforce bounds during optimization.
 
- Data Fields inherited from MathUtils::Config
int MaxIterations = 100
 Maximum number of iterations allowed.
 
double Tolerance = 1.0e-10
 General convergence tolerance.
 
double XTolerance = 1.0e-10
 Tolerance for solution change |x_{n+1} - x_n|.
 
double FTolerance = 1.0e-10
 Tolerance for function value |f(x)|.
 
double StepMin = std::numeric_limits<double>::epsilon()
 Minimum step size before declaring convergence or failure.
 

Detailed Description

Configuration for global optimization.

Constructor & Destructor Documentation

◆ GlobalConfig() [1/2]

MathOpt::GlobalConfig::GlobalConfig ( )
inline

Default constructor.

◆ GlobalConfig() [2/2]

MathOpt::GlobalConfig::GlobalConfig ( GlobalStrategy theStrategy,
int theMaxIter = 200 )
inline

Constructor with strategy.

Field Documentation

◆ CrossoverProb

double MathOpt::GlobalConfig::CrossoverProb = 0.9

Crossover probability (for DE)

◆ MutationScale

double MathOpt::GlobalConfig::MutationScale = 0.8

Mutation scale (for DE)

◆ NbPopulation

int MathOpt::GlobalConfig::NbPopulation = 40

Population/swarm size.

◆ NbStarts

int MathOpt::GlobalConfig::NbStarts = 10

Number of random starts (for MultiStart)

◆ PolishBudgetPerDim

int MathOpt::GlobalConfig::PolishBudgetPerDim = 50

Max polishing evals per dimension (0 = no polishing)

◆ Seed

unsigned int MathOpt::GlobalConfig::Seed = 6

Random seed.

◆ Strategy

GlobalStrategy MathOpt::GlobalConfig::Strategy = GlobalStrategy::PSOHybrid

Algorithm to use.


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