Search found 2 matches

by mkbonde
2 months ago
Forum: Modeling
Topic: Indexing a Set with multiple values
Replies: 2
Views: 167

Re: Indexing a Set with multiple values

You can compare the positions of the two elements in their respective sets by writing

Code: Select all

$(ord(cereq)=ord(t))
or compare the position of cereq with the value of t:

Code: Select all

$(ord(cereq)=t.val)
Using .val is useful when comparing numerical sets that don't naturally start at 1, for example years.
by mkbonde
3 months ago
Forum: Wishes
Topic: Support larger character set for identifiers
Replies: 0
Views: 191

Support larger character set for identifiers

Would it be possible to add support for more than alphanumeric characters for identifiers in a future release? Both Python and Julia allow many non-ASCII characters in identifiers, e.g. the following is valid python code: β = [1, 2, 3] def Σ(iter): return sum(iter) print(Σ(β)) For most programming I...