Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/12/17 21:02:01 (7 years ago)
Author:
abeham
Message:

#2666, #2706, #2730, #2736: merged revisions 14412, 14475, 14476, 14659, 14660, 14663, 14779, 14780, 14912, 15050, 15067, 15069, 15079, 15162, 15166, 15172, 15173 to stable

Location:
stable
Files:
5 edited
2 copied

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Tests

  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.LinearLinkageEncoding-3.4/Auxiliary.cs

    r14475 r15217  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.LinearLinkageEncoding-3.4/ConversionsTest.cs

    r14475 r15217  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
     23using System.Linq;
     24using HeuristicLab.Random;
    225using Microsoft.VisualStudio.TestTools.UnitTesting;
    326
     
    95118      }
    96119    }
     120
     121    [TestMethod]
     122    [TestCategory("Encodings.LinearLinkage")]
     123    [TestProperty("Time", "short")]
     124    public void ConvertFromLLEtoLLEe() {
     125      var random = new MersenneTwister(42);
     126      var lle = MaxGroupsLinearLinkageCreator.Apply(random, 32, 8);
     127      Assert.IsTrue(lle.SequenceEqual(LinearLinkage.FromEndLinks(lle.ToEndLinks())));
     128    }
     129
     130    [TestMethod]
     131    [TestCategory("Encodings.LinearLinkage")]
     132    [TestProperty("Time", "short")]
     133    public void ConvertFromLLEtoLLEb() {
     134      var random = new MersenneTwister(42);
     135      var lle = MaxGroupsLinearLinkageCreator.Apply(random, 32, 8);
     136      Assert.IsTrue(lle.SequenceEqual(LinearLinkage.FromBackLinks(lle.ToBackLinks())));
     137    }
    97138  }
    98139}
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.LinearLinkageEncoding-3.4/GroupCrossoverTest.cs

    r14475 r15217  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
    222using HeuristicLab.Random;
    323using HeuristicLab.Tests;
  • stable/HeuristicLab.Tests/HeuristicLab.Encodings.LinearLinkageEncoding-3.4/MoveTests.cs

    r14663 r15217  
    3939        var beforeb = before.ToBackLinks();
    4040        var moves = 0;
    41         foreach (var move in MoveGenerator.Generate(lle)) {
     41        foreach (var move in ExhaustiveEMSSMoveGenerator.Generate(lle)) {
    4242          var lleb = lle.ToBackLinks();
    4343          move.Apply(lle);
     
    6666        var moves = 0;
    6767        for (var i = 1; i < lle.Length; i++) {
    68           var move = MoveGenerator.GenerateForItem(i, groupItems, lle, lleb).SampleRandom(random);
     68          var move = ExhaustiveEMSSMoveGenerator.GenerateForItem(i, groupItems, lle, lleb).SampleRandom(random);
    6969          move.Apply(lle);
    7070          move.ApplyToLLEb(lleb);
Note: See TracChangeset for help on using the changeset viewer.