LinearDemandFunction.add_to_etree¶
- LinearDemandFunction.add_to_etree(root: xml.etree.ElementTree.Element, overwrite: bool = True) None ¶
Add demand data to xml.etree.ElementTree.Element.
- Parameters
- rootxml.etree.ElementTree.Element
Element to which ‘commodities’ will be appended to.
- overwritebool, default=True
If True, existing ‘commodities’ Element in root will be deleted. If False, edge data will be appended to the existing data.