- Timestamp:
- 03/24/21 10:13:04 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/NMSEConstraintsEvaluator.cs
r17906 r17914 109 109 } else { 110 110 if (applyLinearScaling) { 111 //Check for interval arithmetic grammar112 if (!(tree.Root.Grammar is IntervalArithmeticGrammar))113 throw new ArgumentException($"{ItemName} can only be used with IntervalArithmeticGrammar.");114 115 111 var rootNode = new ProgramRootSymbol().CreateTreeNode(); 116 112 var startNode = new StartSymbol().CreateTreeNode(); … … 118 114 .GetSubtree(0); //Offset 119 115 var scaling = offset.GetSubtree(0); 116 117 //Check if tree contains offset and scaling nodes 118 if (!(offset.Symbol is Addition) || !(scaling.Symbol is Multiplication)) 119 throw new ArgumentException($"{ItemName} can only be used with IntervalArithmeticGrammar."); 120 121 120 122 var t = (ISymbolicExpressionTreeNode)scaling.GetSubtree(0).Clone(); 121 123 rootNode.AddSubtree(startNode);
Note: See TracChangeset
for help on using the changeset viewer.