9 #ifndef _MP_variable_hpp_
10 #define _MP_variable_hpp_
59 std::vector<Constant> multiplicators,
86 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 insertVariables(std::set< MP_variable * > &v) const
void integer()
Call this method to turn the MP_variable into an integer variable.
void generate(const MP_domain &domain, std::vector< Constant > multiplicators, GenerateFunctor &f, double m) const
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...
VariableRef(MP_variable *v, const MP_index_exp &i1, const MP_index_exp &i2, const MP_index_exp &i3, const MP_index_exp &i4, const MP_index_exp &i5)
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.
Range over which some other constuct is defined.This is one of the main public interface classes...
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 ...
Functor to facilitate generation of coefficients.
Internal representation of a "set".
The base class for all expressions.
MP_data lowerLimit
Lower bound on the variable value.