From 78d84eebe69da1d008c1f7a07628846b3e039d65 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sat, 7 Apr 2012 16:01:03 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@232 ed2142bd-67ad-457f-ba7c-d818d4011675 --- test/test_cg.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'test/test_cg.cpp') diff --git a/test/test_cg.cpp b/test/test_cg.cpp index a080cc5..cb89f71 100644 --- a/test/test_cg.cpp +++ b/test/test_cg.cpp @@ -17,7 +17,7 @@ class foo { static int call_cnt=0; ++call_cnt; - cerr< > opt; - //opt.set_opt_method(conjugate_gradient >()); - opt.set_opt_method(powell_method >()); + opt.set_opt_method(conjugate_gradient >()); + //opt.set_opt_method(powell_method >()); opt.set_func_obj(foo()); - std::vector p(2); - p[0]=p[1]=4; + std::vector p(30); + for(int i=0;i