Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/20 17:41:18 (4 years ago)
Author:
abeham
Message:

#2521: working on porting orienteering problem
Open points include:

  • Visualization of OrienteeringProblemData
  • Fix visualization of solution
  • Cleanup unused classes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.PTSP/3.3/ProbabilisticTSPData.cs

    r17335 r17525  
    5858    }
    5959    public ProbabilisticTSPData(ITSPData tspData, double[] probabilities)
    60       : base(tspData.Name, tspData.Description) {
    61       if (tspData.Cities != probabilities.Length) throw new ArgumentException("Unequal number of cities and probabilities.");
    62       TSPData = tspData;
    63       Probabilities = new PercentArray(probabilities, @readonly: true);
    64     }
     60      : this(tspData, new PercentArray(probabilities, @readonly: true)) { }
    6561    public ProbabilisticTSPData(ITSPData tspData, PercentArray probabilities)
    6662      : base(tspData.Name, tspData.Description) {
Note: See TracChangeset for help on using the changeset viewer.