Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/26/10 15:47:10 (14 years ago)
Author:
gkronber
Message:

Added interfaces for symbolic expression tree operators and added multi manipulation operators. #937 (Data types and operators for symbolic expression tree encoding)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Tests/AllArchitectureAlteringOperatorsTest.cs

    r3462 r3534  
    3232using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Creators;
    3333using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Crossovers;
     34using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Manipulators;
    3435
    3536namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_3._3.Tests {
     
    7374      Stopwatch stopwatch = new Stopwatch();
    7475      stopwatch.Start();
    75       var combinedAAOperator = new RandomArchitectureAlteringOperator();
     76      var combinedAAOperator = new MultiSymbolicExpressionTreeArchitectureManipulator();
    7677      for (int g = 0; g < N_ITERATIONS; g++) {
    7778        for (int i = 0; i < POPULATION_SIZE; i++) {
     
    8081            var selectedTree = (SymbolicExpressionTree)trees.SelectRandom(random).Clone();
    8182            var op = combinedAAOperator.Operators.SelectRandom(random);
    82             bool success;
     83            bool success = false;
    8384            op.ModifyArchitecture(random, selectedTree, grammar, maxTreeSize, maxTreeHeigth, maxDefuns, maxArgs, out success);
    8485            if (!success) failedEvents++;
Note: See TracChangeset for help on using the changeset viewer.