diff -r 473c71baff72 -r 490d89913a17 lemon/glpk.h --- a/lemon/glpk.h Thu Feb 28 23:45:39 2013 +0100 +++ b/lemon/glpk.h Mon Jul 15 08:33:08 2013 +0200 @@ -115,6 +115,8 @@ virtual void _messageLevel(MessageLevel level); + virtual void _write(std::string file, std::string format) const; + private: static void freeEnv(); @@ -144,6 +146,19 @@ ///Returns the variable identifier understood by GLPK. int lpxCol(Col c) const { return cols(id(c)); } +#ifdef DOXYGEN + /// Write the problem or the solution to a file in the given format + + /// This function writes the problem or the solution + /// to a file in the given format. + /// Trying to write in an unsupported format will trigger + /// \ref UnsupportedFormatError. + /// \param file The file path + /// \param format The output file format. + /// Supportted formats are "MPS" and "LP". + void write(std::string file, std::string format = "MPS") const {} +#endif + }; /// \brief Interface for the GLPK LP solver