mp.task_shared_legacy

class mp.task_shared_legacy

Bases: handle

mp.task_shared_legacy - Shared legacy task functionality.

Provides legacy task functionality shared across different tasks (e.g. PF, CPF, OPF), specifically, the pre-processing of input data for the experimental system-wide ZIP load data.

mp.task_pf Methods:

See also mp.task.

Method Summary
run_pre_legacy(d, mpopt)

Handle experimental system-wide ZIP load inputs.

[d, mpopt] = task.run_pre_legacy(d, mpopt)
Inputs:
  • d – data source specification, currently assumed to be a MATPOWER case name or case struct (mpc)

  • mpopt (struct) – MATPOWER options struct

Outputs:
  • d – updated value of corresponding input

  • mpopt (struct) – updated value of corresponding input

Moves the legacy experimental system-wide ZIP load data from mpopt.exp.sys_wide_zip_loads to d.sys_wide_zip_loads to make it available to the data model converter (mp.dmce_load_mpc2).

Called by run_pre().