aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@gmail.com>2012-12-13 17:18:03 +0800
committerastrojhgu <astrojhgu@gmail.com>2012-12-13 17:18:03 +0800
commit7c7dbffbb17f143607fb8ec0388c6bdb6bcea160 (patch)
treefe2978cd0667475569af50e0495d0325dbd93aa5
parent66c2ea7f22ab5a07770af87225925d127cfe1260 (diff)
downloadopt-utilities-7c7dbffbb17f143607fb8ec0388c6bdb6bcea160.tar.bz2
changed the default lower and upper limit values
modified: core/fitter.hpp
-rw-r--r--core/fitter.hpp5
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()
{}