Re: Jacobian: vector and matrix derivatives

2017-04-06 Thread Ray Zimmerman
These are derivatives of complex voltages with respect to voltage magnitudes 
and angles.  If you haven’t already, please see the MATPOWER Tech Note 2 "AC 
Power Flows, Generalized OPF Costs and their Derivatives using Complex Matrix 
Notation ” 
listed in the Documentation section of the MATPOWER home page, especially 
section 3.

Hopefully, that will answer your question.

Ray


> On Mar 29, 2017, at 9:46 PM, Albert Sarnari  wrote:
> 
> Dear Mr Zimmerman
>  
> Could you please explain why the derivative of the voltage( dV/dVm  or 
> dV/dVa) results in a matrix form: diag(V./abs(V)), when V is a vector, as 
> shown in dSbus_dV.m?
>  
> I will appreciate your reply.
>  
> Kind regards
>  
> Albert 



MOST

2017-04-06 Thread Ammar Raza
Hi every one,


I am working on most dcopf of 118 bus system but I am getting this error.
I attached my code with this email.
Can you please specified my why I am getting this error?

Thank you,

Kind Regard

Mohammad Ammar Raza



Index exceeds matrix dimensions.

Error in get_reorder (line 29)
B = subsref(A, s);

Error in e2i_data (line 68)
newval = get_reorder(val, idx, dim);

Error in e2i_field (line 60)
e2i_data(mpc, subsref(mpc, s), ordering, dim) );

Error in toggle_reserves>userfcn_reserves_ext2int (line 135)
mpc = e2i_field(mpc, {'reserves', 'zones'}, 'gen', 2);

Error in run_userfcn (line 37)
rv = feval(userfcn.(stage)(k).fcn, rv, args);

Error in ext2int (line 211)
mpc = run_userfcn(mpc.userfcn, 'ext2int', mpc);

Error in opf (line 195)
mpc = ext2int(mpc);

Error in runopf (line 75)
[r, success] = opf(casedata, mpopt);

Error in runopf_w_res (line 58)
[varargout{1:nargout}] = runopf(mpc, varargin{2:nargin});

Error in most_ammar2 (line 39)
r1 = runopf_w_res(mpc, mpopt);
Kind Regard,

Mohammad Ammar Raza


most_ammar2.m
Description: Binary data


ex_case118.m
Description: Binary data