exceptions.py 483 B

12345678910111213141516171819202122
  1. class MaxEvalError(Exception):
  2. """
  3. Exception raised when the maximum number of evaluations is reached.
  4. """
  5. class TargetSuccess(Exception):
  6. """
  7. Exception raised when the target value is reached.
  8. """
  9. class CallbackSuccess(StopIteration):
  10. """
  11. Exception raised when the callback function raises a ``StopIteration``.
  12. """
  13. class FeasibleSuccess(Exception):
  14. """
  15. Exception raised when a feasible point of a feasible problem is found.
  16. """