aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-08-29 12:51:00 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-08-29 12:51:00 +0000
commitb4ae5bf85dc7538398fcc9065e81238de452492c (patch)
tree17e5a2fb1b00b951ac383936fec97e6b1169fa60
parent0b63947fbfabd84ff383bbae9da46f985b225eab (diff)
downloadopt-utilities-b4ae5bf85dc7538398fcc9065e81238de452492c.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@58 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--core/opt_exception.hpp6
-rw-r--r--core/optimizer.hpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/core/opt_exception.hpp b/core/opt_exception.hpp
index 458ff87..e20e209 100644
--- a/core/opt_exception.hpp
+++ b/core/opt_exception.hpp
@@ -37,12 +37,12 @@ namespace opt_utilities
When objection is not defined in optimizer, and optimizion is performing,
this exception will be thrown
*/
- class target_function_undefined
+ class object_function_undefined
:public opt_exception
{
public:
- target_function_undefined()
- :opt_exception("target function undefined")
+ object_function_undefined()
+ :opt_exception("object function undefined")
{}
};
diff --git a/core/optimizer.hpp b/core/optimizer.hpp
index 6b146cf..9ae2860 100644
--- a/core/optimizer.hpp
+++ b/core/optimizer.hpp
@@ -441,7 +441,7 @@ namespace opt_utilities
{
if(p_func_obj==0)
{
- throw target_function_undefined();
+ throw object_function_undefined();
}
return p_func_obj->eval(x);
}
@@ -460,7 +460,7 @@ namespace opt_utilities
}
if(p_func_obj==0)
{
- throw target_function_undefined();
+ throw object_function_undefined();
}
return p_opt_method->optimize();
}