Skip to content

Commit

Permalink
give access to g_calls_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Ortner committed Aug 8, 2019
1 parent 9c97c92 commit 27172ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function minimise!(at::AbstractAtoms;
store_trace = false,
extended_trace = false,
maxstep = Inf,
callback = nothing)
callback = nothing,
g_calls_limit = 1_000)

# create an objective function
if robust_energy_difference
Expand Down Expand Up @@ -130,6 +131,7 @@ function minimise!(at::AbstractAtoms;

results = optimize( obj_f, obj_g!, dofs(at), optimiser,
Optim.Options( f_tol = ftol, g_tol = gtol,
g_calls_limit = g_calls_limit,
store_trace = store_trace,
extended_trace = extended_trace,
callback = callback,
Expand Down

0 comments on commit 27172ab

Please sign in to comment.