29 : function{
function }{}
39 size_t const size {
function->getSize() };
40 if( 0 == size )
return true;
49 RETHROW(
"ipo::detail::ModelFunction::addVariable()" );
53 std::tuple<size_t,size_t>
55 size_t sizeF {
function->getSize() };
57 return std::make_tuple( sizeF, sizeV );
Shared pointer to ipo::Function object.
void push_back(value_type const &value)
Insert value at end of array.
std::tuple< size_t, size_t > getSizes() const
Get size of vector for function arguments and number of variables supplied.
size_type size() const
Get size of array.
Abstract base class for Objective and Constraint.
#define RETHROW(function)
Macro to allow file and line names in exceptions.
ModelFunction(SharedFunctionPtr function)
Use this constructor to construct from a SharedFunctionPtr object.
Namespace for classes that handle details of interior-point optimisation that are not ordinarily acce...
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.
Objects of this class are used to store information about an exception generated by ipo objects and f...
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.