Skip to content

Energy contracts

An energy contract is a one-directional agreement to import power into the modelled system, or export it out of it, at a bus. It has bounds on the contracted power and a price per MWh.

Import injects, export withdraws

An import contract injects power at its bus and an export contract withdraws it. Each contract is either an import or an export, never both.

The sign of the price

Import prices are positive, a cost. Export prices are negative, a revenue. A single sum in the objective adds the import costs and subtracts the export revenue.

Take-or-pay

A positive lower bound is a hard take-or-pay obligation: the model must dispatch at least that power at the contract price, even when cheaper supply exists.

A contract injects or withdraws power at the bus, at a price per MWh Outside the modelled system Bus Import contract injects power into the bus positive price: cost Export contract withdraws power from the bus negative price: export revenue power between the contracted minimum and maximum (MW) positive minimum = take-or-pay: dispatched even when cheaper supply exists
Figure: an import contract and an export contract at a bus. Schematic illustration, not to scale.
  • Contracted power MW

In each block, the contracted power lies between the contract minimum and maximum, and these bounds are hard. In the results the power is always non-negative, for imports and exports alike: the direction comes from the contract type and the sign of the price. Outside its commissioning window, the contract is pinned to zero.

  • The bus where the power is injected (import) or withdrawn (export).
  • The contract type: import or export.
  • The price per MWh: positive for an import, negative for an export.
  • The minimum and maximum power, in MW. Use zero as the minimum unless a take-or-pay floor applies.
  • Entry and exit stages, when the contract does not exist throughout the study.
  • Optionally, bounds and prices that vary by stage and, if you wish, by block, which replace those of the registry.

The contracts file is optional: when it is absent, no contracts are modelled.

A contract carries no state variable and contributes nothing to the Benders cuts.

Each contract and block reports its power in MW, its energy in MWh, its price and its total cost, positive for imports and negative for exports. The stage cost breakdown has a column with the contract cost, with the same signs.