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.
|
| virtual void | add_constraint (string const &cname, TermArray const &terms, char compare, double constant)=0 |
| | add constraint that terms compare constant.
|
| virtual void | add_objective (bool minimize, TermArray const &terms)=0 |
| | add object terms
|
| virtual void | set_integer (string const &vname, bool binary)=0 |
| | set integer variables
|
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.
◆ add_constraint()
| 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.
◆ add_objective()
| virtual void LpParser::LpDataBase::add_objective |
( |
bool | minimize, |
|
|
TermArray const & | terms ) |
|
pure virtual |
◆ add_variable()
| virtual void LpParser::LpDataBase::add_variable |
( |
string const & | vname, |
|
|
double | l = limbo::lowest< double >(), |
|
|
double | r = std::numeric_limits< double >::max() ) |
|
pure virtual |
◆ set_integer()
| 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:
- /home/abuild/rpmbuild/BUILD/limbo-3.5.4-build/limbo-3.5.4/limbo/parsers/lp/bison/LpDataBase.h