Skip to content

Commit 3955af8

Browse files
committed
Fix code messed up by merge
1 parent 536cc72 commit 3955af8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/NumericalCalculations.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ function _solveLambdaNumeric( fcttype::Union{F,<:Mixture{N_,F,S,T}},
104104
return sum(residual.^2)
105105
end
106106

107-
# separate statements to try improve type-stability
108-
r = if islen1
109-
Optim.optimize(cost, X0c, Optim.BFGS())
110-
else
111-
Optim.optimize(cost, X0c, Optim.NelderMead())
112-
end
113-
107+
# # separate statements to try improve type-stability
108+
# r = if islen1
109+
# Optim.optimize(cost, X0c, Optim.BFGS())
110+
# else
111+
# Optim.optimize(cost, X0c, Optim.NelderMead())
112+
# end
113+
alg = islen1 ? Optim.BFGS() : Optim.NelderMead()
114114
X0 = hat(M, ϵ, X0c)
115115
p0 = exp(M, ϵ, X0)
116116
r = Optim.optimize(Xc->cost(p0, X0, Xc), X0c, alg)

0 commit comments

Comments
 (0)