20 #ifndef IPO_LINEARCONSTRAINT_HPP
21 #define IPO_LINEARCONSTRAINT_HPP
25 #include"../ipo_function/concrete/LinearCombination.hpp"
101 void setValue(
double const value );
void setValue(double const value)
Set value of Constraint.
virtual void setUpperBound(double const upperBound)
Set upper bound of Constraint.
double getCoefficient(Variable const &variable) const
Get the coefficient of variable.
ModelBase & model
A Model to attach this to.
bool isEqualityConstraint() const
Find if this is an equality constraint (upperBound = lowerBound).
void setCoefficients(gsl::vector const &vector)
Set all the coefficients of this LinearConstraint.
Class to represent a linear combination as an Objective or Constraint.
virtual void setLowerBound(double const lowerBound)
Set lower bound of Constraint.
Class for a constraint function.
LinearConstraint(detail::ModelBase &model, std::string const &name)
The constructor creates a new object with no variables.
Abstract base class for model.
double value() const noexcept
Value of the objective function at the current value of the variables.
This class represents a variable.
void setCoefficient(Variable const &variable, double const value)
Set the coefficient of variable.
virtual ::ipo_function::Function * getFunction()
Get function.
gsl::vector const & getCoefficients() const
Get all the coefficients of this LinearConstraint.
This namespace holds all the interior-point optimisation classes.