Changeset 2882 for trunk/sources/HeuristicLab.Selection
- Timestamp:
- 02/27/10 03:35:11 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Selection/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/3.3/HeuristicLab.Selection-3.3.csproj
r2817 r2882 119 119 <Name>HeuristicLab.Operators-3.3</Name> 120 120 </ProjectReference> 121 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj"> 122 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project> 123 <Name>HeuristicLab.Optimization-3.3</Name> 124 </ProjectReference> 121 125 <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj"> 122 126 <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project> -
trunk/sources/HeuristicLab.Selection/3.3/HeuristicLabSelectionPlugin.cs.frame
r2818 r2882 32 32 [PluginDependency("HeuristicLab.Data", "3.3")] 33 33 [PluginDependency("HeuristicLab.Operators", "3.3")] 34 [PluginDependency("HeuristicLab.Optimization", "3.3")] 34 35 [PluginDependency("HeuristicLab.Parameters", "3.3")] 35 36 [PluginDependency("HeuristicLab.Persistence", "3.3")] -
trunk/sources/HeuristicLab.Selection/3.3/Reducer.cs
r2834 r2882 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Operators; 25 using HeuristicLab.Optimization; 25 26 using HeuristicLab.Parameters; 26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 32 33 [Item("Reducer", "A base class for reduction operators.")] 33 34 [EmptyStorableClass] 34 public abstract class Reducer : SingleSuccessorOperator {35 public abstract class Reducer : SingleSuccessorOperator, IReducer { 35 36 protected ScopeParameter CurrentScopeParameter { 36 37 get { return (ScopeParameter)Parameters["CurrentScope"]; } -
trunk/sources/HeuristicLab.Selection/3.3/Selector.cs
r2834 r2882 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Operators; 26 using HeuristicLab.Optimization; 26 27 using HeuristicLab.Parameters; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 33 34 [Item("Selector", "A base class for selection operators.")] 34 35 [EmptyStorableClass] 35 public abstract class Selector : SingleSuccessorOperator {36 public abstract class Selector : SingleSuccessorOperator, ISelector { 36 37 protected ValueParameter<BoolData> CopySelectedParameter { 37 38 get { return (ValueParameter<BoolData>)Parameters["CopySelected"]; } 38 39 } 39 public ValueLookupParameter<IntData> NumberOfSelectedSubScopesParameter {40 public IValueLookupParameter<IntData> NumberOfSelectedSubScopesParameter { 40 41 get { return (ValueLookupParameter<IntData>)Parameters["NumberOfSelectedSubScopes"]; } 41 42 } -
trunk/sources/HeuristicLab.Selection/3.3/StochasticSelector.cs
r2818 r2882 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Optimization; 23 24 using HeuristicLab.Parameters; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 30 31 [Item("StochasticSelector", "A base class for stochastic selection operators.")] 31 32 [EmptyStorableClass] 32 public abstract class StochasticSelector : Selector {33 public LookupParameter<IRandom> RandomParameter {33 public abstract class StochasticSelector : Selector, IStochasticOperator { 34 public ILookupParameter<IRandom> RandomParameter { 34 35 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 35 36 } -
trunk/sources/HeuristicLab.Selection/3.3/StochasticSingleObjectiveSelector.cs
r2818 r2882 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Data; 24 using HeuristicLab.Optimization; 24 25 using HeuristicLab.Parameters; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 31 32 [Item("StochasticSingleObjectiveSelector", "A base class for stochastic selection operators which consider a single double quality value for selection.")] 32 33 [EmptyStorableClass] 33 public abstract class StochasticSingleObjectiveSelector : StochasticSelector {34 public LookupParameter<BoolData> MaximizationParameter {35 get { return ( LookupParameter<BoolData>)Parameters["Maximization"]; }34 public abstract class StochasticSingleObjectiveSelector : StochasticSelector, ISingleObjectiveSelector { 35 public IValueLookupParameter<BoolData> MaximizationParameter { 36 get { return (IValueLookupParameter<BoolData>)Parameters["Maximization"]; } 36 37 } 37 public SubScopesLookupParameter<DoubleData> QualityParameter {38 get { return ( SubScopesLookupParameter<DoubleData>)Parameters["Quality"]; }38 public ILookupParameter<ItemArray<DoubleData>> QualityParameter { 39 get { return (ILookupParameter<ItemArray<DoubleData>>)Parameters["Quality"]; } 39 40 } 40 41 41 42 protected StochasticSingleObjectiveSelector() 42 43 : base() { 43 Parameters.Add(new LookupParameter<BoolData>("Maximization", "True if the current problem is a maximization problem, otherwise false."));44 Parameters.Add(new ValueLookupParameter<BoolData>("Maximization", "True if the current problem is a maximization problem, otherwise false.")); 44 45 Parameters.Add(new SubScopesLookupParameter<DoubleData>("Quality", "The quality value contained in each sub-scope which is used for selection.")); 45 46 }
Note: See TracChangeset
for help on using the changeset viewer.