lemon/glpk.cc
changeset 1231 1782aa72495a
parent 1142 4764031c082c
child 1270 dceba191c00d
equal deleted inserted replaced
13:4f8935a37831 14:dca0b3f9c521
   578       break;
   578       break;
   579     case MESSAGE_VERBOSE:
   579     case MESSAGE_VERBOSE:
   580       _message_level = GLP_MSG_ALL;
   580       _message_level = GLP_MSG_ALL;
   581       break;
   581       break;
   582     }
   582     }
       
   583   }
       
   584 
       
   585   void GlpkBase::_write(std::string file, std::string format) const
       
   586   {
       
   587     if(format == "MPS")
       
   588       glp_write_mps(lp, GLP_MPS_FILE, 0, file.c_str());
       
   589     else if(format == "LP")
       
   590       glp_write_lp(lp, 0, file.c_str());
       
   591     else throw UnsupportedFormatError(format);
   583   }
   592   }
   584 
   593 
   585   GlpkBase::FreeEnvHelper GlpkBase::freeEnvHelper;
   594   GlpkBase::FreeEnvHelper GlpkBase::freeEnvHelper;
   586 
   595 
   587   // GlpkLp members
   596   // GlpkLp members
   996   GlpkMip* GlpkMip::newSolver() const { return new GlpkMip; }
  1005   GlpkMip* GlpkMip::newSolver() const { return new GlpkMip; }
   997   GlpkMip* GlpkMip::cloneSolver() const {return new GlpkMip(*this); }
  1006   GlpkMip* GlpkMip::cloneSolver() const {return new GlpkMip(*this); }
   998 
  1007 
   999   const char* GlpkMip::_solverName() const { return "GlpkMip"; }
  1008   const char* GlpkMip::_solverName() const { return "GlpkMip"; }
  1000 
  1009 
       
  1010 
       
  1011 
  1001 } //END OF NAMESPACE LEMON
  1012 } //END OF NAMESPACE LEMON