Changeset 14211 for stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples
- Timestamp:
- 07/24/16 00:22:11 (8 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14203-14204,14206-14207,14209
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests merged: 14206,14209
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPRobocodeSampleTest.cs
r14186 r14211 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.