Skip to content

Policy pricing model

The PolicyPricing model element applies the price of a power policy to the power flows it governs.

Overview

PolicyPricing is a flow reader. It produces and consumes nothing and adds no variables or constraints. It only adds a cost: one price multiplied by the power on a set of connection and tag pairs.

Policy compilation creates the elements. Each policy rule gets one PolicyPricing element per source tag it prices. Its terms are the connections on the minimum cut that separates the rule's sources from its destinations on that tag, so every tagged path from a source to a destination pays the price exactly once. Only connections whose flow can reach no sink but the destinations are cut, so the price applies only to flow that reaches them. See policy pricing in the power policies formulation for why the cut is used.

Model formulation

Decision variables

PolicyPricing creates no decision variables. It reads the per-tag power variables of the connections it prices.

Parameters

Parameter Description
price Price per kWh for each period ($/kWh)
terms Connection and tag pairs the price applies to

price is a tracked parameter. Changing it rebuilds only this element's cost, so a new policy price takes effect without rebuilding the network.

Constraints

PolicyPricing adds no constraints.

Cost contribution

\[ C = \sum_{(e, v) \in \text{terms}} \sum_t P_{e,v}(t) \cdot \pi(t) \cdot \Delta t \]

where \(P_{e,v}(t)\) is the power on tag \(v\) at connection \(e\)'s measured point and \(\pi(t)\) is the price. The measured point is where the connection's power limit applies, so the policy price, the limit, and the reported power all refer to the same flow. A connection without a power limit is measured where power enters it.

Several PolicyPricing elements can price the same connection and tag. Their costs add up, which is how policies stack.

Next steps

  • Power policies formulation


    Tagged power, per-tag balance, and pricing placement.

    Power policies

  • Policy compilation


    How policy rules become tags and pricing elements.

    Policy compilation

  • Implementation


    View the source code for the policy pricing model.

    Source code