Skip to content

Commit

Permalink
Update src/retcodes.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Sathvik Bhagavan <[email protected]>
  • Loading branch information
Vaibhavdixit02 and sathvikbhagavan authored Aug 9, 2023
1 parent e7e2ce6 commit 63dbf8e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/retcodes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,5 @@ end
successful_retcode(sol::AbstractSciMLSolution) = successful_retcode(sol.retcode)

function successful_retcode(sol::OptimizationSolution)
retcode == ReturnCode.Success || retcode == ReturnCode.Terminated ||
retcode == ReturnCode.ExactSolutionLeft ||
retcode == ReturnCode.ExactSolutionRight ||
retcode == ReturnCode.FloatingPointLimit ||
retcode == ReturnCode.MaxIters
retcode == successful_retcode(sol.retcode) || retcode == ReturnCode.MaxIters
end

0 comments on commit 63dbf8e

Please sign in to comment.