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:
warmstart
- warm start data
- mp.task_cpf Methods:
task_cpf()
- constructor, inherits frommp.task_pf
constructorrun_pre()
- call superclassrun_pre()
for base and target inputsnext_mm()
- handle warm start of continuation iterationsdm_converter_class()
- select data model converter classdata_model_class_default()
- select default data model constructordata_model_build()
- build base and target data modelsnetwork_model_build()
- build base and target network modelsnetwork_model_x_soln()
- update network model solutionnetwork_model_update()
- evaluate port injection solutionmath_model_class_default()
- select default math model constructormath_model_opt()
- add warmstart parameters to math model solve options
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
-
- 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
andmpopt.pf.current_balance
.
- math_model_opt(mm, nm, dm, mpopt)
Call superclass
math_model_opt()
then add warmstart parameters, if available.