Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/30/15 16:26:07 (9 years ago)
Author:
pfleck
Message:

#2495
Added backwards compatibility for IslandGeneticAlgorithm and IslandOffspringSelectionGeneticAlgorithm to still use counterclockwise migration.
The UnidirectionalRingMigrator uses clockwise per default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Operators/3.3/UnidirectionalRingMigrator.cs

    r13078 r13094  
    3939    }
    4040
     41    public BoolValue ClockwiseMigrationDirection
     42    {
     43      get { return ClockwiseMigrationDirectionParameter.Value; }
     44      set { ClockwiseMigrationDirectionParameter.Value = value; }
     45    }
     46
    4147    [StorableConstructor]
    4248    protected UnidirectionalRingMigrator(bool deserializing) : base(deserializing) { }
     
    4753      Parameters.Add(new ValueLookupParameter<BoolValue>("ClockwiseMigrationDirection", "True to migrate individuals clockwise, otherwise migrate individuals counterclockwise.", new BoolValue(true)));
    4854    }
    49 
    5055
    5156    [StorableHook(HookType.AfterDeserialization)]
Note: See TracChangeset for help on using the changeset viewer.