Changeset 11857 for branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization
- Timestamp:
- 02/02/15 13:37:38 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization.csproj
r11851 r11857 95 95 <Compile Include="Sequence.cs" /> 96 96 <Compile Include="Properties\AssemblyInfo.cs" /> 97 <Compile Include="TreeRepresentation\GenericSymbExprGrammar.cs" />98 <Compile Include="TreeRepresentation\GenericSymbExprProblem.cs" />99 <Compile Include="TreeRepresentation\GrammaticalOptimizationEvaluator.cs" />100 <Compile Include="TreeRepresentation\IGrammaticalOptimizationEvaluator.cs" />101 97 <Compile Include="TreeRepresentation\ISymbolicExpressionTreeProblem.cs" /> 102 98 </ItemGroup> -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/Problems/EvenParityProblem.cs
r11847 r11857 29 29 public EvenParityProblem() { 30 30 this.grammar = new Grammar(grammarString); 31 this. SymbolicExpressionGrammar = new GenericSymbExprGrammar(new Grammar(hlGrammarString));31 this.TreeBasedGPGrammar = new Grammar(hlGrammarString); 32 32 } 33 33 … … 70 70 } 71 71 72 public I SymbolicExpressionGrammar SymbolicExpressionGrammar { get; private set; }72 public IGrammar TreeBasedGPGrammar { get; private set; } 73 73 public string ConvertTreeToSentence(ISymbolicExpressionTree tree) { 74 74 var sb = new StringBuilder(); -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/Problems/HardPalindromeProblem.cs
r11847 r11857 21 21 public HardPalindromeProblem() { 22 22 this.grammar = new Grammar(grammarString); 23 this. SymbolicExpressionGrammar = new GenericSymbExprGrammar(new Grammar(hlGrammarString));23 this.TreeBasedGPGrammar = new Grammar(hlGrammarString); 24 24 } 25 25 … … 54 54 } 55 55 56 public I SymbolicExpressionGrammar SymbolicExpressionGrammar { get; private set; }56 public IGrammar TreeBasedGPGrammar { get; private set; } 57 57 public string ConvertTreeToSentence(ISymbolicExpressionTree tree) { 58 58 var sb = new StringBuilder(); -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/Problems/PalindromeProblem.cs
r11847 r11857 23 23 public PalindromeProblem() { 24 24 this.grammar = new Grammar(grammarString); 25 this. SymbolicExpressionGrammar = new GenericSymbExprGrammar(new Grammar(hlGrammarString));25 this.TreeBasedGPGrammar = new Grammar(hlGrammarString); 26 26 } 27 27 … … 96 96 } 97 97 98 public I SymbolicExpressionGrammar SymbolicExpressionGrammar { get; private set; }98 public IGrammar TreeBasedGPGrammar { get; private set; } 99 99 public string ConvertTreeToSentence(ISymbolicExpressionTree tree) { 100 100 var sb = new StringBuilder(); -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/Problems/RoyalPairProblem.cs
r11847 r11857 23 23 public RoyalPairProblem() { 24 24 this.grammar = new Grammar(grammarString); 25 this. SymbolicExpressionGrammar = new GenericSymbExprGrammar(new Grammar(hlGrammarString));25 this.TreeBasedGPGrammar = new Grammar(hlGrammarString); 26 26 // TODO: allow configuration of the number of symbols 27 27 } … … 46 46 } 47 47 48 public IEnumerable<Feature> GetFeatures(string phrase) 49 { 48 public IEnumerable<Feature> GetFeatures(string phrase) { 50 49 throw new NotImplementedException(); 51 50 } 52 public I SymbolicExpressionGrammar SymbolicExpressionGrammar { get; private set; }51 public IGrammar TreeBasedGPGrammar { get; private set; } 53 52 public string ConvertTreeToSentence(ISymbolicExpressionTree tree) { 54 53 var sb = new StringBuilder(); -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/Problems/RoyalSymbolProblem.cs
r11847 r11857 25 25 public RoyalSymbolProblem() { 26 26 this.grammar = new Grammar(grammarString); 27 this. SymbolicExpressionGrammar = new GenericSymbExprGrammar(new Grammar(hlGrammarString));27 this.TreeBasedGPGrammar = new Grammar(hlGrammarString); 28 28 //TODO: allow configuration of the number of symbols 29 29 } … … 51 51 } 52 52 53 public I SymbolicExpressionGrammar SymbolicExpressionGrammar { get; private set; }53 public IGrammar TreeBasedGPGrammar { get; private set; } 54 54 public string ConvertTreeToSentence(ISymbolicExpressionTree tree) { 55 55 var sb = new StringBuilder(); -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/Problems/SantaFeAntProblem.cs
r11847 r11857 35 35 public SantaFeAntProblem() { 36 36 this.grammar = new Grammar(grammarString); 37 this. SymbolicExpressionGrammar = new GenericSymbExprGrammar(new Grammar(hlGrammarString));37 this.TreeBasedGPGrammar = new Grammar(hlGrammarString); 38 38 } 39 39 … … 129 129 } 130 130 131 public I SymbolicExpressionGrammar SymbolicExpressionGrammar { get; private set; }131 public IGrammar TreeBasedGPGrammar { get; private set; } 132 132 public string ConvertTreeToSentence(ISymbolicExpressionTree tree) { 133 133 var sb = new StringBuilder(); -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/Problems/SymbolicRegressionPoly10Problem.cs
r11846 r11857 47 47 // E c E f E j 48 48 49 private SymbolicExpressionGrammar symbExprGrammar; 50 public ISymbolicExpressionGrammar SymbolicExpressionGrammar { 51 get { 52 return symbExprGrammar; 53 } 54 } 49 public IGrammar TreeBasedGPGrammar { get; private set; } 55 50 56 51 private readonly IGrammar grammar; … … 62 57 public SymbolicRegressionPoly10Problem() { 63 58 this.grammar = new Grammar(grammarString); 64 this. symbExprGrammar = new GenericSymbExprGrammar(new Grammar(hlGrammarString));59 this.TreeBasedGPGrammar = new Grammar(hlGrammarString); 65 60 66 61 this.N = 500; -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/TreeRepresentation/ISymbolicExpressionTreeProblem.cs
r11848 r11857 8 8 // represents a grammatical optimization problem that can also be used with tree-based GP in HeuristicLab 9 9 public interface ISymbolicExpressionTreeProblem : IProblem { 10 ISymbolicExpressionGrammar SymbolicExpressionGrammar { get; } // grammar for HL GP 11 10 IGrammar TreeBasedGPGrammar { get; } // grammar for HL GP 12 11 string ConvertTreeToSentence(ISymbolicExpressionTree tree); 13 12 }
Note: See TracChangeset
for help on using the changeset viewer.