Dear Professor Zimmerman,
I'm working on reconfiguration of distribution networks to maximize dg penetration and I used matpower for PF problem but for recofiguration every time I should change BR_STATUS column of branch matrix and it's alittle time consuming .is there any easier way ? ** ** I want to add new variable and linear constraints to the OPF with reserves. For this cause, I modified toogle_ reserves , but I have problems when the program calculated to the new cost (compute_cost.m):**** ** ** Inner matrix dimensions must agree.**** ** ** Error in ==> opf_model.compute_cost at 105**** f = full((w' * H * w) / 2 + Cw' * w);**** ** ** The matrix H is define with others dimensions and this case no add the new cost.**** ** ** My new variables are the nodals angles, that are penalizing when not meet inside specific range**** ** ** Please, you explain me the error.**** ** ** Best Wishes
