lemon/cplex.h
changeset 1065 490d89913a17
parent 746 e4554cd6b2bf
child 1074 97d978243703
     1.1 --- a/lemon/cplex.h	Thu Feb 28 23:45:39 2013 +0100
     1.2 +++ b/lemon/cplex.h	Mon Jul 15 08:33:08 2013 +0200
     1.3 @@ -150,6 +150,8 @@
     1.4  
     1.5      bool _message_enabled;
     1.6  
     1.7 +    void _write(std::string file, std::string format) const;
     1.8 +
     1.9    public:
    1.10  
    1.11      /// Returns the used \c CplexEnv instance
    1.12 @@ -170,6 +172,19 @@
    1.13      /// Returns the cplex problem object
    1.14      const cpxlp* cplexLp() const { return _prob; }
    1.15  
    1.16 +#ifdef DOXYGEN
    1.17 +    /// Write the problem or the solution to a file in the given format
    1.18 +
    1.19 +    /// This function writes the problem or the solution
    1.20 +    /// to a file in the given format.
    1.21 +    /// Trying to write in an unsupported format will trigger
    1.22 +    /// \ref UnsupportedFormatError.
    1.23 +    /// \param file The file path
    1.24 +    /// \param format The output file format.
    1.25 +    /// Supportted formats are "MPS", "LP" and "SOL".
    1.26 +    void write(std::string file, std::string format = "MPS") const {}
    1.27 +#endif
    1.28 +
    1.29    };
    1.30  
    1.31    /// \brief Interface for the CPLEX LP solver