Hi All,

I am not a matpower user but a software developer who needs to integrate with 
matpower.

What I want is to add new constrains and variable to a case selected by user of 
the software.
For example if user selects case9 then I want to add new constrains in 
"toggle_reserve"  file.
I want to add new constrains here :

%% constraints
I = speye(ngr);                     %% identity matrix
Ar = [sparse(1:ngr, igr, 1, ngr, ng) I];
ur = mpc.gen(igr, PMAX) / mpc.baseMVA;
lreq = r.req / mpc.baseMVA;


but because this file is already compiled and loaded by MatLab AND matlab does 
not allow to  load m-file dynamically (based on my understanding), I can not 
update + user toggle_reserve.m file.

Now is there a way I can update constraints programmatically ???? 
I have access to objects such as "om = userfcn_reserves_formulation(om, args)
" and "mpc"


Thanks.
sumit



Reply via email to