COIN-OR::LEMON - Graph Library

Changeset 1206:86a5b114a066 in lemon-main for lemon/clp.cc


Ignore:
Timestamp:
01/20/21 16:31:29 (10 months ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Implement CplLp::write() for LP format (#640)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/clp.cc

    r1205 r1206  
    462462  }
    463463
     464   void ClpLp::_write(std::string file, std::string format) const
     465  {
     466    if(format == "LP")
     467      _prob->writeLp(file.c_str(), "", 1e-5, 10, 5,
     468                     sense()==ClpLp::MIN?1:-1,
     469                     true
     470                     );
     471    else throw UnsupportedFormatError(format);
     472  }
     473 
    464474} //END OF NAMESPACE LEMON
Note: See TracChangeset for help on using the changeset viewer.