COIN-OR::LEMON - Graph Library

Opened 5 years ago

Closed 4 years ago

#457 closed enhancement (done)

File export functionality for the LP interface

Reported by: alpar Owned by: alpar
Priority: major Milestone: LEMON 1.3 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

The attached solution implements a simple

write(std::string fname, std::string format);

member function, where fname is a filename and format is a file format name. The backends must reimplement the corresponding _write(...) virtual function. If the format is not supported by the backend an UnsupportedFormatError exception is thrown.

Currently only two backends are implemented.

  • CplexBase supports saving in MPS, LP and SOL formats (this latter saves the solution).
  • GlpkBase supports MPS and LP.

Attachments (1)

457-1782aa72495a.patch (6.1 KB) - added by alpar 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by alpar

comment:1 Changed 5 years ago by alpar

The attached patch should be applied on the top of [caf16813b1e8], its patch can be found at #446.

comment:2 Changed 4 years ago by alpar

  • Resolution set to done
  • Status changed from new to closed

It is in the main branch, see [1782aa72495a].

Note: See TracTickets for help on using tickets.