Changeset 8720 for trunk/sources/HeuristicLab.Problems.TestFunctions
- Timestamp:
- 10/02/12 18:59:15 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TestFunctions/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/HeuristicLab.Problems.TestFunctions-3.3.csproj
r8600 r8720 162 162 </ItemGroup> 163 163 <ItemGroup> 164 <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj"> 165 <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project> 166 <Name>HeuristicLab.Analysis-3.3</Name> 167 </ProjectReference> 164 168 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj"> 165 169 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> … … 249 253 --> 250 254 <PropertyGroup> 251 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)255 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 252 256 set ProjectDir=$(ProjectDir) 253 257 set SolutionDir=$(SolutionDir) … … 256 260 call PreBuildEvent.cmd 257 261 </PreBuildEvent> 258 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">262 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 259 263 export ProjectDir=$(ProjectDir) 260 264 export SolutionDir=$(SolutionDir) -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Plugin.cs.frame
r8334 r8720 28 28 [Plugin("HeuristicLab.Problems.TestFunctions", "3.3.7.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Problems.TestFunctions-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] 30 31 [PluginDependency("HeuristicLab.Collections", "3.3")] 31 32 [PluginDependency("HeuristicLab.Common", "3.3")] -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r8493 r8720 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 69 70 private BestSingleObjectiveTestFunctionSolutionAnalyzer BestSingleObjectiveTestFunctionSolutionAnalyzer { 70 71 get { return Operators.OfType<BestSingleObjectiveTestFunctionSolutionAnalyzer>().FirstOrDefault(); } 72 } 73 private SingleObjectivePopulationDiversityAnalyzer SingleObjectivePopulationDiversityAnalyzer { 74 get { return Operators.OfType<SingleObjectivePopulationDiversityAnalyzer>().FirstOrDefault(); } 71 75 } 72 76 #endregion … … 249 253 } 250 254 private void ParameterizeAnalyzers() { 251 BestSingleObjectiveTestFunctionSolutionAnalyzer.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 252 BestSingleObjectiveTestFunctionSolutionAnalyzer.ResultsParameter.ActualName = "Results"; 253 BestSingleObjectiveTestFunctionSolutionAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 254 BestSingleObjectiveTestFunctionSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 255 BestSingleObjectiveTestFunctionSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 256 BestSingleObjectiveTestFunctionSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 257 BestSingleObjectiveTestFunctionSolutionAnalyzer.EvaluatorParameter.ActualName = EvaluatorParameter.Name; 258 BestSingleObjectiveTestFunctionSolutionAnalyzer.BoundsParameter.ActualName = BoundsParameter.Name; 255 if (BestSingleObjectiveTestFunctionSolutionAnalyzer != null) { 256 BestSingleObjectiveTestFunctionSolutionAnalyzer.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 257 BestSingleObjectiveTestFunctionSolutionAnalyzer.ResultsParameter.ActualName = "Results"; 258 BestSingleObjectiveTestFunctionSolutionAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 259 BestSingleObjectiveTestFunctionSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 260 BestSingleObjectiveTestFunctionSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 261 BestSingleObjectiveTestFunctionSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 262 BestSingleObjectiveTestFunctionSolutionAnalyzer.EvaluatorParameter.ActualName = EvaluatorParameter.Name; 263 BestSingleObjectiveTestFunctionSolutionAnalyzer.BoundsParameter.ActualName = BoundsParameter.Name; 264 } 265 266 if (SingleObjectivePopulationDiversityAnalyzer != null) { 267 SingleObjectivePopulationDiversityAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 268 SingleObjectivePopulationDiversityAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 269 SingleObjectivePopulationDiversityAnalyzer.ResultsParameter.ActualName = "Results"; 270 SingleObjectivePopulationDiversityAnalyzer.SimilarityCalculator = Operators.OfType<SingleObjectiveTestFunctionSimilarityCalculator>().SingleOrDefault(); 271 } 259 272 } 260 273 private void InitializeOperators() { … … 264 277 265 278 Operators.Add(new BestSingleObjectiveTestFunctionSolutionAnalyzer()); 279 Operators.Add(new SingleObjectivePopulationDiversityAnalyzer()); 266 280 ParameterizeAnalyzers(); 267 281 Operators.AddRange(ApplicationManager.Manager.GetInstances<IRealVectorOperator>().Cast<IOperator>()); … … 316 330 try { 317 331 BestKnownSolutionParameter.Value = Evaluator.GetBestKnownSolution(ProblemSize.Value); 318 } catch (ArgumentException e) { 332 } 333 catch (ArgumentException e) { 319 334 ErrorHandling.ShowErrorDialog(e); 320 335 ProblemSize.Value = Evaluator.MinimumProblemSize;
Note: See TracChangeset
for help on using the changeset viewer.