diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2010-06-04 16:20:37 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2010-06-04 16:20:37 +0000 |
commit | a484672e4d7507869aa37396e1524f4955253cd9 (patch) | |
tree | b02c4a161bf862f8b4ba3b5261f364a226326171 /test | |
parent | defca73441e1a691b41504dd67b3e290cae414e6 (diff) | |
download | opt-utilities-a484672e4d7507869aa37396e1524f4955253cd9.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@121 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'test')
-rw-r--r-- | test/many_dims.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/many_dims.cpp b/test/many_dims.cpp index 9afe4a7..f7a1ebc 100644 --- a/test/many_dims.cpp +++ b/test/many_dims.cpp @@ -3,6 +3,7 @@ #include <core/optimizer.hpp> #include <methods/powell/powell_method.hpp> //#include <methods/gsl_simplex/gsl_simplex.hpp> +#include <methods/bfgs/bfgs.hpp> #include <methods/aga/aga.hpp> #include <vector> #include <iostream> @@ -121,7 +122,7 @@ class foo5 void test_opt(const func_obj<double,vector<double> >& fo, const opt_method<double,vector<double> >& optm) { - const int problem_size=50; + const int problem_size=500; optimizer<double,vector<double> > opt; opt.set_func_obj(fo); @@ -163,9 +164,10 @@ void test_opt(const func_obj<double,vector<double> >& fo, int main() { - // gsl_simplex<double,vector<double> > pm_simplex; - - aga_method<double,vector<double> > agam(100,50); + //gsl_simplex<double,vector<double> > agam; + bfgs_method<double,vector<double> > agam; + //powell_method<double,vector<double> > agam; + //aga_method<double,vector<double> > agam(100,50); test_opt(foo1(),agam); test_opt(foo2(),agam); test_opt(foo3(),agam); |