Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/10 01:38:30 (15 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893)

File:
1 edited

Legend:

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

    r3430 r3504  
    146146
    147147      Parameters.Add(new ValueParameter<BoolValue>("Maximization", "Set to false as the Traveling Salesman Problem is a minimization problem.", new BoolValue(false)));
    148       Parameters.Add(new ValueParameter<DoubleMatrix>("Coordinates", "The x- and y-Coordinates of the cities.", new DoubleMatrix(0, 0)));
     148      Parameters.Add(new ValueParameter<DoubleMatrix>("Coordinates", "The x- and y-Coordinates of the cities."));
    149149      Parameters.Add(new OptionalValueParameter<DoubleMatrix>("DistanceMatrix", "The matrix which contains the distances between the cities."));
    150150      Parameters.Add(new ValueParameter<BoolValue>("UseDistanceMatrix", "True if a distance matrix should be calculated and used for evaluation, otherwise false.", new BoolValue(true)));
     
    154154      Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this TSP instance."));
    155155      Parameters.Add(new OptionalValueParameter<Permutation>("BestKnownSolution", "The best known solution of this TSP instance."));
     156
     157      Coordinates = new DoubleMatrix(new double[,] {
     158        { 100, 100 }, { 100, 200 }, { 100, 300 }, { 100, 400 },
     159        { 200, 100 }, { 200, 200 }, { 200, 300 }, { 200, 400 },
     160        { 300, 100 }, { 300, 200 }, { 300, 300 }, { 300, 400 },
     161        { 400, 100 }, { 400, 200 }, { 400, 300 }, { 400, 400 }
     162      });
    156163
    157164      creator.PermutationParameter.ActualName = "TSPTour";
Note: See TracChangeset for help on using the changeset viewer.