Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4620


Ignore:
Timestamp:
10/19/10 15:52:46 (14 years ago)
Author:
svonolfe
Message:

Improved best known solution wiring #1236

File:
1 edited

Legend:

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

    r4619 r4620  
    284284
    285285      BestKnownSolution = null;
    286       BestKnownQuality = null;
    287286    }
    288287    private void Coordinates_ItemChanged(object sender, EventArgs<int, int> e) {
     
    290289
    291290      BestKnownSolution = null;
    292       BestKnownQuality = null;
    293291    }
    294292    private void Coordinates_Reset(object sender, EventArgs e) {
     
    297295
    298296      BestKnownSolution = null;
    299       BestKnownQuality = null;
    300297    }
    301298    private void SolutionCreatorParameter_ValueChanged(object sender, EventArgs e) {
     
    384381      Capacity.ValueChanged += new EventHandler(Capacity_ValueChanged);
    385382      BestKnownSolution = null;
    386       BestKnownQuality = null;
    387383    }
    388384    void Capacity_ValueChanged(object sender, EventArgs e) {
    389385      BestKnownSolution = null;
    390       BestKnownQuality = null;
    391386    }
    392387    void DemandParameter_ValueChanged(object sender, EventArgs e) {
    393388      Demand.ItemChanged += new EventHandler<EventArgs<int>>(Demand_ItemChanged);
    394389      Demand.Reset += new EventHandler(Demand_Reset);
    395 
    396       BestKnownSolution = null;
    397       BestKnownQuality = null;
     390      BestKnownSolution = null;
    398391    }
    399392    void Demand_Reset(object sender, EventArgs e) {
    400393      BestKnownSolution = null;
    401       BestKnownQuality = null;
    402394    }
    403395    void Demand_ItemChanged(object sender, EventArgs<int> e) {
    404396      BestKnownSolution = null;
    405       BestKnownQuality = null;
    406397    }
    407398    void DueTimeParameter_ValueChanged(object sender, EventArgs e) {
     
    409400      DueTime.Reset += new EventHandler(DueTime_Reset);
    410401      BestKnownSolution = null;
    411       BestKnownQuality = null;
    412402    }
    413403    void DueTime_Reset(object sender, EventArgs e) {
    414404      BestKnownSolution = null;
    415       BestKnownQuality = null;
    416405    }
    417406    void DueTime_ItemChanged(object sender, EventArgs<int> e) {
    418407      BestKnownSolution = null;
    419       BestKnownQuality = null;
    420408    }
    421409    void ReadyTimeParameter_ValueChanged(object sender, EventArgs e) {
     
    423411      ReadyTime.Reset += new EventHandler(ReadyTime_Reset);
    424412      BestKnownSolution = null;
    425       BestKnownQuality = null;
    426413    }
    427414    void ReadyTime_Reset(object sender, EventArgs e) {
    428415      BestKnownSolution = null;
    429       BestKnownQuality = null;
    430416    }
    431417    void ReadyTime_ItemChanged(object sender, EventArgs<int> e) {
    432418      BestKnownSolution = null;
    433       BestKnownQuality = null;
    434419    }
    435420    void ServiceTimeParameter_ValueChanged(object sender, EventArgs e) {
     
    437422      ServiceTime.Reset += new EventHandler(ServiceTime_Reset);
    438423      BestKnownSolution = null;
    439       BestKnownQuality = null;
    440424    }
    441425    void ServiceTime_Reset(object sender, EventArgs e) {
    442426      BestKnownSolution = null;
    443       BestKnownQuality = null;
    444427    }
    445428    void ServiceTime_ItemChanged(object sender, EventArgs<int> e) {
    446429      BestKnownSolution = null;
    447       BestKnownQuality = null;
    448430    }
    449431    void VehiclesParameter_ValueChanged(object sender, EventArgs e) {
    450432      Vehicles.ValueChanged += new EventHandler(Vehicles_ValueChanged);
    451433      BestKnownSolution = null;
    452       BestKnownQuality = null;
    453434    }
    454435    void Vehicles_ValueChanged(object sender, EventArgs e) {
    455436      BestKnownSolution = null;
    456       BestKnownQuality = null;
     437    }
     438    void BestKnownSolutionParameter_ValueChanged(object sender, EventArgs e) {
     439      EvalBestKnownSolution();
    457440    }
    458441    #endregion
     
    507490      VehiclesParameter.ValueChanged += new EventHandler(VehiclesParameter_ValueChanged);
    508491      Vehicles.ValueChanged += new EventHandler(Vehicles_ValueChanged);
     492
     493      BestKnownSolutionParameter.ValueChanged += new EventHandler(BestKnownSolutionParameter_ValueChanged);
    509494    }
    510495
     
    734719
    735720      BestKnownSolutionParameter.Value = encoding;
    736       EvalBestKnownSolution();
    737721    }
    738722
Note: See TracChangeset for help on using the changeset viewer.