9 #ifndef _MP_variable_hpp_
10 #define _MP_variable_hpp_
46 void display(
const std::string &s =
"");
static MP_set & getEmpty()
gets the distinct 'empty' MP_set.
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())
const VariableRef & operator()(const MP_index_exp &d1=MP_index_exp::getEmpty(), const MP_index_exp &d2=MP_index_exp::getEmpty(), const MP_index_exp &d3=MP_index_exp::getEmpty(), const MP_index_exp &d4=MP_index_exp::getEmpty(), const MP_index_exp &d5=MP_index_exp::getEmpty())
Interal use only.
void integer()
Call this method to turn the MP_variable into an integer variable.
Representation of an index.This is one of the main public interface classes. It is used to iterate th...
friend class DisplayVariable
MP_data upperLimit
Upper bound on the variable value.
void binary()
Call this method to turn the variable into a binary variable.
variableType
Enumeration for indicating variable type.
void initialize(double d)
similar to value() but copies the same value to all entries.
Utility interface class for adding a string name onto a structure.
void display(const std::string &s="")
Representation of an expression involving an index.This is one of the main public interface classes...
static const MP_index_exp & getEmpty()
Return the unique empty expression.
This is the anchor point for all constructs in a FlopC++ model.The constructors take an OsiSolverInte...
All flopc++ code is contained within the flopc namespace.
double level(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0)
Returns the value of the variable given the specific index values.
MP_binary_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())
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.
Function object. Often used.
Input data set.This is one of the main public interface classes. It is normally directly constructed ...
Internal representation of a "set".
MP_data lowerLimit
Lower bound on the variable value.