cpf_corrector

cpf_corrector(Ybus, Sbusb, V_hat, ref, pv, pq, lam_hat, Sbust, Vprv, lamprv, z, step, parameterization, mpopt)

cpf_corrector() - Solves the corrector step of a continuation power flow.

[V, CONVERGED, I, LAM] = CPF_CORRECTOR(YBUS, SBUSB, V_HAT, REF, PV, PQ, ...
                                    LAM_HAT, SBUST, VPRV, LPRV, Z, ...
                                    STEP, PARAMETERIZATION, MPOPT)

Computes the corrector step of a continuation power flow using a
full Newton method with selected parameterization scheme.

Inputs:
    YBUS : complex bus admittance matrix
    SBUSB : handle of function returning nb x 1 vector of complex
            base case injections in p.u. and derivatives w.r.t. |V|
    V_HAT :  predicted complex bus voltage vector
    REF : vector of indices for REF buses
    PV : vector of indices of PV buses
    PQ : vector of indices of PQ buses
    LAM_HAT : predicted scalar lambda
    SBUST : handle of function returning nb x 1 vector of complex
            target case injections in p.u. and derivatives w.r.t. |V|
    VPRV : complex bus voltage vector at previous solution
    LAMPRV : scalar lambda value at previous solution
    STEP : continuation step length
    Z : normalized tangent prediction vector
    STEP : continuation step size
    PARAMETERIZATION : Value of cpf.parameterization option.
    MPOPT : Options struct

Outputs:
    V : complex bus voltage solution vector
    CONVERGED : Newton iteration count
    I : Newton iteration count
    LAM : lambda continuation parameter

See also runcpf().