80 for (
int i=0; i<
size(); i++) {
125 for (
int i=0; i<
size(); i++) {
139 double&
operator()(
int lcli1,
int lcli2=0,
int lcli3=0,
int lcli4=0,
int lcli5=0) {
145 int i =
f(lcli1,lcli2,lcli3,lcli4,lcli5);
165 myrefs.push_back(
new DataRef(
this, lcli1, lcli2, lcli3, lcli4, lcli5));
171 void display(std::string s =
"");
195 using flopc::MP_data::operator();
203 myrefs.push_back(
new DataRef(
this, lcli1, lcli2, lcli3, lcli4, lcli5, 1));
void evaluate_lhs(double v) const
static MP_set & getEmpty()
gets the distinct 'empty' MP_set.
void value(const double *d)
Used to bind and deep copy data into the MP_data data structure.
const DataRef & operator=(const DataRef &r)
MP_data(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())
Representation of an index.This is one of the main public interface classes. It is used to iterate th...
MP_data & operator=(const MP_data &)
void initialize(double d)
similar to value() but copies the same value to all entries.
static double outOfBoundData
Utility interface class for adding a string name onto a structure.
Representation of an expression involving an index.This is one of the main public interface classes...
int f(int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
std::vector< DataRef * > myrefs
Base class for all "constant" types of data.
MP_stochastic_data(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())
DataRef(MP_data *d, 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, int s=0)
static const MP_index_exp & getEmpty()
Return the unique empty expression.
const int outOfBound
Distinct return value on conditions where an index goes out of bounds.
Reference to a set of data.
This is the anchor point for all constructs in a FlopC++ model.The constructors take an OsiSolverInte...
Reference counted class for all "boolean" types of data.This contains counters to ConstantBase pointe...
DataRef & such_that(const MP_boolean &b)
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.
Reference counted class for all "constant" types of data.
Input data set.This is one of the main public interface classes. It is normally directly constructed ...
double & operator()(int lcli1, int lcli2=0, int lcli3=0, int lcli4=0, int lcli5=0)
Internal representation of a "set".
void display(std::string s="")
For displaying data in a human readable format.
MP_data(double *value, 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())