Changeset 18180 for branches/3138_Shape_Constraints_Transformations/HeuristicLab.Problems.ExternalEvaluation.GP/3.5/ExternalEvaluationExpressionGrammar.cs
- Timestamp:
- 01/10/22 10:15:25 (2 years ago)
- Location:
- branches/3138_Shape_Constraints_Transformations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3138_Shape_Constraints_Transformations
- Property svn:mergeinfo changed
-
branches/3138_Shape_Constraints_Transformations/HeuristicLab.Problems.ExternalEvaluation.GP/3.5/ExternalEvaluationExpressionGrammar.cs
r17413 r18180 21 21 22 22 using System.Collections.Generic; 23 using System.Linq; 23 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; … … 62 63 var or = new Or(); 63 64 var not = new Not(); 65 var number = new Number(); 66 number.MinValue = -20; 67 number.MaxValue = 20; 64 68 var constant = new Constant(); 65 constant.MinValue = -20;66 constant.MaxValue = 20;67 69 variableSymbol = new HeuristicLab.Problems.DataAnalysis.Symbolic.Variable(); 68 70 69 var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, sin, cos, tan, log, exp, @if, gt, lt, and, or, not, constant, variableSymbol };71 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 72 var unaryFunctionSymbols = new List<Symbol>() { sin, cos, tan, log, exp, not }; 71 73 var binaryFunctionSymbols = new List<Symbol>() { gt, lt }; … … 86 88 87 89 SetSubtreeCount(@if, 3, 3); 88 SetSubtreeCount(constant, 0, 0); 90 SetSubtreeCount(number, 0, 0); 91 SetSubtreeCount(constant,0, 0); 89 92 SetSubtreeCount(variableSymbol, 0, 0); 90 93 … … 101 104 } 102 105 } 106 107 Symbols.First(s => s is Constant).Enabled = false; 103 108 } 104 109 }
Note: See TracChangeset
for help on using the changeset viewer.