Changeset 1872 for trunk/sources/HeuristicLab.SGA/3.3
- Timestamp:
- 05/20/09 15:06:46 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.SGA/3.3
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SGA/3.3/HeuristicLab.SGA-3.3.csproj
r1868 r1872 5 5 <ProductVersion>9.0.30729</ProductVersion> 6 6 <SchemaVersion>2.0</SchemaVersion> 7 <ProjectGuid>{ E39AF78A-9692-472B-B061-E2F1B1AB2C92}</ProjectGuid>7 <ProjectGuid>{4C3305C4-E440-4EAD-B218-68D77AE51543}</ProjectGuid> 8 8 <OutputType>Library</OutputType> 9 9 <AppDesignerFolder>Properties</AppDesignerFolder> 10 10 <RootNamespace>HeuristicLab.SGA</RootNamespace> 11 <AssemblyName>HeuristicLab.SGA-3. 2</AssemblyName>11 <AssemblyName>HeuristicLab.SGA-3.3</AssemblyName> 12 12 <SignAssembly>true</SignAssembly> 13 13 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> … … 17 17 <UpgradeBackupLocation> 18 18 </UpgradeBackupLocation> 19 <StartupObject> 20 </StartupObject> 21 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 19 22 </PropertyGroup> 20 23 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 34 37 <ErrorReport>prompt</ErrorReport> 35 38 <WarningLevel>4</WarningLevel> 36 <DocumentationFile>bin\Release\HeuristicLab.SGA-3. 2.XML</DocumentationFile>39 <DocumentationFile>bin\Release\HeuristicLab.SGA-3.3.xml</DocumentationFile> 37 40 </PropertyGroup> 38 41 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> … … 72 75 <ItemGroup> 73 76 <Reference Include="System" /> 77 <Reference Include="System.Core"> 78 <RequiredTargetFramework>3.5</RequiredTargetFramework> 79 </Reference> 74 80 <Reference Include="System.Data" /> 75 81 <Reference Include="System.Drawing" /> … … 89 95 </ItemGroup> 90 96 <ItemGroup> 91 <ProjectReference Include="..\..\HeuristicLab.Constraints\3. 2\HeuristicLab.Constraints-3.2.csproj">92 <Project>{ FCD62C6F-4793-4593-AE9A-0BDCA256EE99}</Project>93 <Name>HeuristicLab.Constraints-3. 2</Name>97 <ProjectReference Include="..\..\HeuristicLab.Constraints\3.3\HeuristicLab.Constraints-3.3.csproj"> 98 <Project>{19C1E42A-4B48-4EFD-B697-899016F1C198}</Project> 99 <Name>HeuristicLab.Constraints-3.3</Name> 94 100 </ProjectReference> 95 <ProjectReference Include="..\..\HeuristicLab.Core\3. 2\HeuristicLab.Core-3.2.csproj">96 <Project>{ F43B59AB-2B8C-4570-BC1E-15592086517C}</Project>97 <Name>HeuristicLab.Core-3. 2</Name>101 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 102 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> 103 <Name>HeuristicLab.Core-3.3</Name> 98 104 </ProjectReference> 99 <ProjectReference Include="..\..\HeuristicLab.Data\3. 2\HeuristicLab.Data-3.2.csproj">100 <Project>{ F473D9AF-3F09-4296-9F28-3C65118DAFFA}</Project>101 <Name>HeuristicLab.Data-3. 2</Name>105 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj"> 106 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project> 107 <Name>HeuristicLab.Data-3.3</Name> 102 108 </ProjectReference> 103 <ProjectReference Include="..\..\HeuristicLab.Evolutionary\3. 2\HeuristicLab.Evolutionary-3.2.csproj">104 <Project>{ F5614C53-153C-4A37-A608-121E1C087F07}</Project>105 <Name>HeuristicLab.Evolutionary-3. 2</Name>109 <ProjectReference Include="..\..\HeuristicLab.Evolutionary\3.3\HeuristicLab.Evolutionary-3.3.csproj"> 110 <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project> 111 <Name>HeuristicLab.Evolutionary-3.3</Name> 106 112 </ProjectReference> 107 <ProjectReference Include="..\..\HeuristicLab.Logging\3. 2\HeuristicLab.Logging-3.2.csproj">108 <Project>{ 4095C92C-5A4C-44BC-9963-5F384CF5CC3F}</Project>109 <Name>HeuristicLab.Logging-3. 2</Name>113 <ProjectReference Include="..\..\HeuristicLab.Logging\3.3\HeuristicLab.Logging-3.3.csproj"> 114 <Project>{72908B54-D136-4BF2-8474-25AA6CB66C92}</Project> 115 <Name>HeuristicLab.Logging-3.3</Name> 110 116 </ProjectReference> 111 <ProjectReference Include="..\..\HeuristicLab.Operators\3.2\HeuristicLab.Operators-3.2.csproj"> 112 <Project>{A9983BA2-B3B2-475E-8E2C-62050B71D1C5}</Project> 113 <Name>HeuristicLab.Operators-3.2</Name> 117 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj"> 118 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project> 119 <Name>HeuristicLab.Operators-3.3</Name> 120 </ProjectReference> 121 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 122 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 123 <Name>HeuristicLab.Persistence-3.3</Name> 114 124 </ProjectReference> 115 125 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> … … 117 127 <Name>HeuristicLab.PluginInfrastructure</Name> 118 128 </ProjectReference> 119 <ProjectReference Include="..\..\HeuristicLab.Random\3. 2\HeuristicLab.Random-3.2.csproj">120 <Project>{ 47019A74-F7F7-482E-83AA-D3F4F777E879}</Project>121 <Name>HeuristicLab.Random-3. 2</Name>129 <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj"> 130 <Project>{F4539FB6-4708-40C9-BE64-0A1390AEA197}</Project> 131 <Name>HeuristicLab.Random-3.3</Name> 122 132 </ProjectReference> 123 <ProjectReference Include="..\..\HeuristicLab.Selection\3. 2\HeuristicLab.Selection-3.2.csproj">124 <Project>{ F7CF0571-25CB-43D5-8443-0843A1E2861A}</Project>125 <Name>HeuristicLab.Selection-3. 2</Name>133 <ProjectReference Include="..\..\HeuristicLab.Selection\3.3\HeuristicLab.Selection-3.3.csproj"> 134 <Project>{2C36CD4F-E5F5-43A4-801A-201EA895FE17}</Project> 135 <Name>HeuristicLab.Selection-3.3</Name> 126 136 </ProjectReference> 127 <ProjectReference Include="..\..\HeuristicLab.SequentialEngine\3. 2\HeuristicLab.SequentialEngine-3.2.csproj">128 <Project>{ B4BE8E53-BA06-4237-9A01-24255F880201}</Project>129 <Name>HeuristicLab.SequentialEngine-3. 2</Name>137 <ProjectReference Include="..\..\HeuristicLab.SequentialEngine\3.3\HeuristicLab.SequentialEngine-3.3.csproj"> 138 <Project>{DC3D7072-7999-4719-B65D-3997744D5DC1}</Project> 139 <Name>HeuristicLab.SequentialEngine-3.3</Name> 130 140 </ProjectReference> 131 141 </ItemGroup> -
trunk/sources/HeuristicLab.SGA/3.3/HeuristicLabSGAPlugin.cs
r1530 r1872 29 29 /// Plugin class for HeuristicLab.SGA plugin. 30 30 /// </summary> 31 [ClassInfo(Name = "HeuristicLab.SGA-3.2")] 32 [PluginFile(Filename = "HeuristicLab.SGA-3.2.dll", Filetype = PluginFileType.Assembly)] 33 [Dependency(Dependency = "HeuristicLab.Core-3.2")] 34 [Dependency(Dependency = "HeuristicLab.Data-3.2")] 35 [Dependency(Dependency = "HeuristicLab.Evolutionary-3.2")] 36 [Dependency(Dependency = "HeuristicLab.Operators-3.2")] 37 [Dependency(Dependency = "HeuristicLab.Random-3.2")] 38 [Dependency(Dependency = "HeuristicLab.Selection-3.2")] 39 [Dependency(Dependency = "HeuristicLab.Logging-3.2")] 40 [Dependency(Dependency = "HeuristicLab.SequentialEngine-3.2")] 31 [ClassInfo(Name = "HeuristicLab.SGA-3.3")] 32 [PluginFile(Filename = "HeuristicLab.SGA-3.3.dll", Filetype = PluginFileType.Assembly)] 33 [Dependency(Dependency = "HeuristicLab.Core-3.3")] 34 [Dependency(Dependency = "HeuristicLab.Data-3.3")] 35 [Dependency(Dependency = "HeuristicLab.Evolutionary-3.3")] 36 [Dependency(Dependency = "HeuristicLab.Operators-3.3")] 37 [Dependency(Dependency = "HeuristicLab.Random-3.3")] 38 [Dependency(Dependency = "HeuristicLab.Selection-3.3")] 39 [Dependency(Dependency = "HeuristicLab.Logging-3.3")] 40 [Dependency(Dependency = "HeuristicLab.SequentialEngine-3.3")] 41 [Dependency(Dependency = "HeuristicLab.Persistence-3.3")] 41 42 public class HeuristicLabSGAPlugin : PluginBase { 42 43 } -
trunk/sources/HeuristicLab.SGA/3.3/Properties/AssemblyInfo.frame
r581 r1872 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. 2.0.$WCREV$")]57 [assembly: AssemblyFileVersion("3. 2.0.$WCREV$")]56 [assembly: AssemblyVersion("3.3.0.$WCREV$")] 57 [assembly: AssemblyFileVersion("3.3.0.$WCREV$")] 58 58 [assembly: AssemblyBuildDate("$WCNOW$")] -
trunk/sources/HeuristicLab.SGA/3.3/SGA.cs
r1530 r1872 32 32 using HeuristicLab.Logging; 33 33 using HeuristicLab.Selection; 34 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 34 35 35 36 namespace HeuristicLab.SGA { … … 371 372 372 373 #region Properties 374 375 [Storable] 373 376 private IEngine myEngine; 374 377 /// <summary> … … 378 381 get { return myEngine; } 379 382 } 383 384 [Storable] 380 385 private BoolData mySetSeedRandomly; 381 386 /// <summary> … … 386 391 set { mySetSeedRandomly.Data = value; } 387 392 } 393 394 [Storable] 388 395 private IntData mySeed; 389 396 /// <summary> … … 394 401 set { mySeed.Data = value; } 395 402 } 396 private IntData myPopulationSize; 403 404 [Storable] 397 405 private IntData myParents; 406 407 [Storable] 408 private IntData myPopulationSize; 398 409 /// <summary> 399 410 /// Gets or sets the population size of the current instance. … … 407 418 } 408 419 } 420 421 [Storable] 409 422 private IntData myMaximumGenerations; 410 423 /// <summary> … … 415 428 set { myMaximumGenerations.Data = value; } 416 429 } 430 431 [Storable] 417 432 private DoubleData myMutationRate; 418 433 /// <summary> … … 423 438 set { myMutationRate.Data = value; } 424 439 } 440 441 [Storable] 425 442 private IntData myElites; 426 443 /// <summary> … … 431 448 set { myElites.Data = value; } 432 449 } 450 451 [Storable] 433 452 private CombinedOperator mySGA; 453 454 [Storable] 434 455 private IOperator myVariableInjection; 456 435 457 /// <summary> 436 458 /// Gets or sets the problem injector of the current instance. … … 445 467 } 446 468 } 469 470 [Storable] 447 471 private IOperator myPopulationInitialization; 448 472 /// <summary> … … 458 482 } 459 483 } 484 460 485 /// <summary> 461 486 /// Gets or sets the evaluator of the current instance. … … 471 496 } 472 497 } 498 499 [Storable] 473 500 private IOperator mySGAMain; 501 474 502 /// <summary> 475 503 /// Gets or sets the selection operator of the current instance. … … 484 512 } 485 513 } 514 486 515 /// <summary> 487 516 /// Gets or sets the crossover operator of the current instance. … … 496 525 } 497 526 } 527 498 528 /// <summary> 499 529 /// Gets or sets the mutation operator of the current instance. … … 547 577 return clone; 548 578 } 549 550 #region SetReferences Method 579 551 580 private void SetReferences() { 552 581 // SGA … … 578 607 mySGAMain = co4; 579 608 } 580 #endregion581 582 #region Persistence Methods583 /// <summary>584 /// Saves the current instance as <see cref="XmlNode"/> in the specified <paramref name="document"/>.585 /// </summary>586 /// <remarks>The engine of the current instance is saved as a child node with the tag name587 /// <c>Engine</c>.</remarks>588 /// <param name="name">The (tag)name of the <see cref="XmlNode"/>.</param>589 /// <param name="document">The <see cref="XmlDocument"/> where the data is saved.</param>590 /// <param name="persistedObjects">A dictionary of all already persisted objects. (Needed to avoid cycles.)</param>591 /// <returns>The saved <see cref="XmlNode"/>.</returns>592 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid,IStorable> persistedObjects) {593 XmlNode node = base.GetXmlNode(name, document, persistedObjects);594 node.AppendChild(PersistenceManager.Persist("Engine", Engine, document, persistedObjects));595 return node;596 }597 /// <summary>598 /// Loads the persisted instance from the specified <paramref name="node"/>.599 /// </summary>600 /// <remarks>The elements of the current instance must be saved in a special way, see601 /// <see cref="GetXmlNode"/>.</remarks>602 /// <param name="node">The <see cref="XmlNode"/> where the instance is saved.</param>603 /// <param name="restoredObjects">The dictionary of all already restored objects. (Needed to avoid cycles.)</param>604 public override void Populate(XmlNode node, IDictionary<Guid,IStorable> restoredObjects) {605 base.Populate(node, restoredObjects);606 myEngine = (IEngine)PersistenceManager.Restore(node.SelectSingleNode("Engine"), restoredObjects);607 SetReferences();608 }609 #endregion610 609 } 611 610 }
Note: See TracChangeset
for help on using the changeset viewer.