File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
lib/OptimizationNLopt/src Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 79
79
80
80
function __nlopt_status_to_ReturnCode (status:: Symbol )
81
81
if status in Symbol .([
82
- NLopt. SUCCESS,
83
- NLopt. STOPVAL_REACHED,
84
- NLopt. FTOL_REACHED,
85
- NLopt. XTOL_REACHED,
86
- ])
82
+ NLopt. SUCCESS,
83
+ NLopt. STOPVAL_REACHED,
84
+ NLopt. FTOL_REACHED,
85
+ NLopt. XTOL_REACHED,
86
+ ])
87
87
return ReturnCode. Success
88
88
elseif status == Symbol (NLopt. MAXEVAL_REACHED)
89
89
return ReturnCode. MaxIters
90
90
elseif status == Symbol (NLopt. MAXTIME_REACHED)
91
91
return ReturnCode. MaxTime
92
92
elseif status in Symbol .([
93
- NLopt. OUT_OF_MEMORY,
94
- NLopt. INVALID_ARGS,
95
- NLopt. FAILURE,
96
- NLopt. ROUNDOFF_LIMITED,
97
- NLopt. FORCED_STOP,
98
- ])
93
+ NLopt. OUT_OF_MEMORY,
94
+ NLopt. INVALID_ARGS,
95
+ NLopt. FAILURE,
96
+ NLopt. ROUNDOFF_LIMITED,
97
+ NLopt. FORCED_STOP,
98
+ ])
99
99
return ReturnCode. Failure
100
100
else
101
101
return ReturnCode. Default
You can’t perform that action at this time.
0 commit comments