Class StochasticLocalSearchOnConstrProb


  • public class StochasticLocalSearchOnConstrProb
    extends Solver
    • Constructor Detail

      • StochasticLocalSearchOnConstrProb

        public StochasticLocalSearchOnConstrProb​(int maxIteration,
                                                 int maxStepsWithNoImprove,
                                                 double chanceForRandomStep)
    • Method Detail

      • chooseANeighbor

        public java.util.Map<Variable,​Term> chooseANeighbor​(java.util.Map<Variable,​Term> currSol,
                                                                  int minIterations,
                                                                  int maxIterations,
                                                                  double threshold,
                                                                  Term targetFunc)
        Parameters:
        minIterations - : the minimum amount of solutions to be created
        maxIterations - : the maximum amount of solutions to be created
        threshold - : if a solution with the quality of threshold is reached we do maximum 10 more tries
        currSol - : the solution that every newly created solution uses as a initial solution in createNewSol
        Returns:
        the best solution that was found and is a mutant of currSol