diff -r 473c71baff72 -r 490d89913a17 lemon/cplex.h --- a/lemon/cplex.h Thu Feb 28 23:45:39 2013 +0100 +++ b/lemon/cplex.h Mon Jul 15 08:33:08 2013 +0200 @@ -150,6 +150,8 @@ bool _message_enabled; + void _write(std::string file, std::string format) const; + public: /// Returns the used \c CplexEnv instance @@ -170,6 +172,19 @@ /// Returns the cplex problem object const cpxlp* cplexLp() const { return _prob; } +#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", "LP" and "SOL". + void write(std::string file, std::string format = "MPS") const {} +#endif + }; /// \brief Interface for the CPLEX LP solver