Changeset 15698 for branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/GQAPBinarySolver.cs
- Timestamp:
- 01/31/18 14:01:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/GQAPBinarySolver.cs
r15633 r15698 21 21 22 22 using System; 23 using System.Linq; 23 24 using System.Threading; 25 using HeuristicLab.Analysis; 24 26 using HeuristicLab.Common; 25 27 using HeuristicLab.Core; … … 124 126 125 127 protected override void Run(CancellationToken cancellationToken) { 128 var qpc = ((MultiAnalyzer)Analyzer).Operators.OfType<QualityPerClockAnalyzer>().FirstOrDefault(); 129 if (qpc != null) { 130 qpc.LastUpdateTimeParameter.ActualName = Context.LastUpdateTimeParameter.Name; 131 } 126 132 token = cancellationToken; 127 133 lastUpdate = DateTime.UtcNow.AddSeconds(-1); … … 205 211 localSolver.AddCallback(LSCallbackType.IterationTicked, LocalSolverOnIterationTicked); 206 212 213 Context.LastUpdateTimeParameter.Value = new DateTimeValue(DateTime.UtcNow); 214 207 215 localSolver.Solve(); 208 216
Note: See TracChangeset
for help on using the changeset viewer.