Skip to content

Commit 8d2ef32

Browse files
committed
Formatter
1 parent 52ad3e9 commit 8d2ef32

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

src/stopping_criterion.jl

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,10 @@ function (scs::GroupStoppingCriterionState)(
266266
)
267267
k = get_iteration(state)
268268
(k == 0) && (scs.at_iteration = -1) # reset on init
269-
if all(st -> st[2](problem, algorithm, state, st[1]), zip(sc.criteria, scs.criteria_states))
269+
if all(
270+
st -> st[2](problem, algorithm, state, st[1]),
271+
zip(sc.criteria, scs.criteria_states),
272+
)
270273
scs.at_iteration = k
271274
return true
272275
end
@@ -281,7 +284,10 @@ function (scs::GroupStoppingCriterionState)(
281284
)
282285
k = get_iteration(state)
283286
(k == 0) && (c.at_iteration = -1) # reset on init
284-
if any(st -> st[2](problem, algorithm, state, st[1]), zip(sc.criteria, scs.criteria_states))
287+
if any(
288+
st -> st[2](problem, algorithm, state, st[1]),
289+
zip(sc.criteria, scs.criteria_states),
290+
)
285291
c.at_iteration = k
286292
return true
287293
end
@@ -434,7 +440,12 @@ function initialize_state!(
434440
return scs
435441
end
436442

437-
function (scs::StopAfterTimePeriodState)(::Problem, ::Algorithm, state::State, sc::StopAfter)
443+
function (scs::StopAfterTimePeriodState)(
444+
::Problem,
445+
::Algorithm,
446+
state::State,
447+
sc::StopAfter,
448+
)
438449
k = get_iteration(state)
439450
if value(scs.start) == 0 || k <= 0 # (re)start timer
440451
scs.at_iteration = -1

0 commit comments

Comments
 (0)