- Timestamp:
- 05/13/19 13:59:30 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization
- Property svn:mergeinfo changed
/branches/2931_OR-Tools_LP_MIP/HeuristicLab.Optimization (added) merged: 16233,16582 /trunk/HeuristicLab.Optimization merged: 16860,16875,16910
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/Algorithms/BasicAlgorithm.cs
r16723 r16946 36 36 37 37 public abstract bool SupportsPause { get; } 38 public virtual bool SupportsStop { 39 get { return true; } 40 } 38 41 39 42 [Storable] … … 106 109 // CancellationToken.ThrowIfCancellationRequested() must be called from within the Run method, otherwise stop does nothing 107 110 // alternatively check the IsCancellationRequested property of the cancellation token 111 if (!SupportsStop) 112 throw new NotSupportedException("Stop is not supported by this algorithm."); 113 108 114 base.Stop(); 109 115 if (ExecutionState == ExecutionState.Paused) OnStopped();
Note: See TracChangeset
for help on using the changeset viewer.