COIN-OR::LEMON - Graph Library

Changeset 2605:852361980706 in lemon-0.x for lemon/lp_glpk.h


Ignore:
Timestamp:
04/08/08 18:01:28 (16 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3488
Message:

Bug fixes in LP solvers

  • the copyLp is clarified
  • newLp and copyLp gives back pointers
  • cplex gives back empty string for variables without name
  • cplex row and column retrieval
  • added macro for soplex
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_glpk.h

    r2557 r2605  
    5050   
    5151  protected:
    52     virtual LpSolverBase &_newLp();
    53     virtual LpSolverBase &_copyLp();
     52    virtual LpSolverBase* _newLp();
     53    virtual LpSolverBase* _copyLp();
    5454
    5555    virtual int _addCol();
     
    121121    ///Pointer to the underlying GLPK data structure.
    122122    LPX *lpx() {return lp;}
     123
     124    ///Returns the constraint identifier understood by GLPK.
     125    int lpxRow(Row r) { return _lpId(r); }
     126
     127    ///Returns the variable identifier understood by GLPK.
     128    int lpxCol(Col c) { return _lpId(c); }
    123129  };
    124130} //END OF NAMESPACE LEMON
Note: See TracChangeset for help on using the changeset viewer.