20 #ifndef IPO_FUNCTION_DETAIL_MODELFUNCTION_HPP
21 #define IPO_FUNCTION_DETAIL_MODELFUNCTION_HPP
23 #include"../Array.hpp"
25 #include"../../ipo_function/Function.hpp"
76 std::tuple<size_t,size_t>
getSizes()
const;
81 virtual::ipo_function::Function*
getFunction(){
return function.get(); }
Shared pointer to ipo::Function object.
std::tuple< size_t, size_t > getSizes() const
Get size of vector for function arguments and number of variables supplied.
Abstract base class for Objective and Constraint.
ModelFunction(SharedFunctionPtr function)
Use this constructor to construct from a SharedFunctionPtr object.
This class computes a function at a vector.
virtual ipo::Array & getVariables()=0
Get variables used by Objective or Constraint function.
This class represents a variable.
virtual ::ipo_function::Function * getFunction()
Get function.
This class represents an array of Variable objects.
bool checkSize() const
Check size of vector for function arguments matches number of variables supplied. ...
virtual void addVariable(ipo::Variable &variable)
Add a Variable to the end of the Array of variables.
This namespace holds all the interior-point optimisation classes.