- Timestamp:
- 01/26/17 14:12:39 (8 years ago)
- 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 231 231 <Compile Include="OrchestratorNode.cs" /> 232 232 <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" />239 233 <None Include="Plugin.cs.frame" /> 240 234 <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 22 using System.Threading.Tasks; 2 23 using HeuristicLab.Core; 3 24 using HeuristicLab.Core.Networks; … … 9 30 ResultCollection Results { get; } 10 31 11 void Prepare( );12 Task PrepareAsync( );32 void Prepare(bool clearRuns = false); 33 Task PrepareAsync(bool clearRuns = false); 13 34 void Start(); 14 35 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 22 using System; 2 23 using System.Collections.Generic; 3 24 using System.Linq; … … 86 107 var prob = (IHeuristicOptimizationProblem)problemMsgVal.Value.Clone(); 87 108 88 if (message.HasFlag(OrchestrationMessage. QualityAdaption)) {109 if (message.HasFlag(OrchestrationMessage.SetEvalHook)) { 89 110 var instEval = prob.Evaluator as InstrumentedOperator; 90 111 if (instEval != null && EvalHook != null) instEval.AfterExecutionOperators.Add(EvalHook); … … 116 137 } 117 138 118 Algorithm.Prepare( );139 Algorithm.Prepare(true); 119 140 } 120 141 break; -
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/OrchestrationMessage.cs
r14601 r14610 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 [Flags] 26 26 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 33 34 } 34 35 } -
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 22 using System.Threading; 2 23 using System.Threading.Tasks; 3 24 using HeuristicLab.Collections; … … 104 125 protected virtual void ProcessMessage(IMessage message, IMessagePort port, CancellationToken token) { } 105 126 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)); } 108 129 public abstract void Start(); 109 130 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 22 using HeuristicLab.Common; 2 23 using HeuristicLab.Core; 3 24 using HeuristicLab.Encodings.RealVectorEncoding;
Note: See TracChangeset
for help on using the changeset viewer.