Changeset 3283


Ignore:
Timestamp:
04/07/10 20:17:55 (11 years ago)
Author:
swagner
Message:

Continued work on algorithm batch processing (#947).

Location:
trunk/sources/HeuristicLab.Optimization/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/Algorithm.cs

    r3280 r3283  
    183183    public override void CollectParameterValues(IDictionary<string, IItem> values) {
    184184      base.CollectParameterValues(values);
    185       Problem.CollectParameterValues(values);
     185      if (Problem != null) Problem.CollectParameterValues(values);
    186186    }
    187187    public virtual void CollectResultValues(IDictionary<string, IItem> values) {
  • trunk/sources/HeuristicLab.Optimization/3.3/EngineAlgorithm.cs

    r3280 r3283  
    188188    }
    189189    protected virtual void OnOperatorGraphChanged() { }
     190    protected override void OnStopped() {
     191      if (Problem != null) {
     192        foreach (IParameter param in Problem.Parameters)
     193          param.ExecutionContext = null;
     194      }
     195      foreach (IParameter param in Parameters)
     196        param.ExecutionContext = null;
     197      base.OnStopped();
     198    }
    190199
    191200    private void RegisterEngineEvents() {
Note: See TracChangeset for help on using the changeset viewer.