Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/11 09:22:20 (14 years ago)
Author:
abeham
Message:

#1465

  • updated branch from trunk
Location:
branches/histogram
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/histogram

  • branches/histogram/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/BestTSPSolutionAnalyzer.cs

    r5445 r6055  
    7878      Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this TSP instance."));
    7979      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;
    8089    }
    8190
  • branches/histogram/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs

    r6046 r6055  
    163163      Parameters.Add(new OptionalValueParameter<Permutation>("BestKnownSolution", "The best known solution of this TSP instance."));
    164164
     165      MaximizationParameter.Hidden = true;
    165166      DistanceMatrixParameter.ReactOnValueToStringChangedAndValueItemImageChanged = false;
    166167
     
    325326    private void ParameterizeSolutionCreator() {
    326327      SolutionCreator.LengthParameter.Value = new IntValue(Coordinates.Rows);
     328      SolutionCreator.LengthParameter.Hidden = true;
    327329      SolutionCreator.PermutationTypeParameter.Value = new PermutationType(PermutationTypes.RelativeUndirected);
     330      SolutionCreator.PermutationTypeParameter.Hidden = true;
    328331    }
    329332    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      }
    332338      if (Evaluator is ITSPCoordinatesPathEvaluator) {
    333339        ITSPCoordinatesPathEvaluator evaluator = (ITSPCoordinatesPathEvaluator)Evaluator;
    334340        evaluator.CoordinatesParameter.ActualName = CoordinatesParameter.Name;
     341        evaluator.CoordinatesParameter.Hidden = true;
    335342        evaluator.DistanceMatrixParameter.ActualName = DistanceMatrixParameter.Name;
     343        evaluator.DistanceMatrixParameter.Hidden = true;
    336344        evaluator.UseDistanceMatrixParameter.ActualName = UseDistanceMatrixParameter.Name;
     345        evaluator.UseDistanceMatrixParameter.Hidden = true;
    337346      }
    338347    }
     
    368377      foreach (IPermutationCrossover op in Operators.OfType<IPermutationCrossover>()) {
    369378        op.ParentsParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     379        op.ParentsParameter.Hidden = true;
    370380        op.ChildParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     381        op.ChildParameter.Hidden = true;
    371382      }
    372383      foreach (IPermutationManipulator op in Operators.OfType<IPermutationManipulator>()) {
    373384        op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     385        op.PermutationParameter.Hidden = true;
    374386      }
    375387      foreach (IPermutationMoveOperator op in Operators.OfType<IPermutationMoveOperator>()) {
    376388        op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     389        op.PermutationParameter.Hidden = true;
    377390      }
    378391      foreach (ITSPPathMoveEvaluator op in Operators.OfType<ITSPPathMoveEvaluator>()) {
    379392        op.CoordinatesParameter.ActualName = CoordinatesParameter.Name;
     393        op.CoordinatesParameter.Hidden = true;
    380394        op.DistanceMatrixParameter.ActualName = DistanceMatrixParameter.Name;
     395        op.DistanceMatrixParameter.Hidden = true;
    381396        op.UseDistanceMatrixParameter.ActualName = UseDistanceMatrixParameter.Name;
     397        op.UseDistanceMatrixParameter.Hidden = true;
    382398        op.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName;
     399        op.QualityParameter.Hidden = true;
    383400        op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     401        op.PermutationParameter.Hidden = true;
    384402      }
    385403      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>()) {
    387405        op.InversionMoveParameter.ActualName = inversionMove;
     406        op.InversionMoveParameter.Hidden = true;
     407      }
    388408      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>()) {
    390410        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>()) {
    392414        op.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
     415        op.PermutationParameter.Hidden = true;
     416      }
    393417    }
    394418
Note: See TracChangeset for help on using the changeset viewer.