Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10648


Ignore:
Timestamp:
03/22/14 12:59:35 (11 years ago)
Author:
gkronber
Message:

#2141 merged r10362:10363 from trunk to stable

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.VehicleRouting

  • stable/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r10361 r10648  
    143143      AttachEventHandlers();
    144144      AttachProblemInstanceEventHandlers();
     145
     146      EvaluatorParameter.Value = ProblemInstance.SolutionEvaluator;
    145147    }
    146148
     
    154156      this.AttachEventHandlers();
    155157      this.AttachProblemInstanceEventHandlers();
     158
     159      ProblemInstance.SolutionEvaluator = EvaluatorParameter.Value;
    156160    }
    157161
     
    174178      AttachEventHandlers();
    175179      AttachProblemInstanceEventHandlers();
     180
     181      ProblemInstance.SolutionEvaluator = EvaluatorParameter.Value;
    176182    }
    177183
     
    190196    private void AttachProblemInstanceEventHandlers() {
    191197      if (ProblemInstance != null) {
    192         EvaluatorParameter.Value = ProblemInstance.SolutionEvaluator;
    193198        ProblemInstance.EvaluationChanged += new EventHandler(ProblemInstance_EvaluationChanged);
    194199      }
     
    210215
    211216    void ProblemInstance_EvaluationChanged(object sender, EventArgs e) {
    212       EvaluatorParameter.Value = ProblemInstance.SolutionEvaluator;
    213217      EvalBestKnownSolution();
    214218    }
     
    217221      InitializeOperators();
    218222      AttachProblemInstanceEventHandlers();
     223
     224      EvaluatorParameter.Value = ProblemInstance.SolutionEvaluator;
    219225
    220226      OnSolutionCreatorChanged();
Note: See TracChangeset for help on using the changeset viewer.