Spaces:
Running
Running
MilesCranmer
commited on
Commit
·
a595f09
1
Parent(s):
cedbbde
Update constant optimization settings
Browse files
eureqa.jl
CHANGED
@@ -523,7 +523,7 @@ function optimizeConstants(member::PopMember)::PopMember
|
|
523 |
if size(x0)[1] == 1
|
524 |
result = Optim.optimize(f, x0, Optim.Newton(), Optim.Options(iterations=20))
|
525 |
else
|
526 |
-
result = Optim.optimize(f, x0, Optim.
|
527 |
end
|
528 |
if Optim.converged(result)
|
529 |
setConstants(member.tree, result.minimizer)
|
|
|
523 |
if size(x0)[1] == 1
|
524 |
result = Optim.optimize(f, x0, Optim.Newton(), Optim.Options(iterations=20))
|
525 |
else
|
526 |
+
result = Optim.optimize(f, x0, Optim.NelderMead(), Optim.Options(iterations=100))
|
527 |
end
|
528 |
if Optim.converged(result)
|
529 |
setConstants(member.tree, result.minimizer)
|