This class implements the common interface of the CPLEX LP and MIP solvers.
#include <lemon/cplex.h>
Inheritance diagram for CplexBase:Public Member Functions | |
| const CplexEnv & | env () const |
Returns the used CplexEnv instance. | |
| const cpxenv * | cplexEnv () const |
| Returns the const cpxenv pointer. | |
| cpxenv * | cplexEnv () |
| Returns the const cpxenv pointer. | |
| cpxlp * | cplexLp () |
| Returns the cplex problem object. | |
| const cpxlp * | cplexLp () const |
| Returns the cplex problem object. | |
| void | write (std::string file, std::string format="MPS") const |
| Write the problem or the solution to a file in the given format. | |
| const cpxenv* cplexEnv | ( | ) | const [inline] |
| cpxenv* cplexEnv | ( | ) | [inline] |
| 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 UnsupportedFormatError.
| file | The file path |
| format | The output file format. Supportted formats are "MPS", "LP" and "SOL". |
Reimplemented from LpBase.
1.7.6.1