I can’t really comment on the Python port, but can you check the same cases
using the latest MATPOWER? Does MATPOWER give the same results? If you don’t
have access to Matlab, you can always run MATPOWER in GNU Octave
<http://www.gnu.org/software/octave/>, a free-open source Matlab alternative.
Ray
> On Jul 8, 2015, at 4:34 AM, João Gorenstein Dedecca <[email protected]>
> wrote:
>
> Dear all,
> I am implementing a DC OPF with DC lines (using PYPOWER python port).
> In the network some buses may be connected only through DC lines, and these I
> define as slack buses.
> I am finding these issues:
>
> 1 - For a 2-bus system where one is dc-connected, creation of the sparse Bf
> matrix fails ("cannot infer dimensions from zero sized index arrays")
> 2 - For a 3-bus system where one is dc-connected, the add_constraints fail
> (3-buses with 2 generators each, "number of columns of A does not match
> number of variables, A is 3 x 10, nv = 11"
> 3 - For a large system, the OPF finds a solution. However, if the dc-isolates
> buses have enough generation capacity, there is no dc flow even though it
> would reduce the objective function value.
>
> Can anyone comment on these?
> Thanks!
>
> João
>