Section 6.4 references two examples included in MATPOWER. These both use the 
callback mechanism. There is another very basic example at about line 184 of 
t/t_opf_mips.m  that defines the A, l, u and N, fparm, H and Cw parameters to 
be passed directly to opf. As described in the first paragraph of chapter 6, 
these parameters can also be specified as additional fields in the case struct, 
which is how you would need to do it when calling runmarket.

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



On Jun 20, 2011, at 9:41 AM, Dailan Xu wrote:

> Thank U. Where can I find an example? or could you please give me an example?
> 
> Best Regards
> 
> D. Xu
> 
> 
> On Mon, Jun 20, 2011 at 15:28, Ray Zimmerman <[email protected]> wrote:
> The runmarket code is simply a wrapper around the OPF solver, so it's the 
> same as adding variables to extend the OPF. The bus voltages are already 
> control variables, but please see section 5.3 and chapter 6 of the manual for 
> details on how to extend the OPF with other variables, constraints and costs.
> 
> --
> Ray Zimmerman
> Senior Research Associate
> 211 Warren Hall, Cornell University, Ithaca, NY 14853
> phone: (607) 255-9645
> 
> 
> 
> On Jun 20, 2011, at 9:15 AM, Dailan Xu wrote:
> 
> > Dear Prof. Zimmerman
> >
> > How can I add an optimization variable to runmarket, for example, adding 
> > voltage of buses as control variable? Is it possible?
> >
> > Best Regards
> >
> > D. Xu
> >
> >
> 
> 
> 
> 
> 

Reply via email to