Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/12/15 15:39:28 (9 years ago)
Author:
abeham
Message:

#2282:

  • Renamed BinaryVectorProblem to BinaryProblem
  • Removed IBinaryVectorProblem interface
  • Derived BinaryProblem from SingleObjectiveBasicProblem
  • Changed bool[] datatype to BinaryVector
Location:
trunk/sources/HeuristicLab.Tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.ParameterlessPopulationPyramid-3.3/LinkageTreeTest.cs

    r11939 r11987  
    2222using System.Linq;
    2323using HeuristicLab.Algorithms.ParameterlessPopulationPyramid;
     24using HeuristicLab.Encodings.BinaryVectorEncoding;
    2425using HeuristicLab.Random;
    2526using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    2930  public class LinkageTreeTest {
    3031    private static int Length = 9;
    31     private static bool[][] solutions = new bool[][] {
    32     new bool[] { true, true, false, false, false, false, false, false, false }, // 110000000
    33     new bool[] { false, false, true, true, false, false, false, false, false }, // 001100000
    34     new bool[] { false, false, false, false, true, true, false, false, false }, // 000011000
    35     new bool[] { false, false, false, false, false, false, true, true, true },  // 000000111
    36     new bool[] { true, true, true, true, false, false, false, false, false },   // 111100000
    37     new bool[] { true, true, true, true, true, true, true, true, true },        // 111111111
     32    private static BinaryVector[] solutions = {
     33    new BinaryVector(new [] { true, true, false, false, false, false, false, false, false }), // 110000000
     34    new BinaryVector(new [] { false, false, true, true, false, false, false, false, false }), // 001100000
     35    new BinaryVector(new [] { false, false, false, false, true, true, false, false, false }), // 000011000
     36    new BinaryVector(new [] { false, false, false, false, false, false, true, true, true }),  // 000000111
     37    new BinaryVector(new [] { true, true, true, true, false, false, false, false, false }),   // 111100000
     38    new BinaryVector(new [] { true, true, true, true, true, true, true, true, true }),        // 111111111
    3839    };
    3940
    4041    // These are the clusters that should be built using "solutions" and the seed 123
    41     private static int[][] correctClusters = new int[][] {
     42    private static int[][] correctClusters = {
    4243      new int[] { 4, 5 },
    4344      new int[] { 2, 3 },
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.ParameterlessPopulationPyramid-3.3/ParameterlessPopulationPyramidTest.cs

    r11983 r11987  
    2222using System;
    2323using System.Threading;
    24 using HeuristicLab.Algorithms.ParameterlessPopulationPyramid;
    2524using HeuristicLab.Common;
    26 using HeuristicLab.Problems.BinaryVector;
     25using HeuristicLab.Problems.Binary;
    2726using Microsoft.VisualStudio.TestTools.UnitTesting;
    2827
     
    3231
    3332    // Utility function that sets up and executes the run, then asserts the results
    34     private PrivateObject DoRun(BinaryVectorProblem problem, int maximumEvaluations, int seed, double bestQuality, int foundOn) {
     33    private PrivateObject DoRun(BinaryProblem problem, int maximumEvaluations, int seed, double bestQuality, int foundOn) {
    3534      var solver = new HeuristicLab.Algorithms.ParameterlessPopulationPyramid.ParameterlessPopulationPyramid();
    3635      solver.Problem = problem;
     
    4140      try {
    4241        hidden.Invoke("Run", new CancellationToken());
    43       }
    44       catch (OperationCanceledException) {
     42      } catch (OperationCanceledException) {
    4543        // Ignore
    4644      }
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Tests.csproj

    r11961 r11987  
    254254      <Private>False</Private>
    255255    </Reference>
    256     <Reference Include="HeuristicLab.Problems.BinaryVector-3.3">
     256    <Reference Include="HeuristicLab.Problems.Binary-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    257257      <SpecificVersion>False</SpecificVersion>
    258       <HintPath>..\bin\HeuristicLab.Problems.BinaryVector-3.3.dll</HintPath>
     258      <HintPath>..\bin\HeuristicLab.Problems.Binary-3.3.dll</HintPath>
    259259      <Private>False</Private>
    260260    </Reference>
Note: See TracChangeset for help on using the changeset viewer.