This class implements the common interface of the GLPK LP and MIP solver.
#include <lemon/glpk.h>
Inheritance diagram for GlpkBase:Public Member Functions | |
| _solver_bits::VoidPtr | lpx () |
| Pointer to the underlying GLPK data structure. | |
| _solver_bits::VoidPtr | lpx () const |
| Const pointer to the underlying GLPK data structure. | |
| int | lpxRow (Row r) const |
| Returns the constraint identifier understood by GLPK. | |
| int | lpxCol (Col c) const |
| Returns the variable identifier understood by GLPK. | |
| void | write (std::string file, std::string format="MPS") const |
| Write the problem or the solution to a file in the given format. | |
| void write | ( | std::string | file, |
| std::string | format = "MPS" |
||
| ) | const [inline] |
This function writes the problem or the solution to a file in the given format. Trying to write in an unsupported format will trigger LpBase::UnsupportedFormatError.
| file | The file path |
| format | The output file format. Supportted formats are "MPS" and "LP". |
Reimplemented from LpBase.
1.7.6.1