Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/12 13:17:29 (12 years ago)
Author:
ascheibe
Message:

#1722 fixed more licensing information and source formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Interpreters/PDPTWInterpreter.cs

    r7881 r8053  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     22using HeuristicLab.Data;
    2623using HeuristicLab.Problems.Instances;
    27 using HeuristicLab.Problems.VehicleRouting.Interfaces;
     24using HeuristicLab.Problems.VehicleRouting.Encodings.Potvin;
    2825using HeuristicLab.Problems.VehicleRouting.ProblemInstances;
    29 using HeuristicLab.Data;
    30 using HeuristicLab.Problems.VehicleRouting.Encodings.Potvin;
    3126
    3227namespace HeuristicLab.Problems.VehicleRouting.Interpreters {
    33   public class PDPTWInterpreter: IVRPDataInterpreter<PDPTWData> {
     28  public class PDPTWInterpreter : IVRPDataInterpreter<PDPTWData> {
    3429    public VRPInstanceDescription Interpret(IVRPData data) {
    3530      PDPTWData cvrpData = data as PDPTWData;
     
    4035
    4136      CVRPPDTWProblemInstance problem = new CVRPPDTWProblemInstance();
    42       if(cvrpData.Coordinates != null)
     37      if (cvrpData.Coordinates != null)
    4338        problem.Coordinates = new DoubleMatrix(cvrpData.Coordinates);
    4439      if (cvrpData.MaximumVehicles != null)
     
    6257        PotvinEncoding solution = new PotvinEncoding(problem);
    6358
    64         for(int i = 0; i < cvrpData.BestKnownTour.GetLength(0); i++) {
     59        for (int i = 0; i < cvrpData.BestKnownTour.GetLength(0); i++) {
    6560          Tour tour = new Tour();
    6661          solution.Tours.Add(tour);
     
    7065          }
    7166        }
    72        
     67
    7368        result.BestKnownSolution = solution;
    7469      }
Note: See TracChangeset for help on using the changeset viewer.