Type ...

dbstop if error

... then re-run your code. When you get the error, check the dimensions of H, w 
and Cw to find out where the mismatch is. There is no way for me to suggest the 
cause of the error without more details.

What changes did you make to toggle_reserves? What inputs are you using? ... 
etc.

-- 
Ray Zimmerman
Senior Research Associate
419A Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645




On Feb 16, 2012, at 8:45 AM, Santiago Chamba wrote:

> Dear Professor Zimmerman,
>  
> 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
>  
> Santiago Chamba
>  

Reply via email to