Hi Cynthia,

See responses to your questions below …

    Ray


> On Jun 30, 2019, at 5:06 PM, W Ruoyu <[email protected]> wrote:
> 
> <snip>
> Could you please tell me the meaning of Vm = results.bus(:,8)? Why would it 
> output the voltage magnitude at the nose point for all the buses?
This is simply to demonstrate how to extract the vector of bus voltage 
magnitudes at the nose point, in case you were interested in that information.
> and how could I output the maximum real power at the nose point?
When setting the cpf.stop_at option to 'NOSE' (and yes, case does matter), the 
results struct contains the solution at the nose point where the continuation 
procedure terminates. So you can get the vector of power generation from 
results.gen(:, PG). 
> If the final result I need is (maximum P - initial P)/(maximum P), should I 
> use the maxloadlim function?
The maxloadlim() function is another approach to finding the nose point, via 
OPF instead of CPF, so there’s no need to use it if CPF is finding the nose 
point without trouble. You would simply use something like …

initP = sum(    mpc.gen(:, PG));
maxP  = sum(results.gen(:, PG));
desired_result = (maxP - initP) / maxP;

Reply via email to