HeuristicNull

class HeuristicNull<S extends HeuristicSolution<?>> implements Heuristic<S>

A class to allow the implementation of Null Object Design Pattern for the Heuristic interface and extensions of it.

Author:Manoel Campos da Silva Filho

Methods

createNeighbor

public S createNeighbor(S source)

getAcceptanceProbability

public double getAcceptanceProbability()

getBestSolutionSoFar

public S getBestSolutionSoFar()

getInitialSolution

public S getInitialSolution()

getNeighborSolution

public S getNeighborSolution()

getNeighborhoodSearchesByIteration

public int getNeighborhoodSearchesByIteration()

getRandomValue

public int getRandomValue(int maxValue)

getSolveTime

public double getSolveTime()

isToStopSearch

public boolean isToStopSearch()

setNeighborhoodSearchesByIteration

public void setNeighborhoodSearchesByIteration(int neighborhoodSearches)

solve

public S solve()