COIN-OR::LEMON - Graph Library

Changeset 1231:1782aa72495a in lemon for lemon/glpk.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/glpk.cc

    r1142 r1231  
    581581      break;
    582582    }
     583  }
     584
     585  void GlpkBase::_write(std::string file, std::string format) const
     586  {
     587    if(format == "MPS")
     588      glp_write_mps(lp, GLP_MPS_FILE, 0, file.c_str());
     589    else if(format == "LP")
     590      glp_write_lp(lp, 0, file.c_str());
     591    else throw UnsupportedFormatError(format);
    583592  }
    584593
     
    9991008  const char* GlpkMip::_solverName() const { return "GlpkMip"; }
    10001009
     1010
     1011
    10011012} //END OF NAMESPACE LEMON
Note: See TracChangeset for help on using the changeset viewer.