Changeset 12708 for stable/HeuristicLab.Optimization
- Timestamp:
- 07/10/15 12:11:55 (9 years ago)
- Location:
- stable
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12305,12393,12397-12401,12504,12506,12512,12622,12649,12664
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Optimization merged: 12504
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization/3.3/Algorithms/UserDefinedAlgorithm.cs
r12009 r12708 30 30 /// </summary> 31 31 [Item("User-Defined Algorithm", "An algorithm which can be defined by the user.")] 32 [Creatable( "Algorithms")]32 [Creatable(CreatableAttribute.Categories.Algorithms, Priority = 100)] 33 33 [StorableClass] 34 34 public sealed class UserDefinedAlgorithm : EngineAlgorithm, IParameterizedItem, IStorableContent { -
stable/HeuristicLab.Optimization/3.3/MetaOptimizers/BatchRun.cs
r12009 r12708 36 36 /// </summary> 37 37 [Item("Batch Run", "A run in which an optimizer is executed a given number of times.")] 38 [Creatable( "Testing & Analysis")]38 [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 110)] 39 39 [StorableClass] 40 40 public sealed class BatchRun : NamedItem, IOptimizer, IStorableContent { … … 237 237 batchRunAction = BatchRunAction.Prepare; 238 238 // a race-condition may occur when the optimizer has changed the state by itself in the meantime 239 try { Optimizer.Prepare(clearRuns); } catch (InvalidOperationException) { } 239 try { Optimizer.Prepare(clearRuns); } 240 catch (InvalidOperationException) { } 240 241 } else { 241 242 ExecutionState = ExecutionState.Stopped; … … 249 250 if (Optimizer.ExecutionState == ExecutionState.Stopped) Optimizer.Prepare(); 250 251 // a race-condition may occur when the optimizer has changed the state by itself in the meantime 251 try { Optimizer.Start(); } catch (InvalidOperationException) { } 252 try { Optimizer.Start(); } 253 catch (InvalidOperationException) { } 252 254 } 253 255 public void Pause() { … … 258 260 if (Optimizer.ExecutionState != ExecutionState.Started) return; 259 261 // a race-condition may occur when the optimizer has changed the state by itself in the meantime 260 try { Optimizer.Pause(); } catch (InvalidOperationException) { } 262 try { Optimizer.Pause(); } 263 catch (InvalidOperationException) { } 261 264 } 262 265 public void Stop() { … … 270 273 } 271 274 // a race-condition may occur when the optimizer has changed the state by itself in the meantime 272 try { Optimizer.Stop(); } catch (InvalidOperationException) { } 275 try { Optimizer.Stop(); } 276 catch (InvalidOperationException) { } 273 277 } 274 278 -
stable/HeuristicLab.Optimization/3.3/MetaOptimizers/Experiment.cs
r12009 r12708 34 34 /// </summary> 35 35 [Item("Experiment", "An experiment which contains multiple algorithms, batch runs or other experiments.")] 36 [Creatable( "Testing & Analysis")]36 [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 100)] 37 37 [StorableClass] 38 38 public sealed class Experiment : NamedItem, IOptimizer, IStorableContent { … … 180 180 foreach (IOptimizer optimizer in Optimizers.Where(x => x.ExecutionState != ExecutionState.Started)) { 181 181 // a race-condition may occur when the optimizer has changed the state by itself in the meantime 182 try { optimizer.Prepare(clearRuns); } catch (InvalidOperationException) { } 182 try { optimizer.Prepare(clearRuns); } 183 catch (InvalidOperationException) { } 183 184 } 184 185 } … … 193 194 if (optimizer != null) { 194 195 // a race-condition may occur when the optimizer has changed the state by itself in the meantime 195 try { optimizer.Start(); } catch (InvalidOperationException) { } 196 try { optimizer.Start(); } 197 catch (InvalidOperationException) { } 196 198 } 197 199 } … … 205 207 foreach (IOptimizer optimizer in Optimizers.Where(x => x.ExecutionState == ExecutionState.Started)) { 206 208 // a race-condition may occur when the optimizer has changed the state by itself in the meantime 207 try { optimizer.Pause(); } catch (InvalidOperationException) { } 209 try { optimizer.Pause(); } 210 catch (InvalidOperationException) { } 208 211 } 209 212 } … … 218 221 foreach (var optimizer in Optimizers.Where(x => (x.ExecutionState == ExecutionState.Started) || (x.ExecutionState == ExecutionState.Paused))) { 219 222 // a race-condition may occur when the optimizer has changed the state by itself in the meantime 220 try { optimizer.Stop(); } catch (InvalidOperationException) { } 223 try { optimizer.Stop(); } 224 catch (InvalidOperationException) { } 221 225 } 222 226 } else { -
stable/HeuristicLab.Optimization/3.3/Problems/UserDefinedProblem.cs
r12009 r12708 38 38 /// </summary> 39 39 [Item("User-Defined Problem", "A problem which can be defined by the user.")] 40 [Creatable( "Problems")]40 [Creatable(CreatableAttribute.Categories.Problems, Priority = 120)] 41 41 [StorableClass] 42 42 public sealed class UserDefinedProblem : ParameterizedNamedItem, ISingleObjectiveHeuristicOptimizationProblem, IStorableContent { -
stable/HeuristicLab.Optimization/3.3/RunCollection.cs
r12274 r12708 32 32 namespace HeuristicLab.Optimization { 33 33 [Item("Run Collection", "Represents a collection of runs.")] 34 [Creatable( "Testing & Analysis")]34 [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 120)] 35 35 [StorableClass] 36 36 public class RunCollection : ItemCollection<IRun>, IStringConvertibleMatrix, IStorableContent {
Note: See TracChangeset
for help on using the changeset viewer.