COIN-OR::LEMON - Graph Library

Changeset 1275:16980bf77bd3 in lemon-0.x


Ignore:
Timestamp:
03/30/05 15:01:58 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1707
Message:

Minor improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/athos/lp/lp_base.h

    r1273 r1275  
    299299      ///\e
    300300      const Value &upperBound() const { return _ub; }
     301      ///\e
     302      bool lowerBounded() const { return std::isfinite(_lb); }
     303      ///\e
     304      bool upperBounded() const { return std::isfinite(_ub); }
    301305    };
    302306   
     
    485489    void setRow(Row r, const Constr &c) {
    486490      setRow(r,
    487              isnan(c.lowerBound())?-INF:c.lowerBound(),
     491             c.lowerBounded()?c.lowerBound():-INF,
    488492             c.expr(),
    489              isnan(c.upperBound())?INF:c.upperBound());
     493             c.upperBounded()?c.upperBound():INF);
    490494    }
    491495
Note: See TracChangeset for help on using the changeset viewer.