42 #ifndef NLP_FIRST_ORDER_INFO_H
43 #define NLP_FIRST_ORDER_INFO_H
48 namespace NLPInterfacePack {
176 virtual MatrixOp*
get_Gc();
184 virtual MatrixOp&
Gc();
192 virtual const MatrixOp&
Gc()
const;
242 virtual void calc_Gc(
const Vector& x,
bool newx =
true)
const;
263 :
Gc(NULL),
Gf(NULL),
f(NULL),
c(NULL)
267 :
Gc(Gc_in),
Gf(obj_grad.
Gf),
f(obj_grad.
f),
c(obj_grad.
c)
315 #ifdef DOXYGEN_COMPILE
335 #endif // NLP_FIRST_ORDER_INFO_H
NLP interface class that adds gradient information for the objective function {abstract}.
AbstractLinAlgPack::size_type size_type
VectorMutable * Gf
Pointer to gradient of objective function Gf (may be NULL if not set)
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.
Struct for gradient (objective), objective and constriants (pointers)
NLPFirstOrder()
Initialize to no reference set to calculation quanities.
MatrixOp * Gc
Pointer to Jacobian of equality constraints Gc (may be NULL if not set)
void initialize(bool test_setup)
Initialize the NLP for its first use.
Interface for the creation and maintainance of a basis matrix for a decomposition of linearlized cons...
Abstract interface for immutable, finite dimensional, coordinate vectors {abstract}.
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).
const ObjGradInfo obj_grad_info() const
Return objective gradient and zero order information.
const FirstOrderInfo first_order_info() const
Return objective gradient and zero order information.
virtual size_type num_Gc_evals() const
Gradient of constraints matrix Gc evaluations count.
Teuchos::AbstractFactory< AbstractLinAlgPack::MatrixOp > * factory_Gc
FirstOrderInfo(MatrixOp *Gc_in, const ObjGradInfo &obj_grad)
void unset_quantities()
Call to unset all storage quantities (both in this class and all subclasses).
Struct for zero and first order quantities (pointers)
AbstractLinAlgPack::VectorMutable VectorMutable
virtual const mat_fcty_ptr_t factory_Gc() const =0
Return a matrix factory object for creating Gc.
NLP first order information interface class {abstract}.
Teuchos::RCP< BasisSystem > basis_sys_ptr_t
AbstractLinAlgPack::BasisSystem * basis_sys
VectorMutable * c
Pointer to equality constraints residule c (may be NULL if not set)
Teuchos::RCP< const Teuchos::AbstractFactory< MatrixOp > > mat_fcty_ptr_t
virtual MatrixOp & Gc()
Returns non-const *this->get_Gc().
AbstractLinAlgPack::value_type value_type
virtual MatrixOp * get_Gc()
Return pointer passed to this->set_Gc().
value_type * f
Pointer to objective function f (may be NULL if not set)
virtual const basis_sys_ptr_t basis_sys() const
Return a BasisSystem object compatible with Gc and Gh.
virtual void set_Gc(MatrixOp *Gc)
Set a pointer to a matrix object to be updated when this->calc_Gc() is called.