Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/21/14 10:58:32 (11 years ago)
Author:
pfleck
Message:

#2141 - corrected evaluator assignment for construction, cloning and deserialization

File:
1 edited

Legend:

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

    r10362 r10363  
    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         ProblemInstance.SolutionEvaluator = EvaluatorParameter.Value;
    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.