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/PsoSchwefelSampleTest.cs

    r12012 r13408  
    6868      #region Problem Configuration
    6969      var problem = new SingleObjectiveTestFunctionProblem();
    70       problem.BestKnownQuality.Value = 0.0;
     70      problem.BestKnownQuality = 0.0;
    7171      problem.BestKnownSolutionParameter.Value = new RealVector(new double[] { 420.968746, 420.968746 });
    7272      problem.Bounds = new DoubleMatrix(new double[,] { { -500, 500 } });
    73       problem.EvaluatorParameter.Value = new SchwefelEvaluator();
    74       problem.Maximization.Value = false;
    75       problem.ProblemSize.Value = 2;
     73      problem.TestFunction = new Schwefel();
     74      problem.ProblemSize = 2;
    7675      problem.SolutionCreatorParameter.Value = new UniformRandomRealVectorCreator();
    7776      #endregion
Note: See TracChangeset for help on using the changeset viewer.