- Timestamp:
- 01/21/22 11:51:56 (3 years ago)
- Location:
- branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentExpressionGrammar.cs
r18146 r18205 30 30 [Item("TypeCoherentExpressionGrammar", "Represents a grammar for functional expressions in which special syntactic constraints are enforced so that boolean and real-valued expressions are not mixed.")] 31 31 public class TypeCoherentExpressionGrammar : DataAnalysisGrammar, ISymbolicDataAnalysisGrammar { 32 p rivateconst string ArithmeticFunctionsName = "Arithmetic Functions";33 p rivateconst string TrigonometricFunctionsName = "Trigonometric Functions";34 p rivateconst string ExponentialFunctionsName = "Exponential and Logarithmic Functions";35 p rivateconst string RealValuedSymbolsName = "Real Valued Symbols";36 p rivateconst string TerminalsName = "Terminals";37 p rivateconst string PowerFunctionsName = "Power Functions";38 p rivateconst string ConditionsName = "Conditions";39 p rivateconst string ComparisonsName = "Comparisons";40 p rivateconst string BooleanOperatorsName = "Boolean Operators";41 p rivateconst string ConditionalSymbolsName = "ConditionalSymbols";42 p rivateconst string SpecialFunctionsName = "Special Functions";43 p rivateconst string TimeSeriesSymbolsName = "Time Series Symbols";32 public const string ArithmeticFunctionsName = "Arithmetic Functions"; 33 public const string TrigonometricFunctionsName = "Trigonometric Functions"; 34 public const string ExponentialFunctionsName = "Exponential and Logarithmic Functions"; 35 public const string RealValuedSymbolsName = "Real Valued Symbols"; 36 public const string TerminalsName = "Terminals"; 37 public const string PowerFunctionsName = "Power Functions"; 38 public const string ConditionsName = "Conditions"; 39 public const string ComparisonsName = "Comparisons"; 40 public const string BooleanOperatorsName = "Boolean Operators"; 41 public const string ConditionalSymbolsName = "ConditionalSymbols"; 42 public const string SpecialFunctionsName = "Special Functions"; 43 public const string TimeSeriesSymbolsName = "Time Series Symbols"; 44 44 45 45 [StorableConstructor] -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/StructureTemplate/SubFunction.cs
r18199 r18205 49 49 #region Constructors 50 50 public SubFunction() { 51 Parameters.Add(new ValueParameter<ISymbolicDataAnalysisGrammar>(GrammarParameterName, new ArithmeticExpressionGrammar())); 51 var grammar = new TypeCoherentExpressionGrammar(); 52 grammar.ConfigureAsDefaultRegressionGrammar(); 53 grammar.Symbols.First(s => s.Name == TypeCoherentExpressionGrammar.ExponentialFunctionsName).Enabled = false; 54 Parameters.Add(new ValueParameter<ISymbolicDataAnalysisGrammar>(GrammarParameterName, grammar)); 52 55 Parameters.Add(new FixedValueParameter<IntValue>(MaximumSymbolicExpressionTreeDepthParameterName, new IntValue(8))); 53 56 Parameters.Add(new FixedValueParameter<IntValue>(MaximumSymbolicExpressionTreeLengthParameterName, new IntValue(20))); … … 71 74 } 72 75 #endregion 73 74 76 75 77 #region Event Handling
Note: See TracChangeset
for help on using the changeset viewer.