Skip to content

⚡ 🔌 High Voltage Tariff Optimizer using a combinatorial algorithm

License

Notifications You must be signed in to change notification settings

FranGarcia94/High-Voltage-Tariff-Optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

High-Voltage-Tariff-Optimizer

Matlab

High Voltage Tariff Optimizer using a combinatorial algorithm1.

In this case, the high voltage tariffs of Spain have been studied, where there are 6 possible powers to be contracted. The calculation of the power term is apparently simple.

image

Where FP: Power billing [€] 𝑇𝑃𝑃: Price of the power term of period p [€/kW] 𝑃𝐶𝑃: Power contracted in period p [kW]

However, there are two things to keep in mind. There are 6 powers to contract, one for each period and they have a restriction: The power contracted in a period must be greater than or equal to the power contracted in the previous period (Pn+1>=Pn). There are also penalties, in the event that the demanded power is greater than the contracted power for each quarter of an hour of each period, a penalty will be applied.

image

Where: 𝐹𝐸𝑃: Invoicing of excess power [€] 𝐾𝑃: Price ratio per hourly period p, calculated as the quotient between the power term of period p with respect to the power term of period 1 of the corresponding toll. Pdj: Power demanded in period j Pcp: Power contracted in period j

This is where the key to the problem lies, because there must be a compromise between the penalties for excess power and the price of each contracting period and this is what the algorithm solves.

Input data

A file in Excel or CSV format is needed where the distribution of the data is as follows:

image

Where 'Cuarto' refers to every 15 min within each hour, since the penalties will be applied in these periods of time.

Result

image

The values that each one of the powers to contract in each one of the iterations of the program are observed. You can also see how disturbances have been introduced into the system and how it has responded.

The following image shows the price to be paid by the company

image

The values below correspond to the excess power, the central values correspond to the price of the contracted power and the upper values are a sum of both and represent the total amount to be paid by the company for the term of power. The circles show a mark where the price is minimum, that is, in that case, the group of powers of that iteration would lead to a relative minimum price in the invoice.

Finally, this last graph shows the power demanded for each quarter of an hour of a year by the company studied, together with the optimal powers suggested by the algorithm (Horizontal lines: P1 and P2 -> upper line, P3, P4, P5 and P6 - > bottom line)

image

Footnotes

  1. In the repository code you can find the following command % enable % . This means that you have to enable the line where you find it. To do this, simply remove the % at the beginning of the line.

About

⚡ 🔌 High Voltage Tariff Optimizer using a combinatorial algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages