Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13738


Ignore:
Timestamp:
03/26/16 11:20:34 (9 years ago)
Author:
abeham
Message:

#2431: fixed bug in IteratedAlgorithm (exception when problem is loaded, but no algorithm set)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.Analysis/3.3/Optimizers/IteratedAlgorithm.cs

    r13569 r13738  
    2020#endregion
    2121
    22 using System;
    23 using System.Linq;
    24 using System.Threading;
    25 using System.Threading.Tasks;
    2622using HeuristicLab.Collections;
    2723using HeuristicLab.Common;
     
    3127using HeuristicLab.Parameters;
    3228using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using System;
     30using System.Linq;
     31using System.Threading;
     32using System.Threading.Tasks;
    3333
    3434namespace HeuristicLab.Analysis {
     
    709709
    710710    private void HandleAlgorithmTargetQualityChanged() {
     711      if (Algorithm == null) return;
    711712      IParameter param;
    712713      if (!Algorithm.Parameters.TryGetValue("TargetQuality", out param)) return;
     
    723724
    724725    private void HandleAlgorithmMaximumEvaluationsChanged() {
     726      if (Algorithm == null) return;
    725727      IParameter param;
    726728      if (!Algorithm.Parameters.TryGetValue("MaximumEvaluations", out param)) return;
     
    733735
    734736    private void SynchronizeMaximumEvaluationsParameter() {
     737      if (Algorithm == null) return;
    735738      IParameter param;
    736739      if (!Algorithm.Parameters.TryGetValue("MaximumEvaluations", out param)) return;
Note: See TracChangeset for help on using the changeset viewer.