Interface GlobalStoppingCriteria
public interface GlobalStoppingCriteria
Termination predicate consulted by the trust-region SQP and interior-point
loops once per outer iteration. Implementations decide whether the
algorithm has converged based on the current optimality and constraint-
violation measures, the trust-region radius, the merit-function penalty,
and IP-specific quantities (barrier parameter, inner-loop tolerance).
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldStop(State state, Matrix x, boolean lastIterationFailed, double optimality, double constrViolation, double trustRadius, double penalty, CGInfo cgInfo, double barrierParameter, double tolerance)
-
Method Details
-
shouldStop
boolean shouldStop(State state, Matrix x, boolean lastIterationFailed, double optimality, double constrViolation, double trustRadius, double penalty, CGInfo cgInfo, double barrierParameter, double tolerance) - Parameters:
state- current outer-iteration statex- current iteratelastIterationFailed- whether the previous trial step was rejectedoptimality- KKT optimality measure (infinity-norm of Lagrangian gradient)constrViolation- infinity-norm of the constraint residualtrustRadius- current trust-region radiuspenalty- current merit-function penaltycgInfo- info from the projected-CG inner solvebarrierParameter- IP-only: current log-barrier coefficienttolerance- IP-only: current barrier-subproblem tolerance- Returns:
trueiff the outer loop should terminate
-