9 #ifndef _MP_constraint_hpp_
10 #define _MP_constraint_hpp_
164 class GenerateFunctor;
217 return offset +
f(
I1->evaluate(),
I2->evaluate(),
I3->evaluate(),
218 I4->evaluate(),
I5->evaluate());
223 double price(
int i1=0,
int i2=0,
int i3=0,
int i4=0,
int i5=0)
const;
238 void display(std::string s=
"")
const;
This is the anchor point for all constructs in a FlopC++ model.
void coefficients(GenerateFunctor &f)
Utility interface class for adding a string name onto a structure.
int f(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
Sense_enum
Enumeration for indicating direction of a constraint.
void display(std::string s="") const
static MP_set & getEmpty()
gets the distinct 'empty' MP_set.
Constraint(const MP_expression &l, const MP_expression &r, Sense_enum s)
static const MP_index_exp & getEmpty()
Return the unique empty expression.
Semantic representation of a linear constraint.
MP_boolean operator==(const MP_index_exp &e1, const MP_index_exp &e2)
constructs a boolean evaluator using operator overloadingThis is used in the normal formation of an e...
Reference counted class for all "boolean" types of data.
MP_constraint & operator()(const MP_index_exp &i1=MP_index_exp::getEmpty(), const MP_index_exp &i2=MP_index_exp::getEmpty(), const MP_index_exp &i3=MP_index_exp::getEmpty(), const MP_index_exp &i4=MP_index_exp::getEmpty(), const MP_index_exp &i5=MP_index_exp::getEmpty())
void operator=(const Constraint &v)
void insertVariables(std::set< MP_variable * > &v)
Utility class to flatten multidimensional information into single dimentional offset information...
Functor to facilitate generation of coefficients.
friend Constraint operator<=(const MP_expression &l, const MP_expression &r)
Uses operator overloading to construct an ConstraintConstucts a Constraint using operator overloading...
Representation of an expression involving an index.
Semantic representation of a variable in a Math Program.
MP_boolean operator>=(const MP_index_exp &e1, const MP_index_exp &e2)
constructs a boolean evaluator using operator overloadingThis is used in the normal formation of an e...
Reference counted class for all "constant" types of data.
Symbolic representation of a linear expression.
double price(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
MP_boolean operator<=(const MP_index_exp &e1, const MP_index_exp &e2)
constructs a boolean evaluator using operator overloadingThis is used in the normal formation of an e...
friend Constraint operator==(const MP_expression &l, const MP_expression &r)
Uses operator overloading to construct an ConstraintConstucts a Constraint using operator overloading...
friend Constraint operator>=(const MP_expression &l, const MP_expression &r)
Uses operator overloading to construct an ConstraintConstucts a Constraint using operator overloading...
MP_constraint(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())
construct the MP_constraint with appropriate sets for indexing.
Internal representation of a "set".
Semantic representation of a constraint in a Math Program.
MP_constraint & such_that(const MP_boolean &b)