GAMSPy 1.26.2 (2026-07-16)#
New features#
#711: Implements toGraph()` method to expressions, operations, and symbols.
toGraphreturns agraphviz.Digraphof the underlying expression tree for inspection. For anEquationthis graphs the definition of the equation and for other symbols its definition.graphvizis added as an optional dependency.
Bug fixes#
#741: Fixes a bug where creating a symbol with empty records from an empty iterable (e.g.
[],set(),range(0)) raised aValueErrorabout inconsistent dimensionality. Empty iterables are now accepted and produce a symbol with no records.#862: Fixes a bug where indexing a symbol with a set that is a superset of the declared domain raised a
ValidationError, even though GAMS accepts it. Domain compatibility is now checked in both directions, so both subset and superset index sets on the same domain chain are allowed (e.g. indexingGgRtpc(r, sub_t)withRtpc(r, t)wheresub_tis a subset oft).
Improved documentation#
#857: Adds a “How SDDP Works” page to the SDDP documentation: the cut algebra, the forward and backward passes, and the lower bound.