7.2.8. MdoVar

class mindopt::MdoVar

Object to define an optimization variable.

This object implements the data structure to hold an optimization variable. An empty variable object can be created by calling MdoModel::addVar(). Once created, users may modify the its lower bound, upper bound, or objective coefficient by calling MdoVar::setRealAttr() with a proper real-valued model attribute.

Note

Do not use constructor (MdoVar::MdoVar()) to create an empty variable object.

Examples

/* Create an empty model. */
MdoModel model;

MdoI32 itmp = 0;
MdoReal dtmp = 0.0;
std::string ctmp;