20 #ifndef IPO_FUNCTION_DETAIL_PHASEIFUNCTIONANDDERIVATIVES_HPP
21 #define IPO_FUNCTION_DETAIL_PHASEIFUNCTIONANDDERIVATIVES_HPP
23 #include"../Function.hpp"
24 #include"../DerivativesEstimates.hpp"
57 double operator()( gsl::vector
const& vector );
63 gsl::vector
gradient( gsl::vector
const& vector );
69 gsl::matrix
hessian( gsl::vector
const& vector );
74 void setVector( gsl::vector
const& vector );
double operator()(gsl::vector const &vector)
The function operator: computes or according as is an upper or lower bound.
virtual gsl::matrix hessian() const
virtual gsl::vector gradient() const
Base class for derivative estimates with Hessian.
Namespace for functions that can be used by ipo::Objective and ipo::Constraint.
PhaseIFunctionAndDerivatives(Function &function, double const b, bool const upperBound)
Construct from a function and bound.
Function for Phase I (feasibility) of interior-point optimisation.
This class computes a function at a vector.
bool const upperBound
A boolean value: true or false according as b is an upper bound or lower.
void setVector(gsl::vector const &vector)
Set a vector and compute function value, gradient and Hessian efficiently.