- Timestamp:
- 08/10/19 12:16:18 (5 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs
r17180 r17198 253 253 #region Backwards compatible code, remove with 3.4 254 254 var optionalMutatorParameter = MutatorParameter as OptionalConstrainedValueParameter<IManipulator>; 255 if (optionalMutatorParameter != null) { 255 var mutatorParameter = MutatorParameter as ConstrainedValueParameter<IManipulator>; 256 if (mutatorParameter == null && optionalMutatorParameter != null) { 256 257 Parameters.Remove(optionalMutatorParameter); 257 258 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); -
trunk/HeuristicLab.Algorithms.ALPS/3.3/AlpsOffspringSelectionGeneticAlgorithm.cs
r17180 r17198 300 300 #region Backwards compatible code, remove with 3.4 301 301 var optionalMutatorParameter = MutatorParameter as OptionalConstrainedValueParameter<IManipulator>; 302 if (optionalMutatorParameter != null) { 302 var mutatorParameter = MutatorParameter as ConstrainedValueParameter<IManipulator>; 303 if (mutatorParameter == null && optionalMutatorParameter != null) { 303 304 Parameters.Remove(optionalMutatorParameter); 304 305 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); -
trunk/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r17180 r17198 221 221 Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", (BoolValue)new BoolValue(false).AsReadOnly()) { Hidden = true }); 222 222 } 223 223 224 var optionalMutatorParameter = MutatorParameter as OptionalConstrainedValueParameter<IManipulator>; 224 if (optionalMutatorParameter != null) { 225 var mutatorParameter = MutatorParameter as ConstrainedValueParameter<IManipulator>; 226 if (mutatorParameter == null && optionalMutatorParameter != null) { 225 227 Parameters.Remove(optionalMutatorParameter); 226 228 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); -
trunk/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r17180 r17198 211 211 Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", (BoolValue)new BoolValue(false).AsReadOnly()) { Hidden = true }); 212 212 } 213 213 214 var optionalMutatorParameter = MutatorParameter as OptionalConstrainedValueParameter<IManipulator>; 214 if (optionalMutatorParameter != null) { 215 var mutatorParameter = MutatorParameter as ConstrainedValueParameter<IManipulator>; 216 if (mutatorParameter == null && optionalMutatorParameter != null) { 215 217 Parameters.Remove(optionalMutatorParameter); 216 218 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); -
trunk/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs
r17180 r17198 22 22 using System; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; … … 30 31 using HeuristicLab.Optimization.Operators; 31 32 using HeuristicLab.Parameters; 32 using HEAL.Attic;33 33 using HeuristicLab.PluginInfrastructure; 34 34 using HeuristicLab.Random; … … 326 326 if (!Parameters.ContainsKey("DominateOnEqualQualities")) 327 327 Parameters.Add(new FixedValueParameter<BoolValue>("DominateOnEqualQualities", "Flag which determines wether solutions with equal quality values should be treated as dominated.", new BoolValue(false))); 328 328 329 var optionalMutatorParameter = MutatorParameter as OptionalConstrainedValueParameter<IManipulator>; 329 if (optionalMutatorParameter != null) { 330 var mutatorParameter = MutatorParameter as ConstrainedValueParameter<IManipulator>; 331 if (mutatorParameter == null && optionalMutatorParameter != null) { 330 332 Parameters.Remove(optionalMutatorParameter); 331 333 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); -
trunk/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
r17180 r17198 22 22 using System; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; … … 30 31 using HeuristicLab.Optimization.Operators; 31 32 using HeuristicLab.Parameters; 32 using HEAL.Attic;33 33 using HeuristicLab.PluginInfrastructure; 34 34 using HeuristicLab.Random; … … 282 282 283 283 var optionalMutatorParameter = MutatorParameter as OptionalConstrainedValueParameter<IManipulator>; 284 if (optionalMutatorParameter != null) { 284 var mutatorParameter = MutatorParameter as ConstrainedValueParameter<IManipulator>; 285 if (mutatorParameter == null && optionalMutatorParameter != null) { 285 286 Parameters.Remove(optionalMutatorParameter); 286 287 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); -
trunk/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs
r17180 r17198 22 22 using System; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; … … 30 31 using HeuristicLab.Optimization.Operators; 31 32 using HeuristicLab.Parameters; 32 using HEAL.Attic;33 33 using HeuristicLab.PluginInfrastructure; 34 34 using HeuristicLab.Random; … … 230 230 231 231 var optionalMutatorParameter = MutatorParameter as OptionalConstrainedValueParameter<IManipulator>; 232 if (optionalMutatorParameter != null) { 232 var mutatorParameter = MutatorParameter as ConstrainedValueParameter<IManipulator>; 233 if (mutatorParameter == null && optionalMutatorParameter != null) { 233 234 Parameters.Remove(optionalMutatorParameter); 234 235 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); -
trunk/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASA.cs
r17180 r17198 22 22 using System; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; … … 30 31 using HeuristicLab.Optimization.Operators; 31 32 using HeuristicLab.Parameters; 32 using HEAL.Attic;33 33 using HeuristicLab.PluginInfrastructure; 34 34 using HeuristicLab.Random; … … 258 258 259 259 var optionalMutatorParameter = MutatorParameter as OptionalConstrainedValueParameter<IManipulator>; 260 if (optionalMutatorParameter != null) { 260 var mutatorParameter = MutatorParameter as ConstrainedValueParameter<IManipulator>; 261 if (mutatorParameter == null && optionalMutatorParameter != null) { 261 262 Parameters.Remove(optionalMutatorParameter); 262 263 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions."));
Note: See TracChangeset
for help on using the changeset viewer.