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