;
Sent: Tuesday, March 17, 2020 9:55 AM
To: MATPOWER-L mailto:matpowe...@list.cornell.edu>>
Subject: Re: Question regarding adding cost function
I don’t think your N matrix is what you want … it looks like the number of
columns would be correct for a 48-bus system, but the first row would appear
=0>
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, Mar
__
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
behalf of Ray Daniel Zimmerman
Sent: Monday, March 16, 2020 10:45 AM
To: MATPOWER-L
Subject: Re: Question regarding adding cost function
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_qu
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
Hi,
I want to add a cost function in my objective function. I wrote the code as
follows but I got error please correct me, If my code is wrong (this is just
the code example).
case_name='9';
mpc=loadcase(['case',case_name]);
om=opt_model(mpc);
% test = loadcase('t_case30_userfcns')
% res=runopf