public class UpperDiagonalHKKTSolver extends AbstractKKTSolver
checkKKTSolutionAcc, DEFAULT_SCALAR, defaultScalar, g, h, matA, matAT, matH, toleranceKKT
Constructor and Description |
---|
UpperDiagonalHKKTSolver(int diagonalLen)
Solver
|
UpperDiagonalHKKTSolver(int diagonalLen,
boolean avoidScal)
Solver
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkKKTSolutionAccuracy(RealVector v,
RealVector w)
Check the solution of the system
KKT.x = b
against the scaled residual
beta < gamma,
where gamma is a parameter chosen by the user and beta is
the scaled residual,
beta = ||KKT.x-b||_oo/( ||KKT||_oo .
|
int |
getDiagonalLength()
Get diagonal length
|
void |
setDiagonalLength(int diagonalLength)
Set diagonal length
|
RealVector[] |
solve()
Returns the two vectors v and w.
|
setAMatrix, setCheckKKTSolutionAccuracy, setGVector, setHMatrix, setHVector, setToleranceKKT, solveAugmentedKKT
public UpperDiagonalHKKTSolver(int diagonalLen)
diagonalLen
- diagonal lengthpublic UpperDiagonalHKKTSolver(int diagonalLen, boolean avoidScal)
diagonalLen
- diagonal lengthavoidScal
- avoid scaling?public RealVector[] solve() throws PatriusException
solve
in class AbstractKKTSolver
PatriusException
- if an error occursprotected boolean checkKKTSolutionAccuracy(RealVector v, RealVector w)
checkKKTSolutionAccuracy
in class AbstractKKTSolver
v
- vector Vw
- vector Wpublic void setDiagonalLength(int diagonalLength)
diagonalLength
- lengthpublic int getDiagonalLength()
Copyright © 2023 CNES. All rights reserved.