I’ll also just mention that if the Newton power flow didn’t converge within 10 
iterations, it is pretty unlikely that giving it more will help. It’s probably 
a divergent case.

    Ray


On Dec 10, 2020, at 3:34 PM, Russ Patterson 
<[email protected]<mailto:[email protected]>> wrote:

Hi Carlos,

Thank you, outstanding.  Yes, I will do as you suggest.

Best regards,
russ

Carlos wrote:

The options structure must be passed along as an optional argument to runpf().  
Something along these lines:

method 1: tell mpoption to modify a specific field in the returned structure
>> myoptions = mpoption('pf.nr.max_it', 20)
>> mpc_out = runpf('case30', myoptions);

method 2: create a default options structure and manually modify a field in it:
>> myoptions = mpoption;
>> myoptions.pf.nr.max_it = 20;
>> mpc_out = runpf('case30', myoptions);

Note that all MATPOWER functions also use the traditional MATLAB "help" 
documentation;  I suggest that you do these at least:

>> help caseformat
>> help mpoption
>> help idx_bus
>> help idx_gen
>> help idx_brch
>> help idx_cost
>> help runpf





Reply via email to