lemon/cplex.cc
changeset 1065 490d89913a17
parent 1016 97975184f4aa
child 1092 dceba191c00d
     1.1 --- a/lemon/cplex.cc	Thu Feb 28 23:45:39 2013 +0100
     1.2 +++ b/lemon/cplex.cc	Mon Jul 15 08:33:08 2013 +0200
     1.3 @@ -492,6 +492,17 @@
     1.4                     _message_enabled ? CPX_ON : CPX_OFF);
     1.5    }
     1.6  
     1.7 +  void CplexBase::_write(std::string file, std::string format) const
     1.8 +  {
     1.9 +    if(format == "MPS" || format == "LP")
    1.10 +      CPXwriteprob(cplexEnv(), cplexLp(), file.c_str(), format.c_str());
    1.11 +    else if(format == "SOL")
    1.12 +      CPXsolwrite(cplexEnv(), cplexLp(), file.c_str());
    1.13 +    else throw UnsupportedFormatError(format);
    1.14 +  }
    1.15 +
    1.16 +
    1.17 +
    1.18    // CplexLp members
    1.19  
    1.20    CplexLp::CplexLp()