Package samer.maths.opt
Class State
- java.lang.Object
-
- samer.maths.opt.State
-
- Direct Known Subclasses:
- MinimiserBase
public class State extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description double
alpha
Functionx
func
double[]
h
int
n
double
normh
Datum
P1
Datum
P2
-
Constructor Summary
Constructors Constructor and Description State(Vec x, Functionx func)
x must have an accessible array
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringBuffer
append(java.lang.StringBuffer info)
double
cubic()
estimated step to minimum using cubic interpolation of current statevoid
dispose()
void
eval2()
evaluate at P2void
evaluate()
evaluate at P1double
initialStep()
void
move()
move P1 to where P2 is nowdouble
nextStep()
estimate initial step for line search after turnvoid
setSlope()
evaluate slope at P1 using gradient at P1void
setSlope2(double s2)
set slope at P2, assert new slope is negativevoid
step(double lambda)
take step of length lambda from P1 in direction of h, evaluate and store in P2java.lang.String
toString()
-
-
-
Field Detail
-
alpha
public double alpha
-
func
public Functionx func
-
h
public double[] h
-
n
public int n
-
normh
public double normh
-
P1
public Datum P1
-
P2
public Datum P2
-
-
Method Detail
-
dispose
public void dispose()
-
cubic
public final double cubic()
estimated step to minimum using cubic interpolation of current state
-
evaluate
public final void evaluate()
evaluate at P1
-
move
public final void move()
move P1 to where P2 is now
-
step
public void step(double lambda)
take step of length lambda from P1 in direction of h, evaluate and store in P2
-
eval2
public final void eval2()
evaluate at P2
-
setSlope
public final void setSlope()
evaluate slope at P1 using gradient at P1
-
setSlope2
public final void setSlope2(double s2)
set slope at P2, assert new slope is negative
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
initialStep
public double initialStep()
-
nextStep
public double nextStep()
estimate initial step for line search after turn
-
append
public java.lang.StringBuffer append(java.lang.StringBuffer info)
-
-