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.Encodings.IntegerVectorEncoding/3.3/IntegerVectorProblem.cs

    r17695 r17745  
    8282    }
    8383
    84     public override void Analyze(IntegerVector[] vectors, double[] qualities, ResultCollection results, IRandom random) {
    85       base.Analyze(vectors, qualities, results, random);
    86       var best = GetBestSolution(vectors, qualities);
     84    public override void Analyze(ISingleObjectiveSolutionContext<IntegerVector>[] solutionContext, IRandom random) {
     85      base.Analyze(solutionContext, random);
    8786
    88       results.AddOrUpdateResult("Best Solution", (IItem)best.Item1.Clone());
     87      var best = GetBest(solutionContext);
     88
     89      //TODO reimplement code below using results directly
     90      //results.AddOrUpdateResult("Best Solution", (IntegerVector)best.EncodedSolution.Clone());
    8991    }
    9092
Note: See TracChangeset for help on using the changeset viewer.