Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/21/12 15:44:00 (13 years ago)
Author:
svonolfe
Message:

Fixed issues related to display of VRP solution (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r7853 r7861  
    182182    private void AttachEventHandlers() {
    183183      ProblemInstanceParameter.ValueChanged += new EventHandler(ProblemInstanceParameter_ValueChanged);
     184      BestKnownSolutionParameter.ValueChanged += new EventHandler(BestKnownSolutionParameter_ValueChanged);
    184185    }
    185186
     
    197198    }
    198199
    199     void ProblemInstance_EvaluationChanged(object sender, EventArgs e) {
     200    private void EvalBestKnownSolution() {
    200201      if (BestKnownSolution != null) {
    201202        //call evaluator
     
    205206        BestKnownQuality = null;
    206207      }
     208    }
     209
     210    void BestKnownSolutionParameter_ValueChanged(object sender, EventArgs e) {
     211      EvalBestKnownSolution();
     212    }
     213
     214    void ProblemInstance_EvaluationChanged(object sender, EventArgs e) {
     215      EvalBestKnownSolution();
    207216    }
    208217
Note: See TracChangeset for help on using the changeset viewer.