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

Configuration for N-dimensional optimization with optional bounds. Bounds are passed separately as math_Vector for flexibility. More...

#include <MathUtils_Config.hxx>

Inheritance diagram for MathUtils::NDimConfig:
Inheritance graph
[legend]

Public Member Functions

 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

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 N-dimensional optimization with optional bounds. Bounds are passed separately as math_Vector for flexibility.

Constructor & Destructor Documentation

◆ NDimConfig() [1/2]

MathUtils::NDimConfig::NDimConfig ( )
default

Default constructor.

◆ NDimConfig() [2/2]

MathUtils::NDimConfig::NDimConfig ( double theTolerance,
int theMaxIter = 100,
bool theUseBounds = false )
inlineexplicit

Constructor with tolerance.

Parameters
theToleranceconvergence tolerance
theMaxItermaximum iterations
theUseBoundswhether to use bounds

Field Documentation

◆ UseBounds

bool MathUtils::NDimConfig::UseBounds = false

Whether to enforce bounds during optimization.


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