Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/25/20 01:23:08 (4 years ago)
Author:
abeham
Message:

#2521: Made encodings non-generic classes (the TEncodedSolution type parameter is not actually used), this will make it considerably easier to port the VRP to the new architecture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Problem.cs

    r17695 r17699  
    3333  public abstract class Problem<TEncoding, TEncodedSolution, TEvaluator> : EncodedProblem,
    3434    IHeuristicOptimizationProblem, IProblemDefinition<TEncoding, TEncodedSolution>, IStorableContent
    35     where TEncoding : class, IEncoding<TEncodedSolution>
     35    where TEncoding : class, IEncoding
    3636    where TEncodedSolution : class, IEncodedSolution
    3737    where TEvaluator : class, IEvaluator {
     
    136136      oldEncoding = Encoding;
    137137
    138       foreach (var op in Operators.OfType<IEncodingOperator<TEncodedSolution>>())
     138      foreach (var op in Operators.OfType<IEncodingOperator>())
    139139        op.EncodingParameter.ActualName = EncodingParameter.Name;
    140140
Note: See TracChangeset for help on using the changeset viewer.