COIN-OR::LEMON - Graph Library

Changeset 1295:02a403c305b9 in lemon-0.x for src/work


Ignore:
Timestamp:
04/04/05 10:03:43 (20 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?
Location:
src/work/athos/lp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/work/athos/lp/Makefile

    r1263 r1295  
    1515
    1616lp_test: lp_test.o lp_base.o lp_solver_skeleton.o lp_glpk.o
    17         g++ -o $@ $^ -lglpk
     17        $(CXX) -o $@ $^ -lglpk
  • 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   
  • src/work/athos/lp/lp_test.cc

    r1293 r1295  
    140140  typedef typename G::InEdgeIt InEdgeIt;
    141141 
    142   typename G::EdgeMap<LpGlpk::Col> x(g);
     142  typename G::template EdgeMap<LpGlpk::Col> x(g);
    143143  lp.addColSet(x);
    144144 
Note: See TracChangeset for help on using the changeset viewer.