mp.task_cpf

class mp.task_cpf

Bases: mp.task_pf

mp.task_cpf - MATPOWER task for continuation power flow (CPF).

Provides task implementation for the continuation power flow problem.

This includes the iterative solving of the mathematical model (using warm restarts) after updating the problem data, e.g. when enforcing certain limits.

mp.task_cpf Properties:
mp.task_cpf Methods:

See also mp.task, mp.task_pf.

Constructor Summary
task_cpf()

Constructor, inherits from mp.task_pf constructor.

Property Summary
warmstart

(struct) warm start data, with fields:

  • clam - corrector parameter lambda

  • plam - predictor parameter lambda

  • cV - corrector complex voltage vector

  • pV - predictor complex voltage vector

Method Summary
run_pre(d, mpopt)

Call superclass run_pre() for base and target inputs.

next_mm(mm, nm, dm, mpopt, mpx)

Handle warm start of continuation iterations, after problem data update.

dm_converter_class(d, mpopt, mpx)

Implement selector for data model converter class based on superclass constructor.

data_model_class_default()

Implement selector for default data model constructor.

data_model_build(d, dmc, mpopt, mpx)

Call superclass data_model_build() for base and target models.

network_model_build(dm, mpopt, mpx)

Call superclass network_model_build() for base and target models.

network_model_x_soln(mm, nm)

Call superclass network_model_x_soln() then update solution in target network model.

network_model_update(mm, nm)

Call superclass network_model_update() then update port injection solution by interpolating with parameter lambda.

math_model_class_default(nm, dm, mpopt)

Implement selector for default mathematical model constructor depending on mpopt.pf.v_cartesian and mpopt.pf.current_balance.

math_model_opt(mm, nm, dm, mpopt)

Call superclass math_model_opt() then add warmstart parameters, if available.