COIN-OR::LEMON - Graph Library

Changeset 1428:86a5b114a066 in lemon


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

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

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/clp.cc

    r1427 r1428  
    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
  • lemon/clp.h

    r1336 r1428  
    140140    virtual void _messageLevel(MessageLevel);
    141141
     142    void _write(std::string file, std::string format) const;
     143
    142144  public:
    143145
Note: See TracChangeset for help on using the changeset viewer.