Skip to content

Commit

Permalink
[FIX] fix missing check in get_status_output
Browse files Browse the repository at this point in the history
  • Loading branch information
frapac committed Sep 4, 2024
1 parent ed67920 commit 02558f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/enums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

function get_status_output(status, opt)
if status == SOLVE_SUCCEEDED
return @sprintf "Optimal Solution Found (tol = %5.1e)." opt.tol
return @sprintf "Optimal Solution Found (tol = %5.1e)." opt.tol
elseif status == SOLVED_TO_ACCEPTABLE_LEVEL
return @sprintf "Solved To Acceptable Level (tol = %5.1e)." opt.acceptable_tol
elseif status == SEARCH_DIRECTION_BECOMES_TOO_SMALL
Expand Down Expand Up @@ -78,9 +78,9 @@ function get_status_output(status, opt)
return "Invalid number in NLP constraint function detected."
elseif status == INVALID_NUMBER_JACOBIAN
return "Invalid number in NLP constraint Jacobian detected."
elseif INVALID_NUMBER_HESSIAN_LAGRANGIAN
elseif status == INVALID_NUMBER_HESSIAN_LAGRANGIAN
return "Invalid number in NLP Hessian Lagrangian detected."
else
error("status code is not valid")
error("status code is not valid")
end
end

0 comments on commit 02558f3

Please sign in to comment.