QSTS Reference

Public API

Sparlectra.SCFSeries — Type
SCFSeries

An SCF time series in memory: a base case and one list of patch operations per step.

  • name, created_by, provenance: from the manifest.
  • base: the base case (SCFCase).
  • index: the ScenarioIndex of the base case with origin :scf_series. It takes the QSTS vocabulary of PatchOp, maps the node ids to buses and holds the values of the parked units.
  • parked: ids of the appliances (sym_load, sym_gen, source) with status 0 in the base case. build_net(series) parks them with set in_service 0; a step brings one back with set in_service 1.
  • steps: one SCFSeriesStep per step.
  • ops: the patch operations of each step, the full delta against the base case (scale refers to the base value). An empty list is the base state.
  • step_minutes: the step length in minutes, nothing for irregular steps.

The keyword constructor SCFSeries(; name, base, steps, ops, step_minutes = nothing, provenance = Dict(), created_by = "Sparlectra <version>") runs the checks of read_scf_series and names step and op of a failure.

source
Sparlectra.SCFSeriesStep — Type
SCFSeriesStep(step, timestamp, label)

One step of an SCF time series: the step number (steps run from 1 without gaps, the base case is no step), the time timestamp in ISO 8601 UTC (YYYY-MM-DDThh:mm[:ss]Z, empty without time reference) and the axis label.

source
Sparlectra.build_net — Method
build_net(series::SCFSeries; config = active_sparlectra_config()) -> Net

The base net of an SCF time series: the net of the base case (build_net(series.base; config)), with every appliance the base case marks with status 0 parked through set in_service 0. The parking is the base state of the series and stays. A step applies with apply!(net, series.ops[k], series.index) and goes back with restore!.

source
Sparlectra.is_scf_series — Method
is_scf_series(path) -> Bool

true when path is a zip file whose top level holds the entry series.json, the manifest of an SCF time series. The content decides, not the file name. Only the end of the file is read unless that end names the manifest, so the probe stays cheap on a large CGMES delivery. A file that ends like a zip naming series.json but cannot be read as a zip raises the ArgumentError of the zip reader.

source
Sparlectra.read_scf_series — Method
read_scf_series(path) -> SCFSeries

Read an SCF time series zip and check everything before the first step:

  • the zip holds exactly series.json, base.scf.json and delta.csv;
  • the manifest: format sparlectra-scf-series, format_version exactly 1.0, steps numbered 1 to n, timestamps on every step or none and strictly increasing;
  • the base case: the checks of read_scf_json, plus the build-order fields every component needs;
  • delta.csv: header step,op,target,id,field,value, six fields, finite numbers, a known step, rows sorted by step, every op through the checks of validate_scenarios on the series index, one write per id and field in a step (scale without field writes p and q), no other op on a unit the step parks with set in_service 0, and a set, scale or status 1 on a unit the base case parks only together with set in_service 1.

Every error is an ArgumentError that names the entry and, for delta.csv, the line. Builds no net, except one build of the base case when it parks units (their values go to index.parked_values).

source
Sparlectra.write_scf_series — Method
write_scf_series(path, series) -> String

Write series as one zip with the entries series.json, base.scf.json and delta.csv, compressed, and return the path. The entry texts are deterministic: writing what read_scf_series returns gives the same entries again. The zip bytes depend on the zlib build, so compare series by their entries, not by the zip file.

source
Sparlectra.QSTS_BRANCH_QUANTITIES — Constant
QSTS_BRANCH_QUANTITIES

Quantities per branch of a snapshot run, in the order of the second axis of QstsResult.branch_values: the terminal flows p_from_mw, q_from_mvar, p_to_mw, q_to_mvar (from calcNetLosses!), loading_pct (only with a rating), p_loss_mw, q_loss_mvar, tap_ratio and shift_deg (only for a transformer with a tap controller), and the SV flow differences sv_dp_from_mw, sv_dq_from_mvar, sv_dp_to_mw, sv_dq_to_mvar.

source
Sparlectra.QSTS_BUS_QUANTITIES — Constant
QSTS_BUS_QUANTITIES

Quantities per bus of a snapshot run, in the order of the second axis of QstsResult.bus_values: vm_pu, va_deg (the solved state) and sv_dvm_pu, sv_dva_deg (model minus SV of the snapshot, the angle aligned per electrical island).

