#include <NOX_MeritFunction_Generic.H>
Inheritance diagram for NOX::MeritFunction::Generic:
Public Member Functions | |
| Generic () | |
| Default Constructor. | |
| virtual | ~Generic () |
| Destructor. | |
| virtual double | computef (const NOX::Abstract::Group &grp) const =0 |
Computes the merit function, . | |
| virtual void | computeGradient (const NOX::Abstract::Group &group, NOX::Abstract::Vector &result) const =0 |
Computes the gradient of the merit function, , and returns the result in the result vector. | |
| virtual double | computeSlope (const NOX::Abstract::Vector &dir, const NOX::Abstract::Group &grp) const =0 |
Computes the inner product of the given direction and the gradient associated with the merit function. Returns the steepest descent direction in the result vector. | |
| virtual double | computeQuadraticModel (const NOX::Abstract::Vector &dir, const NOX::Abstract::Group &grp) const =0 |
Compute the quadratic model, , for the given merit function. | |
| virtual void | computeQuadraticMinimizer (const NOX::Abstract::Group &grp, NOX::Abstract::Vector &result) const =0 |
| Computes the vector in the steepest descent direction that minimizes the quadratic model. | |
| virtual const string & | name () const =0 |
| Returns the name of the merit function. | |
This class allows the user to define their own merit function for use in a line search. Each line search type will specify in it's input parameter list if it supports this functionality.
To create and use a user defined merit function:
Foo might be defined as shown below.
class Foo : public NOX::Parameter::MeritFunction { // Insert class definition here }
Foo foo(); params.sublist("Solver Options").set("User Defined Merit Function", foo);
|
||||||||||||
|
Computes the vector in the steepest descent direction that minimizes the quadratic model. The quadratic model is defined as:
where
The
Implemented in NOX::MeritFunction::SumOfSquares. |
|
||||||||||||
|
Compute the quadratic model,
Computes and returns
Here Implemented in NOX::MeritFunction::SumOfSquares. |
|
||||||||||||
|
Computes the inner product of the given direction and the gradient associated with the merit function. Returns the steepest descent direction in the
Calculates and returns
Here Implemented in NOX::MeritFunction::SumOfSquares. |
1.3.9.1