Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (15 years ago)
Author:
swagner
Message:

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TSP/3.3/TSP.cs

    r3017 r3048  
    4343
    4444    #region Parameter Properties
    45     public ValueParameter<BoolData> MaximizationParameter {
    46       get { return (ValueParameter<BoolData>)Parameters["Maximization"]; }
     45    public ValueParameter<BoolValue> MaximizationParameter {
     46      get { return (ValueParameter<BoolValue>)Parameters["Maximization"]; }
    4747    }
    4848    IParameter ISingleObjectiveProblem.MaximizationParameter {
    4949      get { return MaximizationParameter; }
    5050    }
    51     public ValueParameter<DoubleMatrixData> CoordinatesParameter {
    52       get { return (ValueParameter<DoubleMatrixData>)Parameters["Coordinates"]; }
     51    public ValueParameter<DoubleMatrix> CoordinatesParameter {
     52      get { return (ValueParameter<DoubleMatrix>)Parameters["Coordinates"]; }
    5353    }
    5454    public ValueParameter<IPermutationCreator> SolutionCreatorParameter {
     
    6464      get { return EvaluatorParameter; }
    6565    }
    66     public OptionalValueParameter<DoubleData> BestKnownQualityParameter {
    67       get { return (OptionalValueParameter<DoubleData>)Parameters["BestKnownQuality"]; }
     66    public OptionalValueParameter<DoubleValue> BestKnownQualityParameter {
     67      get { return (OptionalValueParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    6868    }
    6969    #endregion
    7070
    7171    #region Properties
    72     public DoubleMatrixData Coordinates {
     72    public DoubleMatrix Coordinates {
    7373      get { return CoordinatesParameter.Value; }
    7474      set { CoordinatesParameter.Value = value; }
     
    9191      get { return EvaluatorParameter.Value; }
    9292    }
    93     public DoubleData BestKnownQuality {
     93    public DoubleValue BestKnownQuality {
    9494      get { return BestKnownQualityParameter.Value; }
    9595      set { BestKnownQualityParameter.Value = value; }
     
    106106      TSPRoundedEuclideanPathEvaluator evaluator = new TSPRoundedEuclideanPathEvaluator();
    107107
    108       Parameters.Add(new ValueParameter<BoolData>("Maximization", "Set to false as the Traveling Salesman Problem is a minimization problem.", new BoolData(false)));
    109       Parameters.Add(new ValueParameter<DoubleMatrixData>("Coordinates", "The x- and y-Coordinates of the cities.", new DoubleMatrixData(0, 0)));
     108      Parameters.Add(new ValueParameter<BoolValue>("Maximization", "Set to false as the Traveling Salesman Problem is a minimization problem.", new BoolValue(false)));
     109      Parameters.Add(new ValueParameter<DoubleMatrix>("Coordinates", "The x- and y-Coordinates of the cities.", new DoubleMatrix(0, 0)));
    110110      Parameters.Add(new ValueParameter<IPermutationCreator>("SolutionCreator", "The operator which should be used to create new TSP solutions.", creator));
    111111      Parameters.Add(new ValueParameter<ITSPEvaluator>("Evaluator", "The operator which should be used to evaluate TSP solutions.", evaluator));
    112       Parameters.Add(new OptionalValueParameter<DoubleData>("BestKnownQuality", "The quality of the best known solution of this TSP instance."));
     112      Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this TSP instance."));
    113113
    114114      creator.PermutationParameter.ActualName = "TSPTour";
     
    131131      TSPLIBParser parser = new TSPLIBParser(filename);
    132132      parser.Parse();
    133       Coordinates = new DoubleMatrixData(parser.Vertices);
     133      Coordinates = new DoubleMatrix(parser.Vertices);
    134134    }
    135135
     
    190190    }
    191191    private void ParameterizeSolutionCreator() {
    192       SolutionCreator.LengthParameter.Value = new IntData(Coordinates.Rows);
     192      SolutionCreator.LengthParameter.Value = new IntValue(Coordinates.Rows);
    193193    }
    194194    private void ParameterizeEvaluator() {
Note: See TracChangeset for help on using the changeset viewer.