This is one of the main public interface classes. It is the basis for all linear expressions, including constraints, objective function, and expressions involving indexes.
Although these can be created directly and independently, it is expected these will be created through the use of the operators which are later in this file. (operator+, operator-, etc.).
More...
#include <MP_expression.hpp>
Inheritance diagram for flopc::MP_expression:
Public Member Functions | |
MP_expression () | |
default constructor | |
MP_expression (MP_expression_base *r) | |
MP_expression (const Constant &c) | |
Constructor which (silently) converts a Constant to a MP_expression. | |
MP_expression (const VariableRef &v) | |
Constructor which (silently) converts a Variable to a MP_expression. | |
virtual | ~MP_expression () |
Friends | |
class | MP_constraint |
This is one of the main public interface classes. It is the basis for all linear expressions, including constraints, objective function, and expressions involving indexes.
Although these can be created directly and independently, it is expected these will be created through the use of the operators which are later in this file. (operator+, operator-, etc.).
Definition at line 124 of file MP_expression.hpp.
flopc::MP_expression::MP_expression | ( | ) | [inline] |
flopc::MP_expression::MP_expression | ( | MP_expression_base * | r | ) | [inline] |
Constructor for internal use
Definition at line 132 of file MP_expression.hpp.
MP_expression::MP_expression | ( | const Constant & | c | ) |
Constructor which (silently) converts a Constant to a MP_expression.
Definition at line 180 of file MP_expression.cpp.
MP_expression::MP_expression | ( | const VariableRef & | v | ) |
Constructor which (silently) converts a Variable to a MP_expression.
Definition at line 183 of file MP_expression.cpp.
virtual flopc::MP_expression::~MP_expression | ( | ) | [inline, virtual] |
Definition at line 137 of file MP_expression.hpp.
friend class MP_constraint [friend] |
Definition at line 125 of file MP_expression.hpp.