Package pulse.search.direction
Class GradientGuidedPath
- java.lang.Object
-
- pulse.search.direction.IterativeState
-
- pulse.search.direction.GradientGuidedPath
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ComplexPath
public class GradientGuidedPath extends IterativeState
A
Pathstores information relevant to the selectedPathSolver, which is related to a specificSearchTask. This information is used by thePathSolverto perform the next search step.This is the most basic implementation, which stores only the gradient, the direction (equal to the inverse gradient), minimum point achieved by the linear solver, and the number of current iteration. It is used in combination with the
SteepestDescentSolver. Note the constructors forPathare protected, as they should not be invoked directly. Instead, they are invoked from within thePathSolver.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGradientGuidedPath(GeneralTask t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(GeneralTask t)Resets thePath: calculates the current gradient and the direction of search.Sets the minimum point to 0.0.VectorgetDirection()VectorgetGradient()doublegetMinimumPoint()voidsetDirection(Vector currentDirection)voidsetGradient(Vector currentGradient)voidsetLinearStep(double min)-
Methods inherited from class pulse.search.direction.IterativeState
getCost, getFailedAttempts, getIteration, getParameters, incrementFailedAttempts, incrementStep, reset, resetFailedAttempts, setCost, setParameters
-
-
-
-
Constructor Detail
-
GradientGuidedPath
protected GradientGuidedPath(GeneralTask t)
-
-
Method Detail
-
configure
public void configure(GeneralTask t)
Resets thePath: calculates the current gradient and the direction of search.Sets the minimum point to 0.0.- Parameters:
t- theSearchTask, for which thisPathis created.
-
getDirection
public Vector getDirection()
-
setDirection
public void setDirection(Vector currentDirection)
-
getGradient
public Vector getGradient()
-
setGradient
public void setGradient(Vector currentGradient)
-
getMinimumPoint
public double getMinimumPoint()
-
setLinearStep
public void setLinearStep(double min)
-
-