20 #ifndef IPO_CONSTRAINT_HPP
21 #define IPO_CONSTRAINT_HPP
59 std::string
const& name );
67 std::string
const& name );
75 char const*
const name = 0 );
85 char const*
const name = 0 );
93 char const*
const name = 0 );
138 model = constraint.
model;
140 data = std::move( constraint.
data );
150 virtual void summary( std::ostream& ostream = std::cout,
151 std::string
const& prefix =
"" )
const override;
163 bool operator==( Constraint
const& lhs, Constraint
const& rhs );
Shared pointer to ipo::Function object.
ModelBase & model
A Model to attach this to.
virtual void summary(std::ostream &ostream=std::cout, std::string const &prefix="") const override
Create a summary of this function.
std::shared_ptr< Data > data
The objective data.
Constraint(Constraint &&constraint)
Move constructor.
Class for a constraint function.
Abstract base class for model.
Class for an objective function.
Constraint & operator=(Constraint &&constraint)
Move assignment operator.
double getLowerBound() const
Get lower bound of Constraint.
virtual void setUpperBound(double const upperBound)
Set upper bound of Constraint.
This class computes a function at a vector.
Constraint(detail::ModelBase &model, detail::SharedFunctionPtr function, std::string const &name)
Use this constructor to construct from a ipo_function::SharedFunctionPtr object.
double getUpperBound() const
Get upper bound of Constraint.
bool operator==(Array const &lhs, Array const &rhs)
Compare two Array objects.
SharedFunctionPtr function
The objective or constraint function.
virtual void setLowerBound(double const lowerBound)
Set lower bound of Constraint.
Constraint & operator=(Constraint const &constraint)
Assignment operator.
This namespace holds all the interior-point optimisation classes.