Have you looked at MATPOWER’s implementation described in section 7.5.3 in the
User’s Manual <http://www.pserc.cornell.edu/matpower/manual.pdf>? It is
implemented in toggle_dcline.m, and uses the technique you describe.
Ray
--
Ray Zimmerman
Senior Research Associate
B30 Warren Hall, Cornell University, Ithaca, NY 14853 USA
phone: (607) 255-9645
> On Feb 18, 2015, at 1:21 PM, Paul Cuffe <[email protected]> wrote:
>
> Dear all,
>
> I'm looking to get a bit of help in formulating a custom OPF constraint.
> Conceptually this seems easy but somehow I can't translate it into code! I'm
> trying to incorporate a very simple HVDC model into the OPF, whereby the two
> terminals of the HVDC link are simply modelled as generators. Of course, to
> make this realistic, I need to add a constraint to ensure that the two
> generators have equal and opposite active powers: so the sending end will be
> a negative generator absorbing power from its local grid, with the receiving
> generator being a positive injection.
>
> One approach I considered is adding a new free variable to the OPF to
> describe the flow on the HVDC link:
>
> om = add_vars(om, 'ThroughFlow', 1)
>
> Then I want to add constraints so that one generator has PG = ThroughFlow and
> another has PG = -ThroughFlow. I'll also want some bounds on ThroughFlow.
>
> How do I identify the two generators this constraint should apply to? And how
> do I formulate it?
>
> Any advice or insights are greatly appreciated!
>
> Many thanks all,
>
> Paul
>
> --
> Dr. Paul Cuffe,
> Senior Researcher,
> Electricity Research Centre,
> University College Dublin.
>
> Phone: +353-1-716 1743
>
>