Changeset 9411 for branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/GAssist/ILAS
- Timestamp:
- 04/30/13 16:54:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/GAssist/ILAS/ILASOperator.cs
r9392 r9411 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 24 using System.Linq; 23 25 using HeuristicLab.Common; 24 26 using HeuristicLab.Core; … … 37 39 get { return (ILookupParameter<IRandom>)Parameters["Random"]; } 38 40 } 39 public ILookupParameter<IGAssist NichesProblemData> ProblemDataParameter {40 get { return (ILookupParameter<IGAssist NichesProblemData>)Parameters["ProblemData"]; }41 public ILookupParameter<IGAssistProblemData> ProblemDataParameter { 42 get { return (ILookupParameter<IGAssistProblemData>)Parameters["ProblemData"]; } 41 43 } 42 44 public IValueLookupParameter<IntValue> NumberOfStrataParameter { … … 56 58 : base() { 57 59 Parameters.Add(new LookupParameter<IRandom>("Random", "The random generator to use.")); 58 Parameters.Add(new LookupParameter<IGAssist NichesProblemData>("ProblemData", ""));60 Parameters.Add(new LookupParameter<IGAssistProblemData>("ProblemData", "")); 59 61 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfStrata", "")); 60 62 Parameters.Add(new ValueLookupParameter<ItemList<ItemList<IntValue>>>("Strata", "")); … … 103 105 } 104 106 107 if (strata.Any(x => x.Count() == 0)) { 108 throw new ArgumentException("At least one strata is empty. Use less strata or add more data."); 109 } 110 105 111 StrataParameter.ActualValue = strata; 106 112 }
Note: See TracChangeset
for help on using the changeset viewer.