- Timestamp:
- 01/12/18 14:24:16 (7 years ago)
- Location:
- branches/GeneralizedQAP/HeuristicLab.Optimization
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Optimization
- Property svn:mergeinfo changed
-
branches/GeneralizedQAP/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r15603 r15605 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/GeneralizedQAP/HeuristicLab.Optimization/3.3/Algorithms/BasicAlgorithm.cs
r15603 r15605 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 91 91 try { 92 92 Run((object)cancellationTokenSource.Token); 93 } 94 catch (OperationCanceledException) { 95 } 96 catch (AggregateException ae) { 93 } catch (OperationCanceledException) { 94 } catch (AggregateException ae) { 97 95 ae.FlattenAndHandle(new[] { typeof(OperationCanceledException) }, e => OnExceptionOccurred(e)); 98 } 99 catch (Exception e) { 96 } catch (Exception e) { 100 97 OnExceptionOccurred(e); 101 98 } … … 115 112 base.Pause(); 116 113 pausePending = true; 117 CancellationTokenSource.Cancel();114 if (CancellationTokenSource != null) CancellationTokenSource.Cancel(); 118 115 } 119 116 … … 123 120 base.Stop(); 124 121 if (ExecutionState == ExecutionState.Paused) OnStopped(); 125 else CancellationTokenSource.Cancel();122 else if (CancellationTokenSource != null) CancellationTokenSource.Cancel(); 126 123 } 127 124 -
branches/GeneralizedQAP/HeuristicLab.Optimization/3.3/Algorithms/EngineAlgorithm.cs
r15603 r15605 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/GeneralizedQAP/HeuristicLab.Optimization/3.3/Algorithms/HeuristicOptimizationAlgorithm.cs
r15603 r15605 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/GeneralizedQAP/HeuristicLab.Optimization/3.3/Algorithms/HeuristicOptimizationEngineAlgorithm.cs
r14185 r15605 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/GeneralizedQAP/HeuristicLab.Optimization/3.3/Algorithms/UserDefinedAlgorithm.cs
r14185 r15605 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 6Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab.
Note: See TracChangeset
for help on using the changeset viewer.