MilesCranmer commited on
Commit
a595f09
·
1 Parent(s): cedbbde

Update constant optimization settings

Browse files
Files changed (1) hide show
  1. eureqa.jl +1 -1
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.LBFGS(), Optim.Options(iterations=10))
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)