diff -r 473c71baff72 -r 490d89913a17 lemon/cplex.cc --- a/lemon/cplex.cc Thu Feb 28 23:45:39 2013 +0100 +++ b/lemon/cplex.cc Mon Jul 15 08:33:08 2013 +0200 @@ -492,6 +492,17 @@ _message_enabled ? CPX_ON : CPX_OFF); } + void CplexBase::_write(std::string file, std::string format) const + { + if(format == "MPS" || format == "LP") + CPXwriteprob(cplexEnv(), cplexLp(), file.c_str(), format.c_str()); + else if(format == "SOL") + CPXsolwrite(cplexEnv(), cplexLp(), file.c_str()); + else throw UnsupportedFormatError(format); + } + + + // CplexLp members CplexLp::CplexLp()