Changeset 15700 for branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/GQAPBinarySolver.cs
- Timestamp:
- 01/31/18 18:14:33 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/GQAPBinarySolver.cs
r15698 r15700 21 21 22 22 using System; 23 using System.Linq;24 23 using System.Threading; 25 using HeuristicLab.Analysis;26 24 using HeuristicLab.Common; 27 25 using HeuristicLab.Core; … … 63 61 } 64 62 public GQAPBinarySolver() { 63 Problem = new GQAP(); 64 MaximumEvaluationsParameter.Hidden = true; 65 MaximumIterationsParameter.Hidden = true; 65 66 } 66 67 … … 117 118 118 119 Context.RunOperator(Analyzer, CancellationToken.None); 120 121 if (StoppingCriterion()) localSolver.Stop(); 119 122 } 120 123 … … 126 129 127 130 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 } 131 base.Run(cancellationToken); 132 132 token = cancellationToken; 133 133 lastUpdate = DateTime.UtcNow.AddSeconds(-1); … … 211 211 localSolver.AddCallback(LSCallbackType.IterationTicked, LocalSolverOnIterationTicked); 212 212 213 Context.LastUpdateTimeParameter.Value = new DateTimeValue(DateTime.UtcNow);214 215 213 localSolver.Solve(); 216 214
Note: See TracChangeset
for help on using the changeset viewer.