Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Creators/AlbaPushForwardInsertionCreator.cs

    r3938 r4068  
    2222using System;
    2323using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    26 using HeuristicLab.Operators;
    2724using HeuristicLab.Core;
    2825using HeuristicLab.Data;
     26using HeuristicLab.Encodings.PermutationEncoding;
     27using HeuristicLab.Optimization;
    2928using HeuristicLab.Parameters;
    30 using HeuristicLab.Encodings.PermutationEncoding;
    3129using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    32 using HeuristicLab.Common;
    33 using HeuristicLab.Optimization;
    3430
    3531namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba {
     
    195191      gamma = N(Gamma.Value.Value, Math.Sqrt(GammaVariance.Value.Value), RandomParameter.ActualValue);
    196192
    197       double x0 = CoordinatesParameter.ActualValue[0,0];
    198       double y0 = CoordinatesParameter.ActualValue[0,1];
     193      double x0 = CoordinatesParameter.ActualValue[0, 0];
     194      double y0 = CoordinatesParameter.ActualValue[0, 1];
    199195      double distance = 0;
    200196      double cost = 0;
     
    212208      for (int i = 1; i <= CitiesParameter.ActualValue.Value; i++) {
    213209        distance = Distance(i, 0);
    214         if (CoordinatesParameter.ActualValue[i,0] < x0) distance = -distance;
     210        if (CoordinatesParameter.ActualValue[i, 0] < x0) distance = -distance;
    215211        cost = -alpha * distance + // distance 0 <-> City[i]
    216212                 beta * (DueTimeParameter.ActualValue[i]) + // latest arrival time
    217                  gamma * (Math.Asin((CoordinatesParameter.ActualValue[i,1] - y0) / distance) / 360 * distance); // polar angle
     213                 gamma * (Math.Asin((CoordinatesParameter.ActualValue[i, 1] - y0) / distance) / 360 * distance); // polar angle
    218214
    219215        index = 0;
Note: See TracChangeset for help on using the changeset viewer.