Changeset 3534 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Tests/AllArchitectureAlteringOperatorsTest.cs
- Timestamp:
- 04/26/10 15:47:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Tests/AllArchitectureAlteringOperatorsTest.cs
r3462 r3534 32 32 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Creators; 33 33 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Crossovers; 34 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Manipulators; 34 35 35 36 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_3._3.Tests { … … 73 74 Stopwatch stopwatch = new Stopwatch(); 74 75 stopwatch.Start(); 75 var combinedAAOperator = new RandomArchitectureAlteringOperator();76 var combinedAAOperator = new MultiSymbolicExpressionTreeArchitectureManipulator(); 76 77 for (int g = 0; g < N_ITERATIONS; g++) { 77 78 for (int i = 0; i < POPULATION_SIZE; i++) { … … 80 81 var selectedTree = (SymbolicExpressionTree)trees.SelectRandom(random).Clone(); 81 82 var op = combinedAAOperator.Operators.SelectRandom(random); 82 bool success ;83 bool success = false; 83 84 op.ModifyArchitecture(random, selectedTree, grammar, maxTreeSize, maxTreeHeigth, maxDefuns, maxArgs, out success); 84 85 if (!success) failedEvents++;
Note: See TracChangeset
for help on using the changeset viewer.