Uno icon indicating copy to clipboard operation
Uno copied to clipboard

Return error codes instead of throwing exceptions?

Open cvanaret opened this issue 1 year ago • 0 comments

Exceptions are thrown in several recoverable situations during the optimization process:

  • the functions of the optimization problem cannot be evaluated;
  • iterative regularization doesn't seem to succeed;
  • the line search fails;

Although I like exceptions conceptually, it's probably more efficient to return error codes like every solver does. Happy to be proven wrong.

cvanaret avatar Nov 25 '24 13:11 cvanaret