COIN-OR::LEMON - Graph Library

Changeset 1379:96a34c0904dd in lemon-0.x for src/lemon/lp_glpk.cc


Ignore:
Timestamp:
04/21/05 17:15:12 (15 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1828
Message:

I really have no idea about what to write here now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/lp_glpk.cc

    r1377 r1379  
    260260      }
    261261    }
     262  }
     263
     264  void LpGlpk::_setRowBounds(int i, Value lb, Value ub)
     265  {
     266    //Bad parameter
     267    if (lb==INF || ub==-INF) {
     268      //FIXME error
     269    }
     270
     271    if (lb == -INF){
     272      if (ub == INF){
     273        lpx_set_row_bnds(lp, i, LPX_FR, lb, ub);
     274      }
     275      else{
     276        lpx_set_row_bnds(lp, i, LPX_UP, lb, ub);
     277      }
     278    }
     279    else{
     280      if (ub==INF){
     281        lpx_set_row_bnds(lp, i, LPX_LO, lb, ub);
     282
     283      }
     284      else{
     285        if (lb == ub){
     286          lpx_set_row_bnds(lp, i, LPX_FX, lb, ub);
     287        }
     288        else{
     289          lpx_set_row_bnds(lp, i, LPX_DB, lb, ub);
     290        }
     291      }
     292    }
     293
    262294  }
    263295 
Note: See TracChangeset for help on using the changeset viewer.