Changeset 3358
- Timestamp:
- 04/15/10 18:12:23 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimization.cs
r3348 r3358 143 143 foreach (IRealVectorEncoder encoder in Problem.Operators.OfType<IRealVectorEncoder>().OrderBy(x => x.Name)) { 144 144 EncoderParameter.ValidValues.Add(encoder); 145 //encoder.RealVectorParameter.ActualName145 encoder.RealVectorParameter.ActualName = "Position"; 146 146 } 147 147 if (oldEncoder != null) { -
trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimizationMainLoop.cs
r3348 r3358 23 23 get { return (ValueLookupParameter<IOperator>)Parameters["Encoder"]; } 24 24 } 25 public ValueLookupParameter<IOperator> EvaluatorParameter { 26 get { return (ValueLookupParameter<IOperator>)Parameters["Evaluator"]; } 27 } 25 28 #endregion 26 29 … … 36 39 Parameters.Add(new ValueLookupParameter<VariableCollection>("Results", "The variable collection where results should be stored.")); 37 40 Parameters.Add(new ValueLookupParameter<IOperator>("Encoder", "The encoding operator that maps a solution to a position vector.")); 41 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions.")); 38 42 #endregion 39 43 … … 43 47 UniformSubScopesProcessor uniformSubScopesProcessor = new UniformSubScopesProcessor(); 44 48 Placeholder encoder = new Placeholder(); 49 Placeholder evaluator = new Placeholder(); 45 50 46 51 encoder.Name = "Encoder (placeholder)"; 47 52 encoder.OperatorParameter.ActualName = EncoderParameter.Name; 53 54 evaluator.Name = "Evaluator (placeholder)"; 55 evaluator.OperatorParameter.ActualName = EvaluatorParameter.Name; 48 56 #endregion 49 57 … … 52 60 variableCreator.Successor = uniformSubScopesProcessor; 53 61 uniformSubScopesProcessor.Operator = encoder; 54 uniformSubScopesProcessor.Successor = null;62 uniformSubScopesProcessor.Successor = evaluator; 55 63 #endregion 56 64 }
Note: See TracChangeset
for help on using the changeset viewer.