source
Sparlectra.QSTS_CONTROLLER_QUANTITIES — Constant
QSTS_CONTROLLER_QUANTITIES

Quantities per tap and bank controller of a sequential run, in the order of the second axis of QstsResult.controller_values: position (model step of a modelled transformer, else the tap position counted from the ratio 1.0 as in buildTapControllerReportRows; a switched bank bs_mvar / step_mvar; no value for a continuous SVC), bs_mvar (banks), ref_position (the position the series gives the step), dpos_ref (simulated minus reference position in steps), moves (net move in the step with its sign, 0 in a resync step), at_limit and locked (0 or 1; locked by the dead time). A snapshot run has no controller elements.

source
Sparlectra.QSTS_STEP_QUANTITIES — Constant
QSTS_STEP_QUANTITIES

Quantities per step of a QSTS run, in the order of the first axis of QstsResult.step_values: converged (0 or 1), iterations, outer_iterations, n_frozen, total_p_loss_mw, total_q_loss_mvar, n_low_vm (energized buses below power_flow.plausibility.vmin_warn in a converged step, no value when the threshold is 0), and the SV comparison sv_n_nodes, sv_max_dvm_pu, sv_rms_dvm_pu, sv_max_dva_deg, sv_rms_dva_deg, sv_va_offset_deg, sv_tn_spread_pu, sv_n_terminals, sv_max_dp_mw, sv_rms_dp_mw, sv_max_dq_mvar, sv_rms_dq_mvar.

A sequential run (qsts.mode = sequential) adds, for a converged step: resync (1 in a resync step), n_moves (the counted tap and bank steps of the step), n_islands (electrical islands, one without a source included), n_isolated (buses without a value because they are isolated, in an SCF or event series also those of an island without a source) and shed_load_mw (the load on them), max_dvm_step_pu and max_dp_step_mw (largest change of a bus voltage and of a branch flow p_from_mw against the step before, only when that step converged), n_vm_low, n_vm_high (buses outside qsts.vm_min_pu, qsts.vm_max_pu) and n_overload (branches above qsts.loading_max_pct). A snapshot run leaves them without a value.

source
Sparlectra.QstsElements — Type
QstsElements

The elements of a QSTS run, by position in the template. Bus fields: bus_ids (the address, see runQsts), bus_names, bus_vn_kv, bus_reported (false for the star point of a three-winding transformer, which has values in bus_values but no rows in the long table). Branch fields: branch_ids, branch_names, branch_kind (:line, :transformer, :equivalent_branch for a CGMES EquivalentBranch), branch_from, branch_to (bus positions) and branch_rating_mva (NaN without a rating).

