Changeset 9467 for branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification
- Timestamp:
- 05/08/13 14:12:00 (12 years ago)
- Location:
- branches/LearningClassifierSystems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems
-
Property
svn:mergeinfo
set to
/trunk/sources/HeuristicLab.Core merged eligible
-
Property
svn:mergeinfo
set to
-
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/ConditionActionClassificationProblem.cs
r9411 r9467 29 29 using HeuristicLab.Parameters; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.PluginInfrastructure; 31 32 using HeuristicLab.Problems.DataAnalysis; 32 33 using HeuristicLab.Problems.Instances; … … 42 43 private const string ActionExecuterParameterName = "ActionExecuter"; 43 44 private const string ActionSetSubsumptionOperatorParameterName = "ActionSetSubsumption"; 45 private const string MaximizationParameterName = "Maximization"; 44 46 45 47 public abstract string ChildName { get; } 48 49 public IFixedValueParameter<BoolValue> MaximizationParameter { 50 get { return (IFixedValueParameter<BoolValue>)Parameters[MaximizationParameterName]; } 51 } 52 IParameter IConditionActionProblem.MaximizationParameter { 53 get { return MaximizationParameter; } 54 } 46 55 47 56 IXCSEvaluator IConditionActionProblem.Evaluator { … … 149 158 public ConditionActionClassificationProblem(V problemData, XCSEvaluator evaluator, T solutionCreator, ICoveringSolutionCreator coveringSolutionCreator) 150 159 : base(evaluator, solutionCreator) { 160 Parameters.Add(new FixedValueParameter<BoolValue>(MaximizationParameterName, "Set to false if the problem should be minimized.", new BoolValue((true)))); 151 161 Parameters.Add(new ValueParameter<V>("ProblemData", "", problemData)); 152 162 Parameters.Add(new FixedValueParameter<DoubleValue>("PositiveReward", "", new DoubleValue(1000))); … … 207 217 Operators.Add(new BestTrainingXCSSolutionAnalyzer()); 208 218 Operators.Add(new CurrentXCSSolutionAnalyzer()); 219 Operators.AddRange(ApplicationManager.Manager.GetInstances<ISingleObjectiveSelector>().Where(x => !(x is IMultiObjectiveSelector)).OrderBy(x => x.Name)); 209 220 } 210 221
Note: See TracChangeset
for help on using the changeset viewer.