Ignore:
Timestamp:
11/19/10 11:12:40 (9 years ago)
Author:
svonolfe
Message:

Implemented review comments (#1236)

File:
1 edited

Legend:

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

    r4722 r4847  
    5757
    5858      if (useDistanceMatrix.Value) {
    59         if (distanceMatrix is IValueLookupParameter<DoubleMatrix>) {
    60           if ((distanceMatrix as IValueLookupParameter<DoubleMatrix>).Value == null) {
    61             (distanceMatrix as IValueLookupParameter<DoubleMatrix>).Value = CreateDistanceMatrix(coordinates);
     59        if (distanceMatrix is IValueParameter<DoubleMatrix>) {
     60          if ((distanceMatrix as IValueParameter<DoubleMatrix>).Value == null) {
     61            (distanceMatrix as IValueParameter<DoubleMatrix>).Value = CreateDistanceMatrix(coordinates);
    6262          }
    6363         
    64           distance = (distanceMatrix as IValueLookupParameter<DoubleMatrix>).Value[start, end];
     64          distance = (distanceMatrix as IValueParameter<DoubleMatrix>).Value[start, end];
    6565        } else {
    6666          if (distanceMatrix.ActualValue == null) {
Note: See TracChangeset for help on using the changeset viewer.