Package hyperheuristic.examples
Class ExampleHyperHeuristic1
java.lang.Object
hyperheuristic.GenericHyperHeuristic
hyperheuristic.examples.ExampleHyperHeuristic1
- All Implemented Interfaces:
HyperHeuristicIntrf
public class ExampleHyperHeuristic1 extends GenericHyperHeuristic
This is an example class for using a dynamic set in a hyper-heuristic.
This class extends the GenericHyperHeuristic class. It
implements a simple random hyper-heuristic that chooses a heuristic
to apply at random and accepts better moves.
-
Field Summary
Fields inherited from class hyperheuristic.GenericHyperHeuristic
dynSet, lsDynSet, pertDynSet, problem, rng -
Constructor Summary
Constructors Constructor Description ExampleHyperHeuristic1(long seed) -
Method Summary
Modifier and Type Method Description voidsolve()Methods inherited from class hyperheuristic.GenericHyperHeuristic
getBestSolutionValue, getDySet, getElapsedTime, getLsDynSet, getPertDynSet, getTimeLimit, hasTimeExpired, loadProblem, run, setDynSet, setLsDynSet, setPertDynSet, setTimeLimit
-
Constructor Details
-
ExampleHyperHeuristic1
public ExampleHyperHeuristic1(long seed)
-
-
Method Details
-
solve
public void solve()- Specified by:
solvein classGenericHyperHeuristic
-