Changeset 17453
- Timestamp:
- 02/26/20 12:58:45 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/HeuristicLab.JsonInterface.App.csproj
r17451 r17453 89 89 <Name>HeuristicLab.Optimization-3.3</Name> 90 90 </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> 91 95 <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj"> 92 96 <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Runner.cs
r17451 r17453 7 7 using System.Threading.Tasks; 8 8 using HeuristicLab.Optimization; 9 using HeuristicLab.ParallelEngine; 9 10 using HeuristicLab.SequentialEngine; 10 11 using Newtonsoft.Json.Linq; … … 14 15 internal static void Run(string template, string config, string outputFile) { 15 16 IOptimizer optimizer = JsonTemplateInstantiator.Instantiate(template, config, out IEnumerable<string> allowedResultNames); 17 optimizer.Runs.Clear(); 16 18 if(optimizer is EngineAlgorithm e) 17 e.Engine = new SequentialEngine.SequentialEngine();19 e.Engine = new ParallelEngine.ParallelEngine(); 18 20 19 21 Task task = optimizer.StartAsync(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs
r17451 r17453 65 65 // to set default value for disabled items 66 66 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(); 77 70 78 71 IList<IJsonItem> faultyItems = new List<IJsonItem>(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.PluginInfrastructure/3.3/CommandLineArgumentHandling/CommandLineArgumentHandling.cs
r17442 r17453 45 45 var regex = new Regex(@"^/[A-Za-z]+(:\w[\w\s]*)?$"); 46 46 bool isFile = File.Exists(entry); 47 if (!regex.IsMatch(entry) && !isFile) return n ull;47 if (!regex.IsMatch(entry) && !isFile) return new StringArgument(entry); 48 48 if (!isFile) { 49 var stringArgumentFallback = new StringArgument(entry); 49 50 entry = entry.Remove(0, 1); 50 51 var parts = entry.Split(':'); … … 54 55 case StartArgument.TOKEN: return new StartArgument(value); 55 56 case HideStarterArgument.TOKEN: return new HideStarterArgument(value); 56 default: return new StringArgument(value);57 default: return stringArgumentFallback; 57 58 } 58 59 } else return new OpenArgument(entry); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r17180 r17453 304 304 BestTSPSolutionAnalyzer.CoordinatesParameter.ActualName = CoordinatesParameter.Name; 305 305 BestTSPSolutionAnalyzer.PermutationParameter.ActualName = SolutionCreator.PermutationParameter.ActualName; 306 BestTSPSolutionAnalyzer.ResultsParameter.ActualName = "Results";306 //BestTSPSolutionAnalyzer.ResultsParameter.ActualName = "Results"; 307 307 BestTSPSolutionAnalyzer.BestKnownQualityParameter.ActualName = BestKnownQualityParameter.Name; 308 308 BestTSPSolutionAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name;
Note: See TracChangeset
for help on using the changeset viewer.