Uses of Class
de.labathome.trustconstr.matrix.Matrix
Packages that use Matrix
Package
Description
-
Uses of Matrix in de.labathome.trustconstr
Fields in de.labathome.trustconstr declared as MatrixModifier and TypeFieldDescriptionprotected final MatrixLinearVectorFunction.AConstraint matrix; mirrors scipy'sself.J.protected MatrixLinearVectorFunction.fprotected final MatrixLinearVectorFunction.HConstant zero Hessian (n x n); shared across calls.protected MatrixLinearVectorFunction.vMost recently set Lagrange multipliers (fromLinearVectorFunction.hess(Matrix, Matrix)).protected MatrixLinearVectorFunction.xMost recently evaluated point.Methods in de.labathome.trustconstr that return MatrixModifier and TypeMethodDescriptionstatic MatrixNumDiff.approxDerivative(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Finite-difference Jacobian of a vector-valued function with extra args.static MatrixNumDiff.approxDerivative(Function<Matrix, Matrix> f, Matrix x0, Matrix f0, FiniteDifferenceOptions options) Finite-difference Jacobian of a vector-valued function.static MatrixNumDiff.approxDerivative(ToDoubleFunction<Matrix> f, Matrix x0, double f0, FiniteDifferenceOptions options) Finite-difference gradient of a real-valued function of a vector argument.static MatrixNumDiff.approxDerivativeWithWorkers(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args, ExecutorService executor) Strict scipyapprox_derivative(..., workers=...)counterpart: computes a dense FD Jacobian column-by-column with the per-column evaluations dispatched in parallel throughexecutor.CanonicalConstraint.InitialCanonical.cEq()Returns the value of thecEqrecord component.CanonicalConstraint.InitialCanonical.cIneq()Returns the value of thecIneqrecord component.static MatrixNumDiff.computeAbsoluteStep(Matrix relStep, Matrix x0, Matrix f0, FiniteDifferenceMethod method) Compute the absolute finite-difference step from a relative step.CombinedConstraint.constrIneq(Matrix x) LinearConstraint.constrIneq(Matrix x) NonlinearConstraint.constrIneq(Matrix x) SparsityForcedConstraint.constrIneq(Matrix x) static Matrix[]QPSubproblem.eqpKktFact(Matrix H, Matrix c, Matrix A, Matrix b) Solve the equality-constrained quadratic programLinearVectorFunction.f()NonlinearVectorFunction.f()VectorFunction.f()ScalarFunction.g()DANGER ZONE: returns the live internal gradient buffer; callers must not mutate it.LinearConstraint.getA()FullHessianUpdateStrategy.getMatrix()BarrierSubproblem.getScaling(Matrix z) Returns the diagonal scaling matrixdiag([1...1, s])that decouples the variable rows from the slack rows in the trust-region step.Slice off thenIneq x 1slack block from an augmented iteratez = [x; s].BarrierSubproblem.getVariables(Matrix z) Slice off thenVars x 1variable block from an augmented iteratez = [x; s].ScalarFunction.H()DANGER ZONE: returns the live internal Hessian buffer; callers must not mutate it.VectorFunction.H()Evaluate the constraint Hessian-of-Lagrangian atx.LinearVectorFunction.J()NonlinearVectorFunction.J()VectorFunction.J()CanonicalConstraint.InitialCanonical.JEq()Returns the value of theJEqrecord component.CanonicalConstraint.InitialCanonical.JIneq()Returns the value of theJIneqrecord component.CombinedConstraint.lagrangianContribution(Matrix x, double[] vEq, double[] vIneq) Sum of constraint-Hessian-of-Lagrangian contributions across all sources.NonlinearConstraint.lagrangianContribution(Matrix x, double[] vEq, double[] vIneq) Constraint Hessian-of-LagrangianSum_i v[i] * H_{c_i}(x), combining equality and inequality multipliers into a single Hessian contribution.SparsityForcedConstraint.lagrangianContribution(Matrix x, double[] vEq, double[] vIneq) Pass-through to the source's Lagrangian-Hessian contribution.Scaled Lagrangian Hessian with respect to the slackss, i.e.ScalarFunction.lowestX()static MatrixQPSubproblem.modifiedDogleg(Matrix A, Object Y, Matrix b, double trustRadius, double[] lb, double[] ub) Approximately minimize1/2 ||A x + b||^2subject to||x|| < Deltaandlb ≤ x ≤ ubusing a modified dogleg approach.LinearVectorFunction.v()NonlinearVectorFunction.v()VectorFunction.v()Methods in de.labathome.trustconstr that return types with arguments of type MatrixModifier and TypeMethodDescriptionNonlinearConstraint.userFun()NonlinearConstraint.userFun()NonlinearConstraint.userHess()NonlinearConstraint.userHess()NonlinearConstraint.userHess()NonlinearConstraint.userJac()NonlinearConstraint.userJac()Methods in de.labathome.trustconstr with parameters of type MatrixModifier and TypeMethodDescriptionstatic AdjustedDifferencingSchemeNumDiff.adjustSchemeToBounds(Matrix x0, Matrix h, int numSteps, FiniteDifferenceMethod scheme, Matrix lb, Matrix ub) Adjust finite-difference step sizes so that the perturbed point stays within[lb, ub]per dimension, flipping direction or switching forward / backward as needed.static MatrixNumDiff.approxDerivative(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Finite-difference Jacobian of a vector-valued function with extra args.static MatrixNumDiff.approxDerivative(Function<Matrix, Matrix> f, Matrix x0, Matrix f0, FiniteDifferenceOptions options) Finite-difference Jacobian of a vector-valued function.static MatrixNumDiff.approxDerivative(ToDoubleFunction<Matrix> f, Matrix x0, double f0, FiniteDifferenceOptions options) Finite-difference gradient of a real-valued function of a vector argument.static LinearOperatorNumDiff.approxDerivativeAsLinearOperator(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Strict scipyapprox_derivative(..., as_linear_operator=True)counterpart: returns a matrix-freeLinearOperatorthat applies the FD JacobianJ(x0) * pon demand.static ApproxDerivativeResultNumDiff.approxDerivativeFullOutput(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Strict scipyapprox_derivative(..., full_output=True)counterpart: returns the FD Jacobian alongside an info dict carrying metadata about the computation.static MatrixNumDiff.approxDerivativeWithWorkers(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args, ExecutorService executor) Strict scipyapprox_derivative(..., workers=...)counterpart: computes a dense FD Jacobian column-by-column with the per-column evaluations dispatched in parallel throughexecutor.protected doubleHeuristic scaling factor for the initial Hessian (or inverse-Hessian) approximation, based on Nocedal & Wright (2006), p.143 formula (6.20).static MatrixNumDiff.computeAbsoluteStep(Matrix relStep, Matrix x0, Matrix f0, FiniteDifferenceMethod method) Compute the absolute finite-difference step from a relative step.CombinedConstraint.constrIneq(Matrix x) LinearConstraint.constrIneq(Matrix x) NonlinearConstraint.constrIneq(Matrix x) SparsityForcedConstraint.constrIneq(Matrix x) Absolute step size for FD gradient/Hessian, taking precedence over the relative step.static Matrix[]QPSubproblem.eqpKktFact(Matrix H, Matrix c, Matrix A, Matrix b) Solve the equality-constrained quadratic programstatic StatefulResultEqualityConstrainedSQP.eqSQP(IFunctionAndConstraint funAndConstr, IGradientAndJacobian gradAndJac, LagrangeHessian lagrHess, Matrix x0, double fun0, Matrix grad0, Matrix constr0, Matrix jac0, StoppingCriterion stopCrit, State state, double initialPenalty, double initialTrustRadius, ProjectionMethod factorizationMethod, Matrix trustLb, Matrix trustUb, LinearOperator scaling) Solve a nonlinear equality-constrained problem using trust-region SQP.VectorFunction.VectorFunctionFactory.finiteDiffJacSparsity(Matrix finiteDiffJacSparsity) Specify a Jacobian sparsity pattern: a matrix with non-zero elements exactly where non-zero Jacobian entries are expected.ScalarFunction.ScalarFunctionFactory.finiteDiffRelStep(Matrix finiteDiffRelStep) Per-component relative step size for the FD gradient/Hessian.VectorFunction.VectorFunctionFactory.finiteDiffRelStep(Matrix finiteDiffRelStep) Per-component relative step size for the FD Jacobian/Hessian.Evaluate the canonical equality and inequality residuals atx.doubleBarrierSubproblem.funAndConstr(Matrix z) Evaluate the barrier function and the augmented constraints at a given augmented iteratez = [x; s]:BarrierSubproblem.getScaling(Matrix z) Returns the diagonal scaling matrixdiag([1...1, s])that decouples the variable rows from the slack rows in the trust-region step.Slice off thenIneq x 1slack block from an augmented iteratez = [x; s].BarrierSubproblem.getVariables(Matrix z) Slice off thenVars x 1variable block from an augmented iteratez = [x; s].BarrierSubproblem.gradAndJac(Matrix z) Returns the scaled gradient and Jacobian for the augmented system:static int[]NumDiff.groupColumns(Matrix A) Group columns of a 2-D matrix for sparse finite differencing.static int[]NumDiff.groupColumns(Matrix A, int[] order) Group columns of a 2-D matrix for sparse FD with a user-supplied permutation that controls greedy-grouping order.Evaluate the constraint Hessian-of-Lagrangian atx.CanonicalConstraint.initialConstraintsAsCanonical(int n, List<CanonicalConstraint> canonicals, Matrix x0, boolean sparseJacobian) Stack the canonical residuals and Jacobians of every constraint incanonicalsat the starting iteratex0.Evaluate the canonical equality and inequality Jacobians atx.CombinedConstraint.lagrangianContribution(Matrix x, double[] vEq, double[] vIneq) Sum of constraint-Hessian-of-Lagrangian contributions across all sources.NonlinearConstraint.lagrangianContribution(Matrix x, double[] vEq, double[] vIneq) Constraint Hessian-of-LagrangianSum_i v[i] * H_{c_i}(x), combining equality and inequality multipliers into a single Hessian contribution.SparsityForcedConstraint.lagrangianContribution(Matrix x, double[] vEq, double[] vIneq) Pass-through to the source's Lagrangian-Hessian contribution.BarrierSubproblem.lagrangianHessian(Matrix z, Matrix v) Full augmented Lagrangian Hessian, block-diagonal:Scaled Lagrangian Hessian with respect to the slackss, i.e.Lagrangian Hessian with respect tox(theHxblock).static LinearOperatorNumDiff.linearOperatorDifference(Function<Matrix, Matrix> fun, Matrix x0, Matrix f0, Matrix relStep, FiniteDifferenceMethod method) Build aLinearOperatorthat applies the FD JacobianJ(x0)*pon demand, without materialising the full Jacobian.static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Matrix x0, C constraint, int maxIter, double xtol, double gtol) Most general convenience overload: only the objective function is supplied.static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, HessianUpdateStrategy strategy, Matrix x0, C constraint, int maxIter, double xtol, double gtol) Convenience overload accepting anyHessianUpdateStrategy(BFGS, SR1, custom).static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, Matrix x0, C constraint, int maxIter, double xtol, double gtol) Convenience overload that approximates the objective Hessian via a freshBFGSupdate strategy -- the scipy-default behaviour whenhessis omitted from the user call.static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, Function<Matrix, Matrix> hess, Matrix x0, C constraint, int maxIter, double xtol, double gtol) General-purpose entry point: routes toMinimizeTrustConstr.minimizeEqualityConstrained(java.util.function.Function<de.labathome.trustconstr.matrix.Matrix, java.lang.Double>, java.util.function.Function<de.labathome.trustconstr.matrix.Matrix, de.labathome.trustconstr.matrix.Matrix>, java.util.function.Function<de.labathome.trustconstr.matrix.Matrix, de.labathome.trustconstr.matrix.Matrix>, de.labathome.trustconstr.matrix.Matrix, C, int, double, double)when the constraint has only equality rows, and to aTrustRegionInteriorPoint-driven path when any inequality rows are present.static OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, Function<Matrix, Matrix> hess, Matrix x0, Object[] constraints, int maxIter, double xtol, double gtol) Multi-constraint entry point: combines the supplied constraints into aCombinedConstraintand dispatches as inthe single-constraint overload.static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimizeEqualityConstrained(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, Function<Matrix, Matrix> hess, Matrix x0, C eq, int maxIter, double xtol, double gtol) Convenience entry point covering the equality-constrained slice of the trust-constr API: a scalar objective with an explicit gradient and Hessian, subject to optional pure-equality constraints from a singleLinearConstraintorNonlinearConstraint.static OptimizeResultMinimizeTrustConstr.minimizeTrustConstr(ToDoubleBiFunction<Matrix, Object> fun, Matrix x0, Object args, BiFunction<Matrix, Object, Matrix> grad, BiFunction<Matrix, Object, Matrix> hess, HessianProduct hessp, Bounds bounds, Object constraints, double xTol, double gTol, double barrierTol, Optional<Boolean> sparseJacobian, IterationCallback callback, int maxIter, int verbose, Matrix finiteDifferenceRelStep, double initialConstraintPenalty, double initialTrustRadius, double initialBarrierParameter, double initialBarrierTolerance, ProjectionMethod factorizationMethod, boolean disp) Minimize a scalar function subject to constraints.static OptimizeResultMinimizeTrustConstr.minimizeTrustConstr(ToDoubleBiFunction<Matrix, Object> fun, Matrix x0, Object args, BiFunction<Matrix, Object, Matrix> grad, BiFunction<Matrix, Object, Matrix> hess, HessianProduct hessp, Bounds bounds, Object constraints, double xTol, double gTol, double barrierTol, Optional<Boolean> sparseJacobian, IterationCallback callback, int maxIter, int verbose, Matrix finiteDifferenceRelStep, double initialConstraintPenalty, double initialTrustRadius, double initialBarrierParameter, double initialBarrierTolerance, ProjectionMethod factorizationMethod, boolean disp, ExecutorService workers) Strict scipy_minimize_trustregion_constr(..., workers=N)counterpart.static MatrixQPSubproblem.modifiedDogleg(Matrix A, Object Y, Matrix b, double trustRadius, double[] lb, double[] ub) Approximately minimize1/2 ||A x + b||^2subject to||x|| < Deltaandlb ≤ x ≤ ubusing a modified dogleg approach.static doubleProjections.orthogonality(Matrix A, Matrix g) Measure orthogonality between a vector and the null space of a matrix.static CGInfoQPSubproblem.projectedCG(LinearOperator H, Matrix c, Object Z, Object Y, Matrix b) Solve the equality-constrained quadratic programstatic CGInfoQPSubproblem.projectedCG(LinearOperator H, Matrix c, Object Z, Object Y, Matrix b, double trustRadius, double[] lb, double[] ub, double tolerance) Solve EQP problem with projected CG method.static CGInfoQPSubproblem.projectedCG(LinearOperator H, Matrix c, Object Z, Object Y, Matrix b, double trustRadius, double[] lb, double[] ub, double tolerance, long maxIterations, long maxInfeasibleIterations, boolean returnAll) Solve the equality-constrained quadratic programstatic LinearOperator[]Projections.projections(Matrix A) Convenience overload: auto-select factorisation method, defaults for orthogonality / refinement / numerical-zero tolerances.static LinearOperator[]Projections.projections(Matrix A, ProjectionMethod method) Convenience overload with an explicit factorisation method.static LinearOperator[]Projections.projections(Matrix A, ProjectionMethod method, double orthTol) Convenience overload exposing the orthogonality tolerance.static LinearOperator[]Projections.projections(Matrix A, ProjectionMethod method, double orthTol, int maxRefine) Convenience overload exposing the maximum number of refinement iterations.static LinearOperator[]Projections.projections(Matrix A, ProjectionMethod method, double orthTol, int maxRefine, double tolerance) Return three linear operators related with a given matrix A.Lower and upper residuals atx:sl = A x - lb(positive iff lower bound satisfied),sb = ub - A x(positive iff upper bound satisfied).booleanBarrierSubproblem.stoppingCriteria(State state, Matrix z, boolean lastIterationFailed, double optimality, double constrViolation, double trustRadius, double penalty, CGInfo cgInfo) Stopping criterion for the barrier subproblem; mirrors formula (2.3) from Byrd-Hribar-Nocedal (1999), p.879.static StatefulResultTrustRegionInteriorPoint.trustRegionInteriorPoint(ToDoubleBiFunction<Matrix, Object> fun, BiFunction<Matrix, Object, Matrix> grad, LagrangeHessian lagrHess, int nVars, int nIneq, int nEq, Constraint constr, Jacobian jac, Matrix x0, double fun0, Matrix grad0, Matrix constrIneq0, Matrix jacIneq0, Matrix constrEq0, Matrix jacEq0, GlobalStoppingCriteria stopCrit, boolean[] enforceFeasibility, double xtol, State state, double initialBarrierParameter, double initialTolerance, double initialPenalty, double initialTrustRadius, ProjectionMethod factorizationMethod) Trust-region interior-point solve.voidstatic StateMinimizeTrustConstr.updateState(State state, Matrix x, boolean lastIterationFailed, ScalarFunction objective, PreparedConstraint[] preparedConstraints, long startTime, double trustRadius, double constraintPenalty, CGInfo cgInfo) Refresh the equality-pathStaterecord after an outer iteration (the function value, gradient, optimality, constraint violation, trust-region and CG fields).static StateIPMinimizeTrustConstr.updateStateIP(StateIP state, Matrix x, boolean lastIterationFailed, ScalarFunction objective, PreparedConstraint[] preparedConstraints, long startTime, double trustRadius, double constraintPenalty, CGInfo cgInfo, double barrierParameter, double barrierTolerance) Refresh the IP-pathStateIPrecord after an outer iteration: delegates toMinimizeTrustConstr.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 then sets the barrier-specific fields.voidCombinedConstraint.validateKeepFeasibleAtStart(Matrix x0) Walk all sources and validate that any row markedkeep_feasible=Trueis satisfied atx0.voidLinearConstraint.validateKeepFeasibleAtStart(Matrix x0) ThrowsIllegalArgumentExceptionif any row markedkeepFeasible[i] == trueis violated at the supplied starting point.voidNonlinearConstraint.validateKeepFeasibleAtStart(Matrix x0) ThrowsIllegalArgumentExceptionif any row markedkeepFeasible[i] == trueis violated at the supplied starting point.voidSparsityForcedConstraint.validateKeepFeasibleAtStart(Matrix x0) Pass-through to the source's keep-feasible-at-start validation.Provide the initial point for evaluatingfun.Provide the initial point.Method parameters in de.labathome.trustconstr with type arguments of type MatrixModifier and TypeMethodDescriptionstatic MatrixNumDiff.approxDerivative(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Finite-difference Jacobian of a vector-valued function with extra args.static MatrixNumDiff.approxDerivative(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Finite-difference Jacobian of a vector-valued function with extra args.static MatrixNumDiff.approxDerivative(Function<Matrix, Matrix> f, Matrix x0, Matrix f0, FiniteDifferenceOptions options) Finite-difference Jacobian of a vector-valued function.static MatrixNumDiff.approxDerivative(Function<Matrix, Matrix> f, Matrix x0, Matrix f0, FiniteDifferenceOptions options) Finite-difference Jacobian of a vector-valued function.static doubleNumDiff.approxDerivative(ToDoubleFunction<Matrix> f, double x0, double f0, FiniteDifferenceOptions options) Finite-difference gradient of a scalar function of a scalar argument with a precomputedf0.static doubleNumDiff.approxDerivative(ToDoubleFunction<Matrix> f, double x0, FiniteDifferenceOptions options) Finite-difference gradient of aToDoubleFunctionof a scalar argument.static MatrixNumDiff.approxDerivative(ToDoubleFunction<Matrix> f, Matrix x0, double f0, FiniteDifferenceOptions options) Finite-difference gradient of a real-valued function of a vector argument.static LinearOperatorNumDiff.approxDerivativeAsLinearOperator(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Strict scipyapprox_derivative(..., as_linear_operator=True)counterpart: returns a matrix-freeLinearOperatorthat applies the FD JacobianJ(x0) * pon demand.static LinearOperatorNumDiff.approxDerivativeAsLinearOperator(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Strict scipyapprox_derivative(..., as_linear_operator=True)counterpart: returns a matrix-freeLinearOperatorthat applies the FD JacobianJ(x0) * pon demand.static ApproxDerivativeResultNumDiff.approxDerivativeFullOutput(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Strict scipyapprox_derivative(..., full_output=True)counterpart: returns the FD Jacobian alongside an info dict carrying metadata about the computation.static ApproxDerivativeResultNumDiff.approxDerivativeFullOutput(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args) Strict scipyapprox_derivative(..., full_output=True)counterpart: returns the FD Jacobian alongside an info dict carrying metadata about the computation.static MatrixNumDiff.approxDerivativeWithWorkers(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args, ExecutorService executor) Strict scipyapprox_derivative(..., workers=...)counterpart: computes a dense FD Jacobian column-by-column with the per-column evaluations dispatched in parallel throughexecutor.static MatrixNumDiff.approxDerivativeWithWorkers(BiFunction<Matrix, Object, Matrix> fun, Matrix x0, Matrix f0, FiniteDifferenceOptions options, Object args, ExecutorService executor) Strict scipyapprox_derivative(..., workers=...)counterpart: computes a dense FD Jacobian column-by-column with the per-column evaluations dispatched in parallel throughexecutor.ScalarFunction.ScalarFunctionFactory.fun(ToDoubleBiFunction<Matrix, Object> fun) Set the objective function to optimize.Set the vector-valued function to evaluate.Set the vector-valued function to evaluate.ScalarFunction.ScalarFunctionFactory.grad(BiFunction<Matrix, Object, Matrix> grad) Provide an analytic gradientgrad(x, args) -> gradf(x).ScalarFunction.ScalarFunctionFactory.grad(BiFunction<Matrix, Object, Matrix> grad) Provide an analytic gradientgrad(x, args) -> gradf(x).ScalarFunction.ScalarFunctionFactory.hess(BiFunction<Matrix, Object, Matrix> hess) Provide an analytic Hessianhess(x, args) -> grad^2f(x).ScalarFunction.ScalarFunctionFactory.hess(BiFunction<Matrix, Object, Matrix> hess) Provide an analytic Hessianhess(x, args) -> grad^2f(x).VectorFunction.VectorFunctionFactory.hess(BiFunction<Matrix, Matrix, Matrix> hess) Provide an analytic constraint Hessian-of-Lagrangian(x, v) -> Sum v[i] H_{c_i}(x).VectorFunction.VectorFunctionFactory.hess(BiFunction<Matrix, Matrix, Matrix> hess) Provide an analytic constraint Hessian-of-Lagrangian(x, v) -> Sum v[i] H_{c_i}(x).VectorFunction.VectorFunctionFactory.hess(BiFunction<Matrix, Matrix, Matrix> hess) Provide an analytic constraint Hessian-of-Lagrangian(x, v) -> Sum v[i] H_{c_i}(x).Provide an analytic Jacobian.Provide an analytic Jacobian.static LinearOperatorNumDiff.linearOperatorDifference(Function<Matrix, Matrix> fun, Matrix x0, Matrix f0, Matrix relStep, FiniteDifferenceMethod method) Build aLinearOperatorthat applies the FD JacobianJ(x0)*pon demand, without materialising the full Jacobian.static LinearOperatorNumDiff.linearOperatorDifference(Function<Matrix, Matrix> fun, Matrix x0, Matrix f0, Matrix relStep, FiniteDifferenceMethod method) Build aLinearOperatorthat applies the FD JacobianJ(x0)*pon demand, without materialising the full Jacobian.static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Matrix x0, C constraint, int maxIter, double xtol, double gtol) Most general convenience overload: only the objective function is supplied.static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, HessianUpdateStrategy strategy, Matrix x0, C constraint, int maxIter, double xtol, double gtol) Convenience overload accepting anyHessianUpdateStrategy(BFGS, SR1, custom).static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, Matrix x0, C constraint, int maxIter, double xtol, double gtol) Convenience overload that approximates the objective Hessian via a freshBFGSupdate strategy -- the scipy-default behaviour whenhessis omitted from the user call.static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, Function<Matrix, Matrix> hess, Matrix x0, C constraint, int maxIter, double xtol, double gtol) General-purpose entry point: routes toMinimizeTrustConstr.minimizeEqualityConstrained(java.util.function.Function<de.labathome.trustconstr.matrix.Matrix, java.lang.Double>, java.util.function.Function<de.labathome.trustconstr.matrix.Matrix, de.labathome.trustconstr.matrix.Matrix>, java.util.function.Function<de.labathome.trustconstr.matrix.Matrix, de.labathome.trustconstr.matrix.Matrix>, de.labathome.trustconstr.matrix.Matrix, C, int, double, double)when the constraint has only equality rows, and to aTrustRegionInteriorPoint-driven path when any inequality rows are present.static OptimizeResultMinimizeTrustConstr.minimize(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, Function<Matrix, Matrix> hess, Matrix x0, Object[] constraints, int maxIter, double xtol, double gtol) Multi-constraint entry point: combines the supplied constraints into aCombinedConstraintand dispatches as inthe single-constraint overload.static <C extends Constraint & Jacobian>
OptimizeResultMinimizeTrustConstr.minimizeEqualityConstrained(Function<Matrix, Double> fun, Function<Matrix, Matrix> grad, Function<Matrix, Matrix> hess, Matrix x0, C eq, int maxIter, double xtol, double gtol) Convenience entry point covering the equality-constrained slice of the trust-constr API: a scalar objective with an explicit gradient and Hessian, subject to optional pure-equality constraints from a singleLinearConstraintorNonlinearConstraint.static OptimizeResultMinimizeTrustConstr.minimizeTrustConstr(ToDoubleBiFunction<Matrix, Object> fun, Matrix x0, Object args, BiFunction<Matrix, Object, Matrix> grad, BiFunction<Matrix, Object, Matrix> hess, HessianProduct hessp, Bounds bounds, Object constraints, double xTol, double gTol, double barrierTol, Optional<Boolean> sparseJacobian, IterationCallback callback, int maxIter, int verbose, Matrix finiteDifferenceRelStep, double initialConstraintPenalty, double initialTrustRadius, double initialBarrierParameter, double initialBarrierTolerance, ProjectionMethod factorizationMethod, boolean disp) Minimize a scalar function subject to constraints.static OptimizeResultMinimizeTrustConstr.minimizeTrustConstr(ToDoubleBiFunction<Matrix, Object> fun, Matrix x0, Object args, BiFunction<Matrix, Object, Matrix> grad, BiFunction<Matrix, Object, Matrix> hess, HessianProduct hessp, Bounds bounds, Object constraints, double xTol, double gTol, double barrierTol, Optional<Boolean> sparseJacobian, IterationCallback callback, int maxIter, int verbose, Matrix finiteDifferenceRelStep, double initialConstraintPenalty, double initialTrustRadius, double initialBarrierParameter, double initialBarrierTolerance, ProjectionMethod factorizationMethod, boolean disp) Minimize a scalar function subject to constraints.static OptimizeResultMinimizeTrustConstr.minimizeTrustConstr(ToDoubleBiFunction<Matrix, Object> fun, Matrix x0, Object args, BiFunction<Matrix, Object, Matrix> grad, BiFunction<Matrix, Object, Matrix> hess, HessianProduct hessp, Bounds bounds, Object constraints, double xTol, double gTol, double barrierTol, Optional<Boolean> sparseJacobian, IterationCallback callback, int maxIter, int verbose, Matrix finiteDifferenceRelStep, double initialConstraintPenalty, double initialTrustRadius, double initialBarrierParameter, double initialBarrierTolerance, ProjectionMethod factorizationMethod, boolean disp) Minimize a scalar function subject to constraints.static OptimizeResultMinimizeTrustConstr.minimizeTrustConstr(ToDoubleBiFunction<Matrix, Object> fun, Matrix x0, Object args, BiFunction<Matrix, Object, Matrix> grad, BiFunction<Matrix, Object, Matrix> hess, HessianProduct hessp, Bounds bounds, Object constraints, double xTol, double gTol, double barrierTol, Optional<Boolean> sparseJacobian, IterationCallback callback, int maxIter, int verbose, Matrix finiteDifferenceRelStep, double initialConstraintPenalty, double initialTrustRadius, double initialBarrierParameter, double initialBarrierTolerance, ProjectionMethod factorizationMethod, boolean disp, ExecutorService workers) Strict scipy_minimize_trustregion_constr(..., workers=N)counterpart.static OptimizeResultMinimizeTrustConstr.minimizeTrustConstr(ToDoubleBiFunction<Matrix, Object> fun, Matrix x0, Object args, BiFunction<Matrix, Object, Matrix> grad, BiFunction<Matrix, Object, Matrix> hess, HessianProduct hessp, Bounds bounds, Object constraints, double xTol, double gTol, double barrierTol, Optional<Boolean> sparseJacobian, IterationCallback callback, int maxIter, int verbose, Matrix finiteDifferenceRelStep, double initialConstraintPenalty, double initialTrustRadius, double initialBarrierParameter, double initialBarrierTolerance, ProjectionMethod factorizationMethod, boolean disp, ExecutorService workers) Strict scipy_minimize_trustregion_constr(..., workers=N)counterpart.static OptimizeResultMinimizeTrustConstr.minimizeTrustConstr(ToDoubleBiFunction<Matrix, Object> fun, Matrix x0, Object args, BiFunction<Matrix, Object, Matrix> grad, BiFunction<Matrix, Object, Matrix> hess, HessianProduct hessp, Bounds bounds, Object constraints, double xTol, double gTol, double barrierTol, Optional<Boolean> sparseJacobian, IterationCallback callback, int maxIter, int verbose, Matrix finiteDifferenceRelStep, double initialConstraintPenalty, double initialTrustRadius, double initialBarrierParameter, double initialBarrierTolerance, ProjectionMethod factorizationMethod, boolean disp, ExecutorService workers) Strict scipy_minimize_trustregion_constr(..., workers=N)counterpart.static StatefulResultTrustRegionInteriorPoint.trustRegionInteriorPoint(ToDoubleBiFunction<Matrix, Object> fun, BiFunction<Matrix, Object, Matrix> grad, LagrangeHessian lagrHess, int nVars, int nIneq, int nEq, Constraint constr, Jacobian jac, Matrix x0, double fun0, Matrix grad0, Matrix constrIneq0, Matrix jacIneq0, Matrix constrEq0, Matrix jacEq0, GlobalStoppingCriteria stopCrit, boolean[] enforceFeasibility, double xtol, State state, double initialBarrierParameter, double initialTolerance, double initialPenalty, double initialTrustRadius, ProjectionMethod factorizationMethod) Trust-region interior-point solve.static StatefulResultTrustRegionInteriorPoint.trustRegionInteriorPoint(ToDoubleBiFunction<Matrix, Object> fun, BiFunction<Matrix, Object, Matrix> grad, LagrangeHessian lagrHess, int nVars, int nIneq, int nEq, Constraint constr, Jacobian jac, Matrix x0, double fun0, Matrix grad0, Matrix constrIneq0, Matrix jacIneq0, Matrix constrEq0, Matrix jacEq0, GlobalStoppingCriteria stopCrit, boolean[] enforceFeasibility, double xtol, State state, double initialBarrierParameter, double initialTolerance, double initialPenalty, double initialTrustRadius, ProjectionMethod factorizationMethod) Trust-region interior-point solve.static StatefulResultTrustRegionInteriorPoint.trustRegionInteriorPoint(ToDoubleBiFunction<Matrix, Object> fun, BiFunction<Matrix, Object, Matrix> grad, LagrangeHessian lagrHess, int nVars, int nIneq, int nEq, Constraint constr, Jacobian jac, Matrix x0, double fun0, Matrix grad0, Matrix constrIneq0, Matrix jacIneq0, Matrix constrEq0, Matrix jacEq0, GlobalStoppingCriteria stopCrit, boolean[] enforceFeasibility, double xtol, State state, double initialBarrierParameter, double initialTolerance, double initialPenalty, double initialTrustRadius, ProjectionMethod factorizationMethod) Trust-region interior-point solve.Constructors in de.labathome.trustconstr with parameters of type MatrixModifierConstructorDescriptionBarrierSubproblem(Matrix x0, Matrix s0, ToDoubleBiFunction<Matrix, Object> fun, BiFunction<Matrix, Object, Matrix> grad, LagrangeHessian lagrHess, long nVars, long nIneq, long nEq, Constraint constr, Jacobian jac, double barrierParameter, double tolerance, boolean[] enforceFeasibility, GlobalStoppingCriteria globalStopCriteria, double xtol, double fun0, Matrix grad0, Matrix constrIneq0, Matrix jacIneq0, Matrix constrEq0, Matrix jacEq0) Construct the barrier subproblem at a starting iterate.IdentityVectorFunction(Matrix x0, Optional<Boolean> sparseJacobian) Build an identity vector function sized for the iteratex0.InitialCanonical(Matrix cEq, Matrix cIneq, Matrix JEq, Matrix JIneq) Creates an instance of aInitialCanonicalrecord class.LinearConstraint(Matrix a, double[] lb, double[] ub) Convenience overload: equivalent toLinearConstraint(Matrix, double[], double[], boolean[])withkeepFeasible = null.LinearConstraint(Matrix a, double[] lb, double[] ub, boolean[] keepFeasible) Build a linear constraintlb ≤ A x ≤ ub.LinearVectorFunction(Matrix A, Matrix x0, Optional<Boolean> sparseJacobian) Build a linear vector functionf(x) = A x.NonlinearVectorFunction(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, Matrix x0, Optional<Boolean> sparseJacobian) Build a nonlinear vector function and cachef,Jatx0.Constructor parameters in de.labathome.trustconstr with type arguments of type MatrixModifierConstructorDescriptionBarrierSubproblem(Matrix x0, Matrix s0, ToDoubleBiFunction<Matrix, Object> fun, BiFunction<Matrix, Object, Matrix> grad, LagrangeHessian lagrHess, long nVars, long nIneq, long nEq, Constraint constr, Jacobian jac, double barrierParameter, double tolerance, boolean[] enforceFeasibility, GlobalStoppingCriteria globalStopCriteria, double xtol, double fun0, Matrix grad0, Matrix constrIneq0, Matrix jacIneq0, Matrix constrEq0, Matrix jacEq0) Construct the barrier subproblem at a starting iterate.BarrierSubproblem(Matrix x0, Matrix s0, ToDoubleBiFunction<Matrix, Object> fun, BiFunction<Matrix, Object, Matrix> grad, LagrangeHessian lagrHess, long nVars, long nIneq, long nEq, Constraint constr, Jacobian jac, double barrierParameter, double tolerance, boolean[] enforceFeasibility, GlobalStoppingCriteria globalStopCriteria, double xtol, double fun0, Matrix grad0, Matrix constrIneq0, Matrix jacIneq0, Matrix constrEq0, Matrix jacEq0) Construct the barrier subproblem at a starting iterate.BarrierSubproblem(Matrix x0, Matrix s0, ToDoubleBiFunction<Matrix, Object> fun, BiFunction<Matrix, Object, Matrix> grad, LagrangeHessian lagrHess, long nVars, long nIneq, long nEq, Constraint constr, Jacobian jac, double barrierParameter, double tolerance, boolean[] enforceFeasibility, GlobalStoppingCriteria globalStopCriteria, double xtol, double fun0, Matrix grad0, Matrix constrIneq0, Matrix jacIneq0, Matrix constrEq0, Matrix jacEq0) Construct the barrier subproblem at a starting iterate.LagrangianHessian(int n, Function<Matrix, Matrix> objectiveHess, LagrangianHessian.ConstraintHessian constraintsHess) Build a Lagrangian Hessian for ann-variable problem.LagrangianHessian(int n, Function<Matrix, Matrix> objectiveHess, LagrangianHessian.ConstraintHessian constraintsHess) Build a Lagrangian Hessian for ann-variable problem.NonlinearConstraint(Function<Matrix, Matrix> fun, double[] lb, double[] ub) NonlinearConstraint(Function<Matrix, Matrix> fun, double[] lb, double[] ub) NonlinearConstraint(Function<Matrix, Matrix> fun, double[] lb, double[] ub, boolean[] keepFeasible) NonlinearConstraint(Function<Matrix, Matrix> fun, double[] lb, double[] ub, boolean[] keepFeasible) NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, double[] lb, double[] ub) Convenience overload with neither constraint Hessian norkeepFeasibleflags.NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, double[] lb, double[] ub) Convenience overload with neither constraint Hessian norkeepFeasibleflags.NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, double[] lb, double[] ub, boolean[] keepFeasible) Convenience overload: asNonlinearConstraint(Function, Function, BiFunction, double[], double[], boolean[])with no constraint Hessian.NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, double[] lb, double[] ub, boolean[] keepFeasible) Convenience overload: asNonlinearConstraint(Function, Function, BiFunction, double[], double[], boolean[])with no constraint Hessian.NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, double[] lb, double[] ub, boolean[] keepFeasible) Build a nonlinear constraint with explicit constraint Hessian.NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, double[] lb, double[] ub, boolean[] keepFeasible) Build a nonlinear constraint with explicit constraint Hessian.NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, double[] lb, double[] ub, boolean[] keepFeasible) Build a nonlinear constraint with explicit constraint Hessian.NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, double[] lb, double[] ub, boolean[] keepFeasible) Build a nonlinear constraint with explicit constraint Hessian.NonlinearConstraint(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, double[] lb, double[] ub, boolean[] keepFeasible) Build a nonlinear constraint with explicit constraint Hessian.NonlinearVectorFunction(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, Matrix x0, Optional<Boolean> sparseJacobian) Build a nonlinear vector function and cachef,Jatx0.NonlinearVectorFunction(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, Matrix x0, Optional<Boolean> sparseJacobian) Build a nonlinear vector function and cachef,Jatx0.NonlinearVectorFunction(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, Matrix x0, Optional<Boolean> sparseJacobian) Build a nonlinear vector function and cachef,Jatx0.NonlinearVectorFunction(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, Matrix x0, Optional<Boolean> sparseJacobian) Build a nonlinear vector function and cachef,Jatx0.NonlinearVectorFunction(Function<Matrix, Matrix> fun, Function<Matrix, Matrix> jac, BiFunction<Matrix, Matrix, Matrix> hess, Matrix x0, Optional<Boolean> sparseJacobian) Build a nonlinear vector function and cachef,Jatx0. -
Uses of Matrix in de.labathome.trustconstr.interfaces
Methods in de.labathome.trustconstr.interfaces that return MatrixModifier and TypeMethodDescriptionApply the linear operator to a given vector.Constraint.constrIneq(Matrix x) VectorFunctionLike.f()Evaluate the function atx, updating any internal cache.HessianUpdateStrategy.getMatrix()Return current internal matrix.Evaluate the constraint Hessian-of-LagrangianSum_i v[i] * H_{f_i}(x)atxfor the given multiplier vectorv.VectorFunctionLike.J()Evaluate the Jacobian atx, updating any internal cache.VectorFunctionLike.v()Methods in de.labathome.trustconstr.interfaces with parameters of type MatrixModifier and TypeMethodDescriptionApply the linear operator to a given vector.Constraint.constrIneq(Matrix x) Evaluate the function atx, updating any internal cache.IFunctionAndConstraint.funAndConstr(Matrix x) IGradientAndJacobian.gradAndJac(Matrix z) Evaluate the constraint Hessian-of-LagrangianSum_i v[i] * H_{f_i}(x)atxfor the given multiplier vectorv.Evaluate the Jacobian atx, updating any internal cache.booleanGlobalStoppingCriteria.shouldStop(State state, Matrix x, boolean lastIterationFailed, double optimality, double constrViolation, double trustRadius, double penalty, CGInfo cgInfo, double barrierParameter, double tolerance) booleanStoppingCriterion.shouldStop(State state, Matrix x, boolean lastIterationFailed, double optimality, double constrViolation, double trustRadius, double penalty, CGInfo cgInfo) voidUpdate internal matrix. -
Uses of Matrix in de.labathome.trustconstr.matrix
Subclasses of Matrix in de.labathome.trustconstr.matrixModifier and TypeClassDescriptionfinal classDense matrix backed by a column-majordouble[]buffer of lengthrows * cols.classSparse matrix backed by a Dictionary-of-Keys (DOK) representation: aHashMapkeyed by the encoded(row, col)index.Methods in de.labathome.trustconstr.matrix that return MatrixModifier and TypeMethodDescriptionabstract MatrixMatrix.abs()SparseMatrix.abs()Matrix.absInPlace()In-place absolute value.abstract MatrixMatrix.copy()SparseMatrix.copy()static MatrixMatrix.Factory.copyFromMatrix(Matrix m) static MatrixMatrixOps.diag(double[] diagonal) Build a sparse diagonal matrix with the given entries on the diagonal.abstract MatrixMatrix.divide(double alpha) abstract MatrixSparseMatrix.divide(double alpha) Matrix.fill(double v) In-place fill with the given scalar.protected MatrixMatrix.mapAdd(double scalar) Helper used byplus(double)andminus(double): returns a fresh dense matrix withscalaradded to every entry.Matrix.minus(double scalar) abstract Matrixabstract MatrixMatrix.plus(double scalar) abstract MatrixMatrix.selectColumns(long col) Solvethis * x = rhsvia LAPACKdgesv(general LU).static MatrixMaterialise the non-zero entries of a possibly-dense matrix into aSparseMatrix(DOK-backed).Matrix.subMatrix(long r0, long c0, long r1, long c1) Slice rows[r0..r1]and columns[c0..c1](inclusive).abstract MatrixMatrix.times(double alpha) abstract MatrixSparseMatrix.times(double alpha) abstract MatrixMatrix.transpose()SparseMatrix.transpose()Methods in de.labathome.trustconstr.matrix with parameters of type MatrixModifier and TypeMethodDescriptionstatic DenseMatrixDenseMatrix.copyFromMatrix(Matrix m) Densify anyMatrix: ifmis already aDenseMatrix, return aDenseMatrix.copy(); otherwise materialise viaDenseMatrix.getAsDouble(long, long).static DenseMatrixDenseMatrix.Factory.copyFromMatrix(Matrix m) static MatrixMatrix.Factory.copyFromMatrix(Matrix m) static SparseMatrixSparseMatrix.Factory.copyFromMatrix(Matrix m) abstract MatrixbooleanMatrix.equalsContent(Matrix other) abstract Matrixabstract Matrixabstract MatrixSolvethis * x = rhsvia LAPACKdgesv(general LU).static MatrixMaterialise the non-zero entries of a possibly-dense matrix into aSparseMatrix(DOK-backed).abstract Matrixstatic DenseMatrixVertical concatenation: stack the input matrices on top of each other. -
Uses of Matrix in de.labathome.trustconstr.records
Fields in de.labathome.trustconstr.records declared as MatrixModifier and TypeFieldDescriptionMatrix[]OptimizeResult.constrList of constraint values at the solution.Matrix[]State.constrConstraint residual vectors, one entry per constraint source.OptimizeResult.grad[n] Gradient of the objective function at the solution.State.gradGradientgradf(x)at the current iterate.Matrix[]OptimizeResult.jacList of the Jacobian matrices of the constraints at the solution.Matrix[]State.jacConstraint Jacobians, one entry per constraint source.OptimizeResult.lagrangianGrad[n] Gradient of the Lagrangian function at the solution.State.lagrangianGradLagrangian gradientgradf(x) + Sum v_i gradc_i(x)at the current iterate.Matrix[]OptimizeResult.vList of the Lagrange multipliers for the constraints at the solution.Matrix[]State.vLagrange multipliers, one entry per constraint source.CGInfo.xSolution vector of the EQP problem (n x 1).OptimizeResult.x[n] Solution found.State.xCurrent iterate (n x 1).Fields in de.labathome.trustconstr.records with type parameters of type MatrixModifier and TypeFieldDescriptionCGInfo.allVecsAll intermediate iterates, whenreturnAll=true; otherwisenull.Methods in de.labathome.trustconstr.records that return MatrixModifier and TypeMethodDescriptionSparsity.A()FiniteDifferenceOptions.absStep()FunctionAndConstraint.c()EqIneqSplit.eq()Returns the value of theeqrecord component.GradientAndJacobian.grad()AdjustedDifferencingScheme.hAdjusted()EqIneqSplit.ineq()Returns the value of theineqrecord component.GradientAndJacobian.jac()ApproxDerivativeResult.jacobian()Returns the value of thejacobianrecord component.Bounds.lb()FiniteDifferenceBounds.lb()FiniteDifferenceOptions.relStep()Bounds.ub()FiniteDifferenceBounds.ub()StatefulResult.v()Final Lagrange multiplier vector from the inner SQP loop.StatefulResult.x()PreparedConstraint.x0()Methods in de.labathome.trustconstr.records with parameters of type MatrixModifier and TypeMethodDescriptionstatic SparsityConvenience factory: derive the column grouping fromAviaNumDiff.groupColumns(Matrix).static SparsityConvenience factory with a user-supplied column ordering.Lower and upper residuals atx:sl = x - lb(positive iff lower bound satisfied),sb = ub - x(positive iff upper bound satisfied).double[]Compute the per-row constraint violation atx.Constructors in de.labathome.trustconstr.records with parameters of type MatrixModifierConstructorDescriptionAdjustedDifferencingScheme(Matrix hAdjusted, boolean[] useOneSided) ApproxDerivativeResult(Matrix jacobian, Map<String, Object> info) Creates an instance of aApproxDerivativeResultrecord class.EqIneqSplit(Matrix eq, Matrix ineq) Creates an instance of aEqIneqSplitrecord class.FiniteDifferenceBounds(Matrix lb, Matrix ub, boolean keepFeasible) FunctionAndConstraint(double f, Matrix c) GradientAndJacobian(Matrix grad, Matrix jac) PreparedConstraint(LinearConstraint lc, Matrix x0, Optional<Boolean> sparseJacobian) Prepare aLinearConstraint.PreparedConstraint(NonlinearConstraint nc, Matrix x0, Optional<Boolean> sparseJacobian, FiniteDifferenceBounds finiteDiffBounds) Prepare aNonlinearConstraint.PreparedConstraint(Bounds bounds, Matrix x0, Optional<Boolean> sparseJacobian) PrepareBounds(folding them into the constraint set as the trivial linear constraintlb ≤ x ≤ ubwithA = I).StatefulResult(Matrix x, State state) StatefulResult(Matrix x, State state, Matrix v) -
Uses of Matrix in de.labathome.trustconstr.sparse
Methods in de.labathome.trustconstr.sparse with parameters of type MatrixModifier and TypeMethodDescriptionstatic CSRMatrixCSRMatrix.fromMatrix(Matrix m) Build from anyMatrix.