On Jul 31, 2015, at 5:31 AM, João Gorenstein Dedecca jdede...@gmail.com
wrote:
Dear all,
After reviewing the code I believe this is caused by the sparse matrix
creation command for the Bf matrix.
In the case in question the Bf matrix must have an empty last row. But
since no element of this row
opt_model/add_constraints (line 170)
@opt_model/add_constraints: number of columns of A does not match
number of variables, A is 4 x 6, nv = 7
Error in opf_setup (line 212)
om = add_constraints(om, 'Pmis', Amis, bmis, bmis, {'Va', 'Pg'}); %% nb
Has anyone faced this before?
Thanks,
João Gorenstein
.
This can be fixed by changing the line in makeBdc.m from:
Bf = sparse(i, [f; t], [b; -b]);% = spdiags(b, 0, nl, nl) * Cft;
to
Bf = sparse(i, [f; t], [b; -b], nl, nb);% = spdiags(b, 0, nl, nl) * Cft;
Best regards,
João Gorenstein Dedecca
On Fri, Jul 31, 2015 at 9:07 AM, João Gorenstein
...xnyn
%2startupshutdownnc(n-1)...c0
mpc.dclinecost = [2000000000
0000;];
On Mon, Jul 13, 2015 at 3:13 PM, João Gorenstein Dedecca jdede...@gmail.com
wrote:
Hi Dr. Zimmerman, thanks for the reply,
I ran simple