diff options
| author | astrojhgu <astrojhgu@gmail.com> | 2012-12-13 17:18:03 +0800 | 
|---|---|---|
| committer | astrojhgu <astrojhgu@gmail.com> | 2012-12-13 17:18:03 +0800 | 
| commit | 7c7dbffbb17f143607fb8ec0388c6bdb6bcea160 (patch) | |
| tree | fe2978cd0667475569af50e0495d0325dbd93aa5 | |
| parent | 66c2ea7f22ab5a07770af87225925d127cfe1260 (diff) | |
| download | opt-utilities-7c7dbffbb17f143607fb8ec0388c6bdb6bcea160.tar.bz2 | |
changed the default lower and upper limit values
	modified:   core/fitter.hpp
| -rw-r--r-- | core/fitter.hpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/core/fitter.hpp b/core/fitter.hpp index a6cd928..4f19684 100644 --- a/core/fitter.hpp +++ b/core/fitter.hpp @@ -9,6 +9,7 @@  #define OPT_HEADER
  #include "opt_exception.hpp"
  #include "optimizer.hpp"
 +#include <limits>
  #include <vector>
  #include <string>
  #include <cstdlib>
 @@ -359,7 +360,9 @@ namespace opt_utilities         default construct
       */
      param_info()
 -      :name(),description()
 +      :name(),value(),lower_limit(-std::numeric_limits<typename element_type_trait<Tp>::element_type>::max()),
 +      upper_limit(std::numeric_limits<typename element_type_trait<Tp>::element_type>::max()),
 +       description()
      {}
 | 
