Changeset 8642
- Timestamp:
- 09/13/12 13:13:00 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 deleted
- 4 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab 3.3.sln
r8598 r8642 347 347 EndProject 348 348 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.Instances.DataAnalysis.Views-3.3", "HeuristicLab.Problems.Instances.DataAnalysis.Views\3.3\HeuristicLab.Problems.Instances.DataAnalysis.Views-3.3.csproj", "{72232235-B6CF-4E6C-B086-9E9E11AA0717}" 349 EndProject 350 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Algorithms.RAPGA-3.3", "HeuristicLab.Algorithms.RAPGA\3.3\HeuristicLab.Algorithms.RAPGA-3.3.csproj", "{B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}" 349 351 EndProject 350 352 Global … … 1698 1700 {72232235-B6CF-4E6C-B086-9E9E11AA0717}.Release|x64.ActiveCfg = Release|Any CPU 1699 1701 {72232235-B6CF-4E6C-B086-9E9E11AA0717}.Release|x86.ActiveCfg = Release|Any CPU 1702 {B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 1703 {B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}.Debug|Any CPU.Build.0 = Debug|Any CPU 1704 {B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}.Debug|x64.ActiveCfg = Debug|Any CPU 1705 {B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}.Debug|x86.ActiveCfg = Debug|Any CPU 1706 {B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}.Release|Any CPU.ActiveCfg = Release|Any CPU 1707 {B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}.Release|Any CPU.Build.0 = Release|Any CPU 1708 {B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}.Release|x64.ActiveCfg = Release|Any CPU 1709 {B03C4E41-1D01-4C60-B0F4-DBB257D98CA8}.Release|x86.ActiveCfg = Release|Any CPU 1700 1710 EndGlobalSection 1701 1711 GlobalSection(SolutionProperties) = preSolution -
trunk/sources/HeuristicLab.Algorithms.RAPGA/3.3/HeuristicLab.Algorithms.RAPGA-3.3.csproj
r8631 r8642 13 13 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 14 14 <FileAlignment>512</FileAlignment> 15 <SignAssembly>true</SignAssembly> 16 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 15 17 </PropertyGroup> 16 18 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 18 20 <DebugType>full</DebugType> 19 21 <Optimize>false</Optimize> 20 <OutputPath> ..\..\..\..\trunk\sources\bin\</OutputPath>22 <OutputPath>$(SolutionDir)\bin\</OutputPath> 21 23 <DefineConstants>DEBUG;TRACE</DefineConstants> 22 24 <ErrorReport>prompt</ErrorReport> … … 27 29 <DebugType>pdbonly</DebugType> 28 30 <Optimize>true</Optimize> 29 <OutputPath> bin\Release\</OutputPath>31 <OutputPath>$(SolutionDir)\bin\</OutputPath> 30 32 <DefineConstants>TRACE</DefineConstants> 31 33 <ErrorReport>prompt</ErrorReport> 32 34 <WarningLevel>4</WarningLevel> 35 <DocumentationFile> 36 </DocumentationFile> 37 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 33 38 </PropertyGroup> 34 <PropertyGroup> 35 <SignAssembly>true</SignAssembly> 39 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 40 <DebugSymbols>true</DebugSymbols> 41 <OutputPath>$(SolutionDir)\bin\</OutputPath> 42 <DefineConstants>DEBUG;TRACE</DefineConstants> 43 <DebugType>full</DebugType> 44 <PlatformTarget>x86</PlatformTarget> 45 <ErrorReport>prompt</ErrorReport> 46 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 36 47 </PropertyGroup> 37 <PropertyGroup> 38 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 48 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> 49 <OutputPath>$(SolutionDir)\bin\</OutputPath> 50 <DefineConstants>TRACE</DefineConstants> 51 <DocumentationFile> 52 </DocumentationFile> 53 <Optimize>true</Optimize> 54 <DebugType>pdbonly</DebugType> 55 <PlatformTarget>x86</PlatformTarget> 56 <ErrorReport>prompt</ErrorReport> 57 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 58 </PropertyGroup> 59 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> 60 <DebugSymbols>true</DebugSymbols> 61 <OutputPath>$(SolutionDir)\bin\</OutputPath> 62 <DefineConstants>DEBUG;TRACE</DefineConstants> 63 <DebugType>full</DebugType> 64 <PlatformTarget>x64</PlatformTarget> 65 <ErrorReport>prompt</ErrorReport> 66 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 67 </PropertyGroup> 68 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> 69 <OutputPath>$(SolutionDir)\bin\</OutputPath> 70 <DefineConstants>TRACE</DefineConstants> 71 <DocumentationFile> 72 </DocumentationFile> 73 <Optimize>true</Optimize> 74 <DebugType>pdbonly</DebugType> 75 <PlatformTarget>x64</PlatformTarget> 76 <ErrorReport>prompt</ErrorReport> 77 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 39 78 </PropertyGroup> 40 79 <ItemGroup> 41 <Reference Include="HeuristicLab.Analysis-3.3">42 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath>43 <Private>False</Private>44 </Reference>45 <Reference Include="HeuristicLab.Collections-3.3">46 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath>47 <Private>False</Private>48 </Reference>49 <Reference Include="HeuristicLab.Common-3.3">50 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath>51 <Private>False</Private>52 </Reference>53 <Reference Include="HeuristicLab.Core-3.3">54 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath>55 <Private>False</Private>56 </Reference>57 <Reference Include="HeuristicLab.Data-3.3">58 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath>59 <Private>False</Private>60 </Reference>61 <Reference Include="HeuristicLab.Operators-3.3">62 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath>63 <Private>False</Private>64 </Reference>65 <Reference Include="HeuristicLab.Optimization-3.3">66 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath>67 <Private>False</Private>68 </Reference>69 <Reference Include="HeuristicLab.Optimization.Operators-3.3">70 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization.Operators-3.3.dll</HintPath>71 <Private>False</Private>72 </Reference>73 <Reference Include="HeuristicLab.Parameters-3.3">74 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Parameters-3.3.dll</HintPath>75 <Private>False</Private>76 </Reference>77 <Reference Include="HeuristicLab.Persistence-3.3">78 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Persistence-3.3.dll</HintPath>79 <Private>False</Private>80 </Reference>81 <Reference Include="HeuristicLab.PluginInfrastructure-3.3">82 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath>83 <Private>False</Private>84 </Reference>85 <Reference Include="HeuristicLab.Random-3.3">86 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Random-3.3.dll</HintPath>87 <Private>False</Private>88 </Reference>89 <Reference Include="HeuristicLab.Selection-3.3">90 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Selection-3.3.dll</HintPath>91 <Private>False</Private>92 </Reference>93 80 <Reference Include="System" /> 94 81 <Reference Include="System.Core" /> … … 100 87 <Compile Include="Analyzers\OffspringSuccessAnalyzer.cs" /> 101 88 <Compile Include="Analyzers\PopulationSizeAnalyzer.cs" /> 102 <Compile Include="Calculator.cs" />103 89 <Compile Include="DuplicatesSelector.cs" /> 104 90 <Compile Include="ProgressiveOffspringPreserver.cs" /> … … 106 92 <Compile Include="RAPGA.cs" /> 107 93 <Compile Include="RAPGAMainLoop.cs" /> 108 <None Include="Properties\AssemblyInfo.cs.frame" />109 <None Include="Plugin.cs.frame" />110 94 <Compile Include="Plugin.cs" /> 111 95 <Compile Include="Properties\AssemblyInfo.cs" /> … … 113 97 <ItemGroup> 114 98 <None Include="HeuristicLab.snk" /> 99 <None Include="Plugin.cs.frame" /> 100 <None Include="Properties\AssemblyInfo.cs.frame" /> 115 101 </ItemGroup> 116 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 102 <ItemGroup> 103 <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj"> 104 <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project> 105 <Name>HeuristicLab.Analysis-3.3</Name> 106 <Private>False</Private> 107 </ProjectReference> 108 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj"> 109 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> 110 <Name>HeuristicLab.Collections-3.3</Name> 111 <Private>False</Private> 112 </ProjectReference> 113 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj"> 114 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project> 115 <Name>HeuristicLab.Common-3.3</Name> 116 <Private>False</Private> 117 </ProjectReference> 118 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 119 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> 120 <Name>HeuristicLab.Core-3.3</Name> 121 <Private>False</Private> 122 </ProjectReference> 123 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj"> 124 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project> 125 <Name>HeuristicLab.Data-3.3</Name> 126 <Private>False</Private> 127 </ProjectReference> 128 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj"> 129 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project> 130 <Name>HeuristicLab.Operators-3.3</Name> 131 <Private>False</Private> 132 </ProjectReference> 133 <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj"> 134 <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project> 135 <Name>HeuristicLab.Optimization.Operators-3.3</Name> 136 <Private>False</Private> 137 </ProjectReference> 138 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj"> 139 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> 140 <Name>HeuristicLab.Optimization-3.3</Name> 141 <Private>False</Private> 142 </ProjectReference> 143 <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj"> 144 <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project> 145 <Name>HeuristicLab.Parameters-3.3</Name> 146 <Private>False</Private> 147 </ProjectReference> 148 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 149 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 150 <Name>HeuristicLab.Persistence-3.3</Name> 151 <Private>False</Private> 152 </ProjectReference> 153 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj"> 154 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> 155 <Name>HeuristicLab.PluginInfrastructure-3.3</Name> 156 <Private>False</Private> 157 </ProjectReference> 158 <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj"> 159 <Project>{F4539FB6-4708-40C9-BE64-0A1390AEA197}</Project> 160 <Name>HeuristicLab.Random-3.3</Name> 161 <Private>False</Private> 162 </ProjectReference> 163 <ProjectReference Include="..\..\HeuristicLab.Selection\3.3\HeuristicLab.Selection-3.3.csproj"> 164 <Project>{2C36CD4F-E5F5-43A4-801A-201EA895FE17}</Project> 165 <Name>HeuristicLab.Selection-3.3</Name> 166 <Private>False</Private> 167 </ProjectReference> 168 </ItemGroup> 169 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 170 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 171 Other similar extension points exist, see Microsoft.Common.targets. 172 <Target Name="BeforeBuild"> 173 </Target> 174 <Target Name="AfterBuild"> 175 </Target> 176 --> 117 177 <PropertyGroup> 118 <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir)178 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 119 179 set ProjectDir=$(ProjectDir) 120 180 set SolutionDir=$(SolutionDir) … … 123 183 call PreBuildEvent.cmd 124 184 </PreBuildEvent> 185 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 186 export ProjectDir=$(ProjectDir) 187 export SolutionDir=$(SolutionDir) 188 189 $SolutionDir/PreBuildEvent.sh 190 </PreBuildEvent> 125 191 </PropertyGroup> 126 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.127 Other similar extension points exist, see Microsoft.Common.targets.128 <Target Name="BeforeBuild">129 </Target>130 <Target Name="AfterBuild">131 </Target>132 -->133 192 </Project> -
trunk/sources/HeuristicLab.Algorithms.RAPGA/3.3/RAPGAMainLoop.cs
r8622 r8642 166 166 ProgressiveOffspringPreserver progressiveOffspringSelector = new ProgressiveOffspringPreserver(); 167 167 SubScopesCounter subScopesCounter2 = new SubScopesCounter(); 168 Calculator calculator1 = newCalculator();168 ExpressionCalculator calculator1 = new ExpressionCalculator(); 169 169 ConditionalBranch conditionalBranch1 = new ConditionalBranch(); 170 170 Comparator comparator1 = new Comparator(); … … 179 179 IntCounter intCounter3 = new IntCounter(); 180 180 SubScopesCounter subScopesCounter3 = new SubScopesCounter(); 181 Calculator calculator2 = newCalculator();181 ExpressionCalculator calculator2 = new ExpressionCalculator(); 182 182 Comparator comparator2 = new Comparator(); 183 183 ConditionalBranch conditionalBranch3 = new ConditionalBranch(); -
trunk/sources/HeuristicLab.Optimization.Operators/3.3/ExpressionCalculator.cs
r8640 r8642 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 29 30 namespace HeuristicLab. Algorithms.RAPGA{30 namespace HeuristicLab.Optimization.Operators { 31 31 /// <summary> 32 32 /// An operator that evaluates an expression. 33 33 /// </summary> 34 [Item(" Calculator", "An operator that evaluates an expression.")]34 [Item("ExpressionCalculator", "An operator that evaluates an expression.")] 35 35 [StorableClass] 36 public class Calculator : ValuesCollector {36 public class ExpressionCalculator : ValuesCollector { 37 37 [Storable] 38 public Optimization.Calculator Calc{ get; set; }38 public Calculator Calculator { get; set; } 39 39 40 40 #region Parameter Properties … … 57 57 58 58 [StorableConstructor] 59 protected Calculator(bool deserializing) : base(deserializing) { }60 protected Calculator(Calculator original, Cloner cloner)59 protected ExpressionCalculator(bool deserializing) : base(deserializing) { } 60 protected ExpressionCalculator(ExpressionCalculator original, Cloner cloner) 61 61 : base(original, cloner) { 62 this.Calc = cloner.Clone(original.Calc);62 this.Calculator = cloner.Clone(original.Calculator); 63 63 } 64 public Calculator()64 public ExpressionCalculator() 65 65 : base() { 66 66 Parameters.Add(new ValueLookupParameter<IItem>("ExpressionResult", "The result of the evaluated expression.")); … … 75 75 unquoted or in double quotes if they contain special characters or whitespace 76 76 mathematical functions: 77 +, -, /, ^ (power), log77 +, -, *, /, ^ (power), log 78 78 predicates: 79 79 ==, <, >, isnull, not … … 89 89 If the final value is null, the result variable is removed if it exists.")); 90 90 91 Calc = new Optimization.Calculator();91 Calculator = new Calculator(); 92 92 } 93 93 94 94 public override IDeepCloneable Clone(Cloner cloner) { 95 return new Calculator(this, cloner);95 return new ExpressionCalculator(this, cloner); 96 96 } 97 97 98 98 public override IOperation Apply() { 99 Calc .Formula = Formula;99 Calculator.Formula = Formula; 100 100 var variables = new Dictionary<string, IItem>(); 101 101 foreach (var collectedValue in CollectedValues) 102 102 variables[collectedValue.Name] = collectedValue.ActualValue; 103 ExpressionResult = Calc .GetValue(variables);103 ExpressionResult = Calculator.GetValue(variables); 104 104 return base.Apply(); 105 105 } -
trunk/sources/HeuristicLab.Optimization.Operators/3.3/HeuristicLab.Optimization.Operators-3.3.csproj
r8630 r8642 109 109 </ItemGroup> 110 110 <ItemGroup> 111 <Compile Include="ExpressionCalculator.cs" /> 111 112 <Compile Include="NoSimilarityCalculator.cs" /> 112 113 <Compile Include="QualitySimilarityCalculator.cs" />
Note: See TracChangeset
for help on using the changeset viewer.