COIN-OR::LEMON - Graph Library

Changeset 1295:02a403c305b9 in lemon-0.x for src/work/athos/lp/lp_base.h


Ignore:
Timestamp:
04/04/05 10:03:43 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1729
Message:
  • Modifications to compile with *both* gcc-3.3 and gcc-3.4
  • Adjust further SolutionType?
File:
1 edited

Legend:

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

    r1294 r1295  
    115115    ///\e
    116116    enum SolutionType {
    117       ///\e
     117      ///Feasible solution has'n been found (but may exist).
     118
     119      ///\todo NOTFOUND might be a better name.
     120      ///
    118121      UNDEFINED = 0,
    119       ///\e
     122      ///The problem has no feasible solution
    120123      INFEASIBLE = 1,
    121       ///\e
     124      ///Feasible solution found
    122125      FEASIBLE = 2,
    123       ///\e
    124       OPTIMAL = 3
     126      ///Optimal solution exists and found
     127      OPTIMAL = 3,
     128      ///The cost function is unbounded
     129
     130      ///\todo Give a feasible solution and an infinite ray (and the
     131      ///corresponding bases)
     132      INFINITE = 4
    125133    };
    126134     
     
    352360      const Value &upperBound() const { return _ub; }
    353361      ///\e
    354       bool lowerBounded() const { return std::isfinite(_lb); }
    355       ///\e
    356       bool upperBounded() const { return std::isfinite(_ub); }
     362      bool lowerBounded() const {
     363        using namespace std;
     364        return isfinite(_lb);
     365      }
     366      ///\e
     367      bool upperBounded() const {
     368        using namespace std;
     369        return isfinite(_ub);
     370      }
    357371    };
    358372   
Note: See TracChangeset for help on using the changeset viewer.