Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/26/15 17:36:54 (9 years ago)
Author:
mkommend
Message:

#2521: Adapted unit tests in problem refactoring branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/OSESGriewankSampleTest.cs

    r13237 r13408  
    2121
    2222using System.IO;
    23 using HeuristicLab.Algorithms.EvolutionStrategy;
    2423using HeuristicLab.Algorithms.OffspringSelectionEvolutionStrategy;
    2524using HeuristicLab.Data;
     
    6362      SingleObjectiveTestFunctionProblem problem = new SingleObjectiveTestFunctionProblem();
    6463
    65       problem.ProblemSize.Value = 10;
    66       problem.EvaluatorParameter.Value = new GriewankEvaluator();
     64      problem.ProblemSize = 10;
     65      problem.TestFunction = new Griewank();
    6766      problem.SolutionCreatorParameter.Value = new UniformRandomRealVectorCreator();
    68       problem.Maximization.Value = false;
    6967      problem.Bounds = new DoubleMatrix(new double[,] { { -600, 600 } });
    70       problem.BestKnownQuality.Value = 0;
     68      problem.BestKnownQuality = 0;
    7169      problem.BestKnownSolutionParameter.Value = new RealVector(10);
    7270      problem.Name = "Single Objective Test Function";
Note: See TracChangeset for help on using the changeset viewer.