/refinery

Calculates node demands and edge shares for sparse energy graphs.

Primary LanguageRuby

Refinery

Network solver for energy graphs.

Master branch build status Code coverage status

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.