Open josiahjohnston opened 7 years ago
Interim sources of well-formatted documentation:
Switch 2.0: A modern platform for planning high-renewable power systems and the appendix with more equations and tables linking mathematical symbols to names in the source code.
Our documentation needs a lot of improvement. Extensive documentation is embedded in docstrings of most modules and functions, but the pydoc results are crap. When learning the model, the Switch-Mexico team chose to read the code directly instead of the pydoc stuff and re-write the documentation in LaTeX.
Our working plans for cleaning this up are:
define_components()
to attributes of the components themselves. See pull request #57 for some discussion. Write some new code to construct a model, then introspect it to describe each component and its documentation (possibly including equations). The module- and component-level documentation could either be compiled into a rst file or otherwise passed into Sphynx.Note, the component documentation could either be in the
doc
argument of its definition, or assigned to an arbitrary attribute immediately after the definition. I'm pretty sure we will have to write some custom code to inspect the pyomo model, so assigning our extra documentation to our own extra attributes seems like a fairly clean solution.