Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17453


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
Location:
branches/3026_IntegrationIntoSymSpace
Files:
5 edited

Legend:

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

    r17451 r17453  
    8989      <Name>HeuristicLab.Optimization-3.3</Name>
    9090    </ProjectReference>
     91    <ProjectReference Include="..\HeuristicLab.ParallelEngine\3.3\HeuristicLab.ParallelEngine-3.3.csproj">
     92      <Project>{00814351-4AB8-4088-9B99-F62787B89E93}</Project>
     93      <Name>HeuristicLab.ParallelEngine-3.3</Name>
     94    </ProjectReference>
    9195    <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    9296      <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
  • 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();
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs

    r17451 r17453  
    6565      // to set default value for disabled items
    6666      JsonItemConverter.Inject(Optimizer, Root);
    67       /*
    68       foreach (var x in VMs) {
    69         if (!x.Selected) {
    70           x.Item.Parent?.Children?.Remove(x.Item);
    71         } else if(x is ResultItemVM) {
    72           x.Item.Parent?.Children?.Remove(x.Item);
    73           Root.AddChildren(x.Item);
    74         }
    75       }
    76       */
     67
     68      // clear all runs
     69      Optimizer.Runs.Clear();
    7770     
    7871      IList<IJsonItem> faultyItems = new List<IJsonItem>();
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.PluginInfrastructure/3.3/CommandLineArgumentHandling/CommandLineArgumentHandling.cs

    r17442 r17453  
    4545      var regex = new Regex(@"^/[A-Za-z]+(:\w[\w\s]*)?$");
    4646      bool isFile = File.Exists(entry);
    47       if (!regex.IsMatch(entry) && !isFile) return null;
     47      if (!regex.IsMatch(entry) && !isFile) return new StringArgument(entry);
    4848      if (!isFile) {
     49        var stringArgumentFallback = new StringArgument(entry);
    4950        entry = entry.Remove(0, 1);
    5051        var parts = entry.Split(':');
     
    5455          case StartArgument.TOKEN: return new StartArgument(value);
    5556          case HideStarterArgument.TOKEN: return new HideStarterArgument(value);
    56           default: return new StringArgument(value);
     57          default: return stringArgumentFallback;
    5758        }
    5859      } else return new OpenArgument(entry);
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs

    r17180 r17453  
    304304        BestTSPSolutionAnalyzer.CoordinatesParameter.ActualName = CoordinatesParameter.Name;
    305305        BestTSPSolutionAnalyzer.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;
    306         BestTSPSolutionAnalyzer.ResultsParameter.ActualName = "Results";
     306        //BestTSPSolutionAnalyzer.ResultsParameter.ActualName = "Results";
    307307        BestTSPSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name;
    308308        BestTSPSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name;
Note: See TracChangeset for help on using the changeset viewer.