# oemof.solph.buses.Bus¶

class oemof.solph.buses._bus.Bus(*args, **kwargs)[source]

Bases: oemof.network.network.Bus

A balance object. Every node has to be connected to BusBlock.

The sum of all inputs of a Bus object must equal the sum of all outputs within one time step.

Notes

The following sets, variables, constraints and objective parts are created
constraint_group()[source]
class oemof.solph.buses._bus.BusBlock(*args, **kwargs)[source]

Bases: pyomo.core.base.block.ScalarBlock

Block for all balanced buses.

The sum of all inputs of a Bus object must equal the sum of all outputs within one time step.

The following constraints are build:

Bus balance: om.Bus.balance[i, o, t]
$\begin{split}\sum_{i \in INPUTS(n)} P_{i}(t) = \sum_{o \in OUTPUTS(n)} P_{o}(t), \\ \forall t \in \textrm{TIMESTEPS}, \\ \forall i \in \textrm{INPUTS}, \\ \forall o \in \textrm{OUTPUTS}\end{split}$

While INPUTS is the set of Component objects connected with the input of the Bus object and OUPUTS the set of Component objects connected with the output of the Bus object.

The index $$n$$ is the index for the Bus node itself. Therefore, a $$flow[i, n, t]$$ is a flow from the Component i to the Bus n at time step t.

symbol attribute explanation
$$P_{i}(t)$$ flow[i, n, t] Bus, inflow
$$P_{o}(t)$$ flow[n, o, t] Bus, outflow