If k is the index of the generator in question …

define_constants;
mpc = loadcase(‘yourcasefile’);
mpc.gen(k, GEN_STATUS) = 0;
results  = runopf(mpc);

— Ray


On Jun 16, 2014, at 5:12 AM, Gamze Dogan <gamgam...@hotmail.com> wrote:

> Hi, I have a question about the status of lines and generators. 
> 
> 
> I want one of  my generators to be out-of-service in all cases, but my opf 
> sometimes puts it in service (for emergency cases I suppose).
> 
> How can I make sure that the generator will not be used? 
> 
> (I'm changing the out-of-service generator in each loop so I do not want to 
> erase it from my case)
> 
> 
> 
> Thank you for your help,
> 
> 
> 
> Gamze Dogan                                     
> 

Reply via email to