lemon/cplex.h
changeset 1232 fc3854d936f7
parent 793 e4554cd6b2bf
child 1250 97d978243703
equal deleted inserted replaced
5:d4ba15ba319a 6:5c0f8b53af4c
   148     virtual void _messageLevel(MessageLevel level);
   148     virtual void _messageLevel(MessageLevel level);
   149     void _applyMessageLevel();
   149     void _applyMessageLevel();
   150 
   150 
   151     bool _message_enabled;
   151     bool _message_enabled;
   152 
   152 
       
   153     void _write(std::string file, std::string format) const;
       
   154 
   153   public:
   155   public:
   154 
   156 
   155     /// Returns the used \c CplexEnv instance
   157     /// Returns the used \c CplexEnv instance
   156     const CplexEnv& env() const { return _env; }
   158     const CplexEnv& env() const { return _env; }
   157 
   159 
   168     /// Returns the cplex problem object
   170     /// Returns the cplex problem object
   169     cpxlp* cplexLp() { return _prob; }
   171     cpxlp* cplexLp() { return _prob; }
   170     /// Returns the cplex problem object
   172     /// Returns the cplex problem object
   171     const cpxlp* cplexLp() const { return _prob; }
   173     const cpxlp* cplexLp() const { return _prob; }
   172 
   174 
       
   175 #ifdef DOXYGEN
       
   176     /// Write the problem or the solution to a file in the given format
       
   177 
       
   178     /// This function writes the problem or the solution
       
   179     /// to a file in the given format.
       
   180     /// Trying to write in an unsupported format will trigger
       
   181     /// \ref UnsupportedFormatError.
       
   182     /// \param file The file path
       
   183     /// \param format The output file format.
       
   184     /// Supportted formats are "MPS", "LP" and "SOL".
       
   185     void write(std::string file, std::string format = "MPS") const {}
       
   186 #endif
       
   187 
   173   };
   188   };
   174 
   189 
   175   /// \brief Interface for the CPLEX LP solver
   190   /// \brief Interface for the CPLEX LP solver
   176   ///
   191   ///
   177   /// This class implements an interface for the CPLEX LP solver.
   192   /// This class implements an interface for the CPLEX LP solver.