52 namespace NLPInterfacePack {
70 "null nlp passed to NLPBarrier decorator"
78 "non NLPObjGrad NLP passed to NLPBarrier decorator"
110 nlp_->calc_f(x, newx);
123 nlp_->calc_Gf(x, newx);
NLP interface class that adds gradient information for the objective function {abstract}.
value_type barrier_term() const
Get the barrier term. Must be called after calc_f().
Struct for gradient (objective), objective and constriants (pointers)
virtual const VectorSpace & space() const =0
Return the vector space that this vector belongs to.
Abstract interface for immutable, finite dimensional, coordinate vectors {abstract}.
void imp_calc_c(const Vector &x, bool newx, const ZeroOrderInfo &zero_order_info) const
const Vector & xu() const
void calc_f(const Vector &x, bool newx=true) const
Overloaded to include barrier term.
void inv_of_difference(const value_type alpha, const Vector &v0, const Vector &v1, VectorMutable *z)
Computes the inverse of the difference between two vectors.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
void InitializeFromNLP(Teuchos::RCP< NLP > original_nlp)
const Teuchos::RCP< Vector > grad_objective_term() const
Get the value of the gradient of the true objective term. Must be called after calc_Gf().
void imp_calc_c_breve(const Vector &x, bool newx, const ZeroOrderInfo &zero_order_info_breve) const
Teuchos::RCP< NLPObjGrad > nlp_
const Vector & xl() const
void mu(const value_type mu)
Set the barrier parameter.
Teuchos::RCP< VectorMutable > grad_objective_term_
Teuchos::RCP< VectorMutable > grad_barrier_term_temp_
Teuchos::RCP< VectorMutable > grad_barrier_term_
value_type objective_term_
virtual void axpy(value_type alpha, const Vector &x)
Adds a linear combination of another vector to this vector object.
value_type CalculateBarrierTerm(const Vector &x) const
Struct for objective and constriants (pointer).
void imp_calc_h_breve(const Vector &x, bool newx, const ZeroOrderInfo &zero_order_info_breve) const
value_type objective_term() const
Get the true objective term value. Must be called after calc_f().
void imp_calc_Gf(const Vector &x, bool newx, const ObjGradInfo &obj_grad_info) const
value_type log_bound_barrier(const Vector &x, const Vector &xl, const Vector &xu)
Computes the log barrier term:
AbstractLinAlgPack::value_type value_type
const Teuchos::RCP< Vector > grad_barrier_term() const
Get the value of the gradient of the barrier term. Must be called after calc_Gf() ...
void imp_calc_f(const Vector &x, bool newx, const ZeroOrderInfo &zero_order_info) const
virtual vec_mut_ptr_t create_member() const =0
Create a vector member from the vector space.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
void calc_Gf(const Vector &x, bool newx=true) const
Overloaded to include barrier term.