Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/18/20 18:55:08 (4 years ago)
Author:
abeham
Message:

#2521: worked on refactoring, worked a lot on binary encoding / problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.TravelingSalesman/3.3/TSP.cs

    r17525 r17544  
    7676     
    7777      TSPData = new EuclideanTSPData();
    78       Encoding.Length = TSPData.Cities;
     78      Dimension = TSPData.Cities;
    7979
    8080      InitializeOperators();
     
    140140        throw new System.IO.InvalidDataException("The coordinates of the given instance are not in the right format, there need to be one row for each customer and two columns for the x and y coordinates.");
    141141
    142       Encoding.Length = data.Dimension;
     142      Dimension = data.Dimension;
    143143      Name = data.Name;
    144144      Description = data.Description;
     
    212212    protected override void OnEncodingChanged() {
    213213      base.OnEncodingChanged();
    214       Encoding.Length = TSPData.Cities;
     214      Dimension = TSPData.Cities;
    215215      ParameterizeOperators();
    216216    }
Note: See TracChangeset for help on using the changeset viewer.