aboutsummaryrefslogtreecommitdiffstats
path: root/core/fitter.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fitter.hpp')
-rw-r--r--core/fitter.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fitter.hpp b/core/fitter.hpp
index 4f19684..cc4da3b 100644
--- a/core/fitter.hpp
+++ b/core/fitter.hpp
@@ -386,8 +386,8 @@ namespace opt_utilities
*/
param_info(const Tstr& _name,
const typename element_type_trait<Tp>::element_type& _v,
- const typename element_type_trait<Tp>::element_type& _l=0,
- const typename element_type_trait<Tp>::element_type& _u=0,
+ const typename element_type_trait<Tp>::element_type& _l=-std::numeric_limits<typename element_type_trait<Tp>::element_type>::max(),
+ const typename element_type_trait<Tp>::element_type& _u=std::numeric_limits<typename element_type_trait<Tp>::element_type>::max(),
const Tstr& desc=Tstr())
:name(_name),value(_v),lower_limit(_l),
upper_limit(_u),description(desc)