Package problem
Interface Problem
- All Known Implementing Classes:
SkiLodge
public interface Problem
This interface should be implemented by all problems.
You do not have to implement all methods of this interface. You can only implement the methods that your hyper-heuristic will need.
- See Also:
SkiLodge
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProblem.HeuristicType -
Method Summary
Modifier and Type Method Description doubleapplyHeuristic(int heuristicID, int solutionSourceIndex, int solutionDestinationIndex)doubleapplyHeuristic(int heuristicID, int solutionSourceIndex1, int solutionSourceIndex2, int solutionDestinationIndex)java.lang.StringbestSolutionToString()booleancompareSolutions(int solutionIndex1, int solutionIndex2)voidcopySolution(int solutionSourceIndex, int solutionDestinationIndex)doublegetBestSolutionValue()doublegetDepthOfSearch()doublegetFunctionValue(int solutionIndex)int[]getHeuristicsOfType(Problem.HeuristicType heuristicType)doublegetIntensityOfMutation()intgetNumberOfHeuristics()voidinitialiseSolution(int index)booleanisValid(int index)voidloadInstance(java.lang.String path)voidsetDepthOfSearch(double searchDepth)voidsetIntensityOfMutation(double mutationIntensity)voidsetMemorySize(int size)java.lang.StringsolutionToString(int solutionIndex)
-
Method Details
-
applyHeuristic
double applyHeuristic(int heuristicID, int solutionSourceIndex, int solutionDestinationIndex) -
applyHeuristic
double applyHeuristic(int heuristicID, int solutionSourceIndex1, int solutionSourceIndex2, int solutionDestinationIndex) -
bestSolutionToString
java.lang.String bestSolutionToString() -
compareSolutions
boolean compareSolutions(int solutionIndex1, int solutionIndex2) -
copySolution
void copySolution(int solutionSourceIndex, int solutionDestinationIndex) -
getBestSolutionValue
double getBestSolutionValue() -
getDepthOfSearch
double getDepthOfSearch() -
getFunctionValue
double getFunctionValue(int solutionIndex) -
getHeuristicsOfType
-
getIntensityOfMutation
double getIntensityOfMutation() -
getNumberOfHeuristics
int getNumberOfHeuristics() -
initialiseSolution
void initialiseSolution(int index) -
isValid
boolean isValid(int index) -
loadInstance
void loadInstance(java.lang.String path) -
setDepthOfSearch
void setDepthOfSearch(double searchDepth) -
setIntensityOfMutation
void setIntensityOfMutation(double mutationIntensity) -
setMemorySize
void setMemorySize(int size) -
solutionToString
java.lang.String solutionToString(int solutionIndex)
-