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 zfrom zone to zto zone, as follows:

importh,m,y,zfrom,zto=exporth,m,y,zfrom,zto×ηzfrom,ztotransh,m,y,zfromzto

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

importh,m,y,zfrom,ztocapy,zfrom,ztoexistingline×Δhh,m,y,zfromztoexporth,m,y,zfrom,ztocapy,zfrom,ztoexistingline×Δhh,m,y,zfromzto
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