Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/15/15 15:16:24 (8 years ago)
Author:
mkommend
Message:

#2521: Refactored problem base classes and adapted scheduling encoding, scheduling problem and unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/JSMJOXCrossoverTest.cs

    r12012 r13469  
    2222using HeuristicLab.Core;
    2323using HeuristicLab.Encodings.PermutationEncoding;
    24 using HeuristicLab.Encodings.ScheduleEncoding.JobSequenceMatrix;
    2524using HeuristicLab.Tests;
    2625using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    4039    [TestProperty("Time", "short")]
    4140    public void ApplyTest() {
    42       IRandom random = new TestRandom(new int[] { 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1 }, null);
     41      IRandom random = new TestRandom(new int[] { 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1 }, null);
    4342      JSMEncoding p1 = TestUtils.CreateTestJSM1();
    4443      JSMEncoding p2 = TestUtils.CreateTestJSM2();
    45       JSMEncoding expected = new JSMEncoding();
    46       ItemList<Permutation> jsm = new ItemList<Permutation>();
     44      JSMEncoding expected = new JSMEncoding(0);
     45      ItemList<Permutation> jsm = expected.JobSequenceMatrix;
    4746      for (int i = 0; i < 6; i++) {
    4847        jsm.Add(new Permutation(PermutationTypes.Absolute, new int[] { 5, 4, 3, 0, 1, 2 }));
    4948      }
    50       expected.JobSequenceMatrix = jsm;
     49
    5150
    5251      JSMEncoding actual;
Note: See TracChangeset for help on using the changeset viewer.