Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/14/19 15:47:37 (6 years ago)
Author:
pfleck
Message:

#2707 Merged trunk into branch

Location:
branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting

  • branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWEvaluation.cs

    r14185 r17010  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
  • branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWEvaluator.cs

    r14185 r17010  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2626using HeuristicLab.Data;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HEAL.Attic;
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Problems.VehicleRouting.Variants;
     
    3232namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
    3333  [Item("CVRPPDTWEvaluator", "Represents a single depot CVRPPDTW evaluator.")]
    34   [StorableClass]
     34  [StorableType("6324F32C-727E-4593-BB21-4625755F844A")]
    3535  public class CVRPPDTWEvaluator : CVRPTWEvaluator {
    3636    public ILookupParameter<IntValue> PickupViolationsParameter {
     
    306306
    307307    [StorableConstructor]
    308     protected CVRPPDTWEvaluator(bool deserializing) : base(deserializing) { }
     308    protected CVRPPDTWEvaluator(StorableConstructorFlag _) : base(_) { }
    309309
    310310    public CVRPPDTWEvaluator() {
  • branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWProblemInstance.cs

    r14185 r17010  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2828using HeuristicLab.Optimization;
    2929using HeuristicLab.Parameters;
    30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HEAL.Attic;
    3131using HeuristicLab.PluginInfrastructure;
    3232using HeuristicLab.Problems.VehicleRouting.Interfaces;
     
    3535namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
    3636  [Item("CVRPPDTWProblemInstance", "Represents a single depot CVRPPDTW instance.")]
    37   [StorableClass]
     37  [StorableType("6DC3F907-9CDC-4CDA-8C84-AC9ED248DB3B")]
    3838  public class CVRPPDTWProblemInstance : CVRPTWProblemInstance, IPickupAndDeliveryProblemInstance {
    3939    protected IValueParameter<IntArray> PickupDeliveryLocationParameter {
     
    9191
    9292    [StorableConstructor]
    93     protected CVRPPDTWProblemInstance(bool deserializing) : base(deserializing) { }
     93    protected CVRPPDTWProblemInstance(StorableConstructorFlag _) : base(_) { }
    9494
    9595    public CVRPPDTWProblemInstance() {
     
    117117
    118118    private void AttachEventHandlers() {
    119       PickupDeliveryLocationParameter.ValueChanged += new EventHandler(PickupDeliveryLocationParameter_ValueChanged);
     119      PickupDeliveryLocationParameter.ValueChanged += PickupDeliveryLocationParameter_ValueChanged;
     120      PickupDeliveryLocation.Reset += PickupDeliveryLocation_Changed;
     121      PickupDeliveryLocation.ItemChanged += PickupDeliveryLocation_Changed;
    120122    }
    121123
     
    128130    #region Event handlers
    129131    void PickupDeliveryLocationParameter_ValueChanged(object sender, EventArgs e) {
    130       PickupDeliveryLocationParameter.Value.ItemChanged += new EventHandler<EventArgs<int>>(Value_ItemChanged);
     132      PickupDeliveryLocation.Reset += PickupDeliveryLocation_Changed;
     133      PickupDeliveryLocation.ItemChanged += PickupDeliveryLocation_Changed;
    131134      EvalBestKnownSolution();
    132135    }
    133 
    134     void Value_ItemChanged(object sender, EventArgs<int> e) {
     136    private void PickupDeliveryLocation_Changed(object sender, EventArgs e) {
    135137      EvalBestKnownSolution();
    136138    }
  • branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWEvaluation.cs

    r14185 r17010  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
  • branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWEvaluator.cs

    r14185 r17010  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2525using HeuristicLab.Data;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Attic;
    2828using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2929using HeuristicLab.Problems.VehicleRouting.Variants;
     
    3131namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
    3232  [Item("CVRPTWEvaluator", "Represents a single depot CVRPTW evaluator.")]
    33   [StorableClass]
     33  [StorableType("BB258008-7ECC-488A-BB2A-B38AE0023CFD")]
    3434  public class CVRPTWEvaluator : CVRPEvaluator {
    3535    public ILookupParameter<DoubleValue> TardinessParameter {
     
    259259
    260260    [StorableConstructor]
    261     protected CVRPTWEvaluator(bool deserializing) : base(deserializing) { }
     261    protected CVRPTWEvaluator(StorableConstructorFlag _) : base(_) { }
    262262
    263263    public CVRPTWEvaluator() {
  • branches/2707_HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPTWProblemInstance.cs

    r14185 r17010  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2828using HeuristicLab.Optimization;
    2929using HeuristicLab.Parameters;
    30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HEAL.Attic;
    3131using HeuristicLab.PluginInfrastructure;
    3232using HeuristicLab.Problems.VehicleRouting.Interfaces;
     
    3535namespace HeuristicLab.Problems.VehicleRouting.ProblemInstances {
    3636  [Item("CVRPTWProblemInstance", "Represents a single depot CVRPTW instance.")]
    37   [StorableClass]
     37  [StorableType("2138BE6C-058E-4003-8578-55E8DE3706C7")]
    3838  public class CVRPTWProblemInstance : CVRPProblemInstance, ITimeWindowedProblemInstance {
    3939    protected IValueParameter<DoubleArray> ReadyTimeParameter {
     
    107107
    108108    [StorableConstructor]
    109     protected CVRPTWProblemInstance(bool deserializing) : base(deserializing) { }
     109    protected CVRPTWProblemInstance(StorableConstructorFlag _) : base(_) { }
    110110
    111111    public CVRPTWProblemInstance() {
     
    136136
    137137    private void AttachEventHandlers() {
    138       TardinessPenaltyParameter.ValueChanged += new EventHandler(TardinessPenaltyParameter_ValueChanged);
    139       TardinessPenaltyParameter.Value.ValueChanged += new EventHandler(TardinessPenalty_ValueChanged);
    140       TimeFactorParameter.ValueChanged += new EventHandler(TimeFactorParameter_ValueChanged);
    141       TimeFactorParameter.Value.ValueChanged += new EventHandler(TimeFactor_ValueChanged);
     138      ReadyTimeParameter.ValueChanged += ReadyTimeParameter_ValueChanged;
     139      ReadyTime.Reset += ReadyTime_Changed;
     140      ReadyTime.ItemChanged += ReadyTime_Changed;
     141      DueTimeParameter.ValueChanged += DueTimeParameter_ValueChanged;
     142      DueTime.Reset += DueTime_Changed;
     143      DueTime.ItemChanged += DueTime_Changed;
     144      ServiceTimeParameter.ValueChanged += ServiceTimeParameter_ValueChanged;
     145      ServiceTime.Reset += ServiceTime_Changed;
     146      ServiceTime.ItemChanged += ServiceTime_Changed;
     147      TardinessPenaltyParameter.ValueChanged += TardinessPenaltyParameter_ValueChanged;
     148      TardinessPenalty.ValueChanged += TardinessPenalty_ValueChanged;
     149      TimeFactorParameter.ValueChanged += TimeFactorParameter_ValueChanged;
     150      TimeFactor.ValueChanged += TimeFactor_ValueChanged;
    142151    }
    143152
     
    149158
    150159    #region Event handlers
    151     void TardinessPenaltyParameter_ValueChanged(object sender, EventArgs e) {
    152       TardinessPenaltyParameter.Value.ValueChanged += new EventHandler(TardinessPenalty_ValueChanged);
    153       EvalBestKnownSolution();
    154     }
    155     void TardinessPenalty_ValueChanged(object sender, EventArgs e) {
    156       EvalBestKnownSolution();
    157     }
    158     void TimeFactorParameter_ValueChanged(object sender, EventArgs e) {
    159       TimeFactorParameter.Value.ValueChanged += new EventHandler(TimeFactor_ValueChanged);
    160       EvalBestKnownSolution();
    161     }
    162     void TimeFactor_ValueChanged(object sender, EventArgs e) {
     160    private void ReadyTimeParameter_ValueChanged(object sender, EventArgs e) {
     161      ReadyTime.Reset += ReadyTime_Changed;
     162      ReadyTime.ItemChanged += ReadyTime_Changed;
     163      EvalBestKnownSolution();
     164    }
     165    private void ReadyTime_Changed(object sender, EventArgs e) {
     166      EvalBestKnownSolution();
     167    }
     168    private void DueTimeParameter_ValueChanged(object sender, EventArgs e) {
     169      DueTime.Reset += DueTime_Changed;
     170      DueTime.ItemChanged += DueTime_Changed;
     171      EvalBestKnownSolution();
     172    }
     173    private void DueTime_Changed(object sender, EventArgs e) {
     174      EvalBestKnownSolution();
     175    }
     176    private void ServiceTimeParameter_ValueChanged(object sender, EventArgs e) {
     177      ServiceTime.Reset += ServiceTime_Changed;
     178      ServiceTime.ItemChanged += ServiceTime_Changed;
     179      EvalBestKnownSolution();
     180    }
     181    private void ServiceTime_Changed(object sender, EventArgs e) {
     182      EvalBestKnownSolution();
     183    }
     184    private void TardinessPenaltyParameter_ValueChanged(object sender, EventArgs e) {
     185      TardinessPenaltyParameter.Value.ValueChanged += TardinessPenalty_ValueChanged;
     186      EvalBestKnownSolution();
     187    }
     188    private void TardinessPenalty_ValueChanged(object sender, EventArgs e) {
     189      EvalBestKnownSolution();
     190    }
     191    private void TimeFactorParameter_ValueChanged(object sender, EventArgs e) {
     192      TimeFactorParameter.Value.ValueChanged += TimeFactor_ValueChanged;
     193      EvalBestKnownSolution();
     194    }
     195    private void TimeFactor_ValueChanged(object sender, EventArgs e) {
    163196      EvalBestKnownSolution();
    164197    }
Note: See TracChangeset for help on using the changeset viewer.