willu47 / amply

A Python package for AMPL/GMPL datafile parsing
Eclipse Public License 1.0
14 stars 4 forks source link

Fix a bug with subscript domains #10

Closed willu47 closed 2 years ago

willu47 commented 2 years ago

Closes #9

The problem was caused by a missing parser definition for subscript domains (x in X, b in B). Together with tests for amply.subscript_domain, this has been added.

A separate issue was identified - where a subscript domain has only one element in a parameter statement definition (e.g. a param without an assign (:=) statement.