|
Interior-point-optimisation
1.0-1
Interior-pointoptimisationlibrary
|
Abstract base class for Variable and Array;. More...
#include <Var.hpp>


Public Member Functions | |
| Var (ModelBase &model) | |
| Constructor needs a model so that variable can only be attached to one model. More... | |
| virtual | ~Var ()=0 |
| Virtual destructor to make class abstract. More... | |
| Var (Var &var) | |
| Copy constructor. More... | |
| Var & | operator= (Var &var) |
| Copy assignment operator. More... | |
| Var (Var &&var) | |
| Move constructor. More... | |
| Var & | operator= (Var &&var) |
| Move assignment operator. More... | |
| ModelBase const *const | getModel () const |
| Get pointer to model. More... | |
| virtual void | summary (std::ostream &ostream=std::cout, std::string const &prefix="") const =0 |
| Create a summary of this object. More... | |
Protected Attributes | |
| ModelBase & | model |
| A Model to attach this to. More... | |
| Var::Var | ( | ModelBase & | model | ) |
|
pure virtual |
|
inline |
|
inline |
|
inline |
Get pointer to model.
Definition at line 88 of file Var.hpp.
References model.
Referenced by ipo::Objective::addArray(), ipo::Array::assign(), ipo::Array::emplace(), ipo::Array::emplace_back(), ipo::Array::insert(), ipo::Array::push_back(), ipo::Objective::removeArray(), ipo::Array::resize(), ipo::LinearConstraint::setLowerBound(), ipo::LinearConstraint::setUpperBound(), ipo::LinearConstraint::setValue(), and ipo::Array::swap().
Copy assignment operator.
| var | The var to be copied |
*this | IPOException | if models differ |
Move assignment operator.
| var | The var to be moved |
*this | IPOException | if models differ |
|
pure virtual |
Create a summary of this object.
| ostream | The stream to print to. |
| prefix | This is put in front of every row of output, for example for indentation |
Implemented in ipo::Array, ipo::Objective, ipo::Constraint, and ipo::Variable.
|
protected |
A Model to attach this to.
Definition at line 101 of file Var.hpp.
Referenced by ipo::Array::Array(), ipo::Array::assign(), ipo::Constraint::Constraint(), getModel(), ipo::Objective::getVariables(), ipo::Array::insert(), ipo::LinearConstraint::LinearConstraint(), ipo::Objective::Objective(), operator=(), ipo::Objective::operator=(), ipo::Variable::operator=(), ipo::Constraint::operator=(), ipo::Array::operator=(), ipo::Array::push_back(), ipo::Array::resize(), ipo::Array::swap(), ipo::Array::Data::testModelMatch(), and ipo::Variable::Variable().