SolverNleRecipesNumeric Class Reference

#include <SolverNleRecipes.h>

Inheritance diagram for SolverNleRecipesNumeric:

Public Member Functions

 SolverNleRecipesNumeric (int n, ObjectiveNleInterface &of)
 
 ~SolverNleRecipesNumeric (void)
 
void resize (int n) override
 sets the number of unknowns More...
 
- Public Member Functions inherited from SolverNleRecipes
 SolverNleRecipes (int, ObjectiveNleInterface &)
 
void resize (int n) override
 sets the number of unknowns More...
 
double norm (const double *x) override
 return energy-norm More...
 
int solve (void) override
 
std::string message (int code) override
 
void setTolerances (double alf, double tolx, double tolf, double tolmin) override
 
- Public Member Functions inherited from SolverNleInterface
 SolverNleInterface (ObjectiveNleInterface &of)
 
int size (void) const
 
virtual void resize (int n)
 sets the number of unknowns More...
 
void print_table (double *xmin, double *xmax, int nsteps)
 print dependence on all unknowns More...
 
void printResults (void)
 print vector of results More...
 
void printMetrics (void)
 print metric counters More...
 
virtual void setTolerances (double, double, double, double)=0
 virtual function, has different meaning for the different solvers derived from SolverNleInterface More...
 
void setMaximumIterations (int m)
 sets the maximum number of iterations More...
 
void setMaximumStepSize (double stpmx)
 
void bmpout (char *file_out_name) const
 
double residual (int i)
 returns current value of the ith component of the residual vector More...
 
virtual double norm (const double *x)=0
 return root mean square (RMS) norm More...
 
virtual double calculateF (void)=0
 calculates F; returns the norm of the residuals More...
 
virtual double calculateFJ (void)=0
 calculates F and J; returns the norm of the residuals More...
 
virtual int solve (void)=0
 
virtual std::string message (int code)=0
 convert return code returned by solve method to human-readable message More...
 
virtual void verifySolution (void)=0
 evaluate equation set at the current set up estimates for the unknowns; useful to test for convergence after sequential solution More...
 
bool nonConverged (void)
 
- Public Member Functions inherited from Diagnostic
 Diagnostic (void)
 
void setVerbosity (int verbosity)
 sets the verbosity level for this instance More...
 
int verbosity (void) const
 
- Public Member Functions inherited from Numeric
 Numeric (ObjectiveNleInterface &of)
 
 ~Numeric (void)
 
double calculateF (void) override
 calculates F; returns the norm of the residuals More...
 
double calculateFJ (void) override
 calculates F and J; returns the norm of the residuals More...
 
void verifySolution (void) override
 evaluate equation set at the current set up estimates for the unknowns; useful to test for convergence after sequential solution More...
 
void resize (int n) override
 sets the number of unknowns More...
 

Additional Inherited Members

- Public Attributes inherited from SolverNleInterface
int NITER
 
double * F_
 current values of residuals More...
 
double * x_
 current values of unknowns More...
 
Jacobian J
 
- Protected Member Functions inherited from SolverNleRecipes
 ~SolverNleRecipes (void)
 
int lnsrch_ (double fold, double &f, double stpmax)
 
- Protected Member Functions inherited from SolverNleInterface
 ~SolverNleInterface (void)
 
void clearCounters (void)
 
- Protected Member Functions inherited from Diagnostic
virtual ~Diagnostic ()=default
 
- Protected Attributes inherited from SolverNleRecipes
int * indx_
 
double * g_
 
double * p_
 
double * xold_
 
std::vector< double > d_
 buffer to normalize Jacobian columns More...
 
- Protected Attributes inherited from SolverNleInterface
ObjectiveNleInterfaceofp_
 
int MAXITS
 maximum number of Newton iterations More...
 
int verbosityLocal
 
int nSyst_
 Number of system evaluations. More...
 
int nNewt_
 Number of Newton method applications. More...
 
int nQuas_
 Number of Quasi Newton method applications. More...
 
int nAuto_
 Number of analytical Jacobian evaluations. More...
 
int nNume_
 Number of numerical Jacobian evaluations. More...
 
double STPMX
 scaled maximum step length allowed in line searches More...
 
- Protected Attributes inherited from Diagnostic
int verbosityInstance
 

Detailed Description

Resolution of systems of non-linear equations computes derivatives numerically

#include <libpf/core/SolverNleRecipes.h>

Remarks
Warning
Thread safe:
Extendable:
Platform dependencies:

Constructor & Destructor Documentation

◆ SolverNleRecipesNumeric()

SolverNleRecipesNumeric::SolverNleRecipesNumeric ( int  n,
ObjectiveNleInterface of 
)

◆ ~SolverNleRecipesNumeric()

SolverNleRecipesNumeric::~SolverNleRecipesNumeric ( void  )

Member Function Documentation

◆ resize()

void SolverNleRecipesNumeric::resize ( int  n)
overridevirtual

sets the number of unknowns

Reimplemented from Numeric.


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