Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/16 10:29:06 (8 years ago)
Author:
bwerth
Message:

#1087 added ConstrainedFunctions

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Interfaces/IConstrainedTestFunction.cs

    r13773 r13776  
    2020#endregion
    2121
    22 using System.Collections.Generic;
    2322using HeuristicLab.Core;
    2423using HeuristicLab.Encodings.RealVectorEncoding;
     
    2827  /// An interface which represents an evaluation operator for multi objective test functions.
    2928  /// </summary>
    30   public interface IMultiObjectiveTestFunction : INamedItem {
    31     bool[] Maximization(int objectives);
    32     double[,] Bounds(int objectives);
    33     IEnumerable<double[]> OptimalParetoFront(int objectives);
    34     double[] ReferencePoint(int objectives);
    35     double BestKnownHypervolume(int objectives);
     29  public interface IConstrainedTestFunction : INamedItem {
    3630
    37     int MinimumSolutionLength { get; }
    38     int MaximumSolutionLength { get; }
    39     int MinimumObjectives { get; }
    40     int MaximumObjectives { get; }
    41 
    42     double[] Evaluate(RealVector point, int objectives);
     31    /// <summary>
     32    /// checks whether a given solution violates the contraints of this function 
     33    /// </summary>
     34    /// <param name="point"></param>
     35    /// <param name="objectives"></param>
     36    /// <returns>a double array that holds the distances that describe how much every contraint is violated (0 is not violated) </returns>
     37    double[] CheckConstraints(RealVector point, int objectives);
    4338  }
    4439}
Note: See TracChangeset for help on using the changeset viewer.