3.4.0
tigl::CTiglOptimizer Class Reference

#include <CTiglOptimizer.h>

Static Public Member Functions

static TIGL_EXPORT TiglReturnCode optNewton2d (const class ITiglObjectiveFunction &f, double *x, double gradTol=1e-5, double ofTol=1e-5)
 Optimizes the objective function f. More...
 

Static Private Member Functions

static double armijoBacktrack2d (const class ITiglObjectiveFunction &f, const double *x, const double *grad, double *dir, double alpha, double &ofval)
 

Member Function Documentation

◆ armijoBacktrack2d()

static double tigl::CTiglOptimizer::armijoBacktrack2d ( const class ITiglObjectiveFunction f,
const double *  x,
const double *  grad,
double *  dir,
double  alpha,
double &  ofval 
)
staticprivate

◆ optNewton2d()

static TIGL_EXPORT TiglReturnCode tigl::CTiglOptimizer::optNewton2d ( const class ITiglObjectiveFunction f,
double *  x,
double  gradTol = 1e-5,
double  ofTol = 1e-5 
)
static

Optimizes the objective function f.

Parameters
f(in) Objective function
x(in/out) The function is initialized with the initial guess x and returns the solution x.
gradTolNorm of the gradient df/dx, when to stop optimizing.
ofTolRelative change of the objective function, when to stop optimizing.

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