FlopCpp trunk
|
Symantic representation of a variable. More...
#include <MP_variable.hpp>
Public Attributes | |
MP_data | upperLimit |
Upper bound on the variable value. | |
MP_data | lowerLimit |
Lower bound on the variable value. | |
Friends | |
class | MP_model |
class | DisplayVariable |
class | VariableRef |
Additional Inherited Members | |
![]() | |
RowMajor (int s1, int s2, int s3, int s4, int s5) | |
int | f (int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const |
![]() | |
Functor () | |
virtual | ~Functor () |
![]() | |
int | size1 |
int | size2 |
int | size3 |
int | size4 |
int | size5 |
int | size_ |
Symantic representation of a variable.
This is one of the main public interface classes.
It should be directly declared by clients of the FlopC++. The parametersof construction are MP_set s which specify the indexes over which the variable is defined.
Definition at line 75 of file MP_variable.hpp.
flopc::MP_variable::MP_variable | ( | const MP_set_base & | s1 = MP_set::getEmpty(), |
const MP_set_base & | s2 = MP_set::getEmpty(), | ||
const MP_set_base & | s3 = MP_set::getEmpty(), | ||
const MP_set_base & | s4 = MP_set::getEmpty(), | ||
const MP_set_base & | s5 = MP_set::getEmpty() ) |
|
inline |
Definition at line 88 of file MP_variable.hpp.
Returns the value of the variable given the specific index values.
|
inline |
Interal use only.
Definition at line 95 of file MP_variable.hpp.
|
inline |
Call this method to turn the variable into a binary variable.
Definition at line 108 of file MP_variable.hpp.
|
inline |
Call this method to turn the MP_variable into an integer variable.
Definition at line 114 of file MP_variable.hpp.
Definition at line 76 of file MP_variable.hpp.
Definition at line 77 of file MP_variable.hpp.
|
friend |
Definition at line 78 of file MP_variable.hpp.
MP_data flopc::MP_variable::upperLimit |
Upper bound on the variable value.
Definition at line 119 of file MP_variable.hpp.
MP_data flopc::MP_variable::lowerLimit |
Lower bound on the variable value.
Definition at line 121 of file MP_variable.hpp.