transmission

This module contains transmission related functions. We simplify the transmission of electricity as a transportation model. The model computes the transmission loss for each hour, in each time period, for each year, from \(z_{\rm{from}}\) zone to \(z_{\rm{to}}\) zone, as follows:

\[{\rm{import}}_{h,m,y,z_{\rm{from}},z_{\rm{to}}} ={\rm{export}}_{h,m,y,z_{\rm{from}},z_{\rm{to}}}\times \eta_{z_{\rm{from}},z_{\rm{to}}}^{\rm{trans}} \quad\forall h,m,y,z_{\rm{from}}\neq z_{\rm{to}}\]

This model assumes that the transmitted power of each transmission line is only constrained by the transmission capacity between two zones as follows:

\[ \begin{align}\begin{aligned}{\rm{import}}_{h,m,y,z_{\rm{from}},z_{\rm{to}}}\le {\rm{cap}}_{y,z_{\rm{from}},z_{\rm{to}}}^{\rm{existingline}} \times\Delta h\quad\forall h,m,y,z_{\rm{from}}\neq z_{\rm{to}}\\{\rm{export}}_{h,m,y,z_{\rm{from}},z_{\rm{to}}} \le {\rm{cap}}_{y,z_{\rm{from}},z_{\rm{to}}}^{\rm{existingline}} \times\Delta h\quad\forall h,m,y,z_{\rm{from}}\neq z_{\rm{to}}\end{aligned}\end{align} \]
class prepshot._model.transmission.AddTransmissionConstraints(model)[source]

Bases: object

Add constraints for transmission lines while considering multiple zones.

Parameters

model (object) --

__init__(model)[source]

Initialize the class and add constraints.

Parameters

model (object) -- Model object depending on the solver.

Return type

None

trans_balance_rule(h, m, y, z, z1)[source]

Transmission balance, i.e., the electricity imported from zone z1 to zone z should be equal to the electricity exported from zone z to zone z1 multiplied by the transmission line efficiency.

Parameters
  • h (int) -- Hour.

  • m (int) -- Month.

  • y (int) -- Year.

  • z (str) -- Zone.

  • z1 (str) -- Zone.

Returns

The constraint of the model.

Return type

poi.ConstraintIndex

trans_capacity_rule(y, z, z1)[source]

Transmission capacity equal to the sum of the existing capacity and the new capacity in previous planned years.

Parameters
  • y (int) -- Year.

  • z (str) -- Zone.

  • z1 (str) -- Zone.

Returns

The expression of the model.

Return type

poi.ExprBuilder

trans_physical_rule(y, z, z1)[source]

Physical transmission lines.

Parameters
  • y (int) -- Year.

  • z (str) -- Zone.

  • z1 (str) -- Zone.

Returns

The constraint of the model.

Return type

poi.ConstraintIndex

trans_up_bound_rule(h, m, y, z, z1)[source]

Transmitted power is less than or equal to the transmission line capacity.

Parameters
  • h (int) -- Hour.

  • m (int) -- Month.

  • y (int) -- Year.

  • z (str) -- Zone.

  • z1 (str) -- Zone.

Returns

The constraint of the model.

Return type

poi.ConstraintIndex