Changeset 17363 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs
- Timestamp:
- 11/21/19 17:58:32 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs
r17320 r17363 108 108 } 109 109 110 public override void Evaluate(ISingleObjectiveSolutionContext<TEncodedSolution> solutionContext, IRandom random, CancellationToken cancellationToken) { 111 ProblemDefinition.Evaluate(solutionContext, random, cancellationToken); 112 } 110 113 public override double Evaluate(TEncodedSolution individual, IRandom random, CancellationToken cancellationToken) { 111 114 return ProblemDefinition.Evaluate(individual, random, cancellationToken); 112 115 } 113 116 117 public override void Analyze(ISingleObjectiveSolutionContext<TEncodedSolution>[] solutionContexts, ResultCollection results, IRandom random) { 118 ProblemDefinition.Analyze(solutionContexts, results, random); 119 } 114 120 public override void Analyze(TEncodedSolution[] individuals, double[] qualities, ResultCollection results, IRandom random) { 115 121 ProblemDefinition.Analyze(individuals, qualities, results, random); 122 } 123 124 public override IEnumerable<ISingleObjectiveSolutionContext<TEncodedSolution>> GetNeighbors(ISingleObjectiveSolutionContext<TEncodedSolution> solutionContext, IRandom random) { 125 return ProblemDefinition.GetNeighbors(solutionContext, random); 116 126 } 117 127 public override IEnumerable<TEncodedSolution> GetNeighbors(TEncodedSolution individual, IRandom random) {
Note: See TracChangeset
for help on using the changeset viewer.