COIN-OR::LEMON - Graph Library

Changeset 2324:18fc834761d9 in lemon-0.x for lemon/lp_glpk.cc


Ignore:
Timestamp:
12/04/06 17:48:13 (17 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3100
Message:

Some query functions got implemented, but only for GLPK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_glpk.cc

    r2321 r2324  
    214214  }
    215215
     216  LpGlpk::Value LpGlpk::_getCoeff(int row, int col)
     217  {
     218    ///\todo This is not yet implemented!!!
     219    return 0;
     220  }
     221
     222
    216223  void LpGlpk::_setColLowerBound(int i, Value lo)
    217224  {
     
    423430    //i=0 means the constant term (shift)
    424431    lpx_set_obj_coef(lp, i, obj_coef);
     432  }
     433
     434  LpGlpk::Value LpGlpk::_getObjCoeff(int i){
     435    //i=0 means the constant term (shift)
     436    return lpx_get_obj_coef(lp, i);
    425437  }
    426438
     
    552564  }
    553565
     566  bool LpGlpk::_isMax()
     567  {
     568    return (lpx_get_obj_dir(lp)==LPX_MAX);
     569  }
     570
    554571 
     572
    555573  void LpGlpk::messageLevel(int m)
    556574  {
Note: See TracChangeset for help on using the changeset viewer.