Interface StoppingCriterion
public interface StoppingCriterion
Termination predicate consulted by the inner SQP loop. Lighter-weight
counterpart to
GlobalStoppingCriteria for code paths that don't
need the barrier-related quantities.-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldStop(State state, Matrix x, boolean lastIterationFailed, double optimality, double constrViolation, double trustRadius, double penalty, CGInfo cgInfo)
-
Method Details
-
shouldStop
boolean shouldStop(State state, Matrix x, boolean lastIterationFailed, double optimality, double constrViolation, double trustRadius, double penalty, CGInfo cgInfo) - Parameters:
state- current outer-iteration statex- current iteratelastIterationFailed- whether the previous trial step was rejectedoptimality- KKT optimality measureconstrViolation- infinity-norm of the constraint residualtrustRadius- current trust-region radiuspenalty- current merit-function penaltycgInfo- info from the projected-CG inner solve- Returns:
trueiff the inner loop should terminate
-