Changeset 13515 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/SchafferN1.cs
- Timestamp:
- 01/15/16 16:07:14 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/SchafferN1.cs
r13448 r13515 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using HeuristicLab.Common; 1 using HeuristicLab.Common; 7 2 using HeuristicLab.Core; 8 3 using HeuristicLab.Data; 9 4 using HeuristicLab.Encodings.RealVectorEncoding; 10 5 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 11 using HeuristicLab.Problems.MultiObjectiveTestFunction;12 6 13 namespace HeuristicLab.Problems. TestFunctions {14 [Item("SchafferN1", " from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")]7 namespace HeuristicLab.Problems.MultiObjectiveTestFunctions { 8 [Item("SchafferN1", "Schaffer function N.1 for mulitobjective optimization from // https://en.wikipedia.org/wiki/Test_functions_for_optimization [30.11.2015]")] 15 9 [StorableClass] 16 10 public class SchafferN1 : MultiObjectiveTestFunction { … … 61 55 } 62 56 57 public override RealVector[] OptimalParetoFront { 58 get { 59 return PFReader.getFromFile("SchafferN1"); 60 } 61 } 62 public override double BestKnownHypervolume { 63 get { 64 return new Hypervolume(base.ReferencePoint, Maximization).GetHypervolume(OptimalParetoFront); 65 } 66 } 67 63 68 [StorableConstructor] 64 69 protected SchafferN1(bool deserializing) : base(deserializing) { }
Note: See TracChangeset
for help on using the changeset viewer.