Changeset 18146 for branches/3136_Structural_GP/HeuristicLab.Problems.ExternalEvaluation.GP/3.5/ExternalEvaluationExpressionGrammar.cs
- Timestamp:
- 12/16/21 14:23:48 (2 years ago)
- Location:
- branches/3136_Structural_GP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP
- Property svn:mergeinfo changed
-
branches/3136_Structural_GP/HeuristicLab.Problems.ExternalEvaluation.GP/3.5/ExternalEvaluationExpressionGrammar.cs
r17413 r18146 62 62 var or = new Or(); 63 63 var not = new Not(); 64 var constant = new Constant(); 65 constant.MinValue = -20; 66 constant.MaxValue = 20; 64 var number = new Number(); 65 number.MinValue = -20; 66 number.MaxValue = 20; 67 var constant = new Constant() { Enabled = false }; 68 69 67 70 variableSymbol = new HeuristicLab.Problems.DataAnalysis.Symbolic.Variable(); 68 71 69 var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, sin, cos, tan, log, exp, @if, gt, lt, and, or, not, constant, variableSymbol };72 var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, sin, cos, tan, log, exp, @if, gt, lt, and, or, not, number, constant, variableSymbol }; 70 73 var unaryFunctionSymbols = new List<Symbol>() { sin, cos, tan, log, exp, not }; 71 74 var binaryFunctionSymbols = new List<Symbol>() { gt, lt }; … … 86 89 87 90 SetSubtreeCount(@if, 3, 3); 91 SetSubtreeCount(number, 0, 0); 88 92 SetSubtreeCount(constant, 0, 0); 89 93 SetSubtreeCount(variableSymbol, 0, 0);
Note: See TracChangeset
for help on using the changeset viewer.