Changeset 15698 for branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/GQAPIntegerSolver.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/GQAPIntegerSolver.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; … … 118 120 119 121 protected override void Run(CancellationToken cancellationToken) { 122 var qpc = ((MultiAnalyzer)Analyzer).Operators.OfType<QualityPerClockAnalyzer>().FirstOrDefault(); 123 if (qpc != null) { 124 qpc.LastUpdateTimeParameter.ActualName = Context.LastUpdateTimeParameter.Name; 125 } 120 126 token = cancellationToken; 121 127 lastUpdate = DateTime.UtcNow.AddSeconds(-1); … … 177 183 localSolver.AddCallback(LSCallbackType.IterationTicked, LocalSolverOnIterationTicked); 178 184 185 Context.LastUpdateTimeParameter.Value = new DateTimeValue(DateTime.UtcNow); 186 179 187 localSolver.Solve(); 180 188 } finally {
Note: See TracChangeset
for help on using the changeset viewer.