Changeset 17117 for stable/HeuristicLab.Optimization/3.3/Algorithms
- Timestamp:
- 07/08/19 15:52:20 (5 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Optimization
- Property svn:mergeinfo changed
/branches/2931_OR-Tools_LP_MIP/HeuristicLab.Optimization (added) merged: 16233,16582 /trunk/HeuristicLab.Optimization merged: 16910
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization/3.3/Algorithms/BasicAlgorithm.cs
r17097 r17117 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.