Package hyperheuristic.examples.hyflex
Class HyFlexExampleHyperHeuristic1
java.lang.Object
AbstractClasses.HyperHeuristic
hyperheuristic.examples.hyflex.HyFlexExampleHyperHeuristic1
- All Implemented Interfaces:
HyperHeuristicIntrf
public class HyFlexExampleHyperHeuristic1 extends AbstractClasses.HyperHeuristic implements HyperHeuristicIntrf
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
-
Constructor Summary
Constructors Constructor Description HyFlexExampleHyperHeuristic1(long seed) -
Method Summary
Modifier and Type Method Description voidsetDynSet(DynHeurSet dynSet)voidsolve(AbstractClasses.ProblemDomain problem)java.lang.StringtoString()Methods inherited from class AbstractClasses.HyperHeuristic
getBestSolutionValue, getElapsedTime, getFitnessTrace, getTimeLimit, hasTimeExpired, loadProblemDomain, run, setTimeLimitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hyperheuristic.HyperHeuristicIntrf
getBestSolutionValue, getDySet, getElapsedTime, getLsDynSet, getPertDynSet, getTimeLimit, loadProblem, loadProblemDomain, run, setLsDynSet, setPertDynSet, setTimeLimit
-
Constructor Details
-
HyFlexExampleHyperHeuristic1
public HyFlexExampleHyperHeuristic1(long seed)
-
-
Method Details
-
solve
public void solve(AbstractClasses.ProblemDomain problem)- Specified by:
solvein classAbstractClasses.HyperHeuristic
-
toString
public java.lang.String toString()- Specified by:
toStringin classAbstractClasses.HyperHeuristic
-
setDynSet
- Specified by:
setDynSetin interfaceHyperHeuristicIntrf
-