Controller fields, filled by a sequential run only, one entry per tap controller (followers belong to their master) and per shunt bank controller in the order of collect_outer_controllers: controller_ids (<actuator address>#OLTC, #PST, #SCHRAEG, #MSC or #SVC), controller_names (control_name), controller_kind (:OLTC, :PST, :SCHRAEG, :MSC, :SVC), controller_actuator (address of the transformer, of the bank's shunt when the series addresses it, else of the bank's bus) and controller_target (address of the regulated bus, empty without one).

source
Sparlectra.QstsResult — Type
QstsResult

The result of runQsts:

  • name, origin (:cgmes_series, :scf_series), mode (:snapshots, :sequential), base_step (0 for an SCF series, whose base case is no step), step_minutes (nothing for irregular steps);
  • base: the base case solve as a QstsStepInfo with step 0;
  • steps: one QstsStepInfo per step;
  • elements: the QstsElements;
  • bus_values[bus, q, step], branch_values[branch, q, step], step_values[q, step], controller_values[controller, q, step] with q the position in QSTS_BUS_QUANTITIES, QSTS_BRANCH_QUANTITIES, QSTS_STEP_QUANTITIES, QSTS_CONTROLLER_QUANTITIES; NaN is no value;
  • switching: the net moves of a sequential run, see qstsSwitching; metrics: its metrics, see qstsMetrics; both empty in a snapshot run;
  • max_iter, tol, snapshot_controls, tap_control, map_energy_source, qsts (the qsts section of the run), event_list (source file and row count of an event series, see qstsEventSeries, empty otherwise): the settings the manifest records;
  • notes: the changes of the step configuration against the passed one, a base case without convergence and similar, and one note per converged solve (base case or step) with an energized bus below power_flow.plausibility.vmin_warn, naming the lowest bus and its voltage; the same text is logged as a warning.

qstsLongTable and qstsValues read it, writeQstsResults writes it.

source
Sparlectra.QstsSVReference — Type
QstsSVReference

The SV state of one snapshot, the reference of the SV comparison of a snapshot run. Built by buildCGMESSeriesUnion from the direct import of each snapshot, with the exclusions of compareWithSV:

  • tn_buses, vm_pu, va_deg: one entry per topological node of the snapshot with an SvVoltage (v / vn and angle), with the union buses that node covers;
  • branch, side, p_mw, q_mvar: one entry per SvPowerFlow at a line or transformer terminal, with the branch position in the union template and the side (:from, :to) the snapshot import gives the terminal.
source
Sparlectra.QstsStepInfo — Type
QstsStepInfo

One solve of a snapshot run (step 0 is the base case):

  • step, label, timestamp (ISO 8601 UTC, empty without time), is_base (the step whose snapshot is the base case);
  • status: :solved, :not_converged (the solve, or one AC island of a net with several, ended without convergence) or :solver_error (the solver threw; message holds the first line);
  • control_status: the status of the controller run (:converged, :max_outer_iterations, :blocked, ...) with qsts.snapshot_controls = true, :none without controllers; a controller status other than convergence does not change status;
  • iterations: Newton iterations (with controllers the larger of the sum over all passes and the last pass; for a non-converged AC island the iterations of that island), outer_iterations;
  • residual: differences between the snapshot and template plus delta that the delta cannot express (CGMES), else 0;
  • n_frozen: buses in electrical islands without a slack and without a PV bus; the solver holds their start voltage, so they get no values;
  • reference: slack buses after the solve (bus positions);
  • message: first line of the solver error; for AC islands that did not converge the message of the solve (island, buses, iterations) and status, iterations, reason and final mismatch of each such island; empty otherwise.
source
Sparlectra.qstsLongTable — Method
qstsLongTable(r::QstsResult) -> (step, element_id, quantity, value)

The long format of a snapshot run as a named tuple of four equally long column vectors (Vector{Int}, Vector{String}, Vector{String}, Vector{Float64}). step is the position in the series (1 to n), element_id the address of the bus, branch or controller (empty for a step quantity), quantity a name from QSTS_STEP_QUANTITIES, QSTS_BUS_QUANTITIES, QSTS_BRANCH_QUANTITIES or QSTS_CONTROLLER_QUANTITIES, the unit in its name. A row exists only for a solved value. The rows run by step, then step quantities, buses, branches and controllers by position, each element's quantities in list order. A named tuple of vectors is a Tables.jl column table, so DataFrame(qstsLongTable(r)) works without a dependency in Sparlectra.

source
Sparlectra.qstsValues — Method
qstsValues(r::QstsResult, element_id, quantity) -> Vector{Float64}

The series of one quantity of one element over all steps, NaN where the long table has no row (not solved, out of service, isolated, no rating). An empty element_id selects a step quantity. Throws ArgumentError for an unknown element or a quantity that does not belong to its kind.

source
Sparlectra.runQsts — Method
runQsts(series::SCFSeries; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> QstsResult
runQsts(union::CGMESSeriesUnion; config, ...) -> QstsResult

QSTS mode A (qsts.mode = snapshots): solve every step of a series on its own. The input is not changed.

  1. Checks, each an ArgumentError with the key named: qsts.mode = snapshots, power_flow.solver = rectangular, power_flow.mode not auto, power_flow.external_grid.enabled = false; for a CGMES union also cgmes_import.* equal to the configuration the union was built with. The deltas pass validate_scenarios against the template, but a tap_pos op on a transformer with a tap controller (of the case or of control.controllers) is refused only when the controllers run (qsts.snapshot_controls = true with control.enabled).
  2. The base case: the template solved with config (for an SCF series the base case of the file, for a CGMES union the snapshot of its base step).
  3. Every step: a fresh copy of the unsolved template, the full delta of the step (apply!), one solve. A step of an SCF series starts from the bus voltages of the base solution. A step of a CGMES union starts from the state of its own snapshot: its delta carries the start of every bus the snapshot keeps in service (the SV voltage, without one the neighbour start of the importer), whatever the base case gives; there is no warm start and no fallback to one. Steps of an SCF series are marked for isolation again by the rule of the power flow (markIsolatedBuses! with links = true: a bus behind a closed link is in service with its link group), and a part of the net without a source (no unit with P > 0 or voltage regulation) is isolated with its injections zeroed, as the CGMES import does; one note per such step names the buses and the load left unsupplied. A CGMES delta carries the isolation itself, and a bus it isolates only for lack of a branch of its own gets the values of its link group while the group is solved. An isolated bus in a closed-link group with a live member starts at the voltage of the first live member, since the solver starts the group from its smallest bus.

Taps and shunt banks stay at the values of each snapshot: base and steps run with control.enabled = false. With qsts.snapshot_controls = true the control section of config applies in the base case and in every step. The step configuration switches off the start generators and the rescue paths (power_flow.rescue, dc.fallback, wrong_branch_rescue), power mode and the island parallelism, and switches the flat start off when the steps have a start (a converged base case, a CGMES snapshot); QstsResult notes list every key that differs from config.

The steps run in parallel over Julia threads under the runtime.parallel switches of config (the keywords override them); parallel and serial runs give identical results. progress(done, total) is called once per finished step.

Element addresses: for a CGMES union the mRID (union topological node, line, two-winding transformer, transformer end of a three-winding leg, <PowerTransformer mRID>#star, <mRID>#<class> for a reused mRID); the node addresses follow the base step. For an SCF series the component id.

With qsts.mode = sequential the SCF method runs QSTS mode B instead: the steps in order, taps and banks carried from step to step; see runQsts(::AbstractVector{SCFSeries}); the CGMES method does the same.

source
Sparlectra.writeQstsResults — Method
writeQstsResults(dir, rs::AbstractVector{QstsResult}; format = result_csv_format()) -> Vector{String}

Write the results of a run on several series, each into dir/series_<k> as writeQstsResults writes one result; each manifest adds series (k) and n_series. Returns all paths in series order.

source
Sparlectra.writeQstsResults — Method
writeQstsResults(dir, r::QstsResult; format = result_csv_format()) -> Vector{String}

Write a QSTS run into dir (created when missing) and return the paths, four for a snapshot run:

  • qsts_values.csv: the long format of qstsLongTable, columns step, element_id, quantity, value, written one step at a time;
  • qsts_steps.csv: step, label, timestamp, is_base, status, control_status, iterations, outer_iterations, residual, n_frozen, reference, message, with reference the addresses of the slack buses joined by |;
  • qsts_elements.csv: element_id, kind, name, from, to, vn_kv, rating_mva for every bus (kind bus, or star_point for the star point of a three-winding transformer), branch (line, transformer) and, in a sequential run, controller (controller, with the actuator in from and the regulated bus in to);
  • qsts_manifest.json: format sparlectra-qsts-result, format_version 1.0, name, origin, mode, number of steps, base step, step length, the base case, power_flow.max_iter and tol, qsts.snapshot_controls, cgmes_import.tap_control and map_energy_source, and the notes; a sequential run adds the qsts keys of mode B and n_failed.

A sequential run writes two files more:

  • qsts_switching.csv: qstsSwitching, columns step, element_id, old, new, steps, trigger;
  • qsts_metrics.csv: qstsMetrics, columns element_id, metric, value.

The CSV files follow format (output.csv_format); numbers are written with 15 significant digits. The content holds no times, so two runs of the same input give the same bytes.

source
Sparlectra.qstsMetrics — Method
qstsMetrics(r::QstsResult) -> (element_id, metric, value)

The metrics of a sequential run as a named tuple of three column vectors:

  • the run (element_id empty): n_steps_solved, n_failed, switch_count_total, n_hunting_total, n_resync, loss_energy_mwh (sum of total_p_loss_mw times the step length over the solved steps);
  • each controller: switch_count (sum of the counted steps), n_hunting (patterns of three counted moves with alternating sign within qsts.hunting_window steps; a resync step breaks a pattern), steps_at_limit, steps_locked, max_abs_dpos_ref, rms_dpos_ref;
  • each bus outside qsts.vm_min_pu or qsts.vm_max_pu and each branch above qsts.loading_max_pct in at least one step: <kind>_episodes (consecutive steps in violation; a step without a value ends one), <kind>_steps, <kind>_minutes and <kind>_max_pu or _max_pct (the largest excess beyond the limit), with <kind> vm_low, vm_high or overload.

The step length is step_minutes of the series, else the distance to the next timestamp; without either the _minutes rows and loss_energy_mwh are left out. Empty for a snapshot run; written as qsts_metrics.csv by writeQstsResults.

source
Sparlectra.qstsSwitching — Method
qstsSwitching(r::QstsResult) -> (step, element_id, old, new, steps, trigger)

The tap and bank moves of a sequential run as a named tuple of equally long column vectors, one row per step and controller whose position changed (the net move of the step: a search back and forth inside one controller run is not listed, it shows in outer_iterations). old is the position at the end of the step before (the carried one), new the position at the end of the step, steps = new - old, positions as in QSTS_CONTROLLER_QUANTITIES. trigger is "control" (counted in the switch count), "range" (the position stood outside the control range before the solve) or "resync" (a resync step, which starts from the position of the series). Empty for a snapshot run; written as qsts_switching.csv by writeQstsResults.

source
Sparlectra.runQsts — Method
runQsts(series::AbstractVector{SCFSeries}; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> Vector{QstsResult}

QSTS on several SCF series, one QstsResult per series. With qsts.mode = snapshots each series is a snapshot run (see runQsts), one after the other. With qsts.mode = sequential it is QSTS mode B; runQsts(series::SCFSeries; config) with that mode is the run on one series.

Mode B solves the steps of a series in order, each on a fresh copy of the template with the full delta of the step and the outer-loop controllers of the control section running (control.enabled = false runs without them). The state of the tap controllers (masters and followers) and the shunt bank controllers goes from the last solved step to the next:

  1. The base case is solved with the controllers; its solution is the start of step 1.
  2. Every step: the start voltages (qsts.sequential_start = previous: the solution of the last solved step, snapshot: the solution of the same step in a snapshot run without controllers; a bus without a value there takes the base solution), the full delta (for a CGMES union without the snapshot start values of a snapshot run), the taps and banks the series gives the step read as reference, then the carried taps and banks written absolutely, then one solve with the controllers.
  3. Resync steps (step 1 always, and with qsts.resync_every = n every step with (k - 1) % n == 0) keep the taps and banks of the series and clear the dead time and the hunting memory.
  4. qsts.dead_time_steps = d locks a controller for the d steps after a counted move (enabled = false in those steps). A locked controller that does not stand at an end of its range also holds every controller with a larger priority number in that step.
  5. A step that does not converge holds taps, banks and start voltages of the last solved step; its dead time runs on.

A tap_pos op on a transformer with a tap controller is the reference position of its step (notes says so). The step configuration is the one of a snapshot run with controllers, the island parallelism follows runtime.parallel for one series and is off for several. The checks of a snapshot run apply, with qsts.mode = sequential.

The result adds controller elements (QstsElements.controller_ids), the values of QSTS_CONTROLLER_QUANTITIES, the step quantities of mode B in QSTS_STEP_QUANTITIES, the switching list (qstsSwitching) and the metrics (qstsMetrics).

Several series run in parallel over Julia threads under runtime.parallel (the keywords override it); the steps of one series run in order. Parallel and serial runs give identical results. progress(done, total) is called once per finished step over all series in mode B, once per step and series in mode A.

source
Sparlectra.QstsEventList — Type
QstsEventList

The events of a sequential QSTS run, one entry per CSV row in file order: step (from 1), element_id (the address of the element: the component id of an SCF case, the mRID of a CGMES union element), action (:open, :close, :in, :out) and line (the CSV line, named in later errors). source is the file name without its path. Read with readQstsEvents, turned into a series with qstsEventSeries.

source
Sparlectra.qstsEventSeries — Method
qstsEventSeries(base::SCFCase, events::QstsEventList; n_steps = largest event step, name) -> SCFSeries
qstsEventSeries(union::CGMESSeriesUnion, events::QstsEventList; n_steps = largest event step) -> CGMESEventSeries

A series driven by an event list instead of snapshot deltas: step k holds the full delta of the switching state after all events up to step k (an element keeps its state until its next event; an event that restores the base state removes the op). Nothing else changes between steps, so a sequential run (runQsts with qsts.mode = sequential) shows the voltage jumps, flow shifts, violations and islands of the switching sequence. The SCF series has no time reference and carries the source and the row count under provenance["event_list"], which write_scf_series keeps. A snapshot run refuses an event series, and so does qsts.sequential_start = snapshot. Errors name the CSV line of the event.

source
Sparlectra.readQstsEvents — Method
readQstsEvents(path) -> QstsEventList

Read an event list. The file is UTF-8 CSV with comma and LF (a byte order mark is dropped); the first line is exactly step,element_id,action,value, every other non-empty line one event:

ColumnRule
stepwhole number from 1
element_idnot empty; resolved against the series by qstsEventSeries
actionopen, close (branch, transformer, switch) or in, out (unit, load, shunt)
valueempty

An element takes one event per step. A state holds until the next event of the same element. Every error is an ArgumentError naming the file and the line.

source
Sparlectra.QstsChart — Type
QstsChart

The chart of one quantity of one element over the steps of a QstsResult, built by qstsChart: element_id, quantity, labels (axis label per step), values (NaN where the step has no value), band ((low, high) with NaN for an open side, nothing without a band) and svg, the chart as SVG text. show(io, MIME"image/svg+xml"(), c) writes the SVG, so notebooks and Documenter display it directly.

source
Sparlectra.qstsChart — Method
qstsChart(r::QstsResult, element_id, quantity; band = :auto, width = 720, height = 260) -> QstsChart

The time series of one quantity of one element (an empty element_id selects a step quantity, see qstsValues) as an SVG chart: one point per step with a value, joined by a line that breaks at a step without a value, each point with a tooltip (<title>: step, label, value), the axis labelled with the first and the last step label and the value range. band = :auto draws the voltage band qsts.vm_min_pu/qsts.vm_max_pu for vm_pu and the limit qsts.loading_max_pct for loading_pct as dashed lines; a (low, high) tuple draws that band (NaN leaves a side open), nothing none. The SVG holds no script and no time stamp, so equal results give equal bytes. Throws ArgumentError for an unknown element or quantity and for a band of another form.

source
Sparlectra.CGMESEventSeries — Type
CGMESEventSeries

An event series on the union network of a CGMES snapshot series, built by qstsEventSeries: union (its template in the state of the base step is the base of every step), ops (the full delta of each step), labels ("1" to "n") and event_list (source file and row count). The steps have no time reference and no SV. Run it with runQsts and qsts.mode = sequential.

source
Sparlectra.runQsts — Method
runQsts(unions::AbstractVector{CGMESImporter.CGMESSeriesUnion}; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> Vector{QstsResult}

QSTS on several CGMES series unions, one result per union: one snapshot run after the other with qsts.mode = snapshots, the unions in parallel and the steps of each in order with qsts.mode = sequential, as for runQsts(::AbstractVector{SCFSeries}). Every union must have been built with the cgmes_import settings of config.

source
Sparlectra.runQsts — Method
runQsts(series::CGMESEventSeries; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> QstsResult

The sequential run (qsts.mode = sequential) of an event series on a CGMES union; see runQsts(::AbstractVector{SCFSeries}). Like a step of an SCF series, each step is marked for isolation by the rule of the power flow and an island without a source is isolated. config.cgmes must equal the configuration the union was built with.

source
Sparlectra.runQsts — Method
runQsts(union::CGMESImporter.CGMESSeriesUnion; config, parallel_enabled = nothing, parallel_max_tasks = nothing, parallel_min_work_items = nothing, progress = nothing) -> QstsResult

QSTS on the union network of a CGMES snapshot series; see the SCF method of runQsts for the run itself. Step k applies the full delta of snapshot k (ops and control_ops: banks take the SSH sections, taps the SSH steps with cgmes_import.tap_control = true and the SvTapStep positions with the default false), the base case is the snapshot of union.base_step, and every step is compared with the SV state of its snapshot (union.sv). With qsts.mode = snapshots each step starts from the state of its snapshot (start_ops of its delta, see CGMESImporter.CGMESSnapshotDelta), not from the base solution. config.cgmes must equal union.import_config field by field, or template, delta and run would not fit together; an ArgumentError names the keys that differ.

With qsts.mode = snapshots every step is solved on its own (mode A). With qsts.mode = sequential the steps run in order with the tap and bank state carried from step to step (mode B, see runQsts(::AbstractVector{SCFSeries})); the taps and banks of each snapshot are then the reference positions of its step.

source

Internals