Package de.labathome.trustconstr.records
Class State
java.lang.Object
de.labathome.trustconstr.records.State
- Direct Known Subclasses:
StateIP
Mutable state threaded through the equality-path SQP outer loop. Updated
once per iteration by
MinimizeTrustConstr.updateState(de.labathome.trustconstr.records.State, de.labathome.trustconstr.matrix.Matrix, boolean, de.labathome.trustconstr.ScalarFunction, de.labathome.trustconstr.records.PreparedConstraint[], long, double, double, de.labathome.trustconstr.records.CGInfo)
and consulted by the user-supplied IterationCallback.-
Field Summary
FieldsModifier and TypeFieldDescriptionintNumber of CG iterations performed in the most recent inner solve.Why the most recent CG inner solve terminated.Matrix[]Constraint residual vectors, one entry per constraint source.doubleCurrent merit-function penalty (therhoinf(x) + rho ||c(x)||).doubleInfinity-norm of the constraint residual at the current iterate.longWall-clock time elapsed since the start of the run, in nanoseconds.doubleObjective valuef(x)at the current iterate.Gradientgradf(x)at the current iterate.Matrix[]Constraint Jacobians, one entry per constraint source.Lagrangian gradientgradf(x) + Sum v_i gradc_i(x)at the current iterate.intNumber of completed outer iterations.int[]Per-constraint count of constraint evaluations.int[]Per-constraint count of constraint Hessian evaluations.int[]Per-constraint count of constraint Jacobian evaluations.intNumber of objective evaluations so far.intNumber of gradient evaluations so far.intNumber of Hessian evaluations so far.doubleKKT optimality measure (infinity-norm of the Lagrangian gradient).doubleCurrent trust-region radius.Matrix[]Lagrange multipliers, one entry per constraint source.Current iterate (n x 1). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
nIter
public int nIterNumber of completed outer iterations. -
numEval
public int numEvalNumber of objective evaluations so far. -
numGradientEval
public int numGradientEvalNumber of gradient evaluations so far. -
numHessianEval
public int numHessianEvalNumber of Hessian evaluations so far. -
numConstraintEval
public int[] numConstraintEvalPer-constraint count of constraint evaluations. -
numConstraintJacobianEval
public int[] numConstraintJacobianEvalPer-constraint count of constraint Jacobian evaluations. -
numConstraintHessianEval
public int[] numConstraintHessianEvalPer-constraint count of constraint Hessian evaluations. -
executionTime
public long executionTimeWall-clock time elapsed since the start of the run, in nanoseconds. -
trustRadius
public double trustRadiusCurrent trust-region radius. -
constraintPenalty
public double constraintPenaltyCurrent merit-function penalty (therhoinf(x) + rho ||c(x)||). -
cgNIter
public int cgNIterNumber of CG iterations performed in the most recent inner solve. -
cgStopCond
Why the most recent CG inner solve terminated. -
x
Current iterate (n x 1). -
fun
public double funObjective valuef(x)at the current iterate. -
grad
Gradientgradf(x)at the current iterate. -
v
Lagrange multipliers, one entry per constraint source. -
constr
Constraint residual vectors, one entry per constraint source. -
jac
Constraint Jacobians, one entry per constraint source. -
lagrangianGrad
Lagrangian gradientgradf(x) + Sum v_i gradc_i(x)at the current iterate. -
optimality
public double optimalityKKT optimality measure (infinity-norm of the Lagrangian gradient). -
constrViolation
public double constrViolationInfinity-norm of the constraint residual at the current iterate.
-
-
Constructor Details
-
State
public State()Default-construct aStatewith all fields at their zero/null defaults.
-