FLOPC++
|
Symbolic representation of a linear expression.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>
Public Member Functions | |
MP_expression () | |
default constructor More... | |
MP_expression (MP_expression_base *r) | |
MP_expression (const Constant &c) | |
Constructor which (silently) converts a Constant to a MP_expression. More... | |
MP_expression (const VariableRef &v) | |
Constructor which (silently) converts a Variable to a MP_expression. More... | |
virtual | ~MP_expression () |
![]() | |
const MP_expression_base *& | operator-> () const |
Handle (const MP_expression_base *&r) | |
Handle (const Handle &h) | |
const Handle & | operator= (const Handle &h) |
~Handle () | |
Friends | |
class | MP_constraint |
Additional Inherited Members | |
![]() | |
void | increment () |
void | decrement () |
Symbolic representation of a linear expression.
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 122 of file MP_expression.hpp.
|
inline |
default constructor
Definition at line 126 of file MP_expression.hpp.
|
inline |
Constructor for internal use
Definition at line 130 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 182 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 185 of file MP_expression.cpp.
|
inlinevirtual |
Definition at line 135 of file MP_expression.hpp.
|
friend |
Definition at line 123 of file MP_expression.hpp.