aboutsummaryrefslogtreecommitdiffstats
path: root/methods
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-09-05 16:17:32 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-09-05 16:17:32 +0000
commit07139e38b8d6baadc30443c7f20551908b3db491 (patch)
treeec236eee44736f8fa00de30e3de07422bf91b67d /methods
parentf6773e55b1025d13647a84702833cc8dc3f08d88 (diff)
downloadopt-utilities-07139e38b8d6baadc30443c7f20551908b3db491.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@60 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'methods')
-rw-r--r--methods/aga/aga.hpp19
-rw-r--r--methods/gsl_simplex/gsl_simplex.hpp10
-rw-r--r--methods/powell/powell_method.hpp10
3 files changed, 39 insertions, 0 deletions
diff --git a/methods/aga/aga.hpp b/methods/aga/aga.hpp
index 0cde38d..8878953 100644
--- a/methods/aga/aga.hpp
+++ b/methods/aga/aga.hpp
@@ -152,17 +152,31 @@ namespace opt_utilities
}
}
+
+ array1d_type do_get_start_point()const
+ {
+ return array1d_type();
+ }
void do_set_lower_limit(const array1d_type& p)
{
opt_eq(lower_bound,p);
}
+ array1d_type do_get_lower_limit()const
+ {
+ return lower_bound;
+ }
void do_set_upper_limit(const array1d_type& p)
{
opt_eq(upper_bound,p);
}
+
+ array1d_type do_get_upper_limit()const
+ {
+ return upper_bound;
+ }
void do_set_precision(rT t)
@@ -170,6 +184,11 @@ namespace opt_utilities
threshold=t;
}
+ rT do_get_precision()const
+ {
+ return threshold;
+ }
+
void do_set_optimizer(optimizer<rT,pT>& o)
{
p_optimizer=&o;
diff --git a/methods/gsl_simplex/gsl_simplex.hpp b/methods/gsl_simplex/gsl_simplex.hpp
index cb26ac6..5297e7a 100644
--- a/methods/gsl_simplex/gsl_simplex.hpp
+++ b/methods/gsl_simplex/gsl_simplex.hpp
@@ -106,11 +106,21 @@ namespace opt_utilities
}
+ array1d_type do_get_start_point()const
+ {
+ return start_point;
+ }
+
void do_set_precision(rT t)
{
threshold=t;
}
+ rT do_get_precision()const
+ {
+ return threshold;
+ }
+
void do_set_optimizer(optimizer<rT,pT>& o)
{
p_optimizer=&o;
diff --git a/methods/powell/powell_method.hpp b/methods/powell/powell_method.hpp
index 6256b5b..1562fdf 100644
--- a/methods/powell/powell_method.hpp
+++ b/methods/powell/powell_method.hpp
@@ -207,6 +207,11 @@ namespace opt_utilities
opt_eq(start_point,p);
}
+ array1d_type do_get_start_point()const
+ {
+ return start_point;
+ }
+
void do_set_lower_limit(const array1d_type& p)
{}
@@ -218,6 +223,11 @@ namespace opt_utilities
threshold=t;
}
+ rT do_get_precision()const
+ {
+ return threshold;
+ }
+
void do_set_optimizer(optimizer<rT,pT>& o)
{
p_optimizer=&o;