LinearDemandFunction.from_xml

classmethod LinearDemandFunction.from_xml(data, shared=None, **kw) paminco.net.demand.LinearDemandFunction[source]

Load object from .xml data

Parameters
sharedShared

Shared object for network classes.

datastr, file, ElementTree or Element
Initialize object from xml file by passing
  • filename as str,

  • file object that contains XML data,

  • the XML ElementTree,

  • or the root Element of the ElementTree.

kwargskeyword arguments, optional

Keyword arguments for constructing object.