RE: DC OPF reference voltage

2018-05-01 Thread Sarmad Hanif
is take to be whatever is specified in the bus matrix, which need not be zero. Ray On May 1, 2018, at 3:19 AM, Sarmad Hanif mailto:sarmad.ha...@tum-create.edu.sg>> wrote: Voltage magnitudes are assumed to be 1 p.u., whereas the slack bus (type = 3) in the case file is chosen

RE: DC OPF reference voltage

2018-05-01 Thread Sarmad Hanif
Voltage magnitudes are assumed to be 1 p.u., whereas the slack bus (type = 3) in the case file is chosen as the reference. Hence, the angle at the slack bus is then also taken as 0. Hope it helps. -Original Message- From: bounce-122526707-74036...@list.cornell.edu [mailto:bounce-1225267

RE: Question about shadow price of line flow constraints in AC OPF

2018-04-12 Thread Sarmad Hanif
constraints in AC OPF Dear Sarmad, Thanks! Matpower provides the values of all Kuhn-tucker multipliers and Lagrange multipliers. So it is really a powerful tool which makes decomposition of the price possible if one wants to. Kind regards, Jin 2018-04-11 17:12 GMT+10:00 Sarmad Hanif

RE: Question about shadow price of line flow constraints in AC OPF

2018-04-11 Thread Sarmad Hanif
Hi Jin, I couldn’t understand the issue you reported. But according to my knowledge, MATPOWER gives you the final price at the node, it doesn’t calculate individual congestion, loss, energy components. Moreover, for ACOPF, MATPOWER gives you and active ($/MW) and reactive power ($/MVar) marginal

RE: Flows at sending and receiving ends

2017-11-08 Thread Sarmad Hanif
Yes. Just to avoid confusion, I would try sticking to the same terminology as laid out by MATPOWER’s technical note guide, i.e., power flow “from” (sending) and “to” (receiving) node. From: bounce-122030435-74036...@list.cornell.edu [mailto:bounce-122030435-74036...@list.cornell.edu] On Behalf

RE: Calculation of r, x, b from PF results

2017-08-03 Thread Sarmad Hanif
Hi guys, Help me understand this: if Ehsan doesn't have any grid data and just some measurements ? then solution suggested using ohm's law, inverse problem etc. applicable; else if Ehsan has grid data (assuming in matpower format), then aren't the values listed in BR_R, BR_X and BR_B in mpc.bran

RE: Calculation of r, x, b from PF results

2017-08-03 Thread Sarmad Hanif
Aren’t these values (in lumped form, which I guess you require) already defined in the branch data of the mpc case files ? From: bounce-121697935-74036...@list.cornell.edu [mailto:bounce-121697935-74036...@list.cornell.edu] On Behalf Of Ehsan Hejri Sent: Thursday, 3 August, 2017 7:02 PM To: MATP

RE: difference between runpf() and runopf()

2017-07-17 Thread Sarmad Hanif
runpf runs the power flow --> finding voltage magnitude and angles for given values of P and Q (simplified explanation) runopf runs the optimal power flow --> optimizing the power flowing in the grid to achieve a minimized generation cost (simplified explanation) Check the matpower manual for mor

RE: Objective Functions

2017-07-15 Thread Sarmad Hanif
Subject: Re: Objective Functions Thanks a lot. It is working now. The last thing I want to ask is if we don't add reactive cost data to case, then it is considering only the real power minimization?? On Sat, Jul 15, 2017 at 6:01 PM, Sarmad Hanif mailto:sarmad.ha...@tum-create.edu.sg>>

RE: Objective Functions

2017-07-15 Thread Sarmad Hanif
, Sarmad Hanif mailto:sarmad.ha...@tum-create.edu.sg>> wrote: Hi, Mr. Kardos already gave the references for you to explore the cost functions in detail. A quick fix: If you just want to minimize reactive power, then just put cost terms of the real power to zero in its approriate mpc.gencost f

RE: Error using Case5

2017-07-15 Thread Sarmad Hanif
Does the AC/DC power flow run ? If yes, then use these values to initialize the optimal power flow. On another note, which solver are you using ? See the range of solvers in MATPOWER manual. From: bounce-121659116-74036...@list.cornell.edu [mailto:bounce-121659116-74036...@list.cornell.edu] On

multi-period AC Power Flow (not OPF)

2017-07-14 Thread Sarmad Hanif
Dear all, Just a quick question, I am running a simple loop to run an AC power flow with changing P,Q (loads) and (P,V) generator values at each step. Is there a procedure to do it in one shot ? Best, Sarmad M.Sc. Sarmad Hanif Research Associate, ESTL - Electrification Suite and Test Lab TUM

RE: Objective Functions

2017-07-14 Thread Sarmad Hanif
Hi, Mr. Kardos already gave the references for you to explore the cost functions in detail. A quick fix: If you just want to minimize reactive power, then just put cost terms of the real power to zero in its approriate mpc.gencost field ☺ Btw, minimizing objective function can mean anything, as

RE: Re: ACPTDF

2017-07-11 Thread Sarmad Hanif
ut it has some test code as well. If you have the time to check it out, confirm that it works or fix it if necessary, maybe we could include it in MATPOWER. Let me know if you want me to send it to you, Ray On Apr 25, 2017, at 8:18 PM, Sarmad Hanif mailto:sarmad.ha...@tum-create.edu.sg>

RE: ACPTDF

2017-07-11 Thread Sarmad Hanif
to check it out, confirm that it works or fix it if necessary, maybe we could include it in MATPOWER. Let me know if you want me to send it to you, Ray On Apr 25, 2017, at 8:18 PM, Sarmad Hanif mailto:sarmad.ha...@tum-create.edu.sg>> wrote: Hi, You can calculate ACPTDF using

RE: ACPTDF

2017-04-25 Thread Sarmad Hanif
Hi, You can calculate ACPTDF using the Jacobian matrix as shown here. In MATPOWER, makeJac(‘your case file’) can be used to calculate the Jacobian. Hope this helps. Best From: bounce-121468317-74036...@list.cornell.edu [mailto:bounce-121468317-74036..

RE: LMP Calculations MATPOWER

2017-04-25 Thread Sarmad Hanif
only the case for PV and slack buses. I’ve fixed this in the latest version on GitHub. Ray On Apr 20, 2017, at 11:50 AM, Sarmad Hanif mailto:sarmad.ha...@tum-create.edu.sg>> wrote: Hi Ray, Many thanks for your response. According to my KKT conditions, non-generator buses have only

RE: LMP Calculations MATPOWER

2017-04-20 Thread Sarmad Hanif
, which also affect the LMPs. Ray On Apr 18, 2017, at 9:36 AM, Sarmad Hanif mailto:sarmad.ha...@tum-create.edu.sg>> wrote: Dear MATPOWER users, I have a question regarding MATPOWER's ACOPF calculations. I tried decomposing the nodal mismatch values from ACOPF of MATPOWER as the sum

LMP Calculations MATPOWER

2017-04-18 Thread Sarmad Hanif
Dear MATPOWER users, I have a question regarding MATPOWER's ACOPF calculations. I tried decomposing the nodal mismatch values from ACOPF of MATPOWER as the sum of energy + loss components (for the uncongested case). The procedure adopted was: 1) to perform ACOPF and obtain nodal mismatch. 2) use g

RBTS Bus 4 and Bus 3 Line Data (R & X)

2016-03-23 Thread Sarmad Hanif
Dear MATPOWER Users, Does anyone of you has RBTS Bus#4, and Bus#3 data in the MATPOWER format ? Although it's easy to find description of these systems in the internet, but I want to make sure that I am not miscalculating R and X values of branches. Thank you very much, your help will be greatl

RE: Question about LMP

2015-11-19 Thread Sarmad Hanif
Dear Vh, Regarding your question: why LMP doesn’t include the Lagrange multipliers related to generation inequality constraints The answer is it does!! As Carlos explained: f'(Pg1) + mu_+ - mu_-- \lambda_P1 = 0 or \lambda_P1 = f'(Pg1) + mu_+ - mu_- Your dual problem should also state the

RE: Question about LMP

2015-11-18 Thread Sarmad Hanif
Dear Vh, Let's assume we are talking about uncongested case. As you said, the LMPs are showing the cost of adding/removing power injection at the node. The generation (inequality) constraints are already embedded in them. You can check them by increasing or decreasing the generation limits and