|
Limbo 3.5.4
|
Custom class that inheritates LpParser::LpDataBase with all the required callbacks defined. More...
Public Types | |
| typedef LpParser::int64_t | int64_t |
| use int64_t in base type | |
Public Member Functions | |
| LpDataBase () | |
| constructor | |
| void | add_variable (string const &vname, double l, double r) |
| add variable that l <= vname <= r. | |
| void | add_constraint (string const &cname, LpParser::TermArray const &terms, char compare, double constant) |
| add constraint that terms compare constant. | |
| void | add_objective (bool minimize, LpParser::TermArray const &terms) |
| add object terms | |
| void | set_integer (string const &vname, bool binary) |
| set integer variables | |
Custom class that inheritates LpParser::LpDataBase with all the required callbacks defined.
Definition at line 20 of file test_bison.cpp.
| typedef LpParser::int64_t LpDataBase::int64_t |
use int64_t in base type
Definition at line 24 of file test_bison.cpp.
|
inline |
constructor
Definition at line 26 of file test_bison.cpp.
|
inlinevirtual |
add constraint that terms compare constant.
| cname | name of the constraint |
| terms | array of terms in left hand side |
| compare | operator '<', '>', '=' |
| constant | constant in the right hand side |
Implements LpParser::LpDataBase.
Definition at line 43 of file test_bison.cpp.
|
inlinevirtual |
add object terms
| minimize | true denotes minimizing object, false denotes maximizing object |
| terms | array of terms |
Implements LpParser::LpDataBase.
Definition at line 53 of file test_bison.cpp.
|
inlinevirtual |
add variable that l <= vname <= r.
| vname | variable name |
| l | lower bound |
| r | upper bound |
Implements LpParser::LpDataBase.
Definition at line 34 of file test_bison.cpp.
|
inlinevirtual |
set integer variables
| vname | integer variables |
| binary | denotes whether they are binary variables |
Implements LpParser::LpDataBase.
Definition at line 67 of file test_bison.cpp.