|
void | operator() () const |
|
void | initialize (double d) |
| similar to value() but copies the same value to all entries.
|
|
| 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()) |
| Constructs the MP_data object, and allocates space for data, but does not initialize the data.
|
|
| 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()) |
| Construct the object, and uses the data in the original array (shallow copy)
|
|
| ~MP_data () |
|
void | value (const double *d) |
| Used to bind and deep copy data into the MP_data data structure.
|
|
| operator double () |
|
double & | operator() (int lcli1, int lcli2=0, int lcli3=0, int lcli4=0, int lcli5=0) |
| Looks up the data based on the index values passed in.
|
|
DataRef & | operator() (const MP_index_exp &lcli1=MP_index_exp::getEmpty(), const MP_index_exp &lcli2=MP_index_exp::getEmpty(), const MP_index_exp &lcli3=MP_index_exp::getEmpty(), const MP_index_exp &lcli4=MP_index_exp::getEmpty(), const MP_index_exp &lcli5=MP_index_exp::getEmpty()) |
| returns a DataRef which refers into the MP_data.
|
|
void | display (std::string s="") |
| For displaying data in a human readable format.
|
|
int | size () const |
|
std::string | getName () const |
|
void | setName (const std::string &n) |
|
Input data set.
This is one of the main public interface classes.
It is normally directly constructed given a set of indices (domain) over which it is valid. If the data is not bound at construction, either the value() or initialize() method must be called which (deep) copies in the actual data.
If one wishes to refer to external data instead rather than doing a deep copy, use the constructor which takes the value pointer as an argument. This copies the original data pointer value (rather than a deep copy).
This is used for construction of :
- objective coefficients
- constraint coefficients
- 'right hand sides'
Definition at line 71 of file MP_data.hpp.