#include <NLPInterfacePack_NLPFirstOrder.hpp>
Inheritance diagram for NLPInterfacePack::NLPFirstOrder:
Constructors | |
| NLPFirstOrder () | |
| Initialize to no reference set to calculation quanities. | |
NLP initialization | |
| void | initialize (bool test_setup) |
| Initialize the NLP for its first use. | |
Matrix factory objects | |
| virtual const mat_fcty_ptr_t | factory_Gc () const =0 |
Return a matrix factory object for creating Gc. | |
BasisSystem | |
| virtual const basis_sys_ptr_t | basis_sys () const |
Return a BasisSystem object compatible with Gc and Gh. | |
<<std aggr>> members for the gradient of the objective function Gc(x) | |
| virtual void | set_Gc (MatrixOp *Gc) |
Set a pointer to a matrix object to be updated when this->calc_Gc() is called. | |
| virtual MatrixOp * | get_Gc () |
Return pointer passed to this->set_Gc(). | |
| virtual MatrixOp & | Gc () |
Returns non-const *this->get_Gc(). | |
| virtual const MatrixOp & | Gc () const |
Returns const *this->get_Gc(). | |
Unset calculation quantities | |
| void | unset_quantities () |
| Call to unset all storage quantities (both in this class and all subclasses). | |
Calculation Members | |
| virtual void | calc_Gc (const Vector &x, bool newx=true) const |
Update the matrix for Gc at the point x and put it in the stored reference. | |
Function evaluation counts | |
| virtual size_type | num_Gc_evals () const |
Gradient of constraints matrix Gc evaluations count. | |
Protected methods to be overridden by subclasses | |
| virtual void | imp_calc_Gc (const Vector &x, bool newx, const FirstOrderInfo &first_order_info) const =0 |
| Overridden to compute Gc(x) and perhaps Gf(x), f(x) and c(x). | |
Public Types | |
| typedef Teuchos::RefCountPtr< const Teuchos::AbstractFactory< MatrixOp > > | mat_fcty_ptr_t |
| | |
| typedef Teuchos::RefCountPtr< BasisSystem > | basis_sys_ptr_t |
| | |
Protected Member Functions | |
| const FirstOrderInfo | first_order_info () const |
| Return objective gradient and zero order information. | |
Overview:
This class adds Jacobian information for the constraints. This augments the information provided by the NLP and NLPObjGrad interfaces. This interface includes access to matrix space objects which must be used by the client to create the matrix objects that are used with this interface. This totally decouples the client from the implementation of these matrix objects.
Client Usage:
As with the NLP base interface, the initialize() method must be called before the NLP object can be used.
The matrix space object returned from factory_Gc()must be used to create the matrix objects for Gc used with this interface. Note that the matrix objects returned from this matrix space object can not be expected to be usable until they are passed to the calculation routines.
The method set_Gc() si used to set a pointer to matrix object to be updated when Gc is computed using calc_Gc().
The number of evaluations of Gc using calc_Gc() and calc_Gh() is returned by num_Gc_evals().
Subclass developer's notes:
In addition to the methods that must be overridden by the NLPObjGrad interface (see) the following methods must also be overridden: factory_Gc(), imp_calc_Gc().
In addition to the methods that should be overridden from NLPObjGrad by most subclasses (see), the following additional methods should be overridden: initialize().
The following methods should never have to be overridden by most subclasses except in some very specialized situations: set_Gc(), get_Gc(), Gc(), num_Gc_evals().
Definition at line 76 of file NLPInterfacePack_NLPFirstOrder.hpp.
|
|
Definition at line 81 of file NLPInterfacePack_NLPFirstOrder.hpp. |
|
|
Definition at line 83 of file NLPInterfacePack_NLPFirstOrder.hpp. |
|
|
Initialize to no reference set to calculation quanities.
Definition at line 41 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
|
Initialize the NLP for its first use.
This function implementation should be called by subclass implementations in order to reset counts for Postconditions:
Reimplemented from NLPInterfacePack::NLPObjGrad. Reimplemented in NLPInterfacePack::NLPSecondOrder, and NLPInterfacePack::NLPSerialPreprocessExplJac. Definition at line 45 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
|
Return a matrix factory object for creating
This method may return Implemented in NLPInterfacePack::NLPSerialPreprocessExplJac. |
|
|
Return a
Note that multiple calls to this method may return the same
The default implementation returns Reimplemented in NLPInterfacePack::NLPSerialPreprocessExplJac. |
|
|
Set a pointer to a matrix object to be updated when
Postconditions:
Reimplemented in NLPInterfacePack::NLPSerialPreprocessExplJac. Definition at line 60 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
|
Return pointer passed to Preconditions:
Definition at line 68 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
|
Returns non- Preconditions:
Definition at line 76 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
|
Returns Preconditions:
Definition at line 84 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
|
Call to unset all storage quantities (both in this class and all subclasses). Preconditions:
Postconditions:
This method must be called by all subclasses that override it. Reimplemented from NLPInterfacePack::NLPObjGrad. Reimplemented in NLPInterfacePack::NLPSecondOrder. Definition at line 92 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
||||||||||||
|
Update the matrix for
Postconditions:
The storage reference for Definition at line 100 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
|
Gradient of constraints matrix
This function can be called to find out how many evaluations Definition at line 110 of file NLPInterfacePack_NLPFirstOrder.cpp. |
|
|
Return objective gradient and zero order information.
Definition at line 315 of file NLPInterfacePack_NLPFirstOrder.hpp. |
|
||||||||||||||||
|
Overridden to compute Gc(x) and perhaps Gf(x), f(x) and c(x). Preconditions:
Postconditions:
Implemented in NLPInterfacePack::NLPSerialPreprocessExplJac. |
1.3.9.1