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.TabuSearch/3.3/TabuSearch.cs

    r3187 r3189  
    175175    }
    176176
     177    protected override void OnPrepared() {
     178      base.OnPrepared();
     179      if (Engine != null) {
     180        if (Problem == null || MoveGenerator == null || MoveMaker == null || MoveEvaluator == null
     181          || TabuMoveEvaluator == null || TabuMoveMaker == null)
     182          Engine.Prepare(null);
     183      }
     184    }
     185
    177186    #region Events
    178187    protected override void OnProblemChanged() {
Note: See TracChangeset for help on using the changeset viewer.