Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11668


Ignore:
Timestamp:
12/07/14 10:25:46 (9 years ago)
Author:
bgoldman
Message:

#2282 Fixed mistake in HillClimber which was causing P3 to give slightly incorrect results on HIFF

Location:
branches/Parameter-less Population Pyramid/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Parameter-less Population Pyramid/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/HillClimber.cs

    r11666 r11668  
    8787        var options = Enumerable.Range(0, solution.Length).Shuffle(rand);
    8888        foreach (var option in options) {
     89          if (tried.Contains(option)) continue;
    8990          solution[option] = !solution[option];
    9091          double newFitness = problem.Evaluate(solution);
  • branches/Parameter-less Population Pyramid/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs

    r11667 r11668  
    143143
    144144    public ParameterlessPopulationPyramid() {
    145       Parameters.Add(new FixedValueParameter<IntValue>(MaximumIterationsParameterName, "", new IntValue(100)));
    146       Parameters.Add(new FixedValueParameter<IntValue>(MaximumEvaluationsParameterName, "", new IntValue(1000)));
     145      Parameters.Add(new FixedValueParameter<IntValue>(MaximumIterationsParameterName, "", new IntValue(Int32.MaxValue)));
     146      Parameters.Add(new FixedValueParameter<IntValue>(MaximumEvaluationsParameterName, "", new IntValue(10000)));
    147147      Parameters.Add(new FixedValueParameter<IntValue>(SeedParameterName, "The random seed used to initialize the new pseudo random number generator.", new IntValue(0)));
    148148      Parameters.Add(new FixedValueParameter<BoolValue>(SetSeedRandomlyParameterName, "True if the random seed should be set to a random value, otherwise false.", new BoolValue(true)));
Note: See TracChangeset for help on using the changeset viewer.