COIN-OR::LEMON - Graph Library

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


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.cc

    r2591 r2605  
    9090                                LEMON_glp(get_col_ub)(glp.lp,i));
    9191      }
     92    rows = glp.rows;
     93    cols = glp.cols;
    9294  }
    9395 
     
    106108
    107109
    108   LpSolverBase &LpGlpk::_newLp()
    109   {
    110     LpGlpk* newlp=new LpGlpk;
    111     return *newlp;
     110  LpSolverBase* LpGlpk::_newLp()
     111  {
     112    LpGlpk* newlp = new LpGlpk;
     113    return newlp;
    112114  }
    113115 
    114116  ///\e
    115117
    116   LpSolverBase &LpGlpk::_copyLp()
    117   {
    118     LpGlpk* newlp=new LpGlpk(*this);
    119     return *newlp;
     118  LpSolverBase* LpGlpk::_copyLp()
     119  {
     120    LpGlpk *newlp = new LpGlpk(*this);
     121    return newlp;
    120122  }
    121123
Note: See TracChangeset for help on using the changeset viewer.