- Timestamp:
- 11/20/13 10:52:38 (11 years ago)
- Location:
- branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/HeuristicLab.Algorithms.GeneticAlgorithm-3.3.csproj ¶
r9066 r10142 52 52 <DebugType>pdbonly</DebugType> 53 53 <Optimize>true</Optimize> 54 <OutputPath> $(SolutionDir)\bin\</OutputPath>54 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 55 55 <DefineConstants>TRACE</DefineConstants> 56 56 <ErrorReport>prompt</ErrorReport> … … 103 103 <Reference Include="HeuristicLab.Analysis-3.3"> 104 104 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 105 <Private>False</Private> 105 106 </Reference> 106 107 <Reference Include="HeuristicLab.Collections-3.3"> 107 108 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> 109 <Private>False</Private> 108 110 </Reference> 109 111 <Reference Include="HeuristicLab.Common-3.3"> 110 112 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 113 <Private>False</Private> 111 114 </Reference> 112 115 <Reference Include="HeuristicLab.Core-3.3"> 113 116 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 117 <Private>False</Private> 114 118 </Reference> 115 119 <Reference Include="HeuristicLab.Data-3.3"> 116 120 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath> 121 <Private>False</Private> 117 122 </Reference> 118 123 <Reference Include="HeuristicLab.Operators-3.3"> 119 124 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath> 125 <Private>False</Private> 120 126 </Reference> 121 127 <Reference Include="HeuristicLab.Optimization-3.3"> 122 128 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 129 <Private>False</Private> 123 130 </Reference> 124 131 <Reference Include="HeuristicLab.Optimization.Operators-3.3"> 125 132 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization.Operators-3.3.dll</HintPath> 133 <Private>False</Private> 126 134 </Reference> 127 135 <Reference Include="HeuristicLab.Parameters-3.3"> 128 136 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 137 <Private>False</Private> 129 138 </Reference> 130 139 <Reference Include="HeuristicLab.Persistence-3.3"> 131 140 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 141 <Private>False</Private> 132 142 </Reference> 133 143 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 134 144 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 145 <Private>False</Private> 135 146 </Reference> 136 147 <Reference Include="HeuristicLab.Random-3.3"> 137 148 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Random-3.3.dll</HintPath> 149 <Private>False</Private> 138 150 </Reference> 139 151 <Reference Include="HeuristicLab.Selection-3.3"> 140 152 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Selection-3.3.dll</HintPath> 153 <Private>False</Private> 141 154 </Reference> 142 155 <Reference Include="System" /> -
TabularUnified branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs ¶
r9756 r10142 41 41 [Creatable("Algorithms")] 42 42 [StorableClass] 43 public sealedclass IslandGeneticAlgorithm : HeuristicOptimizationEngineAlgorithm, IStorableContent {43 public class IslandGeneticAlgorithm : HeuristicOptimizationEngineAlgorithm, IStorableContent { 44 44 public string Filename { get; set; } 45 45 … … 55 55 56 56 #region Parameter Properties 57 pr ivateValueParameter<IntValue> SeedParameter {57 protected ValueParameter<IntValue> SeedParameter { 58 58 get { return (ValueParameter<IntValue>)Parameters["Seed"]; } 59 59 } 60 pr ivateValueParameter<BoolValue> SetSeedRandomlyParameter {60 protected ValueParameter<BoolValue> SetSeedRandomlyParameter { 61 61 get { return (ValueParameter<BoolValue>)Parameters["SetSeedRandomly"]; } 62 62 } 63 pr ivateValueParameter<IntValue> NumberOfIslandsParameter {63 protected ValueParameter<IntValue> NumberOfIslandsParameter { 64 64 get { return (ValueParameter<IntValue>)Parameters["NumberOfIslands"]; } 65 65 } 66 pr ivateValueParameter<IntValue> MigrationIntervalParameter {66 protected ValueParameter<IntValue> MigrationIntervalParameter { 67 67 get { return (ValueParameter<IntValue>)Parameters["MigrationInterval"]; } 68 68 } 69 pr ivateValueParameter<PercentValue> MigrationRateParameter {69 protected ValueParameter<PercentValue> MigrationRateParameter { 70 70 get { return (ValueParameter<PercentValue>)Parameters["MigrationRate"]; } 71 71 } … … 79 79 get { return (IConstrainedValueParameter<IReplacer>)Parameters["ImmigrationReplacer"]; } 80 80 } 81 pr ivateValueParameter<IntValue> PopulationSizeParameter {81 protected ValueParameter<IntValue> PopulationSizeParameter { 82 82 get { return (ValueParameter<IntValue>)Parameters["PopulationSize"]; } 83 83 } 84 pr ivateValueParameter<IntValue> MaximumGenerationsParameter {84 protected ValueParameter<IntValue> MaximumGenerationsParameter { 85 85 get { return (ValueParameter<IntValue>)Parameters["MaximumGenerations"]; } 86 86 } … … 91 91 get { return (IConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; } 92 92 } 93 pr ivateValueParameter<PercentValue> MutationProbabilityParameter {93 protected ValueParameter<PercentValue> MutationProbabilityParameter { 94 94 get { return (ValueParameter<PercentValue>)Parameters["MutationProbability"]; } 95 95 } … … 97 97 get { return (IConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; } 98 98 } 99 pr ivateValueParameter<IntValue> ElitesParameter {99 protected ValueParameter<IntValue> ElitesParameter { 100 100 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 101 101 } 102 pr ivateIFixedValueParameter<BoolValue> ReevaluateElitesParameter {102 protected IFixedValueParameter<BoolValue> ReevaluateElitesParameter { 103 103 get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; } 104 104 } 105 pr ivateValueParameter<MultiAnalyzer> AnalyzerParameter {105 protected ValueParameter<MultiAnalyzer> AnalyzerParameter { 106 106 get { return (ValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; } 107 107 } 108 pr ivateValueParameter<MultiAnalyzer> IslandAnalyzerParameter {108 protected ValueParameter<MultiAnalyzer> IslandAnalyzerParameter { 109 109 get { return (ValueParameter<MultiAnalyzer>)Parameters["IslandAnalyzer"]; } 110 110 } … … 184 184 set { IslandAnalyzerParameter.Value = value; } 185 185 } 186 pr ivateRandomCreator RandomCreator {186 protected RandomCreator RandomCreator { 187 187 get { return (RandomCreator)OperatorGraph.InitialOperator; } 188 188 } 189 pr ivateUniformSubScopesProcessor IslandProcessor {189 protected UniformSubScopesProcessor IslandProcessor { 190 190 get { return OperatorGraph.Iterate().OfType<UniformSubScopesProcessor>().First(x => x.Operator is SolutionsCreator); } 191 191 } 192 pr ivateSolutionsCreator SolutionsCreator {192 protected SolutionsCreator SolutionsCreator { 193 193 get { return (SolutionsCreator)IslandProcessor.Operator; } 194 194 } 195 pr ivateIslandGeneticAlgorithmMainLoop MainLoop {195 protected IslandGeneticAlgorithmMainLoop MainLoop { 196 196 get { return FindMainLoop(IslandProcessor.Successor); } 197 197 } 198 198 [Storable] 199 pr ivateBestAverageWorstQualityAnalyzer islandQualityAnalyzer;199 protected BestAverageWorstQualityAnalyzer islandQualityAnalyzer; 200 200 [Storable] 201 pr ivateBestAverageWorstQualityAnalyzer qualityAnalyzer;201 protected BestAverageWorstQualityAnalyzer qualityAnalyzer; 202 202 #endregion 203 203 204 204 [StorableConstructor] 205 pr ivateIslandGeneticAlgorithm(bool deserializing) : base(deserializing) { }205 protected IslandGeneticAlgorithm(bool deserializing) : base(deserializing) { } 206 206 [StorableHook(HookType.AfterDeserialization)] 207 207 private void AfterDeserialization() { … … 215 215 Initialize(); 216 216 } 217 pr ivateIslandGeneticAlgorithm(IslandGeneticAlgorithm original, Cloner cloner)217 protected IslandGeneticAlgorithm(IslandGeneticAlgorithm original, Cloner cloner) 218 218 : base(original, cloner) { 219 219 islandQualityAnalyzer = cloner.Clone(original.islandQualityAnalyzer); … … 422 422 423 423 #region Helpers 424 pr ivatevoid Initialize() {424 protected virtual void Initialize() { 425 425 PopulationSizeParameter.ValueChanged += new EventHandler(PopulationSizeParameter_ValueChanged); 426 426 PopulationSize.ValueChanged += new EventHandler(PopulationSize_ValueChanged); … … 433 433 } 434 434 } 435 pr ivatevoid ParameterizeSolutionsCreator() {435 protected virtual void ParameterizeSolutionsCreator() { 436 436 SolutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; 437 437 SolutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name; 438 438 } 439 pr ivatevoid ParameterizeMainLoop() {439 protected virtual void ParameterizeMainLoop() { 440 440 MainLoop.BestKnownQualityParameter.ActualName = Problem.BestKnownQualityParameter.Name; 441 441 MainLoop.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name; … … 443 443 MainLoop.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName; 444 444 } 445 pr ivatevoid ParameterizeStochasticOperator(IOperator op) {445 protected virtual void ParameterizeStochasticOperator(IOperator op) { 446 446 IStochasticOperator stochasticOp = op as IStochasticOperator; 447 447 if (stochasticOp != null) { … … 450 450 } 451 451 } 452 pr ivatevoid ParameterizeStochasticOperatorForIsland(IOperator op) {452 protected virtual void ParameterizeStochasticOperatorForIsland(IOperator op) { 453 453 IStochasticOperator stochasticOp = op as IStochasticOperator; 454 454 if (stochasticOp != null) { … … 457 457 } 458 458 } 459 pr ivatevoid ParameterizeSelectors() {459 protected virtual void ParameterizeSelectors() { 460 460 foreach (ISelector selector in SelectorParameter.ValidValues) { 461 461 selector.CopySelected = new BoolValue(true); … … 494 494 } 495 495 } 496 pr ivatevoid ParameterizeAnalyzers() {496 protected virtual void ParameterizeAnalyzers() { 497 497 islandQualityAnalyzer.ResultsParameter.ActualName = "Results"; 498 498 islandQualityAnalyzer.ResultsParameter.Hidden = true; … … 517 517 } 518 518 } 519 pr ivatevoid ParameterizeIterationBasedOperators() {519 protected virtual void ParameterizeIterationBasedOperators() { 520 520 if (Problem != null) { 521 521 foreach (IIterationBasedOperator op in Problem.Operators.OfType<IIterationBasedOperator>()) { … … 527 527 } 528 528 } 529 pr ivatevoid UpdateCrossovers() {529 protected virtual void UpdateCrossovers() { 530 530 ICrossover oldCrossover = CrossoverParameter.Value; 531 531 ICrossover defaultCrossover = Problem.Operators.OfType<ICrossover>().FirstOrDefault(); … … 543 543 CrossoverParameter.Value = defaultCrossover; 544 544 } 545 pr ivatevoid UpdateMutators() {545 protected virtual void UpdateMutators() { 546 546 IManipulator oldMutator = MutatorParameter.Value; 547 547 MutatorParameter.ValidValues.Clear(); … … 555 555 } 556 556 } 557 pr ivatevoid UpdateAnalyzers() {557 protected virtual void UpdateAnalyzers() { 558 558 IslandAnalyzer.Operators.Clear(); 559 559 Analyzer.Operators.Clear(); … … 568 568 Analyzer.Operators.Add(qualityAnalyzer, qualityAnalyzer.EnabledByDefault); 569 569 } 570 pr ivateIslandGeneticAlgorithmMainLoop FindMainLoop(IOperator start) {570 protected virtual IslandGeneticAlgorithmMainLoop FindMainLoop(IOperator start) { 571 571 IOperator mainLoop = start; 572 572 while (mainLoop != null && !(mainLoop is IslandGeneticAlgorithmMainLoop)) -
TabularUnified branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/Plugin.cs.frame ¶
r9756 r10142 26 26 /// Plugin class for HeuristicLab.Algorithms.GeneticAlgorithm plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Algorithms.GeneticAlgorithm", "3.3. 8.$WCREV$")]28 [Plugin("HeuristicLab.Algorithms.GeneticAlgorithm", "3.3.9.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Algorithms.GeneticAlgorithm-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] -
TabularUnified branches/DataAnalysis.IslandAlgorithms/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/Properties/AssemblyInfo.cs.frame ¶
r9756 r10142 53 53 // by using the '*' as shown below: 54 54 [assembly: AssemblyVersion("3.3.0.0")] 55 [assembly: AssemblyFileVersion("3.3. 8.$WCREV$")]55 [assembly: AssemblyFileVersion("3.3.9.$WCREV$")]
Note: See TracChangeset
for help on using the changeset viewer.