Changeset 4420
- Timestamp:
- 09/16/10 23:39:51 (14 years ago)
- Location:
- branches/HeuristicLab.DiversityAnalysis/HeuristicLab.Problems.TravelingSalesman/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DiversityAnalysis/HeuristicLab.Problems.TravelingSalesman/3.3/HeuristicLab.Problems.TravelingSalesman-3.3.csproj
r4402 r4420 151 151 <ItemGroup> 152 152 <Compile Include="Analyzers\BestTSPSolutionAnalyzer.cs" /> 153 <Compile Include="Analyzers\TSPPopulationDiversityAnalyzer.cs" /> 153 154 <Compile Include="Evaluators\TSPEuclideanPathEvaluator.cs" /> 154 155 <Compile Include="Evaluators\TSPGeoPathEvaluator.cs" /> -
branches/HeuristicLab.DiversityAnalysis/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r4118 r4420 126 126 get { return operators.OfType<BestTSPSolutionAnalyzer>().FirstOrDefault(); } 127 127 } 128 private TSPPopulationDiversityAnalyzer TSPPopulationDiversityAnalyzer { 129 get { return operators.OfType<TSPPopulationDiversityAnalyzer>().FirstOrDefault(); } 130 } 128 131 #endregion 129 132 … … 210 213 ParameterizeSolutionCreator(); 211 214 ParameterizeEvaluator(); 212 ParameterizeAnalyzer ();215 ParameterizeAnalyzers(); 213 216 ParameterizeOperators(); 214 217 OnSolutionCreatorChanged(); … … 216 219 private void SolutionCreator_PermutationParameter_ActualNameChanged(object sender, EventArgs e) { 217 220 ParameterizeEvaluator(); 218 ParameterizeAnalyzer ();221 ParameterizeAnalyzers(); 219 222 ParameterizeOperators(); 220 223 } … … 223 226 ParameterizeEvaluator(); 224 227 UpdateMoveEvaluators(); 225 ParameterizeAnalyzer ();228 ParameterizeAnalyzers(); 226 229 ClearDistanceMatrix(); 227 230 OnEvaluatorChanged(); 228 231 } 229 232 private void Evaluator_QualityParameter_ActualNameChanged(object sender, EventArgs e) { 230 ParameterizeAnalyzer ();233 ParameterizeAnalyzers(); 231 234 } 232 235 private void MoveGenerator_InversionMoveParameter_ActualNameChanged(object sender, EventArgs e) { … … 267 270 operators = new List<IOperator>(); 268 271 operators.Add(new BestTSPSolutionAnalyzer()); 269 ParameterizeAnalyzer(); 272 operators.Add(new TSPPopulationDiversityAnalyzer()); 273 ParameterizeAnalyzers(); 270 274 operators.AddRange(ApplicationManager.Manager.GetInstances<IPermutationOperator>().Cast<IOperator>()); 271 275 ParameterizeOperators(); … … 308 312 } 309 313 } 310 private void ParameterizeAnalyzer () {314 private void ParameterizeAnalyzers() { 311 315 BestTSPSolutionAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 312 316 BestTSPSolutionAnalyzer.CoordinatesParameter.ActualName = CoordinatesParameter.Name; … … 316 320 BestTSPSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 317 321 BestTSPSolutionAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 322 TSPPopulationDiversityAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 323 TSPPopulationDiversityAnalyzer.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 318 324 } 319 325 private void ParameterizeOperators() {
Note: See TracChangeset
for help on using the changeset viewer.