You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using relational order operators to compare categorical values should not be allowed. For example, a parameter like:
a "" c (0, 5, 10, 20)
and a condition like a > 10 will return TRUE when a is 5, because a is actually "5" so the comparison is lexicographic.
We reading the condition, we should check if both a categorical parameter and a relation parameter appear in the condition, if so, we need some way to check that the relation operator is applied to the categorial parameter. We should not error for this:
a "" c (0, 5, 10, 20)
b "" i (0, 10)
c "" r (0,1) | a != 5 && b < 4
This applies also to expressions in forbidden.txt
(this was bug 2 in BUGS)
The text was updated successfully, but these errors were encountered:
Using relational order operators to compare categorical values should not be allowed. For example, a parameter like:
and a condition like
a > 10
will return TRUE whena
is 5, becausea
is actually "5" so the comparison is lexicographic.We reading the condition, we should check if both a categorical parameter and a relation parameter appear in the condition, if so, we need some way to check that the relation operator is applied to the categorial parameter. We should not error for this:
This applies also to expressions in forbidden.txt
(this was bug 2 in BUGS)
The text was updated successfully, but these errors were encountered: