Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/26/20 12:58:45 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • the runs of an optimizer gets cleared before starting it in HeuristicLab.JsonInterface.App.Runner now
  • all runs of an optimizer gets cleared when exporting it with ExportJsonDialog
  • fixed a bug in CommandLineArgumentHandling: now always returns a StringArgument when all conditions are false
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Runner.cs

    r17451 r17453  
    77using System.Threading.Tasks;
    88using HeuristicLab.Optimization;
     9using HeuristicLab.ParallelEngine;
    910using HeuristicLab.SequentialEngine;
    1011using Newtonsoft.Json.Linq;
     
    1415    internal static void Run(string template, string config, string outputFile) {
    1516      IOptimizer optimizer = JsonTemplateInstantiator.Instantiate(template, config, out IEnumerable<string> allowedResultNames);
     17      optimizer.Runs.Clear();
    1618      if(optimizer is EngineAlgorithm e)
    17         e.Engine = new SequentialEngine.SequentialEngine();
     19        e.Engine = new ParallelEngine.ParallelEngine();
    1820     
    1921      Task task = optimizer.StartAsync();
Note: See TracChangeset for help on using the changeset viewer.