Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3188


Ignore:
Timestamp:
03/22/10 23:38:45 (15 years ago)
Author:
swagner
Message:

Prevented that an SGA can be started, if the problem is not set (#941).

File:
1 edited

Legend:

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

    r3139 r3188  
    179179    }
    180180
     181    protected override void OnPrepared() {
     182      base.OnPrepared();
     183      if (Engine != null) {
     184        if (Problem == null) Engine.Prepare(null);
     185      }
     186    }
     187
    181188    #region Events
    182189    protected override void OnProblemChanged() {
Note: See TracChangeset for help on using the changeset viewer.