- Timestamp:
- 09/15/20 13:53:11 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GrammaticalEvolution/3.4/ArtificialAnt/GEArtificialAntProblem.cs
r17382 r17745 22 22 #endregion 23 23 24 using System.Linq;25 24 using System.Threading; 26 25 using HEAL.Attic; … … 117 116 } 118 117 119 public override void Analyze(IntegerVector[] solutions, double[] qualities, ResultCollection results, IRandom random) { 120 var bounds = Encoding.Bounds; 121 var len = Encoding.Length; 122 var grammar = wrappedAntProblem.Encoding.Grammar; 123 var mapper = GenotypeToPhenotypeMapperParameter.Value; 118 //TODO: Use SolutionContext wrapper to translate between integer and tree encoded solution 119 public override void Analyze(ISingleObjectiveSolutionContext<IntegerVector>[] solutionContexts, IRandom random) { 120 //var bounds = Encoding.Bounds; 121 //var len = Encoding.Length; 122 //var grammar = wrappedAntProblem.Encoding.Grammar; 123 //var mapper = GenotypeToPhenotypeMapperParameter.Value; 124 124 125 var trees = solutions126 .Select(ind => mapper.Map(random, bounds, len, grammar, ind))127 .ToArray();125 //var trees = solutionContexts 126 // .Select(context => mapper.Map(random, bounds, len, grammar, context.EncodedSolution)) 127 // .ToArray(); 128 128 129 wrappedAntProblem.Analyze(trees, qualities, results, random);129 //wrappedAntProblem.Analyze(solutionContexts, random); 130 130 } 131 131 }
Note: See TracChangeset
for help on using the changeset viewer.