From 35748cd7ea58c7dce30630d22f51d5d95b0c9ae8 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sat, 5 Sep 2009 17:32:18 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@61 ed2142bd-67ad-457f-ba7c-d818d4011675 --- test/makefile | 2 +- test/test_optimizer.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/makefile b/test/makefile index a801d7b..e850e82 100644 --- a/test/makefile +++ b/test/makefile @@ -3,7 +3,7 @@ targets=test_optimizer all:$(targets) test_optimizer:test_optimizer.cpp - $(CXX) $< -o $@ -I .. -O3 + $(CXX) $< -o $@ -I .. -O3 -g clean: diff --git a/test/test_optimizer.cpp b/test/test_optimizer.cpp index b6d70a7..8d0b405 100644 --- a/test/test_optimizer.cpp +++ b/test/test_optimizer.cpp @@ -1,3 +1,5 @@ +#define private public +#include #include #include //#include @@ -120,8 +122,10 @@ void test_opt(const func_obj >& fo, { const int problem_size=5; optimizer > opt; - opt.set_opt_method(optm); + opt.set_func_obj(fo); + opt.set_opt_method(optm); + vector p(problem_size); for(int i=0;i