20 #ifndef IPO_FUNCTION_DETAIL_PHASEIOBJECTIVEFUNCTIONANDDERIVATIVES_HPP
21 #define IPO_FUNCTION_DETAIL_PHASEIOBJECTIVEFUNCTIONANDDERIVATIVES_HPP
23 #include"../Function.hpp"
24 #include"../DerivativesEstimates.hpp"
51 double operator()( gsl::vector
const& vector );
57 gsl::vector
gradient( gsl::vector
const& vector );
63 gsl::matrix
hessian( gsl::vector
const& vector );
68 void setVector( gsl::vector
const& vector );
virtual gsl::matrix hessian() const
virtual gsl::vector gradient() const
Base class for derivative estimates with Hessian.
void setVector(gsl::vector const &vector)
Set a vector and compute function value, gradient and Hessian efficiently.
double operator()(gsl::vector const &vector)
The function operator: returns the last element of vector.
Objective function for Phase I (feasibility) of interior-point optimisation.
Namespace for functions that can be used by ipo::Objective and ipo::Constraint.
This class computes a function at a vector.
PhaseIObjectiveFunctionAndDerivatives(Function const &function)
Construct from a function.