- Timestamp:
- 03/16/21 15:26:50 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/IntervalUtil.cs
r17902 r17906 39 39 var varRanges = variableRanges.GetReadonlyDictionary(); 40 40 41 if ( constraint.Variable != null&& !varRanges.ContainsKey(constraint.Variable)) {41 if (!string.IsNullOrEmpty(constraint.Variable) && !varRanges.ContainsKey(constraint.Variable)) { 42 42 throw new ArgumentException( 43 $" The given variable {constraint.Variable} in the constraint does not exist in the model.",43 $"No variable range found for variable {constraint.Variable} used in the constraints.", 44 44 nameof(constraint)); 45 45 }
Note: See TracChangeset
for help on using the changeset viewer.