pyomo
pyomo copied to clipboard
`ContinuousSet.get_interval()` should always report a step None
trafficstars
Summary
While the ContinuousSet is implemented as a discrete set, It should not report that its interval is discrete.
Steps to reproduce the issue
>>> from pyomo.dae import *
>>> c = ContinuousSet(bounds=(0,1))
>>> c.construct()
>>> c.get_interval()
(0, 1, 1)
Information on your system
Pyomo version: all Python version: Operating system: How Pyomo was installed (PyPI, conda, source): Solver (if applicable):
Additional information
What should it report after discretization?
I think it should probably still report None. That turns out to be a no-op for collocation as the discretization points do not use a fixed step. However, that would be a change for the finite difference discretization: right now, it results in the ContinuousSet reporting the discretization step as the ContinuousSet's step.