Changeset 3100 for trunk/sources/HeuristicLab.Algorithms.TabuSearch
- Timestamp:
- 03/18/10 15:10:55 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.TabuSearch
- Files:
-
- 5 deleted
- 2 edited
- 4 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/HeuristicLab.Algorithms.TabuSearch-3.3.csproj
r3097 r3100 9 9 <OutputType>Library</OutputType> 10 10 <AppDesignerFolder>Properties</AppDesignerFolder> 11 <RootNamespace>HeuristicLab.Algorithms.T S</RootNamespace>12 <AssemblyName>HeuristicLab.Algorithms.T S-3.3</AssemblyName>11 <RootNamespace>HeuristicLab.Algorithms.TabuSearch</RootNamespace> 12 <AssemblyName>HeuristicLab.Algorithms.TabuSearch-3.3</AssemblyName> 13 13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 14 14 <FileAlignment>512</FileAlignment> … … 80 80 </ItemGroup> 81 81 <ItemGroup> 82 <None Include="HeuristicLabAlgorithmsT SPlugin.cs.frame" />83 <Compile Include="HeuristicLabAlgorithmsT SPlugin.cs" />82 <None Include="HeuristicLabAlgorithmsTabuSearchPlugin.cs.frame" /> 83 <Compile Include="HeuristicLabAlgorithmsTabuSearchPlugin.cs" /> 84 84 <Compile Include="Properties\AssemblyInfo.cs" /> 85 85 <Compile Include="TabuListCreator.cs"> … … 89 89 <SubType>Code</SubType> 90 90 </Compile> 91 <Compile Include="T S.cs" />92 <Compile Include="T SMainLoop.cs">91 <Compile Include="TabuSearch.cs" /> 92 <Compile Include="TabuSearchMainLoop.cs"> 93 93 <SubType>Code</SubType> 94 94 </Compile> … … 163 163 164 164 call PreBuildEvent.cmd 165 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabAlgorithmsT SPlugin.cs.frame" "%25ProjectDir%25\HeuristicLabAlgorithmsTSPlugin.cs"</PreBuildEvent>165 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabAlgorithmsTabuSearchPlugin.cs.frame" "%25ProjectDir%25\HeuristicLabAlgorithmsTabuSearchPlugin.cs"</PreBuildEvent> 166 166 </PropertyGroup> 167 167 </Project> -
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/HeuristicLabAlgorithmsTabuSearchPlugin.cs.frame
r3097 r3100 22 22 using HeuristicLab.PluginInfrastructure; 23 23 24 namespace HeuristicLab.Algorithms.T S{24 namespace HeuristicLab.Algorithms.TabuSearch { 25 25 /// <summary> 26 26 /// Plugin class for HeuristicLab.Algorithms.TS plugin. … … 36 36 [PluginDependency("HeuristicLab.Parameters", "3.3")] 37 37 [PluginDependency("HeuristicLab.Persistence", "3.3")] 38 //[PluginDependency("HeuristicLab.Random", "3.3")]38 [PluginDependency("HeuristicLab.Random", "3.3")] 39 39 [PluginDependency("HeuristicLab.Selection", "3.3")] 40 40 public class HeuristicLabAlgorithmsTSPlugin : PluginBase { -
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuListCreator.cs
r3017 r3100 28 28 using HeuristicLab.Selection; 29 29 30 namespace HeuristicLab.Algorithms.T S{30 namespace HeuristicLab.Algorithms.TabuSearch { 31 31 [Item("TabuListCreator", "An operator that creates a new empty tabu list. It can also replace an existing tabu list with a new empty one.")] 32 32 [StorableClass] -
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearch.cs
r3097 r3100 32 32 using HeuristicLab.PluginInfrastructure; 33 33 34 namespace HeuristicLab.Algorithms.T S{35 [Item("T S", "A tabu search algorithm.")]34 namespace HeuristicLab.Algorithms.TabuSearch { 35 [Item("TabuSearch", "A tabu search algorithm.")] 36 36 [Creatable("Algorithms")] 37 public sealed class T S: EngineAlgorithm {37 public sealed class TabuSearch : EngineAlgorithm { 38 38 #region Problem Properties 39 39 public override Type ProblemType { … … 119 119 get { return (SolutionsCreator)RandomCreator.Successor; } 120 120 } 121 private T SMainLoop TSMainLoop {122 get { return (T SMainLoop)SolutionsCreator.Successor; }123 } 124 #endregion 125 126 public T S()121 private TabuSearchMainLoop MainLoop { 122 get { return (TabuSearchMainLoop)SolutionsCreator.Successor; } 123 } 124 #endregion 125 126 public TabuSearch() 127 127 : base() { 128 128 Parameters.Add(new ValueParameter<IntValue>("Seed", "The random seed used to initialize the new pseudo random number generator.", new IntValue(0))); … … 138 138 RandomCreator randomCreator = new RandomCreator(); 139 139 SolutionsCreator solutionsCreator = new SolutionsCreator(); 140 T SMainLoop tsMainLoop = new TSMainLoop();140 TabuSearchMainLoop tsMainLoop = new TabuSearchMainLoop(); 141 141 OperatorGraph.InitialOperator = randomCreator; 142 142 … … 164 164 165 165 [StorableConstructor] 166 private T S(bool deserializing) : base() { }166 private TabuSearch(bool deserializing) : base() { } 167 167 168 168 public override IDeepCloneable Clone(Cloner cloner) { 169 T S clone = (TS)base.Clone(cloner);169 TabuSearch clone = (TabuSearch)base.Clone(cloner); 170 170 clone.Initialize(); 171 171 return clone; … … 314 314 } 315 315 private void ParameterizeTSMainLoop() { 316 TSMainLoop.MaximizationParameter.ActualName = Problem.MaximizationParameter.Name;317 TSMainLoop.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName;316 MainLoop.MaximizationParameter.ActualName = Problem.MaximizationParameter.Name; 317 MainLoop.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName; 318 318 if (MoveEvaluator != null) 319 TSMainLoop.MoveQualityParameter.ActualName = MoveEvaluator.MoveQualityParameter.ActualName;319 MainLoop.MoveQualityParameter.ActualName = MoveEvaluator.MoveQualityParameter.ActualName; 320 320 } 321 321 private void ParameterizeStochasticOperator(IOperator op) { -
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearchMainLoop.cs
r3097 r3100 28 28 using HeuristicLab.Selection; 29 29 30 namespace HeuristicLab.Algorithms.T S{30 namespace HeuristicLab.Algorithms.TabuSearch { 31 31 /// <summary> 32 32 /// An operator which represents a tabu search. 33 33 /// </summary> 34 [Item("T SMainLoop", "An operator which represents the main loop of a tabu search.")]34 [Item("TabuSearchMainLoop", "An operator which represents the main loop of a tabu search.")] 35 35 [StorableClass] 36 public class T SMainLoop : AlgorithmOperator {36 public class TabuSearchMainLoop : AlgorithmOperator { 37 37 #region Parameter properties 38 38 public ValueLookupParameter<IRandom> RandomParameter { … … 81 81 #endregion 82 82 83 public T SMainLoop()83 public TabuSearchMainLoop() 84 84 : base() { 85 85 #region Create parameters -
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSelector.cs
r3048 r3100 29 29 using HeuristicLab.Selection; 30 30 31 namespace HeuristicLab.Algorithms.T S{31 namespace HeuristicLab.Algorithms.TabuSearch { 32 32 /// <summary> 33 33 /// The tabu selector is a selection operator that separates the best n moves that are either not tabu or satisfy the default aspiration criterion from the rest. It expects the move subscopes to be sorted.
Note: See TracChangeset
for help on using the changeset viewer.