Ignore:
Timestamp:
11/24/15 16:01:02 (4 years ago)
Author:
mkommend
Message:

#2521: Adapted real vector encoding, test function problems, P3, CMA-ES and optimization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/HillClimber.cs

    r13339 r13361  
    4949
    5050    public override Type ProblemType {
    51       get { return typeof(ISingleObjectiveProblem<BinaryVectorEncoding, BinaryVector>); }
     51      get { return typeof(ISingleObjectiveProblemDefinition<BinaryVectorEncoding, BinaryVector>); }
    5252    }
    53     public new ISingleObjectiveProblem<BinaryVectorEncoding, BinaryVector> Problem {
    54       get { return (ISingleObjectiveProblem<BinaryVectorEncoding, BinaryVector>)base.Problem; }
    55       set { base.Problem = value; }
     53    public new ISingleObjectiveProblemDefinition<BinaryVectorEncoding, BinaryVector> Problem {
     54      get { return (ISingleObjectiveProblemDefinition<BinaryVectorEncoding, BinaryVector>)base.Problem; }
     55      set { base.Problem = (IProblem)value; }
    5656    }
    5757
     
    9797    }
    9898    // In the GECCO paper, Section 2.1
    99     public static double ImproveToLocalOptimum(ISingleObjectiveProblem<BinaryVectorEncoding, BinaryVector> problem, BinaryVector solution, double fitness, IRandom rand) {
     99    public static double ImproveToLocalOptimum(ISingleObjectiveProblemDefinition<BinaryVectorEncoding, BinaryVector> problem, BinaryVector solution, double fitness, IRandom rand) {
    100100      var tried = new HashSet<int>();
    101101      do {
Note: See TracChangeset for help on using the changeset viewer.