Dear Matpower community, For a DCOPF with a dc line a simple change in the bus order causes an error in matpower 5.1. Attached are the .m files for a 4-bus system with 2 x AC and 1 x DC lines. Presenting the DC bus in the branch matrix before last results in the error below.
Error using 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 Dedecca
t_dccase_rightorder.m
Description: Binary data
t_dccase_wrongorder.m
Description: Binary data
