Changeset 3356
- Timestamp:
- 04/15/10 17:16:57 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/HeuristicLab.Algorithms.GeneticAlgorithm-3.3.csproj
r3198 r3356 85 85 <Compile Include="GeneticAlgorithmMainLoop.cs" /> 86 86 <Compile Include="HeuristicLabAlgorithmsGeneticAlgorithmPlugin.cs" /> 87 <Compile Include="IslandGeneticAlgorithm.cs" /> 88 <Compile Include="IslandGeneticAlgorithmMainLoop.cs" /> 87 89 <Compile Include="Properties\AssemblyInfo.cs" /> 88 90 </ItemGroup> -
trunk/sources/HeuristicLab.Algorithms.MultipopulationAlgorithm/3.3/HeuristicLab.Algorithms.MultipopulationAlgorithm-3.3.csproj
r3345 r3356 82 82 <None Include="HeuristicLabAlgorithmsMultipopulationAlgorithmPlugin.cs.frame" /> 83 83 <Compile Include="HeuristicLabAlgorithmsMultipopulationAlgorithmPlugin.cs" /> 84 <Compile Include="MultipopulationAlgorithm.cs" /> 84 85 <Compile Include="Properties\AssemblyInfo.cs" /> 85 86 <None Include="Properties\AssemblyInfo.frame" /> … … 89 90 </ItemGroup> 90 91 <ItemGroup> 92 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj"> 93 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> 94 <Name>HeuristicLab.Collections-3.3</Name> 95 </ProjectReference> 96 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 97 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> 98 <Name>HeuristicLab.Core-3.3</Name> 99 </ProjectReference> 100 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj"> 101 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project> 102 <Name>HeuristicLab.Data-3.3</Name> 103 </ProjectReference> 104 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj"> 105 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project> 106 <Name>HeuristicLab.Operators-3.3</Name> 107 </ProjectReference> 108 <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj"> 109 <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project> 110 <Name>HeuristicLab.Optimization.Operators-3.3</Name> 111 </ProjectReference> 112 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj"> 113 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> 114 <Name>HeuristicLab.Optimization-3.3</Name> 115 </ProjectReference> 116 <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj"> 117 <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project> 118 <Name>HeuristicLab.Parameters-3.3</Name> 119 </ProjectReference> 120 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 121 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 122 <Name>HeuristicLab.Persistence-3.3</Name> 123 </ProjectReference> 91 124 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> 92 125 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> 93 126 <Name>HeuristicLab.PluginInfrastructure</Name> 127 </ProjectReference> 128 <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj"> 129 <Project>{F4539FB6-4708-40C9-BE64-0A1390AEA197}</Project> 130 <Name>HeuristicLab.Random-3.3</Name> 94 131 </ProjectReference> 95 132 </ItemGroup> -
trunk/sources/HeuristicLab.Optimization.Operators/3.3/HeuristicLab.Optimization.Operators-3.3.csproj
r3226 r3356 93 93 <Compile Include="QualityComparator.cs" /> 94 94 <Compile Include="SolutionsCreator.cs" /> 95 <Compile Include="UnidirectionalRingMigrator.cs" /> 95 96 </ItemGroup> 96 97 <ItemGroup> -
trunk/sources/HeuristicLab.Optimization.Operators/3.3/UnidirectionalRingMigrator.cs
r1529 r3356 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-20 08Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 using System.Text;25 23 using HeuristicLab.Core; 26 using HeuristicLab.Data; 24 using HeuristicLab.Operators; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 26 28 namespace HeuristicLab. Evolutionary{27 namespace HeuristicLab.Optimization.Operators { 29 28 /// <summary> 30 /// Operator class that migrates one sub scope of each child to its left neighbour sub scope, like aring.29 /// Operator that migrates the selected sub scopes in each subscope in an unidirectional ring. 31 30 /// </summary> 32 public class UnidirectionalRingMigrator : OperatorBase { 33 /// <inheritdoc select="summary"/> 34 public override string Description { 35 get { return @"TODO\r\nOperator description still missing ..."; } 36 } 37 31 [Item("UnidirectionalRingMigrator", "Migrates the selected sub scopes in each subscope in an unidirectional ring.")] 32 [StorableClass] 33 public class UnidirectionalRingMigrator : SingleSuccessorOperator, IMigrator { 38 34 /// <summary> 39 35 /// Migrates every first sub scope of each child to its left neighbour (like a ring). 40 36 /// <pre> 41 /// scope scope 42 /// / | \ / | \ 43 /// A B C => A B C 44 /// /|\ /|\ /|\ /|\ /|\ /|\ 45 /// G H I J K L M N O H I J K L M N O G 37 /// __ scope __ __ scope __ 38 /// / | \ / | \ 39 /// Pop1 Pop2 Pop3 => Pop1 Pop2 Pop3 40 /// / \ / \ / \ / \ / \ / \ 41 /// R S R S R S R S R S R S 42 /// /|\ | /|\ | /|\ | /|\ | /|\ | /|\ | 43 /// ABC A DEF D GHI G ABC G DEF A GHI D 46 44 /// </pre> 47 45 /// </summary> 48 /// < param name="scope">The scope whose sub scopes of the children should migrate.</param>49 /// <returns><c>null</c>.</returns>50 public override IOperation Apply(IScope scope) {51 IList<IScope> emigrantsList = new List<IScope>();46 /// <returns>The next operation.</returns> 47 public override IOperation Apply() { 48 IScope scope = ExecutionContext.Scope; 49 List<IScope> emigrantsList = new List<IScope>(); 52 50 53 51 for (int i = 0; i < scope.SubScopes.Count; i++) { 54 52 IScope emigrants = scope.SubScopes[i].SubScopes[1]; 55 scope.SubScopes[i]. RemoveSubScope(emigrants);53 scope.SubScopes[i].SubScopes.Remove(emigrants); 56 54 emigrantsList.Add(emigrants); 57 55 } … … 62 60 63 61 for (int i = 0; i < scope.SubScopes.Count; i++) 64 scope.SubScopes[i]. AddSubScope(emigrantsList[i]);62 scope.SubScopes[i].SubScopes.Add(emigrantsList[i]); 65 63 66 return null;64 return base.Apply(); 67 65 } 68 66 } -
trunk/sources/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj
r3336 r3356 87 87 <Compile Include="Algorithm.cs" /> 88 88 <Compile Include="BatchRun.cs" /> 89 <Compile Include="Interfaces\IMigrator.cs" /> 89 90 <Compile Include="Interfaces\ISelfAdaptiveManipulator.cs" /> 90 91 <Compile Include="Interfaces\IStrategyParameterCrossover.cs" />
Note: See TracChangeset
for help on using the changeset viewer.