All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
CplexBase Class Reference

Detailed Description

This class implements the common interface of the CPLEX LP and MIP solvers.

#include <lemon/cplex.h>

+ Inheritance diagram for CplexBase:

List of all members.

Public Member Functions

const CplexEnvenv () 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.

Member Function Documentation

const cpxenv* cplexEnv ( ) const [inline]
Note:
The cpxenv might be destructed with the solver.
cpxenv* cplexEnv ( ) [inline]
Note:
The cpxenv might be destructed with the solver.
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.

Parameters:
fileThe file path
formatThe output file format. Supportted formats are "MPS", "LP" and "SOL".

Reimplemented from LpBase.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines