Changeset 9342 for branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3/GAssist.cs
- Timestamp:
- 04/05/13 13:12:54 (12 years ago)
- Location:
- branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3
-
Property
svn:ignore
set to
*.user
Plugin.cs
-
Property
svn:ignore
set to
-
branches/LearningClassifierSystems/HeuristicLab.Algorithms.GAssist/3.3/GAssist.cs
r9334 r9342 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Optimization.Operators; 31 using HeuristicLab.Optimization.Operators.LCS; 31 32 using HeuristicLab.Parameters; 32 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 203 204 Parameters.Add(new FixedValueParameter<PercentValue>("MergeProbability", "", new PercentValue(0.05))); 204 205 Parameters.Add(new FixedValueParameter<PercentValue>("StartReinitializeProbability", "", new PercentValue(0.05))); 205 Parameters.Add(new FixedValueParameter<PercentValue>("EndReinitializeProbability", "", new PercentValue( 0.0)));206 Parameters.Add(new FixedValueParameter<PercentValue>("EndReinitializeProbability", "", new PercentValue(Double.Epsilon))); 206 207 Parameters.Add(new FixedValueParameter<PercentValue>("OneProbability", "", new PercentValue(0.75))); 207 208 Parameters.Add(new FixedValueParameter<IntValue>("MaximumNumberOfIntervals", "", new IntValue(5))); … … 248 249 mainLoop.PopulationSizeParameter.ActualName = PopulationSizeParameter.Name; 249 250 mainLoop.ResultsParameter.ActualName = "Results"; 251 mainLoop.ReinitializationProbabilityOperatorParameter.ActualName = ReinitializeCurveOperatorParameter.Name; 250 252 251 253 foreach (ISelector selector in ApplicationManager.Manager.GetInstances<ISelector>().Where(x => !(x is IMultiObjectiveSelector)).OrderBy(x => x.Name)) … … 259 261 UpdateAnalyzers(); 260 262 261 foreach (IDiscreteDoubleValueModifier op in ApplicationManager.Manager.GetInstances<IDiscreteDoubleValueModifier>().OrderBy(x => x.Name)) 263 foreach (IDiscreteDoubleValueModifier op in ApplicationManager.Manager.GetInstances<IDiscreteDoubleValueModifier>().OrderBy(x => x.Name)) { 262 264 ReinitializeCurveOperatorParameter.ValidValues.Add(op); 265 } 266 ReinitializeCurveOperatorParameter.Value = ReinitializeCurveOperatorParameter.ValidValues.First(x => x.GetType().Equals(typeof(LinearDiscreteDoubleValueModifier))); 263 267 ParameterizeReinitializeCurveOperators(); 264 268 … … 295 299 var splitOperator = new SplitOperator(); 296 300 splitOperator.ProbabilityParameter.ActualName = "SplitProbability"; 301 //change 302 splitOperator.IndividualParameter.ActualName = "DecisionList"; 297 303 SpecialStages.Operators.Add(splitOperator); 298 304 var mergeOperator = new MergeOperator(); 299 305 mergeOperator.ProbabilityParameter.ActualName = "MergeProbability"; 306 //change 307 mergeOperator.IndividualParameter.ActualName = "DecisionList"; 300 308 SpecialStages.Operators.Add(mergeOperator); 301 309 var reinitializeOperator = new ReinitializeOperator(); … … 303 311 reinitializeOperator.DiscretizersParameter.ActualName = "Discretizers"; 304 312 reinitializeOperator.OneProbabilityParameter.ActualName = "OneProbability"; 313 //change 314 reinitializeOperator.IndividualParameter.ActualName = "DecisionList"; 305 315 SpecialStages.Operators.Add(reinitializeOperator); 306 316 foreach (var op in SpecialStages.Operators) { … … 477 487 IManipulator oldMutator = MutatorParameter.Value; 478 488 MutatorParameter.ValidValues.Clear(); 489 IManipulator defaultMutator = Problem.Operators.OfType<IManipulator>().FirstOrDefault(); 490 479 491 foreach (IManipulator mutator in Problem.Operators.OfType<IManipulator>().OrderBy(x => x.Name)) 480 492 MutatorParameter.ValidValues.Add(mutator); … … 483 495 if (mutator != null) MutatorParameter.Value = mutator; 484 496 } 497 if (oldMutator == null && defaultMutator != null) 498 MutatorParameter.Value = defaultMutator; 485 499 } 486 500 private void UpdateAnalyzers() {
Note: See TracChangeset
for help on using the changeset viewer.