diff options
| -rw-r--r-- | core/opt_exception.hpp | 6 | ||||
| -rw-r--r-- | core/optimizer.hpp | 4 | 
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();      }  | 
