Network solver for energy graphs.
Refinery is an energy-graph solver which, given demands on some nodes and shares on some edges, seeks to find the demand of all the unspecified nodes.
Refinery is used at Quintel to take the the graph defined in ETSource, and determine the way in which energy flows through a country; from the primary sources (such as coal production, or "ambient wind"), all the way to the use in business, industry, and residences.