Changeset 12368
- Timestamp:
- 04/29/15 17:19:59 (10 years ago)
- Location:
- branches/TerminationCriteria
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/TerminationCriteria/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs
r12366 r12368 230 230 private ComparisonTerminationCriterion<DoubleValue> qualityTerminationCriterion; 231 231 [Storable] 232 private ExecutionTimeT imeTerminationCriterion executionTimeTerminationCriterion;232 private ExecutionTimeTerminationCriterion executionTimeTerminationCriterion; 233 233 #endregion 234 234 … … 355 355 maximumSelectionPressureTerminationCriterion = new ComparisonTerminationCriterion<DoubleValue>("SelectionPressure", "MaximumSelectionPressure", ComparisonType.GreaterOrEqual) { Name = "Maximum Selection Pressure" }; 356 356 qualityTerminationCriterion = new ComparisonTerminationCriterion<DoubleValue>() { Name = "Maximum/Minimum Quality" }; 357 executionTimeTerminationCriterion = new ExecutionTimeT imeTerminationCriterion(this, TimeSpan.FromMinutes(5)) { Name = "Maximum Execution Time" };357 executionTimeTerminationCriterion = new ExecutionTimeTerminationCriterion(this, TimeSpan.FromMinutes(5)) { Name = "Maximum Execution Time" }; 358 358 ParameterizeTerminationCriteria(); 359 359 UpdateTerminationCriteria(); -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/ComparisonTerminationCriterion.cs
r12366 r12368 28 28 29 29 namespace HeuristicLab.Termination { 30 [Item("ComparisonTerminationCriterion", "An termination criterion which compares t o values.")]30 [Item("ComparisonTerminationCriterion", "An termination criterion which compares two values.")] 31 31 [StorableClass] 32 32 public class ComparisonTerminationCriterion<T> : ThresholdTerminationCriterion<T> where T : class, IItem, IComparable { -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/ExecutionTimeTerminationCriterion.cs
r12366 r12368 27 27 28 28 namespace HeuristicLab.Termination { 29 [Item("ExecutionTimeT imeTerminationCriterion", "")]29 [Item("ExecutionTimeTerminationCriterion", "A termination criterion based on execution time of an algorithm.")] 30 30 [StorableClass] 31 public class ExecutionTimeT imeTerminationCriterion : ThresholdTerminationCriterion<TimeSpanValue> {31 public class ExecutionTimeTerminationCriterion : ThresholdTerminationCriterion<TimeSpanValue> { 32 32 33 33 [Storable] … … 35 35 36 36 [StorableConstructor] 37 protected ExecutionTimeT imeTerminationCriterion(bool deserializing) : base(deserializing) { }38 protected ExecutionTimeT imeTerminationCriterion(ExecutionTimeTimeTerminationCriterion original, Cloner cloner)37 protected ExecutionTimeTerminationCriterion(bool deserializing) : base(deserializing) { } 38 protected ExecutionTimeTerminationCriterion(ExecutionTimeTerminationCriterion original, Cloner cloner) 39 39 : base(original, cloner) { 40 40 executable = cloner.Clone(executable); 41 41 } 42 42 public override IDeepCloneable Clone(Cloner cloner) { 43 return new ExecutionTimeT imeTerminationCriterion(this, cloner);43 return new ExecutionTimeTerminationCriterion(this, cloner); 44 44 } 45 public ExecutionTimeT imeTerminationCriterion(IExecutable executable)45 public ExecutionTimeTerminationCriterion(IExecutable executable) 46 46 : this(executable, new TimeSpan(0, 10, 0)) { } 47 public ExecutionTimeT imeTerminationCriterion(IExecutable executable, TimeSpan maximumExecutionTime) {47 public ExecutionTimeTerminationCriterion(IExecutable executable, TimeSpan maximumExecutionTime) { 48 48 this.executable = executable; 49 49 ThresholdParameter.Value = new TimeSpanValue(maximumExecutionTime); -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/HeuristicLab.Termination-3.3.csproj
r12366 r12368 151 151 <Compile Include="ComparisonTerminationCriterion.cs" /> 152 152 <Compile Include="MultiTerminationCriterion.cs" /> 153 <Compile Include="ExecutionTimeT imeTerminationCriterion.cs" />153 <Compile Include="ExecutionTimeTerminationCriterion.cs" /> 154 154 <Compile Include="TerminationCriterion.cs" /> 155 155 <Compile Include="TerminationOperator.cs" /> -
branches/TerminationCriteria/HeuristicLab.Termination/3.3/ThresholdTerminationCriterion.cs
r12367 r12368 27 27 28 28 namespace HeuristicLab.Termination { 29 [Item("Thresh holdTerminationCriterion", "Basis class for all termination criteria which specifies some form ofthreshold.")]29 [Item("ThresholdTerminationCriterion", "Base class for all termination criteria which specifies some threshold.")] 30 30 [StorableClass] 31 31 public abstract class ThresholdTerminationCriterion<T> : TerminationCriterion where T : class, IItem {
Note: See TracChangeset
for help on using the changeset viewer.