Skip to content

Commit fe3b02d

Browse files
Update termination reason dictionary
Makes it easier to match. Fixes #904
1 parent e21c6e5 commit fe3b02d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/utils.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ const STOP_REASON_MAP = Dict(
7070
r"InitialFailure" => ReturnCode.InitialFailure,
7171
r"ConvergenceFailure|ITERATION_LIMIT" => ReturnCode.ConvergenceFailure,
7272
r"Infeasible|INFEASIBLE|DUAL_INFEASIBLE|LOCALLY_INFEASIBLE|INFEASIBLE_OR_UNBOUNDED" => ReturnCode.Infeasible,
73-
r"STOP: TOTAL NO. of ITERATIONS REACHED LIMIT" => ReturnCode.MaxIters,
74-
r"STOP: TOTAL NO. of f AND g EVALUATIONS EXCEEDS LIMIT" => ReturnCode.MaxIters,
75-
r"STOP: ABNORMAL_TERMINATION_IN_LNSRCH" => ReturnCode.Unstable,
76-
r"STOP: ERROR INPUT DATA" => ReturnCode.InitialFailure,
77-
r"STOP: FTOL.TOO.SMALL" => ReturnCode.ConvergenceFailure,
78-
r"STOP: GTOL.TOO.SMALL" => ReturnCode.ConvergenceFailure,
79-
r"STOP: XTOL.TOO.SMALL" => ReturnCode.ConvergenceFailure,
73+
r"TOTAL NO. of ITERATIONS REACHED LIMIT" => ReturnCode.MaxIters,
74+
r"TOTAL NO. of f AND g EVALUATIONS EXCEEDS LIMIT" => ReturnCode.MaxIters,
75+
r"ABNORMAL_TERMINATION_IN_LNSRCH" => ReturnCode.Unstable,
76+
r"ERROR INPUT DATA" => ReturnCode.InitialFailure,
77+
r"FTOL.TOO.SMALL" => ReturnCode.ConvergenceFailure,
78+
r"GTOL.TOO.SMALL" => ReturnCode.ConvergenceFailure,
79+
r"XTOL.TOO.SMALL" => ReturnCode.ConvergenceFailure,
8080
r"STOP: TERMINATION" => ReturnCode.Terminated,
8181
r"Optimization completed" => ReturnCode.Success,
8282
r"Convergence achieved" => ReturnCode.Success,

0 commit comments

Comments
 (0)