@@ -48,18 +48,18 @@ function fit_mle(::Type{GeneralizedExtremeValue}, bm::BlockMaxima)
48
48
status₀ = termination_status (mle₀)
49
49
50
50
# acceptable statuses
51
- OK = MOI. OPTIMAL
51
+ OK = ( MOI. OPTIMAL, MOI . LOCALLY_SOLVED)
52
52
53
- if status == OK && status₀ == OK
53
+ if status ∈ OK && status₀ ∈ OK
54
54
# choose the maximum amongst the two
55
55
if objective_value (mle) > objective_value (mle₀)
56
56
GeneralizedExtremeValue (value (μ), value (σ), value (ξ))
57
57
else
58
58
GeneralizedExtremeValue (value (μ₀), value (σ₀), 0. )
59
59
end
60
- elseif status == OK
60
+ elseif status ∈ OK
61
61
GeneralizedExtremeValue (value (μ), value (σ), value (ξ))
62
- elseif status₀ == OK
62
+ elseif status₀ ∈ OK
63
63
GeneralizedExtremeValue (value (μ₀), value (σ₀), 0. )
64
64
else
65
65
error (" could not fit distribution to maxima" )
@@ -110,18 +110,18 @@ function fit_mle(::Type{GeneralizedPareto}, pm::PeakOverThreshold)
110
110
status₀ = termination_status (mle₀)
111
111
112
112
# acceptable statuses
113
- OK = MOI. OPTIMAL
113
+ OK = ( MOI. OPTIMAL, MOI . LOCALLY_SOLVED)
114
114
115
- if status == OK && status₀ == OK
115
+ if status ∈ OK && status₀ ∈ OK
116
116
# choose the maximum amongst the two
117
117
if objective_value (mle) > objective_value (mle₀)
118
118
GeneralizedPareto (0.0 , value (σ), value (ξ))
119
119
else
120
120
GeneralizedPareto (0.0 , value (σ₀), 0.0 )
121
121
end
122
- elseif status == OK
122
+ elseif status ∈ OK
123
123
GeneralizedPareto (0.0 , value (σ), value (ξ))
124
- elseif status₀ == OK
124
+ elseif status₀ ∈ OK
125
125
GeneralizedPareto (0.0 , value (σ₀), 0.0 )
126
126
else
127
127
error (" could not fit distribution to maxima" )
0 commit comments