lemon/cplex.cc
changeset 1065 490d89913a17
parent 1016 97975184f4aa
child 1092 dceba191c00d
equal deleted inserted replaced
10:578c28a588be 11:e718f0b36d50
   489 
   489 
   490   void CplexBase::_applyMessageLevel() {
   490   void CplexBase::_applyMessageLevel() {
   491     CPXsetintparam(cplexEnv(), CPX_PARAM_SCRIND,
   491     CPXsetintparam(cplexEnv(), CPX_PARAM_SCRIND,
   492                    _message_enabled ? CPX_ON : CPX_OFF);
   492                    _message_enabled ? CPX_ON : CPX_OFF);
   493   }
   493   }
       
   494 
       
   495   void CplexBase::_write(std::string file, std::string format) const
       
   496   {
       
   497     if(format == "MPS" || format == "LP")
       
   498       CPXwriteprob(cplexEnv(), cplexLp(), file.c_str(), format.c_str());
       
   499     else if(format == "SOL")
       
   500       CPXsolwrite(cplexEnv(), cplexLp(), file.c_str());
       
   501     else throw UnsupportedFormatError(format);
       
   502   }
       
   503 
       
   504 
   494 
   505 
   495   // CplexLp members
   506   // CplexLp members
   496 
   507 
   497   CplexLp::CplexLp()
   508   CplexLp::CplexLp()
   498     : LpBase(), LpSolver(), CplexBase() {}
   509     : LpBase(), LpSolver(), CplexBase() {}