Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/15/20 13:53:11 (4 years ago)
Author:
mkommend
Message:

#2971: Added first draft of results implementation and problem adaptation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GrammaticalEvolution/3.4/ArtificialAnt/GEArtificialAntProblem.cs

    r17382 r17745  
    2222#endregion
    2323
    24 using System.Linq;
    2524using System.Threading;
    2625using HEAL.Attic;
     
    117116    }
    118117
    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;
    124124
    125       var trees = solutions
    126         .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();
    128128
    129       wrappedAntProblem.Analyze(trees, qualities, results, random);
     129      //wrappedAntProblem.Analyze(solutionContexts, random);
    130130    }
    131131  }
Note: See TracChangeset for help on using the changeset viewer.