1. This is a very general question. Since I can't guess exactly what you are having trouble with, it comes across as a general Matlab programming question to me. If so, go find a good book on Matlab programming and spend some time with it. If you have a specific MATPOWER-related question (for example, where can I find the generator cost in the OPF results?), then check the manual first and if you can't find the answer I'll be happy to try to answer it for you.
2. The power flow routine in MATPOWER does not automatically control the taps on transformers to regulate voltage (see the last sentence before section 4.1 in the manual). However, you could call the power flow in a loop that adjusts the taps based on the voltages in the solution. Best regards, -- Ray Zimmerman Senior Research Associate 419A Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 On Oct 21, 2011, at 7:52 AM, Dailan Xu wrote: > Dear Dr. Zimmerman > > 1. I have different kinds of loads and generations and I want to have profit, > cost and Lamba (or market summary) in a separate matrix (each of them). Could > you please let me know how can I do it? > > 2. I want to use an OLTC to centrally control the voltage of the slack bus. > Is it possible in MATPOWER? > > Best Regards > > D. Xu > >
