Limbo
|
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. More... | |
void | add_constraint (string const &cname, LpParser::TermArray const &terms, char compare, double constant) |
add constraint that terms compare constant. More... | |
void | add_objective (bool minimize, LpParser::TermArray const &terms) |
add object terms More... | |
void | set_integer (string const &vname, bool binary) |
set integer variables More... | |
Custom class that inheritates LpParser::LpDataBase with all the required callbacks defined.
Definition at line 20 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.