public abstract class Optimization
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
ALFA |
protected boolean |
alphaLEQZero |
protected double |
BETA |
protected double |
epsilon |
protected int |
maxIterations |
protected double |
minFunction |
protected double |
slope |
protected double |
STPMX |
protected double |
TOLX |
protected double[] |
varValues |
protected double |
zero |
Constructor and Description |
---|
Optimization() |
Modifier and Type | Method and Description |
---|---|
protected abstract double |
evaluate(double[] x) |
double[] |
find(double[] xold,
double[] gradient,
double[] directionVector,
double maxStep,
boolean[] isFixed,
double[][] nonworkingSetBounds,
java.util.ArrayList<java.lang.Integer> workingSetBoundIndex) |
double |
getEpsilon() |
double |
getMinFunction() |
double[] |
getVarValues() |
double |
getZero() |
protected abstract double[] |
gradient(double[] x) |
double[] |
minimum(double[] initPoint,
double[][] constraints) |
protected double[] |
solveTriangle(double[][] t,
double[] b,
boolean isLower,
boolean[] isZero) |
protected void |
updateCholeskyFactor(double[][] unitTriangleMatrix,
double[] diagonal,
double[] updateVector,
double updateCoeffcient,
boolean[] isFixed) |
protected double ALFA
protected double BETA
protected double TOLX
protected double STPMX
protected int maxIterations
protected double minFunction
protected double slope
protected boolean alphaLEQZero
protected double[] varValues
protected double epsilon
protected double zero
protected abstract double evaluate(double[] x) throws java.lang.Exception
java.lang.Exception
protected abstract double[] gradient(double[] x) throws java.lang.Exception
java.lang.Exception
public double getEpsilon()
public double getZero()
public double getMinFunction()
public double[] getVarValues()
public double[] find(double[] xold, double[] gradient, double[] directionVector, double maxStep, boolean[] isFixed, double[][] nonworkingSetBounds, java.util.ArrayList<java.lang.Integer> workingSetBoundIndex) throws java.lang.Exception
java.lang.Exception
public double[] minimum(double[] initPoint, double[][] constraints) throws java.lang.Exception
java.lang.Exception
protected double[] solveTriangle(double[][] t, double[] b, boolean isLower, boolean[] isZero) throws java.lang.Exception
java.lang.Exception
protected void updateCholeskyFactor(double[][] unitTriangleMatrix, double[] diagonal, double[] updateVector, double updateCoeffcient, boolean[] isFixed) throws java.lang.Exception
java.lang.Exception