Changeset 11598 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/MultiObjectiveEvaluator.cs
- Timestamp:
- 11/27/14 20:02:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/MultiObjectiveEvaluator.cs
r11559 r11598 68 68 var definition = ProblemDefinitionParameter.ActualValue; 69 69 if (definition == null) throw new InvalidOperationException("Problem definition is null."); 70 var config = EncodingParameter.ActualValue;71 var vector = Helper.Extract(ExecutionContext.Scope, config);72 QualitiesParameter.ActualValue = new DoubleArray(definition.Evaluate(random, vector));70 var encoding = EncodingParameter.ActualValue; 71 var individual = encoding.CreateIndividual(ExecutionContext.Scope); 72 QualitiesParameter.ActualValue = new DoubleArray(definition.Evaluate(random, individual)); 73 73 return base.Apply(); 74 74 }
Note: See TracChangeset
for help on using the changeset viewer.