Hi everyone,
I noticed in the source code for pyomo.core.base.units_container that there may be a plan to allow "units for the arguments in addition to the function itself".
pyomo.core.base.units_container — Pyomo 6.7.1 documentation # TODO
# * create a new pint unit definition file (and load from that file)
# since the precision in pint seems insufficient for 1e-8 constraint tolerances
# * Investigate when we can and cannot handle offset units and expand capabilities if possible
# * Further investigate issues surrounding absolute and relative temperatures (delta units)
# * Extend external function interface to support units for the arguments in addition to the function itself
In a project I'm currently working on we have units that vary for some parameters over their indices. I was wondering if there's plans to have the capability for units to vary over indices - and if not - whether there's any reason it wouldn't work.
I want to be able to specify the units for a parameter in the same way you specify its values.
Thanks!
Rob