pwrs.core.cpf_current_mpc#

pwrs.core.cpf_current_mpc.cpf_current_mpc(mpc, mpct, Ybus, Yf, Yt, ref, pv, pq, V, lam, mpopt)[source]#

Build the current CPF case at loading level lam.

Forms the intermediate MATPOWER case corresponding to the present continuation parameter value by interpolating between the base case mpc and target case mpct, then updates the solved bus, generator, and branch quantities using pfsoln.

Parameters:
  • mpc (dict) – Internal MATPOWER base case struct.

  • mpct (dict) – Internal MATPOWER target case struct.

  • Ybus (sparse matrix) – Bus admittance matrix.

  • Yf (sparse matrix) – Branch “from” admittance matrix.

  • Yt (sparse matrix) – Branch “to” admittance matrix.

  • ref (array_like) – Reference bus index set.

  • pv (array_like) – PV bus index set.

  • pq (array_like) – PQ bus index set.

  • V (array_like) – Complex bus voltage solution at the current CPF step.

  • lam (array_like or float) – Continuation parameter value.

  • mpopt (dict) – MATPOWER options struct.

Returns:

Updated MATPOWER case struct for the current continuation point.

Return type:

dict