.. contents::
.. _purpose:
************************************
What is the Purpose of this Package?
************************************
This package was created by researchers from the `WE3 Lab `_ at Stanford University to assist in their energy-water nexus research.
Our goal is to address the complexity of computing the electricity bill of an industrial consumer.
We originally developed these methods while evaluating the cost-minimizing energy management strategies for water systems,
such as wastewater treatment plants [`Musabendesu π½. πΆππππ. ππππ. (2021) `_; `Bolorinos πΈππ£ππππ. πππ. πππβπππ. (2023) `_; `Chapin πΈππ£ππππ. πππ. πππβπππ. (2025) `_],
desalination facilities [`Rao π΄πΆπ ππ’π π‘πππ. πΆβππ. πΈππ. (2024) `_],
and water distribution [`Rao πππ‘. πππ‘ππ (2024) `_].
Unlike wholesale market pricing mechanisms, such as locational marginal prices (LMPs), which are straightforward to calculate directly as a timeseries in units of '$/MWh',
retail electricity prices are broken down into a set of discrete charges. In particular, the **demand charge** is the maximum consumption during a specified time period,
so computing a demand charge is a nonlinear operation (:ref:`complexities`).
In addition to the mathematical complexity behind computing the electricity bill and optimizing bill savings, the wide variation in tariff structure is a challenge.
Some regions offer flat prices, whereas others have up to four different time-of-use (TOU) pricing periods
(i.e., "super-off-peak", "off-peak", "mid-peak", and "on-peak" periods).
We designed a machine-readable format for encoding all relevant tariff data,
including TOU periods, tiered charges, daily demand charges, and unit conversions [`Chapin πππ‘. πππ. π·ππ‘π (2024) `_].
Our research focuses on investigating the benefits of flexible operation of water systems, but we hope that this package
will be useful to the wider community for seamlessly optimizing industrial consumers' electricity-related costs and emissions!