Re: Basic questions about run opf in MATPOWER

2013-06-28 Thread Home Lin
Dr. Zimmerman, Do you have any idea about these questions? I've understand question 1: the answer should be: the default objective function of runopf for both AC OPF and DC OPF are the same polynomial defined by the gencost in the case struct. Please correct it if it is wrong. Thanks, Lin 201

Re: ask in matpower

2013-06-28 Thread Ray Zimmerman
1. Please see the manual and help files for the functions for documentation. define_constants; results = runpf('case39'); H = results.branch(:, PF); V = results.bus(:, VM); 2. yes -- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-

Re: doubts regarding runpf

2013-06-28 Thread Ray Zimmerman
You need to add a new row to the gen matrix in order to add a generator. You code simply changes the initial dispatch of generator 7 (which could be at any bus). Please review the documentation on the format of the input data. -- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell

Re: makeptdf matrix

2013-06-28 Thread Ray Zimmerman
Unfortunately, makePTDF() does not currently have an option to compute individual rows, columns or elements of the PTDF matrix. It may be fairly straightforward to modify the code yourself, at least to return single rows. -- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell Univ

Re: controllers data

2013-06-28 Thread Ray Zimmerman
These devices are not modeled directly by MATPOWER. -- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 On Jun 18, 2013, at 7:46 PM, Hesamoddin Marzooghi wrote: > Dear Ray Zimmerman, > > I want to know can I consider con

Re: Basic questions about run opf in MATPOWER

2013-06-28 Thread Ray Zimmerman
1. The default is defined by the gencost, either a polynomial or piecewise-linear cost on P. 2. Set the costs defined by gencost to zero, i.e. use a linear function with a zero coefficient. 3. It is not essential to make the distinction between control and state variables in an optimization prob

Re: CPF for multiple Load and Generator

2013-06-28 Thread Ray Zimmerman
This feature is not included in the CPF code currently included in the extras directory. However, I am currently reviewing/integrating contributed code with this feature that I plan to include in the next version. -- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell University, I

Re: VAR compensation

2013-06-28 Thread Ray Zimmerman
I was not able to use your data without manual editing, due to the way the text wrapped, but you can try relaxing the Qmin constraint a bit and see how the solution changes to understand the tradeoffs the optimization is making in order to accommodate the Q injection. -- Ray Zimmerman Senior R

Re: OPF with branch angle difference limits

2013-06-28 Thread Ray Zimmerman
This is not a version 2 format. Version 2 format is a struct. You might try using savecase() to generate a valid version 2 case file. Then edit it with your own values. -- Ray Zimmerman Senior Research Associate B30 Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 On

Re: ask in matpower

2013-06-28 Thread Mahmoud Abdallah
many thanks   Eng. Mahmoud abdallah Teaching Assistant Ain Shams University Faculty of Engineering From: Ray Zimmerman To: MATPOWER discussion forum Cc: "MATPOWER-L@cornell.edu" Sent: Friday, June 28, 2013 11:59 PM Subject: Re: ask in matpower 1. Please