Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/21 15:26:50 (3 years ago)
Author:
gkronber
Message:

#3073 bugfixing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/IntervalUtil.cs

    r17902 r17906  
    3939      var varRanges = variableRanges.GetReadonlyDictionary();
    4040
    41       if (constraint.Variable != null && !varRanges.ContainsKey(constraint.Variable)) {
     41      if (!string.IsNullOrEmpty(constraint.Variable) && !varRanges.ContainsKey(constraint.Variable)) {
    4242        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.",
    4444          nameof(constraint));
    4545      }
Note: See TracChangeset for help on using the changeset viewer.