Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/15 13:29:26 (8 years ago)
Author:
gkronber
Message:

#2478 reverse merge of r13292

Location:
stable
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Tests

  • stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples/SamplesUtils.cs

    r13292 r13293  
    55using HeuristicLab.Algorithms.EvolutionStrategy;
    66using HeuristicLab.Algorithms.GeneticAlgorithm;
    7 using HeuristicLab.Algorithms.OffspringSelectionEvolutionStrategy;
    87using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm;
    98using HeuristicLab.Data;
     
    7271    }
    7372
    74     public static void ConfigureOffspringSelectionEvolutionStrategyParameters<R, M, SC, SR, SM>(OffspringSelectionEvolutionStrategy es, int popSize,
    75       double successRatio, double comparisonFactor, double maxSelPres, int parentsPerChild, int maxGens, bool plusSelection)
    76       where R : ICrossover
    77       where M : IManipulator
    78       where SC : IStrategyParameterCreator
    79       where SR : IStrategyParameterCrossover
    80       where SM : IStrategyParameterManipulator {
    81       es.PopulationSize.Value = popSize;
    82       es.ComparisonFactor.Value = comparisonFactor;
    83       es.SuccessRatio.Value = successRatio;
    84       es.MaximumSelectionPressure.Value = maxSelPres;
    85       es.ParentsPerChild.Value = parentsPerChild;
    86       es.SelectedParents.Value = popSize * parentsPerChild;
    87       es.MaximumGenerations.Value = maxGens;
    88       es.PlusSelection.Value = false;
    89 
    90       es.Seed.Value = 0;
    91       es.SetSeedRandomly.Value = true;
    92 
    93       es.Recombinator = es.RecombinatorParameter.ValidValues
    94         .OfType<R>()
    95         .Single();
    96 
    97       es.Mutator = es.MutatorParameter.ValidValues
    98         .OfType<M>()
    99         .Single();
    100 
    101       es.StrategyParameterCreator = es.StrategyParameterCreatorParameter.ValidValues
    102         .OfType<SC>()
    103         .Single();
    104       es.StrategyParameterCrossover = es.StrategyParameterCrossoverParameter.ValidValues
    105         .OfType<SR>()
    106         .Single();
    107       es.StrategyParameterManipulator = es.StrategyParameterManipulatorParameter.ValidValues
    108         .OfType<SM>()
    109         .Single();
    110       es.Engine = new ParallelEngine.ParallelEngine();
    111     }
    112 
    11373    public static void ConfigureGeneticAlgorithmParameters<S, C, M>(GeneticAlgorithm ga, int popSize, int elites, int maxGens, double mutationRate, int tournGroupSize = 0)
    11474      where S : ISelector
     
    234194
    235195      ga.MaximumGenerations = maxGens;
    236 
     196     
    237197      ga.Engine = new ParallelEngine.ParallelEngine();
    238198    }
  • stable/HeuristicLab.Tests/HeuristicLab.Tests.csproj

    r13292 r13293  
    131131    <Reference Include="HeuristicLab.Algorithms.LocalSearch-3.3">
    132132      <HintPath>..\bin\HeuristicLab.Algorithms.LocalSearch-3.3.dll</HintPath>
    133       <Private>False</Private>
    134     </Reference>
    135     <Reference Include="HeuristicLab.Algorithms.OffspringSelectionEvolutionStrategy-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    136       <HintPath>..\bin\HeuristicLab.Algorithms.OffspringSelectionEvolutionStrategy-3.3.dll</HintPath>
    137133      <Private>False</Private>
    138134    </Reference>
     
    440436    <Compile Include="HeuristicLab-3.3\PluginLoader.cs" />
    441437    <Compile Include="HeuristicLab-3.3\Samples\AlpsSampleTest.cs" />
    442     <Compile Include="HeuristicLab-3.3\Samples\OSESGriewankSampleTest.cs" />
    443438    <Compile Include="HeuristicLab-3.3\Samples\GAGroupingProblemSampleTest.cs" />
    444439    <Compile Include="HeuristicLab-3.3\Samples\VnsOpSampleTest.cs" />
Note: See TracChangeset for help on using the changeset viewer.