Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/06/21 16:16:21 (3 years ago)
Author:
dpiringe
Message:

#3026

  • added PythonResultFormatter
  • removed code which was used for debugging and was forgotten
  • fixed the release build path of all JsonInterface projects
  • changed the output of Runner -> now: it writes the results after (at least) one run is finished
Location:
branches/3026_IntegrationIntoSymSpace
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab 3.3.sln

    r17928 r18041  
    7676    {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E} = {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}
    7777    {7EA0985E-A1D6-4FA7-B30A-2633FDFB01F0} = {7EA0985E-A1D6-4FA7-B30A-2633FDFB01F0}
     78    {0E3AAB5E-F152-44E0-A054-4D9A83ECEE08} = {0E3AAB5E-F152-44E0-A054-4D9A83ECEE08}
    7879    {E10F395F-C8A6-48AD-B470-9AA7A1F43809} = {E10F395F-C8A6-48AD-B470-9AA7A1F43809}
     80    {039D995F-1AA5-4461-92B3-B466F612D998} = {039D995F-1AA5-4461-92B3-B466F612D998}
    7981    {8CFC7A61-E214-44DC-96B3-4CEA9B8E958E} = {8CFC7A61-E214-44DC-96B3-4CEA9B8E958E}
    8082    {0C378762-D5DB-488A-8931-2BA42B1B7CBF} = {0C378762-D5DB-488A-8931-2BA42B1B7CBF}
     
    163165    {02CDDBF5-42A7-4C40-AE6C-E5D29AC9CCEC} = {02CDDBF5-42A7-4C40-AE6C-E5D29AC9CCEC}
    164166    {6AE0E1F5-D3FF-43A3-90E1-2435E7493FB5} = {6AE0E1F5-D3FF-43A3-90E1-2435E7493FB5}
     167    {5A3413F8-0928-4167-80E7-AAD9D6E38A94} = {5A3413F8-0928-4167-80E7-AAD9D6E38A94}
    165168    {EE07BFF8-B23D-41F5-8AD7-AC9598D7A2C9} = {EE07BFF8-B23D-41F5-8AD7-AC9598D7A2C9}
    166169    {E4EE5AFB-D552-447B-8A16-6CBE7938AF32} = {E4EE5AFB-D552-447B-8A16-6CBE7938AF32}
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/HeuristicLab.JsonInterface.App.csproj

    r17834 r18041  
    2626    <DebugType>pdbonly</DebugType>
    2727    <Optimize>true</Optimize>
    28     <OutputPath>bin\Release\</OutputPath>
     28    <OutputPath>..\bin\</OutputPath>
    2929    <DefineConstants>TRACE</DefineConstants>
    3030    <ErrorReport>prompt</ErrorReport>
     
    127127      <Private>False</Private>
    128128    </ProjectReference>
    129     <ProjectReference Include="..\HeuristicLab.SequentialEngine\3.3\HeuristicLab.SequentialEngine-3.3.csproj">
    130       <Project>{DC3D7072-7999-4719-B65D-3997744D5DC1}</Project>
    131       <Name>HeuristicLab.SequentialEngine-3.3</Name>
    132       <Private>False</Private>
    133     </ProjectReference>
    134129  </ItemGroup>
    135130  <ItemGroup>
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Plugin.cs.frame

    r17599 r18041  
    3232  [PluginDependency("HeuristicLab.Collections", "3.3")]
    3333  [PluginDependency("HeuristicLab.Common", "3.3")]
     34  [PluginDependency("HeuristicLab.Common.Resources", "3.3")]
    3435  [PluginDependency("HeuristicLab.Core", "3.3")]
     36  [PluginDependency("HeuristicLab.ParallelEngine", "3.3")]
     37  [PluginDependency("HeuristicLab.Problems.Instances", "3.3")]
    3538  public class HeuristicLabJsonInterfaceAppPlugin : PluginBase {
    3639  }
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Runner.cs

    r18039 r18041  
    3535    }
    3636
    37     private static void WriteResultsToFile(string file, IOptimizer optimizer, IEnumerable<IResultJsonItem> configuredResultItem) =>
    38       File.WriteAllText(file, FetchResults(optimizer, configuredResultItem));
     37    private static void WriteResultsToFile(string file, IOptimizer optimizer, IEnumerable<IResultJsonItem> configuredResultItem) {
     38      if (optimizer.Runs.Count > 0)
     39        File.WriteAllText(file, FetchResults(optimizer, configuredResultItem));
     40    }
     41     
    3942
    4043    private static IEnumerable<IResultFormatter> ResultFormatter { get; } =
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/HeuristicLab.JsonInterface.OptimizerIntegration.csproj

    r17834 r18041  
    2626    <DebugType>pdbonly</DebugType>
    2727    <Optimize>true</Optimize>
    28     <OutputPath>bin\Release\</OutputPath>
     28    <OutputPath>..\bin\</OutputPath>
    2929    <DefineConstants>TRACE</DefineConstants>
    3030    <ErrorReport>prompt</ErrorReport>
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/HeuristicLab.JsonInterface.csproj

    r18040 r18041  
    2929    <DebugType>pdbonly</DebugType>
    3030    <Optimize>true</Optimize>
    31     <OutputPath>bin\Release\</OutputPath>
     31    <OutputPath>..\bin\</OutputPath>
    3232    <DefineConstants>TRACE</DefineConstants>
    3333    <ErrorReport>prompt</ErrorReport>
     
    104104    <Compile Include="JsonItems\ValueLookupJsonItem.cs" />
    105105    <Compile Include="ResultFormatters\MatlabResultFormatter.cs" />
     106    <Compile Include="ResultFormatters\PythonResultFormatter.cs" />
    106107    <Compile Include="ResultFormatters\ResultFormatter.cs" />
    107108    <Compile Include="ResultFormatters\StringResultFormatter.cs" />
     
    181182      <Name>HeuristicLab.Problems.Instances.DataAnalysis-3.3</Name>
    182183    </ProjectReference>
    183     <ProjectReference Include="..\HeuristicLab.SequentialEngine\3.3\HeuristicLab.SequentialEngine-3.3.csproj">
    184       <Project>{DC3D7072-7999-4719-B65D-3997744D5DC1}</Project>
    185       <Name>HeuristicLab.SequentialEngine-3.3</Name>
    186     </ProjectReference>
    187184  </ItemGroup>
    188185  <ItemGroup />
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Plugin.cs.frame

    r17834 r18041  
    3333  [PluginDependency("HeuristicLab.Optimization", "3.3")]
    3434  [PluginDependency("HeuristicLab.Parameters", "3.3")]
    35   [PluginDependency("HeuristicLab.SequentialEngine", "3.3")]
    3635  [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.4")]
    3736  [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")]
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab/3.3/Program.cs

    r18040 r18041  
    2929    static void Main(string[] args) {
    3030      if ((args.Length >= 1) && (args[0] == "/start:JsonInterface")) {
    31         try {
    32           HeuristicLab.PluginInfrastructure.Main.HeadlessRun(args);
    33         } catch (Exception e) {
    34           File.WriteAllText(@"C:\Users\David\Desktop\GP_JsonInterface_Example\log.txt", e.Message);
    35         }
    36         File.WriteAllText(@"C:\Users\David\Desktop\GP_JsonInterface_Example\done.txt", Path.GetDirectoryName(Assembly.GetEntryAssembly().Location));
     31        HeuristicLab.PluginInfrastructure.Main.HeadlessRun(args);
    3732      } else {
    3833        HeuristicLab.PluginInfrastructure.Main.Run(args);
Note: See TracChangeset for help on using the changeset viewer.