Changeset 18180 for branches/3138_Shape_Constraints_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/IntervalArithCompiledExpressionBoundsEstimator.cs
- Timestamp:
- 01/10/22 10:15:25 (2 years ago)
- Location:
- branches/3138_Shape_Constraints_Transformations
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3138_Shape_Constraints_Transformations
- Property svn:mergeinfo changed
-
branches/3138_Shape_Constraints_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
-
branches/3138_Shape_Constraints_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/IntervalArithCompiledExpressionBoundsEstimator.cs
r17909 r18180 116 116 where 117 117 !(n.Symbol is Variable) && 118 !(n.Symbol is Number) && 118 119 !(n.Symbol is Constant) && 119 120 !(n.Symbol is StartSymbol) && … … 153 154 ); 154 155 } 155 case OpCodes.Constant: { 156 var v = (node as ConstantTreeNode).Value; 157 // we have to make an interval out of the constant because this may be the root of the tree (and we are expected to return an Interval) 156 case OpCodes.Constant: // fall through 157 case OpCodes.Number: { 158 var v = (node as INumericTreeNode).Value; 159 // we have to make an interval out of the number because this may be the root of the tree (and we are expected to return an Interval) 158 160 return Expression.Constant(new Interval(v, v), typeof(Interval)); 159 161 }
Note: See TracChangeset
for help on using the changeset viewer.