- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Optimization.Operators/3.3/DiscreteDoubleValueModifier.cs
r5445 r6760 34 34 [StorableClass] 35 35 public abstract class DiscreteDoubleValueModifier : SingleSuccessorOperator, IDiscreteDoubleValueModifier { 36 #region parameter properties 36 37 /// <summary> 37 38 /// The parameter that should be modified. … … 70 71 get { return (IValueLookupParameter<IntValue>)Parameters["EndIndex"]; } 71 72 } 72 73 #endregion 73 74 [StorableConstructor] 74 75 protected DiscreteDoubleValueModifier(bool deserializing) : base(deserializing) { } -
branches/PersistenceSpeedUp/HeuristicLab.Optimization.Operators/3.3/HeuristicLabOptimizationOperatorsPlugin.cs.frame
r6099 r6760 26 26 /// Plugin class for HeuristicLab.Optimization.Operators plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Optimization.Operators", "3.3. 4.$WCREV$")]28 [Plugin("HeuristicLab.Optimization.Operators", "3.3.5.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Optimization.Operators-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/PersistenceSpeedUp/HeuristicLab.Optimization.Operators/3.3/Properties/AssemblyInfo.frame
r6099 r6760 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3. 4.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.5.$WCREV$")] -
branches/PersistenceSpeedUp/HeuristicLab.Optimization.Operators/3.3/SolutionsCreator.cs
r5445 r6760 43 43 get { return (ValueLookupParameter<IOperator>)Parameters["Evaluator"]; } 44 44 } 45 public ValueLookupParameter<BoolValue> ParallelParameter { 46 get { return (ValueLookupParameter<BoolValue>)Parameters["Parallel"]; } 47 } 45 48 private ScopeParameter CurrentScopeParameter { 46 49 get { return (ScopeParameter)Parameters["CurrentScope"]; } … … 62 65 Parameters.Add(new ValueLookupParameter<IOperator>("SolutionCreator", "The operator which is used to create new solutions.")); 63 66 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator which is used to evaluate new solutions. This operator is executed in parallel, if an engine is used which supports parallelization.")); 64 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope to which the new solutions are added as sub-scopes.")); 67 Parameters.Add(new ValueLookupParameter<BoolValue>("Parallel", "True if the operator should be applied in parallel on all sub-scopes, otherwise false.", new BoolValue(true))); 68 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope to which the new solutions are added as sub-scopes.")); 69 } 70 [StorableHook(HookType.AfterDeserialization)] 71 private void AfterDeserialization() { 72 if (!Parameters.ContainsKey("Parallel")) Parameters.Add(new ValueLookupParameter<BoolValue>("Parallel", "True if the operator should be applied in parallel on all sub-scopes, otherwise false.", new BoolValue(true))); // backwards compatibility 65 73 } 66 74 … … 73 81 IOperator creator = SolutionCreatorParameter.ActualValue; 74 82 IOperator evaluator = EvaluatorParameter.ActualValue; 83 bool parallel = ParallelParameter.ActualValue.Value; 75 84 76 85 int current = CurrentScope.SubScopes.Count; … … 79 88 80 89 OperationCollection creation = new OperationCollection(); 81 OperationCollection evaluation = new OperationCollection() { Parallel = true};90 OperationCollection evaluation = new OperationCollection() { Parallel = parallel }; 82 91 for (int i = 0; i < count; i++) { 83 92 if (creator != null) creation.Add(ExecutionContext.CreateOperation(creator, CurrentScope.SubScopes[current + i]));
Note: See TracChangeset
for help on using the changeset viewer.