You can either make a copy of the file and change the value of mpc.gencost in 
the file …

result  = runopf('modified_case_ieee30');

… or you can load the case into struct and add a few lines of code to change 
mpc.gencost before running it.

mpc = loadcase('case_ieee30');
% make changes to mpc.gencost
result = runopf(mpc);

-- 
Ray Zimmerman
Senior Research Associate
B30 Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645





On Aug 27, 2013, at 11:52 AM, 小柳拓也 <[email protected]> wrote:

> Hello Fred
> 
> Thanks to answer my question.
> 
> I'm simulating on case_ieee30.m, so do I change mpc.gencost in case_
> ieee30.m file ?
> 
> If to do that is correct, please explain it to be concrete.
> 
> I ask for your cooperation in this matter.
> 
> Takuya Koyanagi
> 
> ----- Original Message -----
>> Hi,
>> I guess you are trying to optimize with the objective of minimizing 
> power
>> losses. From my understanding of the objective function, the power 
> losses
>> equations that you have attached can replace the cost functions 
> defined in
>> the MATPOWER case you are working on, simply by typing in the 
> coefficient
>> values of the functions you have into matpower "gen.cost" matrix 
> depending
>> on the oder of the equations you have. the summation for what you have
>> attached is simply the representative of all the objective function
>> equations. to use these all you need to do is write each equation on 
> its
>> own and enter the coeficients of each equation into matpower gen.cost 
> field.
>> hope you get my point.
>> all the best.
>> 
>> 
>> On 23 August 2013 07:15, 小柳拓也 <[email protected]> wrote:
>> 
>>> 
>>> 
>>> I have a question of MATPOWER.
>>> 
>>> I want to change objective function of OPF.
>>> 
>>> My objective function is to take Power loss cost and Generator cost. 
> I
>>> attach it in Word.
>>> 
>>> Please tell me how to change objective function.
>>> 
>>> 
>>> Chiba University department of engineering fourth grader
>>> Takuya Koyanagi
>>> 
>> 
>> 
>> 
>> -- 
>> *Fred Kanjelesa.
>> *Zambia/Lusaka.
>> 
>> Mobile: +260967880912
>> 
>> "Go as far as you can see. When you get there, you'll be able to see
>> farther!" *Thomas Carlyle* ** ****
>> 
> 
> 
> 
> 
> 

Reply via email to