You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/plans/stopping_criterion.jl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -825,7 +825,7 @@ function status_summary(c::StopWhenStepsizeLess; context = :default)
825
825
(context ==:short) &&returnrepr(c)
826
826
has_stopped = (c.at_iteration >=0)
827
827
s = has_stopped ?"reached":"not reached"
828
-
return (_is_inline(context) ?"stepsize s < $(c.threshold):$(_MANOPT_INDENT)":"A stopping criterion to stop when the step size is less than $(c.threshold)\n$(_MANOPT_INDENT)") *"$s"
828
+
return (_is_inline(context) ?"Stepsize s < $(c.threshold):$(_MANOPT_INDENT)":"A stopping criterion to stop when the step size is less than $(c.threshold)\n$(_MANOPT_INDENT)") *"$s"
829
829
end
830
830
function Base.show(io::IO, c::StopWhenStepsizeLess)
head = (!inline?"Stop when the population of a swarm is concentrated in eher function values (tolerance: $(c.tol_f)) or points (tolerance: $(c.tol_p))\n$(_MANOPT_INDENT)":"")
427
+
head = (!_is_inline(context)?"Stop when the population of a swarm is concentrated in eher function values (tolerance: $(c.tol_f)) or points (tolerance: $(c.tol_p))\n$(_MANOPT_INDENT)":"")
427
428
return head *"Population concentration: in f < $(c.tol_f) and in p < $(c.tol_p):$(_MANOPT_INDENT)$s"
return"range of best objective values in the last $(length(c.best_value_history)) generations and all objective values in the current one < $(c.tol) :$(_MANOPT_INDENT)$s"
@@ -911,6 +912,6 @@ function get_reason(c::StopWhenPopulationCostConcentrated)
return (_is_inline(context) ?"Residual reduced by factor $(c.κ) or power $(c.θ):$(_MANOPT_INDENT)":"A stopping criterion used within tCG to check whether the residual is reduced by factor $(c.κ) or power 1+$(c.θ)\n$(_MANOPT_INDENT)") *"$s"
@@ -275,13 +276,13 @@ function get_reason(c::StopWhenTrustRegionIsExceeded)
return (_is_inline(context) ?"Trust region exceeded:$(_MANOPT_INDENT)":"A stopping criterion to stop when the trust region radius ($(c.trr)) is exceeded.\n$(_MANOPT_INDENT)") *"$s"
0 commit comments