42 #include "NLPInterfacePack_NLPSecondOrder.hpp"
43 #include "Teuchos_Assert.hpp"
46 const char name_HL[] =
"HL";
49 namespace NLPInterfacePack {
72 return StandardCompositionRelationshipsPack::get_role_name(HL_,
false, name_HL);
77 return StandardCompositionRelationshipsPack::role_name(HL_,
false, name_HL);
82 return StandardCompositionRelationshipsPack::role_name(HL_,
false, name_HL);
100 StandardCompositionRelationshipsPack::assert_role_name_set(HL_,
"NLP::calc_HL()", name_HL);
106 return num_HL_evals_;
NLPSecondOrder()
Initialize to no reference set to calculation quanities.
void initialize(bool test_setup)
Initialize the NLP for its first use.
virtual MatrixSymOp & HL()
Returns non-const *this->get_HL().
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
void initialize(bool test_setup)
Initialize the NLP for its first use.
void unset_quantities()
Call to unset all storage quantities (both in this class and all subclasses).
virtual void set_HL(MatrixSymOp *HL)
Set a pointer to a matrix object to be updated when this->calc_HL() is called.
virtual size_type num_HL_evals() const
Number of Hessian evaluations.
virtual MatrixSymOp * get_HL()
Return pointer passed to this->set_HL().
virtual void imp_calc_HL(const Vector &x, const Vector *lambda, bool newpoint, const SecondOrderInfo &second_order_info) const =0
Overridden to compute Gc(x) and perhaps Gf(x), f(x) and c(x).
void unset_quantities()
Call to unset all storage quantities (both in this class and all subclasses).
virtual void calc_HL(const Vector &x, const Vector *lambda, bool newpoint=true) const
Update the matrix for HL at the point x, lambda, lambdaI and put it in the stored reference...
virtual size_type m() const
Return the number of general equality constraints.
const SecondOrderInfo second_order_info() const
Return objective gradient and zero order information.