diff options
author | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2012-04-07 16:05:52 +0000 |
---|---|---|
committer | astrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675> | 2012-04-07 16:05:52 +0000 |
commit | 190f2b4e15cdeb8d5593f8a15e02d459a3c7483d (patch) | |
tree | 92a8153b0fefe508b9106e391c6014def0b46f49 /test | |
parent | 78d84eebe69da1d008c1f7a07628846b3e039d65 (diff) | |
download | opt-utilities-190f2b4e15cdeb8d5593f8a15e02d459a3c7483d.tar.bz2 |
git-svn-id: file:///home/svn/opt_utilities@233 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'test')
-rw-r--r-- | test/makefile | 5 | ||||
-rw-r--r-- | test/test_cg.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/makefile b/test/makefile index bebfc9c..be076dd 100644 --- a/test/makefile +++ b/test/makefile @@ -1,4 +1,4 @@ -targets=test_optimizer many_dims test_fitter +targets=test_optimizer many_dims test_fitter test_cg all:$(targets) @@ -11,5 +11,8 @@ many_dims:many_dims.cpp test_fitter:test_fitter.cpp $(CXX) $< -o $@ -I .. -O3 -g +test_cg:test_cg.cpp + $(CXX) $< -o $@ -I .. -O3 -g + clean: rm -f $(targets) *.o *~ diff --git a/test/test_cg.cpp b/test/test_cg.cpp index cb89f71..b32c783 100644 --- a/test/test_cg.cpp +++ b/test/test_cg.cpp @@ -47,7 +47,7 @@ int main() opt.set_opt_method(conjugate_gradient<double,vector<double> >()); //opt.set_opt_method(powell_method<double,vector<double> >()); opt.set_func_obj(foo()); - std::vector<double> p(30); + std::vector<double> p(300); for(int i=0;i<p.size();++i) { p[i]=100; |