Package com.titan.experiments
Class HillClimbing
java.lang.Object
com.titan.experiments.HillClimbing
- Direct Known Subclasses:
CalculateInitialVelocity_HillClimbing
,CalculateReturningVelocity_HillClimbing
Abstract class that can be extended to implement custom versions of
a hill-climbing algorithm to compute a vector (e.g. velocity, force or position).
The two methods setUpSimulation(Vector, int)
and calculateError(Simulation)
have to be
overridden in the custom implementation. They are the parts of the algorithm which are responsible for
the custom use of the input vector in the simulation and the error-value that the
hill-climbing algorithm tries to minimize.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HillClimbing
public HillClimbing()
-
-
Method Details
-
run
public com.titan.experiments.HillClimbing.Result run(Vector startingInput, int stepSize, int accuracy) Runs the hill-climbing algorithm until a specified precision.- Parameters:
startingInput
-stepSize
-accuracy
-- Returns:
-