Base class for lp database. Only pure virtual functions are defined. User needs to inheritate this class and derive a custom database type with all callback functions defined.
More...
#include <LpDataBase.h>
|
virtual void | add_variable (string const &vname, double l=limbo::lowest< double >(), double r=std::numeric_limits< double >::max())=0 |
| add variable that l <= vname <= r. More...
|
|
virtual void | add_constraint (string const &cname, TermArray const &terms, char compare, double constant)=0 |
| add constraint that terms compare constant. More...
|
|
virtual void | add_objective (bool minimize, TermArray const &terms)=0 |
| add object terms More...
|
|
virtual void | set_integer (string const &vname, bool binary)=0 |
| set integer variables More...
|
|
Base class for lp database. Only pure virtual functions are defined. User needs to inheritate this class and derive a custom database type with all callback functions defined.
Definition at line 114 of file LpDataBase.h.
virtual void LpParser::LpDataBase::add_constraint |
( |
string const & |
cname, |
|
|
TermArray const & |
terms, |
|
|
char |
compare, |
|
|
double |
constant |
|
) |
| |
|
pure virtual |
add constraint that terms compare constant.
- Parameters
-
cname | constraint name |
terms | array of terms in left hand side |
compare | operator '<', '>', '=' |
constant | constant in the right hand side |
Implemented in LpDataBase.
virtual void LpParser::LpDataBase::add_objective |
( |
bool |
minimize, |
|
|
TermArray const & |
terms |
|
) |
| |
|
pure virtual |
virtual void LpParser::LpDataBase::add_variable |
( |
string const & |
vname, |
|
|
double |
l = limbo::lowest< double >() , |
|
|
double |
r = std::numeric_limits< double >::max() |
|
) |
| |
|
pure virtual |
virtual void LpParser::LpDataBase::set_integer |
( |
string const & |
vname, |
|
|
bool |
binary |
|
) |
| |
|
pure virtual |
set integer variables
- Parameters
-
vname | integer variables |
binary | denotes whether they are binary variables |
Implemented in LpDataBase.
The documentation for this class was generated from the following file:
- /Users/yibolin/Documents/Projects/Limbo/limbo/parsers/lp/bison/LpDataBase.h