Re: Objective function

2019-12-17 Thread Ray Daniel Zimmerman
Using a marginal cost of zero for PV generation is typical. Ray > On Dec 16, 2019, at 11:48 PM, Sarhan Hasan wrote: > > Hi Ray > > Please how can I determine the objective function of photovoltaic in > microgrid > > Sent from my iPhone > >

Re: theoreticall mechanism of make_PTDF

2020-01-02 Thread Ray Daniel Zimmerman
Hi Young, In MATPOWER, the matrix returned by makePTDF() is simply the sensitivity of branch real power flows to incremental bus real power injections assuming: (1) a lossless DC model of the network (see Section 3.7 in the MATPOWER User’s Manual

Re: Extensible OPF

2020-01-02 Thread Ray Daniel Zimmerman
Hi Yang, It’s not clear whether you simply want to use the fixed reserves extension (see Section 7.6.1 in the MATPOWER User’s Manual) or you want to implement your own OPF extension. In the first case you can simply use runopf_w_res(). In the

Re: Ask for help about Matpower

2020-01-02 Thread Ray Daniel Zimmerman
It does not. Ray On Jan 1, 2020, at 8:40 PM, 王瑞 mailto:rw...@tju.edu.cn>> wrote: Dear Matpower: Does Matpower support short circuit calculation?if supports, where can I find the function? Thanks! Rui Wang 2020-01-02

apologies

2020-01-14 Thread Ray Daniel Zimmerman
It appears that some 800 e-mails were subscribed to some MATPOWER lists between Jan 5 and Jan 9 (while I was mostly away from e-mail and didn't notice), presumably by some spammer/prankster, resulting in all of the recent requests to be removed. These addresses have been removed, so hopefully i

Re: modify zones

2020-01-14 Thread Ray Daniel Zimmerman
I’ll do my best to address your questions, but please feel free to ask for further clarification if I don’t get them all. Reserve zones are unrelated to either the BUS_AREA or ZONE columns in the bus matrix. They are defined by the mpc.reserves.zones matrix and can be overlapping (i.e. a given

Re: Extensible OPF

2020-01-14 Thread Ray Daniel Zimmerman
exible, how can I do this ? Thanks. At 2020-01-03 01:36:43, "Ray Daniel Zimmerman" mailto:r...@cornell.edu>> wrote: Hi Yang, It’s not clear whether you simply want to use the fixed reserves extension (see Section 7.6.1 in the MATPOWER User’s Manual<https://matpower.org/doc

Re: AC OPF with extra linear constraints on line flows

2020-01-14 Thread Ray Daniel Zimmerman
Unfortunately, there isn’t a simple way to do it with only linear constraints. You could define new variables for the flows and use the opf_branch_flow_fcn() and opf_branch_flow_hess() functions to implement an equality constraint that defines these variables. These constraints would be very sim

Re: Optimal Reactive Power Dispatch

2020-01-14 Thread Ray Daniel Zimmerman
The OPF in the current MATPOWER does not include transformer taps or switched shunt settings as control variables. You can minimize power losses by setting all of the generator active power costs to an identical constant. If you want to combine that with some voltage deviation minimization, I th

Re: Problem in running Texas-2000 bus system

2020-01-14 Thread Ray Daniel Zimmerman
>From the error message, it looks like you might be using an mpopt that is not >actually a valid MATPOWER options struct as returned by mpoption(). Try it >with the default mpopt. Ray On Jan 14, 2020, at 3:50 PM, Jubeyer Rahman mailto:jube...@hawaii.edu>> wrote: Hi, Has anyone ever tried

Re: Optimal Reactive Power Dispatch

2020-01-17 Thread Ray Daniel Zimmerman
using as DG real power as injected negative load with variable location. Regards: Akhilesh Kumar Barnwal Research Scholar IIT-BHU, Varanasi Contact: +91-75001 86505 On Wed, Jan 15, 2020 at 5:11 AM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: The OPF in the current MATPOWER does

Re: Extensible OPF

2020-01-17 Thread Ray Daniel Zimmerman
f_w_res() , the zonal requirement is fixed, but I want it to be flexible, how can I do this ? Thanks. At 2020-01-03 01:36:43, "Ray Daniel Zimmerman" mailto:r...@cornell.edu>> wrote: Hi Yang, It’s not clear whether you simply want to use the fixed reserves extension (see S

stochastic unit commitment

2020-01-17 Thread Ray Daniel Zimmerman
First, please post your question only once. Second, please use a new subject line when posting a new question. Now to your question, have you looked at the MATPOWER Optimal Scheduling Tool (MOST)? If so, please feel free to ask any specific questions you have about how to use it. If not, I sugge

Re: Use of transmat matrix in full stochastic unit commitment

2020-01-17 Thread Ray Daniel Zimmerman
Hi Carlos, 1. You need not use ex_transmat() at all. It was simply a convenience function used to create the transmat cell array of transmission probability matrices for each period. You can write your own function to create your own general cell array of matrices which can certainly vary by pe

Re: Use of transmat matrix in full stochastic unit commitment

2020-01-22 Thread Ray Daniel Zimmerman
r Android vendredi, 17 janvier 2020, 11:50PM +01:00 de Ray Daniel Zimmerman r...@cornell.edu<mailto:r...@cornell.edu>: Hi Carlos, 1. You need not use ex_transmat() at all. It was simply a convenience function used to create the transmat cell array of transmission probability matrices for ea

Re: Conductance in power loss equation

2020-01-22 Thread Ray Daniel Zimmerman
Are you referring to the real part of the (i, j) entry in Ybus? You can find Ybus using makeYbus(). Ray On Jan 19, 2020, at 4:35 PM, Mohamed Shaheen mailto:mohamed.shaheen9...@gmail.com>> wrote: -- Forwarded message

Re: stochastic unit commitment

2020-01-22 Thread Ray Daniel Zimmerman
il.com>> wrote: Dear Sir, Hello, can you tell me how to implement on IEEE-33 bus reconfiguration with renewable energy DG, and how to set voltage or current constraint with this matpower? regards, On Sat, Jan 18, 2020 at 1:28 AM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote:

Re: Extensible OPF

2020-01-30 Thread Ray Daniel Zimmerman
s, other branches can fill the gap. 3. In MATPOWER, the SCOPF is considering renewable energy, maybe I don't undersant it very well. I want to do some work about SCOPF in typhoon situation, may I use MATPOWER? Thanks for your patience. Warm regards. Yang. At 2020-01-18 02:20:40, "

Re: Linear Approximations of Line Flow Constraints for AC Optimal Power Flow

2020-02-17 Thread Ray Daniel Zimmerman
MATPOWER does not implement such a thing, if that’s what you’re asking. I suppose you could use the derivatives of the flow constraints (or balance equations) in order to get a linear approximation at a given operating point. Ray > On Feb 11, 2020, at 3:12 PM, hind lamini wrote: > > Hello

IEEE 30 bus data

2020-02-17 Thread Ray Daniel Zimmerman
Please start a new thread with a relevant subject when asking a new question. See Appendix D.3 in the manual for a list of all of MATPOWER's include case files. The IEEE 30 bus case is in Table D-18 and is called case_ieee30.m. Ray On Feb

Re: alternative to makePTDF for a subset of busses (with distributed slack)

2020-02-18 Thread Ray Daniel Zimmerman
Thanks Tobias! I was just about to respond to your first message when I saw this. I’ve linked to this from https://github.com/MATPOWER/matpower/issues/38 so I have it right there when I get some time to try to integrate this into makePTDF(). Ray On Feb 18, 2020, at 2:07 AM, tobias4.hoffm

Re: alternative to makePTDF for a subset of busses (with distributed slack)

2020-02-21 Thread Ray Daniel Zimmerman
bout a 100% speedup for case9241pegase under MATLAB, 70% under Octave). Let me know if this works for you. I expect it may even be faster than the code you suggested below, since it’s fully vectorized (no loops). Ray On Feb 18, 2020, at 4:30 PM, Ray Daniel Zimmerman mailto:r...@cornell.edu&g

Re: how to modify parameter to redcuce branch power

2020-02-28 Thread Ray Daniel Zimmerman
The RATE_A column of the branch matrix is used by the OPF to constrain the branch flow. Ray On Feb 28, 2020, at 7:35 AM, Yang mailto:yang_hong_...@163.com>> wrote: Dear everyone, I want to reduce the power of branch, which parameter value should be changed in OPF? For example,if I want t

Re: LMP decomposition code

2020-02-28 Thread Ray Daniel Zimmerman
I do not have the code to do it, and as I’ve said before, I’m not sure there is “one correct way” to do it for an AC OPF result. Reference [1] below may provide some insight. Here is a response

Re:

2020-02-28 Thread Ray Daniel Zimmerman
Use the download link on the MATPOWER web-site: https://matpower.org/ Ray On Feb 28, 2020, at 9:04 PM, Nazziwa Evalyne mailto:nazziwaeval...@gmail.com>> wrote: How can I get MATPOWER software On Feb 29, 2020 01:52, "Ray Daniel Zimmerman" mailto:r...@cornell.edu>> wr

Re: how to modify parameter to redcuce branch power

2020-03-02 Thread Ray Daniel Zimmerman
12:32 PM, yang_hong_yue mailto:yang_hong_...@163.com>> wrote: Dear Ray, I want to run opf with 24h daily load, how can I add the ramp rate constraint in code? Can I make it in add some codes or in MOST? Thanks a lot. Yang. -- Original -- From: Ray

Re: how to modify parameter to redcuce branch power

2020-03-03 Thread Ray Daniel Zimmerman
branch matrix of the line from bus 15 to bus 23, and use that as the row index. Hope this helps, Ray I don't know whether it is right. Warm regards. Yang. At 2020-03-03 00:31:27, "Ray Daniel Zimmerman" mailto:r...@cornell.edu>> wrote: There are two main options ...

Re: how to modify parameter to redcuce branch power

2020-03-04 Thread Ray Daniel Zimmerman
Yang. At 2020-03-04 05:33:50, "Ray Daniel Zimmerman" mailto:r...@cornell.edu>> wrote: See my responses to each question below ... On Mar 3, 2020, at 10:07 AM, Yang mailto:yang_hong_...@163.com>> wrote: Deae Ray, Thanks for your reply, and I have dour questions as folllo

Re: how to modify parameter to redcuce branch power

2020-03-05 Thread Ray Daniel Zimmerman
de can I do? Yang. -- Original -- From: Ray Daniel Zimmerman mailto:r...@cornell.edu>> Date: Thu,Mar 5,2020 0:30 AM To: MATPOWER-L mailto:matpowe...@list.cornell.edu>> Subject: Re: how to modify parameter to redcuce branch power 1. The mu values are th

Re: how to modify parameter to redcuce branch power

2020-03-09 Thread Ray Daniel Zimmerman
don’t know whether it is proper. Warm regards. Yang. -- Original -- From: Ray Daniel Zimmerman mailto:r...@cornell.edu>> Date: Fri,Mar 6,2020 3:54 AM To: MATPOWER-L mailto:matpowe...@list.cornell.edu>> Subject: Re: how to modify parameter to re

Re: Unrecognized function or variable 'PR_TAREALOAD'

2020-03-10 Thread Ray Daniel Zimmerman
I think you want to define your load profile something like this … profiles = struct( ... 'type', 'mpcData', ... 'table', CT_TAREALOAD, ... 'rows', [1:na], ... 'col', CT_LOAD_ALL_P, ... 'chgtype', CT_REP, ... 'values', [] ); profiles.values(:, 1, :) = area_load; Hope this

Re: Unrecognized function or variable 'PR_TAREALOAD'

2020-03-12 Thread Ray Daniel Zimmerman
mpc = apply_changes(label, mpc, mdi.tstep(t).OpCondSched(j).tab); Error in run_SCUC (line 44) mdo = most(mdi, mpopt); On Tue, Mar 10, 2020 at 4:13 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: I think you want to define your load profile something like this … profi

Re: how to modify parameter to redcuce branch power

2020-03-12 Thread Ray Daniel Zimmerman
et the rated transmission capacity of the line? And how about voltage violation? Should the rating be self-set if I want to calculate it? Thanks for your patience. Yang. -- Original -- From: Ray Daniel Zimmerman mailto:r...@cornell.edu>> Date: Tue,Mar 10,202

Re: Unrecognized function or variable 'PR_TAREALOAD'

2020-03-16 Thread Ray Daniel Zimmerman
g area numbers `mpc.bus(:, BUS_AREA) = mpc.bus(:, ZONE) - 1; `, there is no issue creating the mdi structure, but a new problem showed up that UC has no solution.. On Thu, Mar 12, 2020 at 12:29 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: From the error message, it would seem th

Re: Question regarding adding cost function

2020-03-16 Thread Ray Daniel Zimmerman
The opf_model object (om) is created by opf_setup() which is called automatically when you execute runopf(). In order to modify it directly using om.add_quad_cost(), you will need to define a callback function as described in Chapter 7 of the manual. For a simple addition like this, it may be ea

Re: How does MOST distinguish UC from Multi-period OPF?

2020-03-16 Thread Ray Daniel Zimmerman
Yes, that is correct. In general, you leave CommitKey empty (or = 2) unless you want to do a UC. Ray On Mar 14, 2020, at 1:15 PM, Steven G mailto:steven.geng.2...@gmail.com>> wrote: Dear Matpower users, I'm comparing two tutorial examples of MOST: `most_ex5_mpopf.m` and `most_ex3_dcopf_w_

Re: How to set time limit for MOST (gurobi)

2020-03-16 Thread Ray Daniel Zimmerman
You should be able to do it with … mpopt = mpoption('gurobi.opts.timeLimit', 100); Ray On Mar 15, 2020, at 8:21 AM, Steven G mailto:steven.geng.2...@gmail.com>> wrote: Dear Matpower users, Gurobi provides a parameter for Matlab API to set time limits (seconds) of the solving process: para

Re: Question regarding adding cost function

2020-03-17 Thread Ray Daniel Zimmerman
__ From: bounce-124463678-85971...@list.cornell.edu<mailto:bounce-124463678-85971...@list.cornell.edu> mailto:bounce-124463678-85971...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cornell.edu>> Sent: Monday, March 16, 2020 10:45 AM To: MATPOWER-L m

Re: how to modify parameter to redcuce branch power

2020-03-18 Thread Ray Daniel Zimmerman
t if I want to reduce 50% power of branch 15-23 in case30.m, you answer was modifying Rate_A. I am not sure how does Rate_A work? Does it mean lower the voltage at both ends of the line? Thanks again! -- Original -- From: Ray Daniel Zimmerman mailto:r...@corne

Re: How does MOST distinguish UC from Multi-period OPF?

2020-03-18 Thread Ray Daniel Zimmerman
ill help as well. On Mon, Mar 16, 2020 at 12:49 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: Yes, that is correct. In general, you leave CommitKey empty (or = 2) unless you want to do a UC. Ray On Mar 14, 2020, at 1:15 PM, Steven G mailto:steven.geng.2...@gmail.com>>

Re: Question regarding adding cost function

2020-03-18 Thread Ray Daniel Zimmerman
FdsajpO4A1YXnhlUpLyYyCBE%2Fjmw%3D&reserved=0> From: bounce-124467581-85971...@list.cornell.edu<mailto:bounce-124467581-85971...@list.cornell.edu> mailto:bounce-124467581-85971...@list.cornell.edu>> on behalf of Ray Daniel Zimmerman mailto:r...@cornell.edu>>

Re: Questions about t_case30_userfcns.m

2020-03-18 Thread Ray Daniel Zimmerman
You can accomplish that goal by creating individual reserve zones for each generator with a requirement equal to the lower limit you want. Ray On Mar 18, 2020, at 9:23 AM, Yang mailto:yang_hong_...@163.com>> wrote: Dear Ray, In t_case30_userfcns.m, may I set the low limit of each reserve

Re: Questions about t_case30_userfcns.m

2020-03-25 Thread Ray Daniel Zimmerman
0 0 1 0 0; 0 0 0 0 1 0; 0 0 0 0 0 1; ]; " TCL MERGE ERROR ( 03/25/2020 11:11:22 ): "missing " reserve requirements for each zone in MW mpc.reserves.req = [8; 8; 5; 5; 3; 4]; This is actually not match with the zones I said before. How can I solve this problem? Thanks. Yan

Re: Generator indices after network reduction using MPReduction()

2020-03-30 Thread Ray Daniel Zimmerman
Thanks for bringing this to our attention. Unfortunately, I’m not very familiar with that code, since I didn’t write it. Can you create a minimal reproducible example that can be used to duplicate the problem? If so, would you mind cre

Re: Extremely Slow to Construct SCUC using MOST

2020-04-06 Thread Ray Daniel Zimmerman
I am not surprised. By including 245 contingencies, you have made the problem 245 times larger. In general, given the problem formulation that MOST uses for handling contingencies, it is not practical to simply add a complete list of contingencies directly to the problem except for the very smal

Re: Warm Start Using MOST

2020-04-06 Thread Ray Daniel Zimmerman
Good question. I think the best answer is probably … not really. The initial values as passed in to the solver for many of the solution variables are simply set to zero, with the exception of the voltage angles and the generator real power outputs. These are set according to the values found in

Re: Matpower not supported for code generation

2020-04-13 Thread Ray Daniel Zimmerman
I can’t think of another option. I’ve not personally worked with the C code generation in MATLAB, so I’m not familiar with the requirements. Do you know what specifically is used by MATPOWER that is not supported? If there are easy ways to avoid those things, it would certainly make sense to do

Re: trouble using MOST

2020-04-13 Thread Ray Daniel Zimmerman
Please do not reply to a message regarding an unrelated issue. Use a new subject line when asking a question about a new topic. Can you confirm that everything is installed correctly and all of the MATPOWER and MOST tests are passing (test_matpower and test_most, respectively)? If so, please in

Re: Matpower not supported for code generation

2020-04-13 Thread Ray Daniel Zimmerman
cell function is not supported for code generation, but who knows what else will appear once that one is solved. Let me know if you or anyone else has any other ideas, or experience with MATPOWER and code generation. Best regards, Lode On Mon, Apr 13, 2020 at 4:36 PM Ray Daniel Zimmerman m

Re: trouble using MOST

2020-04-14 Thread Ray Daniel Zimmerman
a las 21:38, Ray Daniel Zimmerman (mailto:r...@cornell.edu>>) escribió: Please do not reply to a message regarding an unrelated issue. Use a new subject line when asking a question about a new topic. Can you confirm that everything is installed correctly and all of the MATPOWER and MOST

Re: getting started with MATPOWER (was Re: Matpower not supported for code generation)

2020-04-14 Thread Ray Daniel Zimmerman
enerator and four bus system.can you give me the way i understand the matlab code for this problem kind regards, Teshome Hambissa Lecturer Addis Ababa Universiy, AAiT, SECE Addis Ababa, Ethiopia On Mon, Apr 13, 2020 at 9:58 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: If

Re: getting started with MATPOWER (was Re: Matpower not supported for code generation)

2020-04-14 Thread Ray Daniel Zimmerman
of file (solve_lf.m) Teshome Hambissa Lecturer Addis Ababa Universiy, AAiT, SECE Addis Ababa, Ethiopia On Tue, Apr 14, 2020 at 4:31 PM Teshome Hambissa mailto:tebiss...@gmail.com>> wrote: Dear member, I need run power flow calculation for three generator and four bus system.can

Re: Extremely Slow to Construct SCUC using MOST

2020-04-14 Thread Ray Daniel Zimmerman
don't know why MOST could be so slow. Thanks, Steven On Mon, Apr 6, 2020 at 11:55 AM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: I am not surprised. By including 245 contingencies, you have made the problem 245 times larger. In general, given the problem formulation t

Re: Extremely Slow to Construct SCUC using MOST

2020-04-14 Thread Ray Daniel Zimmerman
Vào Th 4, 15 thg 4, 2020 vào lúc 00:17 Ray Daniel Zimmerman mailto:r...@cornell.edu>> đã viết: I suspect it is using a very different formulation of the problem that results in a much smaller problem size. MOST uses a very unique problem formulation, which has its advantages and disadvant

Re: error in simulating matdyn

2020-04-14 Thread Ray Daniel Zimmerman
MatDyn is not part of MATPOWER. Please see the MatDyn website or documentation fo find contacts for support for MatDyn. Ray On Apr 14, 2020, at 12:37 PM, Nguyễn Anh mailto:vietanhbk2...@gmail.com>> wrote: My computer does not have data 'case9dyn', can you transfer that data to me Vào Th 4

Re: Bus appearant power in Thechnote 2

2020-04-17 Thread Ray Daniel Zimmerman
What you are describing is the complex bus power injection, not apparent power (which is just the magnitude of the complex power). And yes, the power in MVA is simply the per unit value times the MVA base (baseMVA). Kirchhoff’s current law (KCL) implies that all power injected into a bus (or lea

Re: Bus appearant power in Thechnote 2

2020-04-20 Thread Ray Daniel Zimmerman
our patience and time. The code is attached below. -- 原始邮件 ------ 发件人: "Ray Daniel Zimmerman"mailto:r...@cornell.edu>>; 发送时间: 2020年4月17日(星期五) 晚上10:53 收件人: "MATPOWER-L"mailto:matpowe...@list.cornell.edu>>; 主题: Re: Bus appearant power in

Re: [ANN] Progressive web application based on MATPOWER

2020-04-21 Thread Ray Daniel Zimmerman
Nice work, Richard! I have added a link to it from the MATPOWER website (https://matpower.org/related-links/). Thanks for sharing this, Ray On Apr 20, 2020, at 11:26 AM, Richard Lincoln mailto:r.w.linc...@gmail.com>> wrote: Dear MATPOWER users, I recently published a progressive web app

Re: Powerflow Error

2020-05-04 Thread Ray Daniel Zimmerman
I am replying to the MATPOWER-L mailing list, which is what I think you intended. (You sent it to the list owner, not the list). MATPOWER does not currently implement what you are looking for, but it should be fairly straightforward to implement it yourself. You will simply need to scale the di

Re: Commitment status and actual generation in zero cost units in MOST

2020-05-06 Thread Ray Daniel Zimmerman
Assuming I understand the situation correctly, it sounds like a situation where the value of the commitment status variable has no impact on the overall objective function. That is “on” and dispatched at zero vs. “off” results in exactly the same total objective function value. If so, there is n

Re: On load tap Changer transformer reg

2020-05-11 Thread Ray Daniel Zimmerman
Unfortunately, MATPOWER is for steady-state analysis only at the moment. Regarding a transformer with on-load tap-changer, MATPOWER does not currently support automatic adjustment of taps as a control variable. Depending on your application, you might be able to use your own iterative approach w

Re: jacobian matrix

2020-05-22 Thread Ray Daniel Zimmerman
The code does not currently give you that option, but it shouldn’t be too hard to insert some save statements or something to save them to disk. Another easy option might be to add a global cell array or something and insert a line to assign the Jacobian to an element in the array. Ray On

Re: Can mpc.branch F_BUS ever be equal to T_BUS?

2020-06-22 Thread Ray Daniel Zimmerman
Yes. I would consider that to be an error in the case file. Ray On Jun 20, 2020, at 8:57 PM, Liang Chen mailto:liangjie.c...@mail.utoronto.ca>> wrote: Hello, This might be a silly question to ask, but as titled, can I assume there is never a self loop (in which case the F_BUS of a branch

Re: Please Help me

2020-06-23 Thread Ray Daniel Zimmerman
MATPOWER has the ability to save files to PSS/E RAW format, but unfortunately, that’s the only other format (besides MATPOWER) that it supports for export. So, I’m afraid you will have to either write your own conversion tool or convert it manually. Ray On Jun 23, 2020, at 3:49 AM, mahmou

Re: Storage Dependencies

2020-06-23 Thread Ray Daniel Zimmerman
In terms of the modeling, it sounds like you simply want to include 2 dispatchable injections that are linked to one another by a constraint so that Pg1 = -Pg2, correct? As it turns out, that’s exactly the way a DC line is currently modeled in MATPOWER. Check out Section 7.6.3 in the User’s Ma

Re: Extension to AC OPF - soft limits

2020-06-24 Thread Ray Daniel Zimmerman
I don’t think there is a way to do this using the existing soft limits functionality in MATPOWER. However, it should be fairly straightforward to implement using user-defined linear constraints and costs, since all of your constraints and costs are linear. The simplest approach would probably be

Re: Extension to AC OPF - soft limits

2020-06-25 Thread Ray Daniel Zimmerman
go and come back to you with feedback Thanks and regards Mariusz From: bounce-124729090-81515...@list.cornell.edu<mailto:bounce-124729090-81515...@list.cornell.edu> mailto:bounce-124729090-81515...@list.cornell.edu>> On Behalf Of Ray Daniel Zimmerman Sent: Wednesday, June 24, 2020 4:10 PM To: M

Re: OPF using Gray Wolf Optimizer

2020-06-29 Thread Ray Daniel Zimmerman
You have not mentioned what problem you would like to solve with GWO, or what you mean by “integration of MATPOWER with … GWO”. What exactly is it that you would like to do? Ray On Jun 28, 2020, at 6:54 AM, Basma Mohamed mailto:pussycat...@yahoo.com>> wrote: Dear MATPOWER developer team;

Re: Bus type indexing in newtonpf.m

2020-06-29 Thread Ray Daniel Zimmerman
That is correct. For the power flow equations F(x) = 0, F, x and the Jacobian J are all constructed with the desired ordering, so the ordering of the original buses in the bus matrix does not matter. Ray On Jun 28, 2020, at 5:04 PM, Liang Chen mailto:liangjie.c...@mail.utoronto.ca>> wrot

Re: Stochastic Simulation Matpower

2020-06-29 Thread Ray Daniel Zimmerman
See my answers below ... On Jun 28, 2020, at 7:39 AM, Panda, Deepak Kumar mailto:dp...@exeter.ac.uk>> wrote: Hello Matpower team, I am planning to add PV and wind power generation unit to the existing power grid buses and for every power generation will depend upon a probability distribution.

Re: Bug Report: runpf() doesnt converge when running on results obtained using runpf()

2020-06-29 Thread Ray Daniel Zimmerman
See my response here: https://github.com/MATPOWER/matpower/issues/105 Ray On Jun 29, 2020, at 7:50 AM, yangyang <980182...@qq.com> wrote: Dear All, https://github.com/Vurgit/case_IEEE123/blob/master/grid_IEEE123_complete.m This case can converge, but if runpf() agai

30-bus SCUC (was Re: Problem in 'Case 300' in MATPOWER)

2020-07-02 Thread Ray Daniel Zimmerman
I’m afraid you’ll have to be more specific with your question. I assume you are starting with one of the tutorial examples in most_ex7_suc.m … which one? And what are the modifications you have made to adapt it for a 30-bus case, and where are you running into trouble? Ray On Jun 30, 2020,

Re: Bus, Loads and Generators question

2020-07-17 Thread Ray Daniel Zimmerman
It isn’t completely clear what data you have to create your case, but you definitely need both load and generation for the system to make any sense. Total generation is equal to total load plus losses, so you need both. And dispatchable load refers to loads whose quantities are not fixed, but ca

Re: Query regarding Early version of 'MIPS' ?

2020-07-22 Thread Ray Daniel Zimmerman
MIPS is not object-oriented and never has been. It is available in the mips subdirectory in the MATPOWER distribution and the latest version is always available at the MIPS GitHub project page: https://github.com/MATPOWER/mips/ Are you referring to MP-Opt-Model? MP-Opt-Model has wrapper function

Re: Bus, Loads and Generators question

2020-07-24 Thread Ray Daniel Zimmerman
a (P,Q) in the 3rd and 4th column of the bus matrix data despite they are not load buses? Or should i do something different in my scenario? I have put an image to semplify things. Hope this time i have make it more clear, thank you again for your time, Davide Maglione Da: Ray Daniel Zim

Re: individual trajectories in stochastic unit commitment in MOST

2020-08-18 Thread Ray Daniel Zimmerman
Hi Carlos, This is a complex formulation, so I’m not 100% sure of the answer. The TransMask input parameter employed by filter_ramp_transitions() to create the “individual trajectories” case only affects the definition of the ramp reserves, not the storage handling. The storage is still not han

ANNOUNCE: MP-Opt-Model 1.0 release

2020-08-26 Thread Ray Daniel Zimmerman
Hi MATPOWER developers, I wanted to let you know about some of my recent work on the internals of MATPOWER. I’ve been working on a major overhaul and generalization of the network modeling in MATPOWER that will allow for much easier customization and implementation of new device models, etc, as

ANNOUNCE: MP-Opt-Model 2.1 release

2020-08-26 Thread Ray Daniel Zimmerman
(Sorry, that 1.0 announcement I just sent was an accident, a copy of what I sent to the developer list back in May.) Hi MATPOWER users, I wanted to let you know about some of my recent work on the internals of MATPOWER. I’ve been working on a major overhaul and generalization of the network mo

Re: why runcpf is valid only for case 9

2020-09-07 Thread Ray Daniel Zimmerman
I agree this is confusing. It turns out that runcpf() really should always require two input arguments, the base case and the target case. And it should always throw an error (with a clear error message) if the latter is not provided. Instead, currently, it provides 'case9target' as a default va

Re: why runcpf is valid only for case 9

2020-09-08 Thread Ray Daniel Zimmerman
, September 7, 2020, 11:52:14 AM EDT, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: I agree this is confusing. It turns out that runcpf() really should always require two input arguments, the base case and the target case. And it should always throw an error (with a clear error m

Re: optimal power flow with unit commitment using mixed integer programming

2020-09-09 Thread Ray Daniel Zimmerman
Unfortunately, I do not believe runuopf() will work for this problem, since it uses heuristics to de-commit units one at a time based only on binding Pmin limits, not on binding reactive power limits, which is what you would need. I suppose you could modify uopf() to look at both, but in the end

Re: Optimal power flow with DG connected

2020-09-09 Thread Ray Daniel Zimmerman
I also suspect that the network becomes disconnected by removing certain lines. You can check the connectivity using case_info() or find_islands(). If there are islands

Re: optimal power flow with unit commitment using mixed integer programming

2020-09-10 Thread Ray Daniel Zimmerman
So runuopf() begins by running an OPF with all generators turned on, with active power dispatches limited by PMIN and PMAX. Any unit that is dispatched at PMIN (and would be dispatched lower if the limit were relaxed) is said to have a binding PMIN limit and is therefore considered as a candidat

Re: Bus, Loads and Generators question

2020-09-10 Thread Ray Daniel Zimmerman
uld i think of the storage simply as an additional load on the bus and the occasional surplus of energy as an additional power from the generators? Thank you for your help, Best Regards, Davide Maglione Da: Ray Daniel Zimmerman<mailto:r...@cornell.edu> Inviato: venerdì 24 luglio

Re: Optimal power flow with DG connected

2020-09-11 Thread Ray Daniel Zimmerman
" If I want to increase my number of iterations, what steps I have to do"? Please help me out Regards Surbhi Aggarwal On Wed, Sep 9, 2020 at 7:50 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: I also suspect that the network becomes disconnected by removing certain

Re: Optimal power flow with DG connected

2020-09-14 Thread Ray Daniel Zimmerman
e: Hello Thank you all for your help and I'll definitely look out for the solutions. Thank you so much Regards Surbhi Aggarwal On Fri, Sep 11, 2020 at 7:16 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: Hi Surbhi, It looks like you were using the default Newton power flo

Re: Finding the Jacobian matrix and Ybus

2020-09-14 Thread Ray Daniel Zimmerman
Try this … mpc = loadcase(); mpci = ext2int(mpc); % convert to internal bus numbering Ybus = makeYbus(mpci); Jac = makeJac(mpci, 1); — Ray On Sep 14, 2020, at 2:09 AM, Kaled Zareer mailto:kaled...@yahoo.com>> wrote: Hi all, I am a beginner at Matpower. I read the manual but I am confused a

Re: Optimal power flow with DG connected

2020-09-15 Thread Ray Daniel Zimmerman
issue. Warning: Matrix is singular to working precision. > In mplinsolve (line 75) In newtonpf (line 110) In runpf (line 260) Regards Surbhi Aggarwal On Mon, Sep 14, 2020 at 7:31 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: You would have to confirm the cause of the non-con

Re: Finding the Jacobian matrix and Ybus

2020-09-15 Thread Ray Daniel Zimmerman
and to consider this point? Thanks in advance Khaled On Monday, September 14, 2020, 10:04:50 AM EDT, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: Try this … mpc = loadcase(); mpci = ext2int(mpc); % convert to internal bus numbering Ybus = makeYbus(mpci); Jac = makeJac(mpci, 1); — R

Re: Bus, Loads and Generators question

2020-09-19 Thread Ray Daniel Zimmerman
g this to understand if i am following the right path or i have to walk in another direction to solve this. Thank you again, best regards, Davide Maglione Da: Ray Daniel Zimmerman<mailto:r...@cornell.edu> Inviato: giovedì 10 settembre 2020 19:58 A: MATPOWER-L<mailto:matpowe...@l

Re: Bus, Loads and Generators question

2020-09-21 Thread Ray Daniel Zimmerman
To change the BR_STATUS column to zero do you use the mpoption On Saturday, September 19, 2020, 05:39:15 PM GMT+2, Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: That sounds like a dispatchable load … see Section 6.4.2 in the User’s Manual. Ray On Sep 18, 2020, at 8:

load during CPF (was Re: Optimal power flow with DG connected)

2020-10-06 Thread Ray Daniel Zimmerman
ail.com>> wrote: Which file do I need to send you? please specify it. Regards Surbhi Aggarwal On Tue, Sep 15, 2020 at 7:03 PM Ray Daniel Zimmerman mailto:r...@cornell.edu>> wrote: Looks like the Jacobian is singular. Feel free to send me the case (off-list) and I’ll have a l

Re: Bus, Loads and Generators question

2020-10-08 Thread Ray Daniel Zimmerman
seMVA om.add_var('S',1,case9.gen(4,2),case9.gen(4,10),case9.gen(4,9)) om.add_lin_constraint('limite1',L,1,U,{'S'}) om.add_quad_cost('costo1',[],Cw,0,{S}); end i think my problem is that i can’t understand how to properly modify the opf model. I hop

Re: Bus, Loads and Generators question

2020-10-09 Thread Ray Daniel Zimmerman
fically to a variable in the mpc (for example the P absorbed by a load)? Sincerely, thank you again for all your help, Davide Da: Ray Daniel Zimmerman<mailto:r...@cornell.edu> Inviato: giovedì 8 ottobre 2020 16:02 A: MATPOWER-L<mailto:matpowe...@list.cornell.edu> Oggetto: Re: B

Re: Issue with case 118

2020-10-09 Thread Ray Daniel Zimmerman
It appears that you have a case118 in your MATLAB path that is not a valid MATPOWER case file, either some other file other than the one included with MATPOWER, or the one that came with MATPOWER has been modified. I would first do … which case118 … to see which file it is trying to load. If i

Re: Bus, Loads and Generators question

2020-10-13 Thread Ray Daniel Zimmerman
by the disp. Loads exceeds the constraints, and the Vm of the buses does it too, but i think that thanks to your help i am moving in the right direction. Thank you again, Davide Da: Ray Daniel Zimmerman<mailto:r...@cornell.edu> Inviato: venerdì 9 ottobre 2020 15:56 A: MATPOWER-L<

Re: Bus, Loads and Generators question

2020-10-19 Thread Ray Daniel Zimmerman
o your help i am moving in the right direction. Thank you again, Davide Da: Ray Daniel Zimmerman<mailto:r...@cornell.edu> Inviato: venerdì 9 ottobre 2020 15:56 A: MATPOWER-L<mailto:matpowe...@list.cornell.edu> Oggetto: Re: Bus, Loads and Generators question The P absorbed by

Re: Bus, Loads and Generators question

2020-10-20 Thread Ray Daniel Zimmerman
r.val.s_pmin results.var.val.s_qmax results.var.val.s_qmin results.var.val.s_rate_a those are all extremely low numbers ( 10^-9) but i can’t find on the manual where do they come from or what they mean, do you have any indications? Thank you again for your patience and support, Davide Da: Ray Dani

Re: Linear constraints

2020-10-29 Thread Ray Daniel Zimmerman
If it is to modify a standard OPF, the easiest thing is probably just to add A, l, and u fields to your MATPOWER case struct (mpc) as described in Section 7.1.2 of the User’s Manual. The A matrix columns correspond to Va, Vm, Pg and Qg, in that

Re: Modelling and Power Flow Validation

2020-10-30 Thread Ray Daniel Zimmerman
Hi Tobias, For your first question, please see the relevant derivation in Section 3.7 of the User’s Manual. This describes the formulation used by MATPOWER. I suppose it is possible that some DC power flow implementations also include the appro

  1   2   3   4   >