Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/21/16 12:40:49 (8 years ago)
Author:
pfleck
Message:

#1087 Changed BestKnownFront parameter to OptionalValueParameter to allow null if no best front is known (DTLZ8 and SchafferN2 and DTLZs with objectives > 2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TestFunctions.MultiObjective/3.3/MultiObjectiveTestFunctionProblem.cs

    r14111 r14150  
    5656      get { return (IValueParameter<DoubleArray>)Parameters["ReferencePoint"]; }
    5757    }
    58     public IValueParameter<DoubleMatrix> BestKnownFrontParameter {
    59       get { return (IValueParameter<DoubleMatrix>)Parameters["BestKnownFront"]; }
     58    public OptionalValueParameter<DoubleMatrix> BestKnownFrontParameter {
     59      get { return (OptionalValueParameter<DoubleMatrix>)Parameters["BestKnownFront"]; }
    6060    }
    6161
     
    118118      Parameters.Add(new ValueParameter<DoubleArray>("ReferencePoint", "The reference point used for hypervolume calculation."));
    119119      Parameters.Add(new ValueParameter<IMultiObjectiveTestFunction>("TestFunction", "The function that is to be optimized.", new Fonseca()));
    120       Parameters.Add(new ValueParameter<DoubleMatrix>("BestKnownFront", "The currently best known Pareto front"));
     120      Parameters.Add(new OptionalValueParameter<DoubleMatrix>("BestKnownFront", "The currently best known Pareto front"));
    121121
    122122      Encoding.LengthParameter = ProblemSizeParameter;
Note: See TracChangeset for help on using the changeset viewer.