20 #ifndef IPO_FUNCTION_DETAIL_PHASEIBOUNDEDVARIABLEFUNCTIONANDDERIVATIVES_HPP
21 #define IPO_FUNCTION_DETAIL_PHASEIBOUNDEDVARIABLEFUNCTIONANDDERIVATIVES_HPP
23 #include"../Function.hpp"
24 #include"../DerivativesEstimates.hpp"
66 double operator()( gsl::vector
const& vector );
72 gsl::vector
gradient( gsl::vector
const& vector );
78 gsl::matrix
hessian( gsl::vector
const& vector );
83 void setVector( gsl::vector
const& vector );
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: 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.
Function for Phase I (feasibility) of interior-point optimisation.
PhaseIBoundedVariableFunctionAndDerivatives(double const b, bool const upperBound)
Construct from a function and bound.
Namespace for functions that can be used by ipo::Objective and ipo::Constraint.
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.