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

    r12012 r13408  
    5959      #region Problem Configuration
    6060      KnapsackProblem problem = new KnapsackProblem();
    61       problem.BestKnownQuality = new DoubleValue(362);
     61      problem.BestKnownQuality = 362;
    6262      problem.BestKnownSolution = new HeuristicLab.Encodings.BinaryVectorEncoding.BinaryVector(new bool[] {
    6363       true , false, false, true , true , true , true , true , false, true , true , true , true , true , true , false, true , false, true , true , false, true , true , false, true , false, true , true , true , false, true , true , false, true , true , false, true , false, true , true , true , true , true , true , true , true , true , true , true , true , true , false, true , false, false, true , true , false, true , true , true , true , true , true , true , true , false, true , false, true , true , true , true , false, true , true , true , true , true , true , true , true});
    64       problem.EvaluatorParameter.Value = new KnapsackEvaluator();
    6564      problem.SolutionCreatorParameter.Value = new RandomBinaryVectorCreator();
    66       problem.KnapsackCapacity.Value = 297;
    67       problem.Maximization.Value = true;
    68       problem.Penalty.Value = 1;
     65      problem.KnapsackCapacity = 297;
    6966      problem.Values = new IntArray(new int[] {
    7067  6, 1, 1, 6, 7, 8, 7, 4, 2, 5, 2, 6, 7, 8, 7, 1, 7, 1, 9, 4, 2, 6, 5,  3, 5, 3, 3, 6, 5, 2, 4, 9, 4, 5, 7, 1, 4, 3, 5, 5, 8, 3, 6, 7, 3, 9, 7, 7, 5, 5, 7, 1, 4, 4, 3, 9, 5, 1, 6, 2, 2, 6, 1, 6, 5, 4, 4, 7, 1,  8, 9, 9, 7, 4, 3, 8, 7, 5, 7, 4, 4, 5});
Note: See TracChangeset for help on using the changeset viewer.