Changeset 3789 for trunk/sources
- Timestamp:
- 05/11/10 21:42:26 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Knapsack/3.3/KnapsackProblem.cs
r3787 r3789 304 304 } 305 305 private void ParameterizeAnalyzer() { 306 BestKnapsackSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 307 BestKnapsackSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 308 BestKnapsackSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 306 309 BestKnapsackSolutionAnalyzer.BinaryVectorParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 307 310 BestKnapsackSolutionAnalyzer.KnapsackCapacityParameter.ActualName = KnapsackCapacityParameter.Name; -
trunk/sources/HeuristicLab.Problems.OneMax/3.3/OnemaxProblem.cs
r3739 r3789 214 214 } 215 215 private void ParameterizeAnalyzer() { 216 BestOneMaxSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 217 BestOneMaxSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 216 218 BestOneMaxSolutionAnalyzer.BinaryVectorParameter.ActualName = SolutionCreator.BinaryVectorParameter.ActualName; 217 219 BestOneMaxSolutionAnalyzer.ResultsParameter.ActualName = "Results"; -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r3783 r3789 126 126 get { return operators; } 127 127 } 128 private IEnumerable<IBestSingleObjectiveTestFunctionSolutionAnalyzer> BestSingleObjectiveTestFunctionSolutionAnalyzers{129 get { return operators.OfType< IBestSingleObjectiveTestFunctionSolutionAnalyzer>(); }128 private BestSingleObjectiveTestFunctionSolutionAnalyzer BestSingleObjectiveTestFunctionSolutionAnalyzer { 129 get { return operators.OfType<BestSingleObjectiveTestFunctionSolutionAnalyzer>().FirstOrDefault(); } 130 130 } 131 131 #endregion … … 300 300 } 301 301 private void ParameterizeAnalyzers() { 302 foreach (IBestSingleObjectiveTestFunctionSolutionAnalyzer analyzer in BestSingleObjectiveTestFunctionSolutionAnalyzers) { 303 analyzer.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 304 analyzer.ResultsParameter.ActualName = "Results"; 305 } 302 BestSingleObjectiveTestFunctionSolutionAnalyzer.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName; 303 BestSingleObjectiveTestFunctionSolutionAnalyzer.ResultsParameter.ActualName = "Results"; 304 BestSingleObjectiveTestFunctionSolutionAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 305 BestSingleObjectiveTestFunctionSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 306 BestSingleObjectiveTestFunctionSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 307 BestSingleObjectiveTestFunctionSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 308 BestSingleObjectiveTestFunctionSolutionAnalyzer.EvaluatorParameter.ActualName = EvaluatorParameter.Name; 306 309 } 307 310 private void InitializeOperators() { -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r3739 r3789 334 334 BestTSPSolutionAnalyzer.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 335 335 BestTSPSolutionAnalyzer.ResultsParameter.ActualName = "Results"; 336 BestTSPSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 337 BestTSPSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 338 BestTSPSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 336 339 } 337 340 private void ParameterizeOperators() {
Note: See TracChangeset
for help on using the changeset viewer.