Hi Baljinnyam,

violently thanks for your working as to Matpower. I suppose it will be great 
for adding this functions that you  have developed.  Further discussion about 
this kinds of questions will be greatly useful.




sinoy






At 2018-01-25 22:47:21, "Ray Zimmerman" <r...@cornell.edu> wrote:
Hi Baljinnyam,


Thanks for your offer to contribute. This would be a nice addition to MATPOWER.


I suggest starting by adding two new MATPOWER options, each with default values 
of 0 …


opf.current_balance = 0 (complex power balance) or 1 (complex current balance)
opf.v_cartesian = 0 (polar) or 1 (Cartesian)


Then find all the places in the existing OPF code where the current (default) 
formulation is assumed and add conditionals to implement the other variations. 
You might find it useful to use the MATLAB Profiler with a simple runopf() call 
to map out the functions that are called. I think much of the work will be in 
opf_setup(), where we’ll need to use different variables and constraints.


Another thing to do early in the process is to duplicate the t/t_opf_mips.m 
file for each of the 3 new variations. The initial goal will be to get all of 
those tests to pass for each of the versions.


Of course, you will want to begin all of this on your own fresh fork of the 
current MATPOWER development branch using the guidelines in the Contributor’s 
Guide.


Don’t hesitate to ask if you have questions or need any help along the way.


Thanks again,


     Ray








On Jan 24, 2018, at 4:40 AM, Baljinnyam Sereeter <b.seree...@tudelft.nl> wrote:


Dear Matpower developers,

I use Matpower for my work to solve OPF problems. As we know that the power 
balance (mismatch) equations in Polar coordinates are used as equality 
constraints in the OPF formulation in Matpower. However, depending on the 
formulation of equality constraints (power or current mismatch) and 
specification of the coordinates (Polar or Cartesian), OPF problem can be 
formulated mathematically in four different ways for a single physical 
formulation. I am working on other three versions since some advantages can be 
obtained for the derivatives or properties of matrix equations of Newton update 
step. I have finished other versions theoretically and implemented on Matlab. 
So I was wondering if you would like to include the other versions in Matpower.

If you are interested, I would like to discuss how we can design the 
implementation. Thanks in advance.


Regards,

Baljinnyam S





Reply via email to