Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/12/11 13:41:14 (13 years ago)
Author:
svonolfe
Message:

Fixed various isses that occured in dynamic instances (#1177)

File:
1 edited

Legend:

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

    r6854 r6907  
    207207      OnOperatorsChanged();
    208208    }
     209
     210    public void SetProblemInstance(IVRPProblemInstance instance) {
     211      ProblemInstanceParameter.ValueChanged -= new EventHandler(ProblemInstanceParameter_ValueChanged);
     212
     213      ProblemInstance = instance;
     214      AttachProblemInstanceEventHandlers();
     215
     216      OnSolutionCreatorChanged();
     217      OnEvaluatorChanged();
     218
     219      ProblemInstanceParameter.ValueChanged += new EventHandler(ProblemInstanceParameter_ValueChanged);
     220    }
     221
    209222    private void SolutionCreatorParameter_ValueChanged(object sender, EventArgs e) {
    210223      ParameterizeSolutionCreator();
Note: See TracChangeset for help on using the changeset viewer.