Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/23/10 00:07:29 (15 years ago)
Author:
abeham
Message:

Prevent starting of algorithm when problem or vital operators are null #933

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearch.cs

    r3187 r3189  
    153153    }
    154154
     155    protected override void OnPrepared() {
     156      base.OnPrepared();
     157      if (Engine != null) {
     158        if (Problem == null || MoveGenerator == null || MoveMaker == null || MoveEvaluator == null)
     159          Engine.Prepare(null);
     160      }
     161    }
     162
    155163    #region Events
    156164    protected override void OnProblemChanged() {
Note: See TracChangeset for help on using the changeset viewer.