Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/03/18 00:28:51 (6 years ago)
Author:
abeham
Message:

#1614:

  • fixed a bug in GRASP where solutions in the elite set would be mutated
  • introduced termination criteria when reaching best-known quality
  • tweaked generating random numbers in StochasticNMoveSingleMoveGenerator
  • changed DiscreteLocationCrossover to use an allele from one of the parents instead of introducing a mutation in case no feasible insert location is found
  • changed OSGA maxselpress to 500
  • slight change to contexts, introduced single-objectiveness much earlier in the class hierachy
    • limited ContextAlgorithm to SingleObjectiveBasicProblems (doesn't matter here)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Evolutionary/OSGA.cs

    r15564 r15572  
    3535  [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms)]
    3636  [StorableClass]
    37   public sealed class OSGA : StochasticAlgorithm<OSGAContext> {
     37  public sealed class OSGA : StochasticAlgorithm<OSGAContext, IntegerVectorEncoding> {
    3838
    3939    public override bool SupportsPause {
     
    127127       
    128128        while (!StoppingCriterion() && Context.NextGeneration.Count < PopulationSize
    129           && Context.SelectionPressure < 1000) {
     129          && Context.SelectionPressure < 500) {
    130130
    131131          var idx1 = Context.Random.Next(PopulationSize);
     
    160160          Context.SelectionPressure += 1.0 / PopulationSize;
    161161          Context.Attempts++;
    162           if (Context.SelectionPressure > 10
    163             && Context.NextGeneration.Count / (double)PopulationSize < Context.SelectionPressure / 1000)
     162          if (Context.SelectionPressure > 1
     163            && Context.NextGeneration.Count / (double)PopulationSize < Context.SelectionPressure / 500)
    164164            break;
    165165          if (cancellationToken.IsCancellationRequested) return;
Note: See TracChangeset for help on using the changeset viewer.