Changeset 14206 for trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3
- Timestamp:
- 07/23/16 22:49:24 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPRobocodeSampleTest.cs
r14185 r14206 23 23 using System.Linq; 24 24 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 using HeuristicLab.Data; 25 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 26 27 using HeuristicLab.Persistence.Default.Xml; … … 49 50 50 51 #region Problem Configuration 51 Problem antProblem = new Problem(); 52 Problem robocodeProblem = new Problem(); 53 if (!robocodeProblem.Enemies.CheckedItems.Any()) 54 robocodeProblem.Enemies.Add(new StringValue("sample.Crazy")); 52 55 #endregion 53 56 #region Algorithm Configuration 54 57 ga.Name = "Genetic Programming - Robocode Java Source"; 55 58 ga.Description = "A standard genetic programming algorithm to evolve the java source code for a robocode bot (see http://robocode.sourceforge.net/). An installation of Java SE Developmen Kit (JDK) >= 1.6 is necessary to run this sample."; 56 ga.Problem = antProblem;59 ga.Problem = robocodeProblem; 57 60 SamplesUtils.ConfigureGeneticAlgorithmParameters<TournamentSelector, SubtreeCrossover, MultiSymbolicExpressionTreeArchitectureManipulator>( 58 61 ga, 50, 1, 50, 0.15, 2);
Note: See TracChangeset
for help on using the changeset viewer.