File Exchange

image thumbnail

DCOPF program to calculate Locational Marginal Pricing

version 1.0.0.0 (1.5 KB) by Arunachalam Sundaram
LMP calculation

15 Downloads

Updated 22 Nov 2016

View License

This program solves the problem given in Shaidapur book "Market operation in Electric power system" page 395 in the chapter transmisison congestion management and pricing

Cite As

Arunachalam Sundaram (2021). DCOPF program to calculate Locational Marginal Pricing (https://www.mathworks.com/matlabcentral/fileexchange/60338-dcopf-program-to-calculate-locational-marginal-pricing), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (11)

Ag is called bus-genco incidence matrix. If there is more than one genco in a bus then this Ag matrix will be very useful to find the total power generation in the bus. The explanation for the Ag and Ad matrix is available in my PhD Thesis titled "FAIR AND TRANSPARENT LOSS ALLOCATION AND PRICING IN PRIMARY ELECTRICITY MARKET USING THE CONCEPT OF MARKET CENTER". You can refer to this thesis as it is available in research gate DOI: 10.13140/RG.2.2.23663.46240.
The details of all matrix are available in my publications

Sundaram, A. (2013). Linear Programming Formulation for Market Clearing of Primary Market Incorporating Tracking Based Loss Factors. European Journal of Scientific Research, 99(4), 520–630.

Sundaram, A., & Khan, M. A. (2018). Participant based distributed slack power flow model and calculation of participant based loss factors using the concept of market center. In 2017 9th IEEE-GCC Conference and Exhibition, GCCCE 2017 (pp. 1–9). IEEE. https://doi.org/10.1109/IEEEGCC.2017.8448193

Calculation of Participation Based Loss Factors using the Concept of Market Center in a Deregulated Power System
A Sundaram. International Journal of computing and digital system 6 (6), 357-367

Market Clearing and Settlement Using Participant Based Distributed Slack Optimal Power Flow Model for a Double Sided Electricity Auction Market –Part I
A Sundaram, A Khan
Electric Power Components and System 46 (5), 521-532

Sukaina Thasneem

sir, why we hav t consider lineflow=sf*(Ag*x-pd) instead of sf*(x-pd) and y is A taken as [-1 -1], can u please share the corresponding obective function and constraints. Can u please also tell me how u formed the node matrix in such a way,, can u please share the relevant equations for sfg with informtion on how all of the parameters are formed

Arunachalam Sundaram

The equation for line flow in DCOPF is
lineflow=sf*(Ag*x-pd)
x is the Pg vector found by the algorithm.
To write inequality constraint split the equation as sf*Ag*x-sf*Pd<limit
Take the sf*Pd to the right side.

We have to check the flow from both sides of the transmission line and hence two equations are needed.

Sukaina Thasneem

Hello Sir,
Why did u choose A1 = sf*Ag. and A=[A1 -A1], B=[B1 B2]; How did u split the inequality constraint. Please help. The rest of the program is very well understood

djibeyrou ba

Hello sir
How to use this method for a large network, for example, IEEE 30 or 39 Bus system?

lavanya manikonda

Sir,
Do you have base paper to this program?
If you have, please share sir.

Arunachalam Sundaram

Madam,

This program solves the problem given in Shaidapur book "Market operation in Electric power system" page 395 in the chapter transmission congestion management and pricing

If you want to read further you can find more information in my google scholar

https://scholar.google.com/citations?user=FkbM44AAAAAJ&hl=en

If you need any further clarification please email to mailtoarunachalam@gmail.com I will send the relevant papers which will help you to understand the code.

Sundaram, A. (2013). Linear Programming Formulation for Market Clearing of Primary Market Incorporating Tracking Based Loss Factors. European Journal of Scientific Research, 99(4), 520–630.

Sundaram, A., & Khan, M. A. (2018). Participant based distributed slack power flow model and calculation of participant based loss factors using the concept of market center. In 2017 9th IEEE-GCC Conference and Exhibition, GCCCE 2017 (pp. 1–9). IEEE. https://doi.org/10.1109/IEEEGCC.2017.8448193

Calculation of Participation Based Loss Factors using the Concept of Market Center in a Deregulated Power System
A Sundaram. International Journal of computing and digital system 6 (6), 357-367

Market Clearing and Settlement Using Participant Based Distributed Slack Optimal Power Flow Model for a Double Sided Electricity Auction Market –Part I
A Sundaram, A Khan
Electric Power Components and System 46 (5), 521-532

lavanya manikonda

sir,
please give the problem statement to that program
It will help me to understand the program clearly

Patel mahesh

Dear Muhammad

The variable line-flow gives the DC power flow in each line as given in linedata. The output will have the flow from the sending end bus to receiving end bus as given in the line data.

The variable lmp will give the location marginal price for each bus as given in busdata. As you know, the LMP has three components but in this program, only the energy price and congestion price are calculated and given by the variables genergy and conjcost respectively. The loss price is not calculated in the program.

The variable x will give us the schedules of the participants. This schedule will satisfy the power balance equality constraint.

The variable fval will gives the value of the objective efunction. We normally donot use this value. We use lmp and multiply with the participants schedule to clacultae their marginal prices.

kindly explain its output variables

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!