equal
deleted
inserted
replaced
18 #define LEMON_LP_BASE_H |
18 #define LEMON_LP_BASE_H |
19 |
19 |
20 #include<vector> |
20 #include<vector> |
21 #include<map> |
21 #include<map> |
22 #include<limits> |
22 #include<limits> |
23 #include<math.h> |
23 #include<cmath> |
24 |
24 |
25 #include<lemon/utility.h> |
25 #include<lemon/utility.h> |
26 #include<lemon/error.h> |
26 #include<lemon/error.h> |
27 #include<lemon/invalid.h> |
27 #include<lemon/invalid.h> |
28 |
28 |
399 ///The const version of \ref upperBound() |
399 ///The const version of \ref upperBound() |
400 const Value &upperBound() const { return _ub; } |
400 const Value &upperBound() const { return _ub; } |
401 ///Is the constraint lower bounded? |
401 ///Is the constraint lower bounded? |
402 bool lowerBounded() const { |
402 bool lowerBounded() const { |
403 using namespace std; |
403 using namespace std; |
404 return isfinite(_lb); |
404 return finite(_lb); |
405 } |
405 } |
406 ///Is the constraint upper bounded? |
406 ///Is the constraint upper bounded? |
407 bool upperBounded() const { |
407 bool upperBounded() const { |
408 using namespace std; |
408 using namespace std; |
409 return isfinite(_ub); |
409 return finite(_ub); |
410 } |
410 } |
411 }; |
411 }; |
412 |
412 |
413 |
413 |
414 protected: |
414 protected: |