From cfcf2b9fc6b091c6db0997c2dea45b701955a696 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Thu, 4 Nov 2010 17:26:48 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@142 ed2142bd-67ad-457f-ba7c-d818d4011675 --- methods/lbfgs/lbfgs_method.hpp | 4 ++-- test/many_dims.cpp | 15 ++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/methods/lbfgs/lbfgs_method.hpp b/methods/lbfgs/lbfgs_method.hpp index 112d50e..eecde76 100644 --- a/methods/lbfgs/lbfgs_method.hpp +++ b/methods/lbfgs/lbfgs_method.hpp @@ -1,5 +1,5 @@ -#ifndef BFGS_METHOD -#define BFGS_METHOD +#ifndef LBFGS_METHOD +#define LBFGS_METHOD #define OPT_HEADER #include //#include diff --git a/test/many_dims.cpp b/test/many_dims.cpp index f7a1ebc..a09e358 100644 --- a/test/many_dims.cpp +++ b/test/many_dims.cpp @@ -4,6 +4,7 @@ #include //#include #include +#include #include #include #include @@ -122,7 +123,7 @@ class foo5 void test_opt(const func_obj >& fo, const opt_method >& optm) { - const int problem_size=500; + const int problem_size=500000; optimizer > opt; opt.set_func_obj(fo); @@ -154,7 +155,7 @@ void test_opt(const func_obj >& fo, cout<<"the result is:\n"; for(int i=0;i >& fo, int main() { //gsl_simplex > agam; - bfgs_method > agam; + lbfgs_method > agam; //powell_method > agam; //aga_method > agam(100,50); test_opt(foo1(),agam); - test_opt(foo2(),agam); - test_opt(foo3(),agam); - test_opt(foo4(),agam); - test_opt(foo5(),agam); + // test_opt(foo2(),agam); + //test_opt(foo3(),agam); + //test_opt(foo4(),agam); + //test_opt(foo5(),agam); } -- cgit v1.2.2