Hello All,
I would know for optimization by matlab the following procedure:
I know that savecase() function is used to create a MATPOWER case file from a
case struct. For example, I suppose want to take an existing case file,
say case30.m, and apply a set of changes to it using apply_changes() and
save the result as a new MATPOWER case file called case30new.m. The solution
could to be with the following code …
mpc0 = loadcase('case30');
mpc = apply_changes(label, mpc0, chgtab);
savecase('case30new', mpc);
Now I can use case30new as you would any of the included cases. E.g.
r = runopf('case30new');
What would the chgtab array look like if I wanted to just
delete buses and branches from the case30?