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/CVRPInterpreter.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 CVRPInterpreter: IVRPDataInterpreter<CVRPData> {
     28  public class CVRPInterpreter : IVRPDataInterpreter<CVRPData> {
    3429    public VRPInstanceDescription Interpret(IVRPData data) {
    3530      CVRPData cvrpData = data as CVRPData;
     
    4035
    4136      CVRPProblemInstance problem = new CVRPProblemInstance();
    42       if(cvrpData.Coordinates != null)
     37      if (cvrpData.Coordinates != null)
    4338        problem.Coordinates = new DoubleMatrix(cvrpData.Coordinates);
    4439      if (cvrpData.MaximumVehicles != null)
     
    5853        PotvinEncoding solution = new PotvinEncoding(problem);
    5954
    60         for(int i = 0; i < cvrpData.BestKnownTour.GetLength(0); i++) {
     55        for (int i = 0; i < cvrpData.BestKnownTour.GetLength(0); i++) {
    6156          Tour tour = new Tour();
    6257          solution.Tours.Add(tour);
     
    6661          }
    6762        }
    68        
     63
    6964        result.BestKnownSolution = solution;
    7065      }
Note: See TracChangeset for help on using the changeset viewer.