Skip to content

Commit

Permalink
Forgot EvaluationErrors.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanaret committed Nov 28, 2024
1 parent 6785634 commit 72f1e53
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions uno/optimization/EvaluationErrors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ namespace uno {
[[nodiscard]] const char* what() const noexcept override = 0;
};

struct FunctionEvaluationError : EvaluationError {
[[nodiscard]] const char* what() const noexcept override {
return "A numerical error was encountered while evaluating a function\n";
}
};

struct GradientEvaluationError : EvaluationError {
[[nodiscard]] const char* what() const noexcept override {
return "A numerical error was encountered while evaluating a gradient\n";
}
};

struct FunctionEvaluationError : EvaluationError {
struct HessianEvaluationError : EvaluationError {
[[nodiscard]] const char* what() const noexcept override {
return "A numerical error was encountered while evaluating a function\n";
return "A numerical error was encountered while evaluating the Lagrangian Hessian\n";
}
};
} // namespace
Expand Down

0 comments on commit 72f1e53

Please sign in to comment.