Changeset 3103 for trunk/sources/HeuristicLab.Algorithms.LocalSearch
- Timestamp:
- 03/18/10 22:54:50 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.LocalSearch
- Files:
-
- 4 deleted
- 1 edited
- 4 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 HeuristicLabAlgorithmsL SPlugin.cs4 HeuristicLabAlgorithmsLocalSearchPlugin.cs
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/HeuristicLab.Algorithms.LocalSearch-3.3.csproj
r3097 r3103 9 9 <OutputType>Library</OutputType> 10 10 <AppDesignerFolder>Properties</AppDesignerFolder> 11 <RootNamespace>HeuristicLab.Algorithms.L S</RootNamespace>12 <AssemblyName>HeuristicLab.Algorithms.L S-3.3</AssemblyName>11 <RootNamespace>HeuristicLab.Algorithms.LocalSearch</RootNamespace> 12 <AssemblyName>HeuristicLab.Algorithms.LocalSearch-3.3</AssemblyName> 13 13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 14 14 <FileAlignment>512</FileAlignment> … … 80 80 </ItemGroup> 81 81 <ItemGroup> 82 <Compile Include="HeuristicLabAlgorithmsL SPlugin.cs" />83 <Compile Include="L SMainLoop.cs" />82 <Compile Include="HeuristicLabAlgorithmsLocalSearchPlugin.cs" /> 83 <Compile Include="LocalSearchMainLoop.cs" /> 84 84 <Compile Include="Properties\AssemblyInfo.cs" /> 85 <Compile Include="L S.cs" />85 <Compile Include="LocalSearch.cs" /> 86 86 </ItemGroup> 87 87 <ItemGroup> 88 88 <None Include="HeuristicLab.snk" /> 89 <None Include="HeuristicLabAlgorithmsL SPlugin.cs.frame" />89 <None Include="HeuristicLabAlgorithmsLocalSearchPlugin.cs.frame" /> 90 90 <None Include="Properties\AssemblyInfo.frame" /> 91 91 </ItemGroup> … … 155 155 156 156 call PreBuildEvent.cmd 157 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabAlgorithmsL SPlugin.cs.frame" "%25ProjectDir%25\HeuristicLabAlgorithmsLSPlugin.cs"</PreBuildEvent>157 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabAlgorithmsLocalSearchPlugin.cs.frame" "%25ProjectDir%25\HeuristicLabAlgorithmsLocalSearchPlugin.cs"</PreBuildEvent> 158 158 </PropertyGroup> 159 159 </Project> -
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/HeuristicLabAlgorithmsLocalSearchPlugin.cs.frame
r3097 r3103 22 22 using HeuristicLab.PluginInfrastructure; 23 23 24 namespace HeuristicLab.Algorithms.L S{24 namespace HeuristicLab.Algorithms.LocalSearch { 25 25 /// <summary> 26 /// Plugin class for HeuristicLab.Algorithms.L Splugin.26 /// Plugin class for HeuristicLab.Algorithms.LocalSearch plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Algorithms.L S", "3.3.0.$WCREV$")]29 [PluginFile("HeuristicLab.Algorithms.L S-3.3.dll", PluginFileType.Assembly)]28 [Plugin("HeuristicLab.Algorithms.LocalSearch", "3.3.0.$WCREV$")] 29 [PluginFile("HeuristicLab.Algorithms.LocalSearch-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] 31 31 [PluginDependency("HeuristicLab.Collections", "3.3")] … … 39 39 [PluginDependency("HeuristicLab.Random", "3.3")] 40 40 [PluginDependency("HeuristicLab.Selection", "3.3")] 41 public class HeuristicLabAlgorithmsL SPlugin : PluginBase {41 public class HeuristicLabAlgorithmsLocalSearchPlugin : PluginBase { 42 42 } 43 43 } -
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearch.cs
r3097 r3103 32 32 using HeuristicLab.PluginInfrastructure; 33 33 34 namespace HeuristicLab.Algorithms.L S{35 [Item("L S", "A local search algorithm.")]34 namespace HeuristicLab.Algorithms.LocalSearch { 35 [Item("LocalSearch", "A local search algorithm.")] 36 36 [Creatable("Algorithms")] 37 public sealed class L S: EngineAlgorithm {37 public sealed class LocalSearch : EngineAlgorithm { 38 38 #region Problem Properties 39 39 public override Type ProblemType { … … 98 98 get { return (SolutionsCreator)RandomCreator.Successor; } 99 99 } 100 private L SMainLoop LSMainLoop {101 get { return (L SMainLoop)SolutionsCreator.Successor; }102 } 103 #endregion 104 105 public L S()100 private LocalSearchMainLoop MainLoop { 101 get { return (LocalSearchMainLoop)SolutionsCreator.Successor; } 102 } 103 #endregion 104 105 public LocalSearch() 106 106 : base() { 107 107 Parameters.Add(new ValueParameter<IntValue>("Seed", "The random seed used to initialize the new pseudo random number generator.", new IntValue(0))); … … 114 114 RandomCreator randomCreator = new RandomCreator(); 115 115 SolutionsCreator solutionsCreator = new SolutionsCreator(); 116 L SMainLoop lsMainLoop = new LSMainLoop();116 LocalSearchMainLoop lsMainLoop = new LocalSearchMainLoop(); 117 117 OperatorGraph.InitialOperator = randomCreator; 118 118 … … 138 138 139 139 [StorableConstructor] 140 private L S(bool deserializing) : base() { }140 private LocalSearch(bool deserializing) : base() { } 141 141 142 142 public override IDeepCloneable Clone(Cloner cloner) { 143 L S clone = (LS)base.Clone(cloner);143 LocalSearch clone = (LocalSearch)base.Clone(cloner); 144 144 clone.Initialize(); 145 145 return clone; … … 272 272 } 273 273 private void ParameterizeLSMainLoop() { 274 LSMainLoop.MaximizationParameter.ActualName = Problem.MaximizationParameter.Name;275 LSMainLoop.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName;274 MainLoop.MaximizationParameter.ActualName = Problem.MaximizationParameter.Name; 275 MainLoop.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName; 276 276 if (MoveEvaluator != null) 277 LSMainLoop.MoveQualityParameter.ActualName = MoveEvaluator.MoveQualityParameter.ActualName;277 MainLoop.MoveQualityParameter.ActualName = MoveEvaluator.MoveQualityParameter.ActualName; 278 278 } 279 279 private void ParameterizeStochasticOperator(IOperator op) { -
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearchMainLoop.cs
r3097 r3103 29 29 using HeuristicLab.Selection; 30 30 31 namespace HeuristicLab.Algorithms.L S{31 namespace HeuristicLab.Algorithms.LocalSearch { 32 32 /// <summary> 33 /// An operator which represents a tabusearch.33 /// An operator which represents a local search. 34 34 /// </summary> 35 [Item("L SMainLoop", "An operator which represents the main loop of a best improvement local search.")]35 [Item("LocalSearchMainLoop", "An operator which represents the main loop of a best improvement local search (if only a single move is generated in each iteration it is a first improvement local search).")] 36 36 [StorableClass] 37 public class L SMainLoop : AlgorithmOperator {37 public class LocalSearchMainLoop : AlgorithmOperator { 38 38 #region Parameter properties 39 39 public ValueLookupParameter<IRandom> RandomParameter { … … 73 73 #endregion 74 74 75 public L SMainLoop()75 public LocalSearchMainLoop() 76 76 : base() { 77 77 #region Create parameters
Note: See TracChangeset
for help on using the changeset viewer.