Changeset 10363 for trunk/sources/HeuristicLab.Problems.VehicleRouting
- Timestamp:
- 01/21/14 10:58:32 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs
r10362 r10363 143 143 AttachEventHandlers(); 144 144 AttachProblemInstanceEventHandlers(); 145 146 EvaluatorParameter.Value = ProblemInstance.SolutionEvaluator; 145 147 } 146 148 … … 154 156 this.AttachEventHandlers(); 155 157 this.AttachProblemInstanceEventHandlers(); 158 159 ProblemInstance.SolutionEvaluator = EvaluatorParameter.Value; 156 160 } 157 161 … … 174 178 AttachEventHandlers(); 175 179 AttachProblemInstanceEventHandlers(); 180 181 ProblemInstance.SolutionEvaluator = EvaluatorParameter.Value; 176 182 } 177 183 … … 190 196 private void AttachProblemInstanceEventHandlers() { 191 197 if (ProblemInstance != null) { 192 ProblemInstance.SolutionEvaluator = EvaluatorParameter.Value;193 198 ProblemInstance.EvaluationChanged += new EventHandler(ProblemInstance_EvaluationChanged); 194 199 } … … 210 215 211 216 void ProblemInstance_EvaluationChanged(object sender, EventArgs e) { 212 EvaluatorParameter.Value = ProblemInstance.SolutionEvaluator;213 217 EvalBestKnownSolution(); 214 218 } … … 217 221 InitializeOperators(); 218 222 AttachProblemInstanceEventHandlers(); 223 224 EvaluatorParameter.Value = ProblemInstance.SolutionEvaluator; 219 225 220 226 OnSolutionCreatorChanged();
Note: See TracChangeset
for help on using the changeset viewer.