Changeset 3647
- Timestamp:
- 05/05/10 18:13:06 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 9 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions.Views/3.3/HeuristicLab.Problems.TestFunctions.Views-3.3.csproj
r3437 r3647 86 86 <ItemGroup> 87 87 <Compile Include="HeuristicLabProblemsTestFunctionsViewsPlugin.cs" /> 88 <Compile Include="SingleObjectiveTestFunctionSolutionView.cs"> 89 <SubType>UserControl</SubType> 90 </Compile> 91 <Compile Include="SingleObjectiveTestFunctionSolutionView.Designer.cs"> 92 <DependentUpon>SingleObjectiveTestFunctionSolutionView.cs</DependentUpon> 93 </Compile> 88 94 <None Include="HeuristicLab.snk" /> 89 95 <None Include="HeuristicLabProblemsTestFunctionsViewsPlugin.cs.frame" /> … … 94 100 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project> 95 101 <Name>HeuristicLab.Collections-3.3</Name> 102 </ProjectReference> 103 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj"> 104 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project> 105 <Name>HeuristicLab.Common-3.3</Name> 96 106 </ProjectReference> 97 107 <ProjectReference Include="..\..\HeuristicLab.Core.Views\3.3\HeuristicLab.Core.Views-3.3.csproj"> … … 136 146 </ProjectReference> 137 147 </ItemGroup> 148 <ItemGroup> 149 <EmbeddedResource Include="SingleObjectiveTestFunctionSolutionView.resx"> 150 <DependentUpon>SingleObjectiveTestFunctionSolutionView.cs</DependentUpon> 151 </EmbeddedResource> 152 </ItemGroup> 138 153 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 139 154 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
trunk/sources/HeuristicLab.Problems.TestFunctions.Views/3.3/HeuristicLabProblemsTestFunctionsViewsPlugin.cs.frame
r3437 r3647 29 29 [PluginFile("HeuristicLab.Problems.TestFunctions.Views-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] 31 [PluginDependency("HeuristicLab.Common", "3.3")] 31 32 [PluginDependency("HeuristicLab.Core", "3.3")] 32 33 [PluginDependency("HeuristicLab.Core.Views", "3.3")] -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/HeuristicLab.Problems.TestFunctions-3.3.csproj
r3384 r3647 84 84 </ItemGroup> 85 85 <ItemGroup> 86 <Compile Include="Analyzers\BestSingleObjectiveTestFunctionSolutionAnalyzer.cs" /> 87 <Compile Include="Analyzers\MultiPopulationBestSingleObjectiveTestFunctionSolutionAnalyzer.cs" /> 88 <Compile Include="Analyzers\PopulationBestSingleObjectiveTestFunctionSolutionAnalyzer.cs" /> 86 89 <Compile Include="Evaluators\AckleyEvaluator.cs" /> 87 90 <Compile Include="Evaluators\BealeEvaluator.cs" /> … … 98 101 <Compile Include="Evaluators\ZakharovEvaluator.cs" /> 99 102 <Compile Include="HeuristicLabProblemsTestFunctionsPlugin.cs" /> 103 <Compile Include="Interfaces\IBestSingleObjectiveTestFunctionSolutionAnalyzer.cs" /> 100 104 <Compile Include="Interfaces\IRastriginMoveEvaluator.cs" /> 101 105 <Compile Include="Interfaces\ISingleObjectiveTestFunctionAdditiveMoveEvaluator.cs" /> … … 118 122 <Compile Include="MoveEvaluators\AdditiveMoveEvaluator.cs" /> 119 123 <Compile Include="MoveEvaluators\RealVectorAdditiveMoveWrapper.cs" /> 124 <Compile Include="SingleObjectiveTestFunctionSolution.cs" /> 120 125 <Compile Include="SingleObjectiveTestFunctionProblem.cs" /> 121 126 <None Include="HeuristicLab.snk" /> -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r3616 r3647 33 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 34 34 using HeuristicLab.PluginInfrastructure; 35 using HeuristicLab.Problems.TestFunctions.Analyzers; 35 36 36 37 namespace HeuristicLab.Problems.TestFunctions { … … 121 122 get { return operators; } 122 123 } 124 private IEnumerable<IBestSingleObjectiveTestFunctionSolutionAnalyzer> BestSingleObjectiveTestFunctionSolutionAnalyzers { 125 get { return operators.OfType<IBestSingleObjectiveTestFunctionSolutionAnalyzer>(); } 126 } 123 127 #endregion 124 128 … … 147 151 ParameterizeSolutionCreator(); 148 152 ParameterizeEvaluator(); 149 ParameterizeVisualizer();150 153 151 154 Initialize(); … … 186 189 private void SolutionCreatorParameter_ValueChanged(object sender, EventArgs e) { 187 190 ParameterizeSolutionCreator(); 191 ParameterizeAnalyzers(); 188 192 SolutionCreator_RealVectorParameter_ActualNameChanged(null, EventArgs.Empty); 189 193 } … … 191 195 ParameterizeEvaluator(); 192 196 ParameterizeOperators(); 193 Parameterize Visualizer();197 ParameterizeAnalyzers(); 194 198 } 195 199 private void EvaluatorParameter_ValueChanged(object sender, EventArgs e) { 196 200 ParameterizeEvaluator(); 197 201 UpdateMoveEvaluators(); 202 ParameterizeAnalyzers(); 198 203 Maximization.Value = Evaluator.Maximization; 199 204 BoundsParameter.Value = Evaluator.Bounds; … … 272 277 strategyVectorCreator.StrategyParameterParameter.ActualNameChanged += new EventHandler(strategyVectorCreator_StrategyParameterParameter_ActualNameChanged); 273 278 } 279 private void ParameterizeAnalyzers() { 280 foreach (IBestSingleObjectiveTestFunctionSolutionAnalyzer analyzer in BestSingleObjectiveTestFunctionSolutionAnalyzers) { 281 analyzer.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 282 analyzer.ResultsParameter.ActualName = "Results"; 283 } 284 } 274 285 private void InitializeOperators() { 275 286 operators = new List<IOperator>(); 287 operators.Add(new BestSingleObjectiveTestFunctionSolutionAnalyzer()); 288 operators.Add(new PopulationBestSingleObjectiveTestFunctionSolutionAnalyzer()); 289 operators.Add(new MultiPopulationBestSingleObjectiveTestFunctionSolutionAnalyzer()); 290 ParameterizeAnalyzers(); 276 291 operators.AddRange(ApplicationManager.Manager.GetInstances<IRealVectorOperator>().Cast<IOperator>()); 277 292 operators.Add(strategyVectorCreator); … … 320 335 Evaluator.PointParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 321 336 } 322 private void ParameterizeVisualizer() {323 //if (Visualizer != null) {324 // Visualizer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName;325 // Visualizer.PointParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName;326 //}327 }328 337 private void ParameterizeOperators() { 329 338 foreach (IRealVectorCrossover op in Operators.OfType<IRealVectorCrossover>()) {
Note: See TracChangeset
for help on using the changeset viewer.