Search found 4 matches

by mkbonde
2 days ago
Forum: API
Topic: GMSPython 3.7 and tkinter
Replies: 2
Views: 990

Re: GMSPython 3.7 and tkinter

That is very reasonable and we will probably end up using Miniconda to help our clients. I only ask in case you were already planning on updating the interpreter soon (since you recently added support for Python 3.7). Most packages today can be easily installed using pip making it easy to build on t...
by mkbonde
1 week ago
Forum: API
Topic: GMSPython 3.7 and tkinter
Replies: 2
Views: 990

GMSPython 3.7 and tkinter

What is the timeline for updating the Python installation that comes with GAMS? As of version 3.7, the standard Python installation on Windows comes with tkinter. Will that also be the case for the version shipped with GAMS in future releases? (It would be very convenient if our clients had access t...
by mkbonde
6 months ago
Forum: Modeling
Topic: Indexing a Set with multiple values
Replies: 2
Views: 291

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
7 months ago
Forum: Wishes
Topic: Support larger character set for identifiers
Replies: 0
Views: 458

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...