public static final class OptimizationUtils.SimpleBacktrackingLS extends java.lang.Object implements OptimizationUtils.LineSearchSolver
Constructor and Description |
---|
OptimizationUtils.SimpleBacktrackingLS(OptimizationUtils.GradientSolver gslvr,
double[] betaStart,
double l1pen) |
OptimizationUtils.SimpleBacktrackingLS(OptimizationUtils.GradientSolver gslvr,
double[] betaStart,
double l1pen,
OptimizationUtils.GradientInfo ginfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(double[] direction) |
double |
getObj() |
double[] |
getX() |
OptimizationUtils.GradientInfo |
ginfo() |
int |
nfeval() |
OptimizationUtils.LineSearchSolver |
setInitialStep(double s) |
double |
step() |
java.lang.String |
toString() |
public OptimizationUtils.SimpleBacktrackingLS(OptimizationUtils.GradientSolver gslvr, double[] betaStart, double l1pen)
public OptimizationUtils.SimpleBacktrackingLS(OptimizationUtils.GradientSolver gslvr, double[] betaStart, double l1pen, OptimizationUtils.GradientInfo ginfo)
public int nfeval()
nfeval
in interface OptimizationUtils.LineSearchSolver
public double getObj()
getObj
in interface OptimizationUtils.LineSearchSolver
public double[] getX()
getX
in interface OptimizationUtils.LineSearchSolver
public OptimizationUtils.LineSearchSolver setInitialStep(double s)
setInitialStep
in interface OptimizationUtils.LineSearchSolver
public boolean evaluate(double[] direction)
evaluate
in interface OptimizationUtils.LineSearchSolver
public double step()
step
in interface OptimizationUtils.LineSearchSolver
public OptimizationUtils.GradientInfo ginfo()
ginfo
in interface OptimizationUtils.LineSearchSolver
public java.lang.String toString()
toString
in class java.lang.Object