Interface SQPCustomCriterion

All Superinterfaces:
OptimizationData
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SQPCustomCriterion extends OptimizationData
Custom convergence criterion for an SQP optimizer.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    converged(double alpha, double dxNorm, double dxHdx, double complSlack, double kkt, double viol, double funDiff, double xNorm, double funNorm)
    Checks whether the SQP iteration has converged.
  • Method Details

    • converged

      boolean converged(double alpha, double dxNorm, double dxHdx, double complSlack, double kkt, double viol, double funDiff, double xNorm, double funNorm)
      Checks whether the SQP iteration has converged.
      Parameters:
      alpha - accepted step length
      dxNorm - norm of the primal step
      dxHdx - quadratic step measure
      complSlack - complementary-slackness residual
      kkt - KKT residual
      viol - constraint violation
      funDiff - objective-function difference
      xNorm - variables norm
      funNorm - objective-function norm
      Returns:
      true if convergence has been reached