Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/27/11 17:43:48 (12 years ago)
Author:
cneumuel
Message:

#1215

  • fixed generating combinations for non EngineAlgoritms
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs

    r6017 r6486  
    7070
    7171          if (dlgResult == DialogResult.OK) {
    72             var algorithm = (EngineAlgorithm)Content.Algorithm.Clone();
     72            var algorithm = (IAlgorithm)Content.Algorithm.Clone();
    7373            if(Content.Problems.Count > 0) algorithm.Problem = Content.Problems.First();
    74             algorithm.Engine = (IEngine)dlg.Engine.Clone();
     74            if(algorithm is EngineAlgorithm) ((EngineAlgorithm)algorithm).Engine = (IEngine)dlg.Engine.Clone();
    7575            Experiment experiment;
    7676
Note: See TracChangeset for help on using the changeset viewer.