Changeset 12898
- Timestamp:
- 08/25/15 12:30:13 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.5/ArtificialAntProblem.cs
r12895 r12898 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using System.Diagnostics.Contracts; 25 24 using System.Linq; … … 28 27 using HeuristicLab.Data; 29 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 30 using HeuristicLab.Optimization;31 29 using HeuristicLab.Parameters; 32 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 using HeuristicLab.PluginInfrastructure;34 31 using HeuristicLab.Problems.ArtificialAnt.Analyzers; 35 32 … … 38 35 [Creatable(CreatableAttribute.Categories.GeneticProgrammingProblems, Priority = 170)] 39 36 [StorableClass] 40 public sealed class ArtificialAntProblem : S ingleObjectiveBasicProblem<SymbolicExpressionTreeEncoding>, IStorableContent {37 public sealed class ArtificialAntProblem : SymbolicExpressionTreeProblem, IStorableContent { 41 38 public string Filename { get; set; } 42 39 … … 123 120 124 121 125 public override double Evaluate(I ndividual individual, IRandom random) {126 var interpreter = new AntInterpreter( individual.SymbolicExpressionTree(), World, MaxTimeSteps.Value);122 public override double Evaluate(ISymbolicExpressionTree tree, IRandom random) { 123 var interpreter = new AntInterpreter(tree, World, MaxTimeSteps.Value); 127 124 interpreter.Run(); 128 125 return interpreter.FoodEaten; -
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.5/HeuristicLab.Problems.ArtificialAnt-3.5.csproj
r12895 r12898 104 104 </Reference> 105 105 <Reference Include="System.Drawing" /> 106 <Reference Include="System.Xml.Linq">107 <RequiredTargetFramework>3.5</RequiredTargetFramework>108 </Reference>109 <Reference Include="System.Data.DataSetExtensions">110 <RequiredTargetFramework>3.5</RequiredTargetFramework>111 </Reference>112 <Reference Include="System.Data" />113 <Reference Include="System.Xml" />114 106 </ItemGroup> 115 107 <ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.