Re: Problem in 'Case 300' in MATPOWER

2020-06-22 Thread Gang Huang
Hi Jay, It is a common issue that the default bus_i is not consecutively numbered. You can renumber them before calculation. Best regards, Gang -- Gang Huang, Ph.D. Research Fellow, Zhejiang Lab On Tue, Jun 23, 2020 at 3:19 AM jnv484 wrote: > Hello, > > I want to perform some cal

RE: question about losses

2016-04-03 Thread Gang Huang
Dear Houssem, Please note that transmission lines have charging susceptance (i.e., mpc.branch(:, BR_B)), and its contribution to the reactive power is not listed in the pretty-printed output. Best regards, Gang From: bounce-120330262-73377...@list.cornell.edu [mailto:bounce-12033

RE: Overwriting specific in loop data before running runpf

2016-06-13 Thread Gang Huang
Hi Marc, Defining a new variable (if you don’t want to load the same case data multiple times) could help you fix the problem easily. Below is an example that may help you. mpc = loadcase('case6ww');% load the raw data; for i = 1 : 5 data = mpc;

RE: Helping regarding Matpower function

2016-12-17 Thread Gang Huang
Dear Sk. Md. Golam Mostafa, Please add “define_constants” before the use of “results.bus(:, VM)” or “results.gen(:, PG)”. The constants such as “VM” and “PG” are defined by “define_constants” in MATPOWER. Best regards, Gang From: bounce-121092495-73377...@list.cornell.edu [mailto

Re: question about mpc case model

2017-07-12 Thread Gang Huang
Hi Xian, For both of your questions, yes! To model multiple generators connected to the same bus, just create a new row in "mpc.gen" (note: please do not forget the corresponding row in "mpc.gencost") and fill it with the data of a new generator. To model multiple loads, you can add them up to th