Class QPDualActiveSolverOption
java.lang.Object
org.hipparchus.optim.nonlinear.vector.constrained.QPDualActiveSolverOption
- All Implemented Interfaces:
OptimizationData
Options for dual active-set method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault tolerance for constraint satisfactionstatic final doubleDefault Relaxed feasibility tolerance used only when both the primal and dual step are not available.static final QPMatrixModeDefault Matrix Mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetEps()get tolerance for convergence and active constraint evaluation.doubleget tolerance for convergence for constraint in case of degeneracy.Get MatrixModevoidsetEps(double eps) Set tolerance for convergence typical 1.0e-16 to 1.0e-9voidsetEpsRelaxation(double epsRelaxation) Set tolerance convergence for constraint in case of degeneracy typical 10.0*epsvoidsetMatrixMode(QPMatrixMode matrixMode) Set MatrixMode.
-
Field Details
-
DEFAULT_EPSILON
public static final double DEFAULT_EPSILONDefault tolerance for constraint satisfaction -
DEFAULT_MATRIX_MODE
Default Matrix Mode -
DEFAULT_EPSILON_RELAXATION
public static final double DEFAULT_EPSILON_RELAXATIONDefault Relaxed feasibility tolerance used only when both the primal and dual step are not available. In that numerically stalled case, a target constraint whose violation does not exceed this value is accepted as numerically feasible.- See Also:
-
-
Constructor Details
-
QPDualActiveSolverOption
public QPDualActiveSolverOption()
-
-
Method Details
-
setEps
public void setEps(double eps) Set tolerance for convergence typical 1.0e-16 to 1.0e-9- Parameters:
eps- tolerance for convergence
-
getEps
public double getEps()get tolerance for convergence and active constraint evaluation.- Returns:
- tolerance for convergence and active constraint evaluation
-
setEpsRelaxation
public void setEpsRelaxation(double epsRelaxation) Set tolerance convergence for constraint in case of degeneracy typical 10.0*eps- Parameters:
epsRelaxation- tolerance for convergence
-
getEpsRelaxation
public double getEpsRelaxation()get tolerance for convergence for constraint in case of degeneracy.- Returns:
- tolerance for convergence for constraint in case of degeneracy
-
setMatrixMode
Set MatrixMode.- Parameters:
matrixMode- matrix mode
-
getMatrixMode
Get MatrixMode- Returns:
- matric mode
-