Skip to content

Commit

Permalink
start iteration option in default_has_oscillations
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwegert committed Apr 7, 2024
1 parent 1538d6d commit 4c75918
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Optimisers/AugmentedLagrangian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ end

get_history(m::AugmentedLagrangian) = m.history

function default_has_oscillations(m::AugmentedLagrangian,os_it;itlength=25,algo=:zerocrossing)
function default_has_oscillations(m::AugmentedLagrangian,os_it;itlength=25,
itstart=2itlength,algo=:zerocrossing)
h = m.history
it = get_last_iteration(h)
if it < 2itlength || it < os_it + itlength + 1
if it < itstart || it < os_it + itlength + 1
return false
end

Expand Down

0 comments on commit 4c75918

Please sign in to comment.