Changeset 1576
- Timestamp:
- 04/16/09 17:31:06 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 deleted
- 4 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SGA.Hardwired/3.2/HeuristicLab.SGA.Hardwired-3.2.csproj
r1561 r1576 10 10 <AppDesignerFolder>Properties</AppDesignerFolder> 11 11 <RootNamespace>HeuristicLab.SGA.Hardwired</RootNamespace> 12 <AssemblyName>HeuristicLab.SGA.Hardwired-3. 3</AssemblyName>12 <AssemblyName>HeuristicLab.SGA.Hardwired-3.2</AssemblyName> 13 13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 14 14 <FileAlignment>512</FileAlignment> -
trunk/sources/HeuristicLab.SGA.Hardwired/3.2/HeuristicLabSGAHardwiredPlugin.cs
r1543 r1576 29 29 /// Plugin class for HeuristicLab.SGA.Hardwired plugin. 30 30 /// </summary> 31 [ClassInfo(Name = "HeuristicLab.SGA.Hardwired-3. 3")]32 [PluginFile(Filename = "HeuristicLab.SGA.Hardwired-3. 3.dll", Filetype = PluginFileType.Assembly)]31 [ClassInfo(Name = "HeuristicLab.SGA.Hardwired-3.2")] 32 [PluginFile(Filename = "HeuristicLab.SGA.Hardwired-3.2.dll", Filetype = PluginFileType.Assembly)] 33 33 [Dependency(Dependency = "HeuristicLab.Core-3.2")] 34 34 [Dependency(Dependency = "HeuristicLab.Data-3.2")] -
trunk/sources/HeuristicLab.SGA.Hardwired/3.2/Properties/AssemblyInfo.frame
r1543 r1576 54 54 // You can specify all the values or you can default the Revision and Build Numbers 55 55 // by using the '*' as shown below: 56 [assembly: AssemblyVersion("3. 3.0.$WCREV$")]57 [assembly: AssemblyFileVersion("3. 3.0.$WCREV$")]56 [assembly: AssemblyVersion("3.2.0.$WCREV$")] 57 [assembly: AssemblyFileVersion("3.2.0.$WCREV$")] 58 58 [assembly: AssemblyBuildDate("$WCNOW$")] -
trunk/sources/HeuristicLab.SGA.Hardwired/3.2/SGAMainWithHWControllStructures.cs
r1560 r1576 41 41 : base() { 42 42 AddVariableInfo(new VariableInfo("Selector", "Selection strategy for SGA", typeof(OperatorBase), VariableKind.In)); 43 AddVariableInfo(new VariableInfo("MaximumGenerations", "Maximum number of generations to create", typeof(IntData), VariableKind.In)); 44 45 Name = "SGAMainWithHWControllStructures"; 43 46 } 44 47 45 48 public override IOperation Apply(IScope scope) { 46 int nrOfGenerations = 1000; 49 50 //base.Apply(scope); // noch nachfragen ob das auch in ordnung wäre 51 for (int i = 0; i < SubOperators.Count; i++) { 52 if (scope.GetVariable(SubOperators[i].Name) != null) 53 scope.RemoveVariable(SubOperators[i].Name); 54 scope.AddVariable(new Variable(SubOperators[i].Name, SubOperators[i])); 55 } 47 56 48 57 OperatorBase selector = (OperatorBase)GetVariableValue("Selector", scope, true); … … 50 59 OperatorBase createReplacement = new CreateReplacement(); 51 60 QualityLogger ql = new QualityLogger(); 52 61 53 62 BestAverageWorstQualityCalculator bawqc = new BestAverageWorstQualityCalculator(); 54 63 DataCollector dc = new DataCollector(); … … 57 66 names.Add(new StringData("AverageQuality")); 58 67 names.Add(new StringData("WorstQuality")); 59 68 60 69 LinechartInjector lci = new LinechartInjector(); 61 70 lci.GetVariableInfo("Linechart").ActualName = "Quality Linechart"; … … 70 79 ltc.GetVariableInfo("Result").ActualName = "GenerationsCondition"; 71 80 72 for (int i = 0; i < nrOfGenerations; i++) { 81 IntData maxGenerations = GetVariableValue<IntData>("MaximumGenerations", scope, true); 82 //IntData nrOfGenerations = GetVariableValue<IntData>("Generations", scope, true); 83 84 for (int i = 0; i < maxGenerations.Data; i++) { 73 85 selector.Execute(scope); 74 86 createChildren.Execute(scope.SubScopes[1]); 75 87 createReplacement.Execute(scope); 76 88 ql.Execute(scope); 77 bawqc.E quals(scope);89 bawqc.Execute(scope); 78 90 dc.Execute(scope); 79 91 lci.Execute(scope); 80 c.Execute(scope); 81 ltc.Execute(scope); 92 //c.Execute(scope); 93 //ltc.Execute(scope); 94 //nrOfGenerations.Data = i; 82 95 } 96 97 83 98 return null; 84 99 } // Apply -
trunk/sources/HeuristicLab.sln
r1568 r1576 159 159 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Tracing-3.2", "HeuristicLab.Tracing\3.2\HeuristicLab.Tracing-3.2.csproj", "{EE2034D9-6E27-48A1-B855-42D45F69A4FC}" 160 160 EndProject 161 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.SGA.Hardwired-3. 3", "HeuristicLab.SGA.Hardwired\3.3\HeuristicLab.SGA.Hardwired-3.3.csproj", "{583705E2-B1F7-42B8-8149-96E7AECA171A}"161 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.SGA.Hardwired-3.2", "HeuristicLab.SGA.Hardwired\3.2\HeuristicLab.SGA.Hardwired-3.2.csproj", "{583705E2-B1F7-42B8-8149-96E7AECA171A}" 162 162 EndProject 163 163 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Persistence.Test", "HeuristicLab.Persistence\Test\HeuristicLab.Persistence.Test.csproj", "{E2245078-6F40-449E-A370-01A97A7C5E6A}"
Note: See TracChangeset
for help on using the changeset viewer.