Changeset 14628 for branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpOrchestratorNode.cs
- Timestamp:
- 01/31/17 16:54:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpOrchestratorNode.cs
r14621 r14628 29 29 using HeuristicLab.Encodings.RealVectorEncoding; 30 30 using HeuristicLab.Operators; 31 using HeuristicLab.Optimization;32 31 using HeuristicLab.Parameters; 33 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 49 48 protected const string TspSolverName = "TspSolver"; 50 49 protected const string KspSolverName = "KspSolver"; 50 protected const string OrchestrationPortNameSuffix = "OrchestrationPort"; 51 protected const string EvaluationPortNameSuffix = "EvaluationPort"; 51 52 #endregion 52 53 53 54 protected CancellationTokenSource cts; 54 protected ResultCollection tspResults, kspResults;55 55 56 56 [Storable] … … 319 319 320 320 #region TspSolver Message Handling 321 protected virtual void TspSolverOrchestrationPortMessage(IMessage message) { 322 var results = (ResultCollection)message["Results"]; 323 if (results.ContainsKey("Best TSP Solution")) { 324 tspResults = results; 325 } 326 } 321 protected virtual void TspSolverOrchestrationPortMessage(IMessage message) { } 327 322 328 323 protected virtual void TspSolverEvaluationPortMessage(IMessage message) { } … … 330 325 331 326 #region KspSolver Message Handling 332 protected virtual void KspSolverOrchestrationPortMessage(IMessage message) { 333 var results = (ResultCollection)message["Results"]; 334 if (results.ContainsKey("Best Solution")) { 335 kspResults = results; 336 } 337 } 327 protected virtual void KspSolverOrchestrationPortMessage(IMessage message) { } 338 328 339 329 private void KspSolverEvaluationPortMessage(IMessage message) { }
Note: See TracChangeset
for help on using the changeset viewer.