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

Detailed Description

This class implements the common interface of the GLPK LP and MIP solver.

#include <lemon/glpk.h>

+ Inheritance diagram for GlpkBase:

List of all members.

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.

Member Function Documentation

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.

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

Reimplemented from LpBase.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines