COIN-OR::LEMON - Graph Library

Changeset 1063:1782aa72495a in lemon-main for lemon/cplex.cc


Ignore:
Timestamp:
07/20/12 17:09:01 (8 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Add file export funcionality to LpBase? (#457)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cplex.cc

    r1016 r1063  
    492492                   _message_enabled ? CPX_ON : CPX_OFF);
    493493  }
     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
    494505
    495506  // CplexLp members
Note: See TracChangeset for help on using the changeset viewer.