Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/14/16 13:34:21 (8 years ago)
Author:
mkommend
Message:

#1087: Refactored multi-objective test functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/ZDT/ZDT.cs

    r13989 r14067  
    4141    }
    4242
    43     public override int MinimumSolutionLength {
    44       get { return 1; }
    45     }
    46 
    47     public override int MaximumSolutionLength {
    48       get { return int.MaxValue; }
    49     }
    50 
    51     public override int MinimumObjectives {
    52       get { return 2; }
    53     }
    54 
    55     public override int MaximumObjectives {
    56       get { return 2; }
    57     }
    58 
    5943    public override double[] ReferencePoint(int objecitives) {
    6044      return new double[] { 11.0, 11.0 };
     
    6751    [StorableConstructor]
    6852    protected ZDT(bool deserializing) : base(deserializing) { }
    69     protected ZDT(MultiObjectiveTestFunction original, Cloner cloner) : base(original, cloner) {
     53    protected ZDT(MultiObjectiveTestFunction original, Cloner cloner)
     54      : base(original, cloner) {
    7055    }
    71     protected ZDT() : base(minimumObjectives: 2, maximumObjectives: 2, minimumSolutionLength: 1) { }
     56    protected ZDT() : base(minimumObjectives: 2, maximumObjectives: 2, minimumSolutionLength: 1, maximumSolutionLength: int.MaxValue) { }
    7257
    7358    public override double[] Evaluate(RealVector r, int objectives) {
Note: See TracChangeset for help on using the changeset viewer.