- Timestamp:
- 04/27/11 09:22:20 (14 years ago)
- Location:
- branches/histogram
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram
- Property svn:mergeinfo changed
/trunk/sources merged: 6047-6048,6051-6054
- Property svn:mergeinfo changed
-
branches/histogram/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/BestTSPSolutionAnalyzer.cs
r5445 r6055 78 78 Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this TSP instance.")); 79 79 Parameters.Add(new LookupParameter<Permutation>("BestKnownSolution", "The best known solution of this TSP instance.")); 80 81 MaximizationParameter.Hidden = true; 82 CoordinatesParameter.Hidden = true; 83 PermutationParameter.Hidden = true; 84 QualityParameter.Hidden = true; 85 BestSolutionParameter.Hidden = true; 86 ResultsParameter.Hidden = true; 87 BestKnownQualityParameter.Hidden = true; 88 BestKnownSolutionParameter.Hidden = true; 80 89 } 81 90 -
branches/histogram/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r6046 r6055 163 163 Parameters.Add(new OptionalValueParameter<Permutation>("BestKnownSolution", "The best known solution of this TSP instance.")); 164 164 165 MaximizationParameter.Hidden = true; 165 166 DistanceMatrixParameter.ReactOnValueToStringChangedAndValueItemImageChanged = false; 166 167 … … 325 326 private void ParameterizeSolutionCreator() { 326 327 SolutionCreator.LengthParameter.Value = new IntValue(Coordinates.Rows); 328 SolutionCreator.LengthParameter.Hidden = true; 327 329 SolutionCreator.PermutationTypeParameter.Value = new PermutationType(PermutationTypes.RelativeUndirected); 330 SolutionCreator.PermutationTypeParameter.Hidden = true; 328 331 } 329 332 private void ParameterizeEvaluator() { 330 if (Evaluator is ITSPPathEvaluator) 331 ((ITSPPathEvaluator)Evaluator).PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 333 if (Evaluator is ITSPPathEvaluator) { 334 ITSPPathEvaluator evaluator = (ITSPPathEvaluator)Evaluator; 335 evaluator.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 336 evaluator.PermutationParameter.Hidden = true; 337 } 332 338 if (Evaluator is ITSPCoordinatesPathEvaluator) { 333 339 ITSPCoordinatesPathEvaluator evaluator = (ITSPCoordinatesPathEvaluator)Evaluator; 334 340 evaluator.CoordinatesParameter.ActualName = CoordinatesParameter.Name; 341 evaluator.CoordinatesParameter.Hidden = true; 335 342 evaluator.DistanceMatrixParameter.ActualName = DistanceMatrixParameter.Name; 343 evaluator.DistanceMatrixParameter.Hidden = true; 336 344 evaluator.UseDistanceMatrixParameter.ActualName = UseDistanceMatrixParameter.Name; 345 evaluator.UseDistanceMatrixParameter.Hidden = true; 337 346 } 338 347 } … … 368 377 foreach (IPermutationCrossover op in Operators.OfType<IPermutationCrossover>()) { 369 378 op.ParentsParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 379 op.ParentsParameter.Hidden = true; 370 380 op.ChildParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 381 op.ChildParameter.Hidden = true; 371 382 } 372 383 foreach (IPermutationManipulator op in Operators.OfType<IPermutationManipulator>()) { 373 384 op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 385 op.PermutationParameter.Hidden = true; 374 386 } 375 387 foreach (IPermutationMoveOperator op in Operators.OfType<IPermutationMoveOperator>()) { 376 388 op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 389 op.PermutationParameter.Hidden = true; 377 390 } 378 391 foreach (ITSPPathMoveEvaluator op in Operators.OfType<ITSPPathMoveEvaluator>()) { 379 392 op.CoordinatesParameter.ActualName = CoordinatesParameter.Name; 393 op.CoordinatesParameter.Hidden = true; 380 394 op.DistanceMatrixParameter.ActualName = DistanceMatrixParameter.Name; 395 op.DistanceMatrixParameter.Hidden = true; 381 396 op.UseDistanceMatrixParameter.ActualName = UseDistanceMatrixParameter.Name; 397 op.UseDistanceMatrixParameter.Hidden = true; 382 398 op.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 399 op.QualityParameter.Hidden = true; 383 400 op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 401 op.PermutationParameter.Hidden = true; 384 402 } 385 403 string inversionMove = Operators.OfType<IMoveGenerator>().OfType<IPermutationInversionMoveOperator>().First().InversionMoveParameter.ActualName; 386 foreach (IPermutationInversionMoveOperator op in Operators.OfType<IPermutationInversionMoveOperator>()) 404 foreach (IPermutationInversionMoveOperator op in Operators.OfType<IPermutationInversionMoveOperator>()) { 387 405 op.InversionMoveParameter.ActualName = inversionMove; 406 op.InversionMoveParameter.Hidden = true; 407 } 388 408 string translocationMove = Operators.OfType<IMoveGenerator>().OfType<IPermutationTranslocationMoveOperator>().First().TranslocationMoveParameter.ActualName; 389 foreach (IPermutationTranslocationMoveOperator op in Operators.OfType<IPermutationTranslocationMoveOperator>()) 409 foreach (IPermutationTranslocationMoveOperator op in Operators.OfType<IPermutationTranslocationMoveOperator>()) { 390 410 op.TranslocationMoveParameter.ActualName = translocationMove; 391 foreach (IPermutationMultiNeighborhoodShakingOperator op in Operators.OfType<IPermutationMultiNeighborhoodShakingOperator>()) 411 op.TranslocationMoveParameter.Hidden = true; 412 } 413 foreach (IPermutationMultiNeighborhoodShakingOperator op in Operators.OfType<IPermutationMultiNeighborhoodShakingOperator>()) { 392 414 op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 415 op.PermutationParameter.Hidden = true; 416 } 393 417 } 394 418
Note: See TracChangeset
for help on using the changeset viewer.