Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/26/17 14:12:39 (8 years ago)
Author:
jkarder
Message:

#2205: worked on optimization networks

  • added abstract base classes for ttp networks/orchestrators
  • removed ttp networks/orchestrators from HeuristicLab.Networks.IntegratedOptimization
  • runs can now be cleared when preparing OrchestratedAlgorithmNodes
Location:
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3
Files:
6 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/HeuristicLab.Networks.IntegratedOptimization-3.3.csproj

    r14601 r14610  
    231231    <Compile Include="OrchestratorNode.cs" />
    232232    <Compile Include="VariegationProblem.cs" />
    233     <Compile Include="TtpNetwork.cs" />
    234     <Compile Include="TtpNetwork2.cs" />
    235     <Compile Include="TtpNetwork4.cs" />
    236     <Compile Include="TtpOrchestratorNode1.cs" />
    237     <Compile Include="TtpOrchestratorNode2.cs" />
    238     <Compile Include="TtpOrchestratorNode4.cs" />
    239233    <None Include="Plugin.cs.frame" />
    240234    <None Include="Properties\AssemblyInfo.cs.frame" />
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/IOrchestratorNode.cs

    r14586 r14610  
    1 using System.Threading.Tasks;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System.Threading.Tasks;
    223using HeuristicLab.Core;
    324using HeuristicLab.Core.Networks;
     
    930    ResultCollection Results { get; }
    1031
    11     void Prepare();
    12     Task PrepareAsync();
     32    void Prepare(bool clearRuns = false);
     33    Task PrepareAsync(bool clearRuns = false);
    1334    void Start();
    1435    Task StartAsync();
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/OrchestratedAlgorithmNode.cs

    r14601 r14610  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
    223using System.Collections.Generic;
    324using System.Linq;
     
    86107              var prob = (IHeuristicOptimizationProblem)problemMsgVal.Value.Clone();
    87108
    88               if (message.HasFlag(OrchestrationMessage.QualityAdaption)) {
     109              if (message.HasFlag(OrchestrationMessage.SetEvalHook)) {
    89110                var instEval = prob.Evaluator as InstrumentedOperator;
    90111                if (instEval != null && EvalHook != null) instEval.AfterExecutionOperators.Add(EvalHook);
     
    116137              }
    117138
    118               Algorithm.Prepare();
     139              Algorithm.Prepare(true);
    119140            }
    120141            break;
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/OrchestrationMessage.cs

    r14601 r14610  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2525  [Flags]
    2626  public enum OrchestrationMessage {
    27     Unknown = 0x0,
    28     Prepare = 0x1,
    29     Start = 0x2,
    30     Pause = 0x4,
    31     Stop = 0x8,
    32     QualityAdaption = 0x100,
     27    Unknown = 0,
     28    Prepare = 1,
     29    Start = 1 << 1,       // 2
     30    Pause = 1 << 2,       // 4
     31    Stop = 1 << 3,        // 8
     32    SetEvalHook = 1 << 8, // 256
     33    ClearRuns = 1 << 9,   // 512
    3334  }
    3435}
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/OrchestratorNode.cs

    r14598 r14610  
    1 using System.Threading;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System.Threading;
    223using System.Threading.Tasks;
    324using HeuristicLab.Collections;
     
    104125    protected virtual void ProcessMessage(IMessage message, IMessagePort port, CancellationToken token) { }
    105126
    106     public abstract void Prepare();
    107     public async Task PrepareAsync() { await Task.Run(() => Prepare()); }
     127    public abstract void Prepare(bool clearRuns = false);
     128    public async Task PrepareAsync(bool clearRuns = false) { await Task.Run(() => Prepare(clearRuns)); }
    108129    public abstract void Start();
    109130    public async Task StartAsync() { await Task.Run(() => Start()); }
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/VariegationProblem.cs

    r14604 r14610  
    1 using HeuristicLab.Common;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using HeuristicLab.Common;
    223using HeuristicLab.Core;
    324using HeuristicLab.Encodings.RealVectorEncoding;
Note: See TracChangeset for help on using the changeset viewer.