Formulas: from the equation in the source to the function in the code¶
Every operation in the package that appears in a paper or a textbook gets one named function,
even when it is called once, so a reader can go from an equation to the code and back. This
catalogue is the index: one row per formula, the function that implements it, the equation in
plain text, the source with a key from REFERENCES.md, and where it is used.
A formula is a pure function in a formulas/ package, cited here once, and the rest of the code calls it
rather than repeating the expression. A new formula function gets its row here in the same change.
Each toolkit has its formulas/. The generation toolkit's (fdia_graph.formulas) holds what the
generator and the loader compute: the network model (formulas.network), the meter noise
(formulas.noise), the attack shapes (formulas.attacks), the temporal features
(formulas.temporal) and the row reduction of the attack search (fdia_graph.formulas.trust). The
analysis toolkit's (fdia_analysis.formulas) holds the rest: estimation (formulas.estimation,
formulas.linalg, and the estimator's measurement function in formulas.measurement), the Jacobian
projections (formulas.projection), the metrics (formulas.metrics), the federated statistics
(formulas.federated) and trusted-meter selection (fdia_analysis.formulas.trust). A row below names
a function by its module, which is in one toolkit only; the two trust modules are named with their
toolkit.
How a formula function is written¶
def swing_zscore(nx: np.ndarray, prev: np.ndarray, scale_t: np.ndarray, metered: np.ndarray) -> np.ndarray:
"""The one-step injection change as a z-score of the bus's typical recent change [FED26], [N, 2]
float32, dimensionless: swing[b] = ([P_inj, Q_inj](t) - [P_inj, Q_inj](t-1)) / scale_t[b].
The difference is divided before it is rounded to float32, as the writer does (`generation.write`)."""
sw = np.zeros((nx.shape[0], 2), np.float32)
sw[metered, 0] = (nx[metered, 1] - prev[metered, 1]) / scale_t[metered, 0]
sw[metered, 1] = (nx[metered, 2] - prev[metered, 2]) / scale_t[metered, 1]
return sw
The rules: the name is the operation, not the caller; the first line of the docstring names the quantity and cites the key with its equation number; the equation follows in plain text, with the shape and unit of the result; the docstring is one to three lines (a few more when the equation needs them) and says of an argument only what its name and type do not; the function is pure (numpy in, numpy out, no I/O, no dataset objects); one test checks it on a case small enough to verify by hand.
Catalogue¶
| formula | function | equation | source | used by |
|---|---|---|---|---|
| regional subspace prior | formulas.federated.block_diagonal_basis, through federated.se.RegionalPrior |
V[cols_k, block k] = V_k from each client's own whitened_svd_basis, zero elsewhere; orthonormal for disjoint column sets |
[EST26], [FED26] | the federated fit of the estimator's prior |
| federated average | formulas.federated.fedavg |
θ = Σ_k (n_k / n) θ_k, in float64, cast back; one client returns its own tensor | [MCM17] | the federated localizers |
| the buses of each client | formulas.federated.interior_boundary, cut_edge_count, attackable_affinity, hop_distance, halo_nodes, through federated.partition.spectral_partition and compute_nodes |
interior: every neighbour in the same client; cut edges: ends in different clients; W = A ⊙ √(m mᵀ), m = heavy at attackable buses; halo: other clients' buses within h hops, own buses first | [VLX07], [FED26] | the federated partition |
| pooled channel moments | formulas.federated.channel_moments, pool_moments, through localization.learned.standardization |
f_a = n_a / n, f_b = n_b / n, mean = mean_a + (mean_b − mean_a) f_b, var = f_a var_a + f_b var_b + (mean_b − mean_a)² f_a f_b; one part returns unchanged | [CGL79] | the learned localizers' standardization, pooled across federated clients |
| per-bus rates and average precision | formulas.metrics.perbus_rates, average_precision, through LocalizerBase.score_perbus and LearnedLocalizer.score_grid |
F1 = 2TP / (2TP + FP + FN), DR = TP / (TP + FN), FR = FP / (FP + TN); AP = Σ (R_n − R_{n−1}) P_n over distinct thresholds, highest first | [KEC25], [DG06] | the federated paper's node-wise table and grid detection |
| per-bus confusion counts and the papers' threshold | formulas.metrics.perbus_counts, perbus_f1_from_counts, tau_from_counts, through LearnedLocalizer.tune_threshold |
F1 = 2TP / (2TP + FP + FN); tau = argmax over the grid of the mean per-bus F1 on the active buses | [KEC25], [FED26] | the learned localizers' validation threshold, summable across clients |
| swing z-score and temporal delta | formulas.temporal.temporal_delta, formulas.temporal.swing_zscore, through generation.write.TimelineWriter.write_temporal_layers (each observed frame against the previous emitted frame, after the walk) |
delta_t = z_t − z_{t−1} at injection-metered buses; swing = delta_t / scale_t | [FED26] | the swing and temporal_delta features, SwingThreshold, DeltaThreshold |
| recent-change scale | formulas.temporal.recent_change_scale (over the observed frames, through generation.write.TimelineWriter.write_temporal_layers) |
scale_t = std over [t − W, t) of the one-step change, plus 1e-3 | [FED26] | the swing feature |
| bus voltage phasors | formulas.network.complex_voltages |
V = |V| e^{jθ} | [AE04, eq. 2.1] | every AC evaluation |
| bus injections | formulas.network.bus_injections (numpy); se.base.SEBase._h_t is its torch twin, kept for callers that differentiate through it and pinned by analysis/tests/test_formulas.py |
S = V ∘ conj(Y V) | [AE04, eq. 2.6] | the estimator's h(x) |
| AC measurement function | formulas.measurement.ac_measurement, called by SEBase._h |
h = [|V|, −Re S, −Im S, θ, Re S_f, Im S_f] | [AE04, eqs. 2.6, 2.8] | every estimator, JacobianFeatures.delta_z |
| AC measurement Jacobian | formulas.measurement.ac_jacobian (pandapower's dSbus_dV and dSbr_dV), called by SEBase._jacobian (the chord Jacobian in fit), pinned to the autograd Jacobian by analysis/tests/test_formulas.py |
∂S/∂θ = j diag(V) conj(diag(I) − Y diag(V)); ∂S/∂|V| = diag(V) conj(Y diag(V/|V|)) + conj(diag(I)) diag(V/|V|); the same for S_f with C_f and Y_f | [AE04, ch. 2], [MP19, dSbus_dV, dSbr_dV] | every estimator |
| AC flow sensitivities | formulas.network.flow_sensitivities, called by AttackArea._spread (rule 3 of the attack-area score, at the window's first true state), pinned to a re-solved power flow by tests/test_formulas.py |
∂P_f/∂P = the first N−1 columns of G J⁻¹, with J = [Re ∂S/∂θ, Re ∂S/∂|V|; Im ∂S/∂θ, Im ∂S/∂|V|] and G = [Re ∂S_f/∂θ, Re ∂S_f/∂|V|] over the non-slack buses, every one holding its injections (ours) | [MP19, dSbus_dV, dSbr_dV] | |
| branch flows | formulas.network.branch_flows; called by Network.flows (so by Measurement.h, the readings of both grids), Emitter.all_flows_from_states and dataset.physics.AdmittanceMixin._clean_flows_full |
S_f = V_from ∘ conj(Y_f V) | [AE04, eq. 2.8] | every emitted flow meter, the clean flow layers, the estimator's h(x) |
| branch admittances | formulas.network.branch_admittances; called by dataset.physics.AdmittanceMixin._admittances (ybus, yf, yt) and by systems.network.Network |
y_tt = y_s + (g + jb)/2, y_ff = y_tt / (t conj t), y_ft = −y_s / conj t, y_tf = −y_s / t; shunts on the diagonal. sides_apart sums the from-side and the to-side terms of Ybus apart, MATPOWER's order, which the IEEE generator's Network takes (matpower_order) |
[MP19, makeYbus] | the loader's admittance matrices; the generators' Network |
| series admittance | formulas.network.series_admittance, called by Case.static_graph and branch_admittances |
y_s = 1 / (r + jx), zero when the branch has no impedance | [MP19, branch model] | the static edge physics |
| accuracy-class error split | MeterPlan.from_placement (the bias), NoiseModel.sample (the jitter) |
bias² + jitter² = SD², jitter = 0.25 SD (JITTER_FRAC) |
[ASP14], the jitter fraction set in this package | every emitted measurement |
| ramp profile | formulas.attacks.ramp_profile, through engine.attacks.episodes.EpisodeDesigns.ramp_step |
dev(i) = rate_up·i for i < rise; peak on the hold; max(0, peak − rate_down·(i − rise − hold)) after | [DAT26] | the At family (the overload Am follows its own goal, overload.overload_goal) |
| attacker's area | formulas.network.subnetwork, engine.attacks.area.AttackArea.hop_area |
the buses within hops branches of the seeds (never the slack, grown over zero-injection boundary buses) and their boundary |
[WU26] | every stealthy family |
| local false state | formulas.network.local_ac_solve, engine.attacks.false_state.FalseState.solve_local |
S_i(V) = V_i conj(Σ_j Y_ij V_j) = S_target_i on the support, every other V held true; Newton on [θ_I, |V|_I], each step halved until the mismatch drops (the full step first, so a plain-Newton iteration is unchanged) | [WU26], [AE04, ch. 2] | Aq, At, Al, Am |
| a scan's load at a generator bus | engine.physics.ScaledSplit (the loads="scaled" setting), through ScanLoads.true_load and scan_generation |
P_load = P_inj + s P_gen,base = s P_load,base with s = P_inj / (P_load,base − P_gen,base), the pools scaling a bus's load and generation by one factor; for a pool solved by an OPF, NetSplit (loads="net") reads a bus with a unit as all generation and any other bus as all load |
[DAT26] | Aq, At, Al, Am, contingency re-solves |
| a bus's scan load over its load elements | formulas.attacks.element_loads, through true_load |
P_e = P_bus(e) · P0_e / Σ P0 over the bus's elements, the pools scaling every load at a bus by one factor | [DAT26] | Aq, At, Al, Am, contingency re-solves |
| operating limits of a false state | formulas.attacks.operating_limits, generator_output, within_limits, limit_tolerance, checked by FalseState.stealthy_state |
per bus V_i^min, V_i^max and the generator limits from the case; every generator's implied output P_gen − (ΔP_inj − ΔP_load), Q_gen − ΔQ_inj within its limits, the true output recovered from the pool's common load and generation scale, ΔP_load the load change the attacker pretends; a generator limit is passed only by more than tol_i = max(0.001, c |z_i| + floor), the accuracy of the bus's injection meter at its true reading z_i as the package simulates it [ASP14] (ours: [WU26, Sec. V-A] leaves tampering below the noise out of its tamper count, and applying that to a limit is this package's step; with SearchSettings.limit_slack="hard" tol_i = 0.001, the paper's limit); a true value already outside a limit is its own bound (the false state may not make it worse); a false state outside is rejected |
[WU26, eqs. 21-23], [ASP14] | Aq, At, Al, Am |
| attack vector | engine.attacks.frames.AttackFrames.attack_vector, called by frame_from_state |
a = h(x_false) - h(x_true), the noiseless reading of the local false state minus that of the true state, added to the true scan so every meter keeps its own noise draw | [WU26] | Aq, At, Al, Am |
| open attack subspace | fdia_analysis.formulas.trust.attack_subspace, sparse_basis, on fdia_graph.formulas.trust.rref |
{H c : H_S c = 0} = H · null(H_S), its basis in reduced row echelon form | [WU26], [AE04, ch. 5] | the trusted-meter selectors |
| attack cost | fdia_analysis.formulas.trust.attack_cost |
the fewest meters the cheapest open attack touches: the sparsest row of the echelon basis (an upper bound on the sparsest vector of the subspace, NP-hard) | [WU26] | TrustedMeters, the DQN reward |
| sparsest attack by row reduction | fdia_graph.formulas.trust.sparsest_rows, called by engine.attacks.rref.RrefSupport.rref_support |
reduce the transposed Jacobian to RREF, move the sparsest row's nonzero columns to the end, reduce again until the sparsest row stops getting sparser, map the rows back; eligible restricts the chased row (an attack that moves a target line) |
[WU26] Sec. IV-D1, [YAN17] | Am with support_method="rref" |
| greedy trusted meters | fdia_analysis.formulas.trust.greedy_trusted_meters, called by trust.base.TrustedMeters |
secure, on the cheapest open attack, the meter whose protection leaves the costliest cheapest attack; ties to the meter the most basis attacks pass through | [WU26], the row-reduction selection | TrustedMeters |
| tamper set of a stealthy frame | engine.attacks.frames.changed_meters, called by frame_from_state |
the metered channels the attack vector moves: the support's and boundary's injections and voltages, the flows on branches touching the support | [WU26] | Aq, At, Al, Am |
| per-scan jitter sigma | NoiseModel.sample |
σ_jit = 0.25 class on an absolute meter (|V| in pu, angles in degrees), 0.25 class |reading| + floor on a relative one (injections and flows: floor 1e-3 MW or MVAr; a current part: 0.25 class |I| + 1e-5 pu) | [ASP14], [C37118] | the noise of every emitted reading, both grids |
| accuracy-class sigma of a scan | NoiseModel.sigmas, through formulas.noise.accuracy_class_sigma (the measured calibration's rule) |
σ_acc = class_v on |V|, degrees(class_va) on the angle, class_x |reading| + floor on injections and flows, class |I| + floor on a current part | [ASP14], [C37118] | the threshold of the fewest-tamper search and At's stealth bound |
| tampered channels | formulas.attacks.tampered_channels, called by the fewest-tamper search |
tampered_m = metered_m and |a_m| > σ_acc,m, with σ_acc the meter's class at its true reading, the noise the file's readings carry | [WU26, eq. 12] with sub-noise changes excluded [WU26, Sec. V-A] (ours: the paper's own noise is flat, 0.03 pu on SCADA and 0.01 pu on WAMS channels; counting with the meter's class is this package's reading) | At with min_tamper, Am |
| tampered devices | formulas.attacks.tampered_devices, called by the fewest-tamper search |
a channel counts toward its device: a bus's SCADA terminal (injections, the flows metered at the bus, a voltage meter without PMU) or its PMU (|V|, angle, and the branch currents read at the bus) | [WU26], the device count of its results | At with min_tamper, Am |
| pool line rating | Overload.use_line_ratings with rating_source="pool" (the default; generate_timeline(..., am_attack=OverloadSettings(rating_margin=...))) |
S_max_l = rating_margin × max over the pool of |S_f,l|, the noiseless from-end apparent flow of every branch (Emitter.all_flows_from_states), rating_margin = 1.25 |
ours: [WU26] states no line limits | Am |
| branch rating | formulas.attacks.branch_ratings, called by Overload.line_ratings (am_attack=OverloadSettings(rating_source="pglib")) |
the PGLib-OPF rate_a of the row with the branch's two end buses, the smallest over parallel rows; the 9,900 MVA placeholder is no rating |
[WU26, eq. 25]; PGLib-OPF v23.07 | Am |
| flow-goal false state | formulas.network.local_flow_solve, called by FalseState.solve_flow_local |
S_i(V) = S_fixed_i at the held buses of the support and |V_f conj(y_f · V)| = target_l on each goal branch l, the free injections (attackable loads and generators) free, least-norm Gauss-Newton steps halved until the residual drops; an active set pins a generator component at the limit (22)-(23) it would pass by more than its bus's injection meter resolves (in the support or on its boundary), a load bus's active change at load_cap times its true load (|ΔD_i| ≤ τ D_i [YUA11]), and holds a bus voltage at its limit (21), then solves again |
[WU26, eqs. 13-14, 21-25], [YUA11] | Am |
| branch currents | formulas.network.branch_currents, called by Emitter._emit_currents and currents_from_states |
I_f = Y_f V, I_t = Y_t V; columns Re I_f, Im I_f, Re I_t, Im I_t | [WU26, eqs. 19-20], [MP19] | the hybrid meters' PMU current channels |
| PMU current sigma | formulas.noise.current_sigma, constants.meters.PMU_CURRENT_CLASS |
σ_re = σ_im = rel |I_end| + 1e-5 pu, rel = 0.01/3 (the whole class) or its jitter part | [C37118] | the emitter's jitter, the fewest-tamper search |
| PMU pseudo voltage | formulas.estimation.pmu_pseudo_links, pmu_pseudo_voltages, through SEBase(solve=SolveConfig(pmu_pseudo=True)) |
V_f = (I_n − y_nn V_n) / y_nf, the mean over the links reaching f; dV_f = R(1/y_nf) dI_n − R(y_nn/y_nf) P_n (d|V_n|, dθ_n), var|V_f| = g_r C g_rᵀ, var θ_f = g_θ C g_θᵀ | [WU26, eq. (3)] | the estimators' pmu_pseudo option |
| power meter floor | constants.meters.POWER_NOISE_FLOOR_MW, WU26_SCADA_NOISE_PU, models.config.MeterSettings.power_floor_mw, sensing.meters.kind_classes |
σ = c |z| + floor on a power meter; floor = 0.001 MW, or power_floor_pu × base MVA when the setting is given (0.03 pu is the SCADA noise of [WU26]'s case studies) |
[ASP14]; the floor is ours; [WU26, Sec. V-A] | every family |
| overload target sets | Overload.target_sets, _partner, called by am_overload_design |
from one random order of the eligible lines, each line a with the first other eligible line b whose ends lie inside a's attack area (the buses within hops of a's ends), each pair once, at most AM_LINE_TRIES |
[WU26, case studies] | Am |
| overload goal | engine.attacks.overload.Overload.overload_goal |
S_{l,t} = S_true_{l,t} + (t − κ)/T (S_max − S_true_{l,κ+T}) on the noiseless reading, the rating at the last snapshot | [WU26, eqs. 24-25] | Am |
| fewest-tamper support | engine.attacks.minimize.Minimizer.min_tamper, called by EpisodeDesigns.ramp_design and EpisodeDesigns.am_overload_design |
minimize over supports S in the attacker's area the devices tampered at some snapshot of the window, S held for the window and feasible at every snapshot (local solve, the goal, the operating limits, for At's load goal no metered channel moving more than its σ from one snapshot to the next, the first from the frame before the episode and the benign frame after it from the last; Am's flow goal has no such bound, as in [WU26]); σ is σ_acc, the meter's class, for both goals; a load goal's support may move no device beyond σ and then costs zero, a flow goal's must move at least one; proven only among converged local solves, closed over zero-injection boundary buses; smallest first from the area, proven when exhausted or at the least a goal can cost (zero for a load goal, one device on one channel for a flow goal) | [WU26, eq. 12] | At with min_tamper, Am with am_attack="overload" |
| WLS step | formulas.estimation.wls_step (shared weights) and wls_step_batched (per-record weights), called by SEBase._solve_plain and _w_solve |
Δc = (BᵀWB)⁻¹BᵀW (z − h(x)) | [SCH70, part II] | every estimator |
| gain matrix | formulas.estimation.normal_matrix; per record formulas.linalg.batched_normal_matrices |
G = HᵀWH | [SCH70, part II] | every estimator, the observability guard |
| weighted objective | formulas.estimation.weighted_objective, the divergence guard of SEBase._w_solve |
J = Σ w_i (z_i − h_i(x))² | [SCH70] | the robust arms |
| residual covariance | formulas.estimation.residual_covariance_diag, critical_measurements, floored_covariance, called by SEBase.fit |
Ω = R − H G⁻¹ Hᵀ; critical when Ω_ii < 1e-6 R_ii | [HAN75] | normalized residuals, ResidualRemoval |
| accuracy-class sigma | formulas.noise.accuracy_class_sigma, called by SEBase._class_sigma (fit(calibrate="measured")) |
σ_i = c_i |z̄_i| + floor (relative), σ_i = c_i (absolute) | [ASP14] | the measurement-only calibration of the detector paths |
| normalized residual | formulas.estimation.normalized_residual, called by SEBase._nres |
r_N,i = |z_i − h_i(x̂)| / √Ω_ii | [HAN75] | Huber, residual removal, ResidualLocalizer |
| Huber weight | formulas.estimation.huber_weights, called by AdaptiveWeighting, SubspacePrior._huber_passes, JacobianWeighting |
a_i = min(1, c / |r_N,i|) | [HUB64] | AdaptiveWeighting, SubspacePrior, JacobianWeighting |
| operating-point prior | formulas.estimation.whitened_svd_basis, called by SubspacePrior._fit_states |
whiten X per coordinate, SVD, keep the leading rank_frac directions, un-whiten, QR | [EST26] | SubspacePrior, GatedPrior |
| localization gate | formulas.estimation.gate_weights, called by GatedPrior.gated_weights |
w_i ← factor · w_i for every meter incident to a flagged bus | [EST26] | GatedPrior |
| guarded inverse, condition number | formulas.linalg.guarded_inverse, condition_number (Cholesky, power and inverse iteration) |
inverse when PD and cond < 1/(100 eps), else pseudo-inverse; cond = λ_max / λ_min | numerical guards, no source | every estimator, the observability guard |
| weighted pseudo-inverse | formulas.projection.weighted_pseudoinverse |
H_W⁺ = G⁻¹HᵀW | [SCH70, part II] | Jacobian features |
| explained / unexplained split | formulas.projection.explained_unexplained, called by JacobianFeatures.transform |
dx̂ = H_W⁺ Δz, r∥ = H dx̂, r⊥ = Δz − r∥ | [JAC26] | Jacobian features, JacobianWeighting |
| leverage | formulas.projection.leverage |
diag of P = Hw G⁻¹ Hwᵀ, Hw = W^{1/2} H | [HAN75] | the leverage-weighted change feature |
| weak directions | formulas.projection.weak_directions, direction_coefficients, weak_move |
SVD of Hw; α = Uᵀ W^{1/2} Δz; V_weak V_weakᵀ dx̂ | [JAC26] | the α_weak and weak-move features |
| meter-to-bus aggregation | formulas.projection.bus_incidence, meters_to_buses |
a bus's own V, P, Q, θ channels plus the flows of its incident branches; sum for energies, max for changes | [JAC26] | the per-bus features, GatedPrior, ResidualLocalizer |
[WU26] equation by equation¶
Each row is an equation, or a range of equations, of [WU26] that the code cites, in the code's own
words, with where the citation is. Where the code cites one idea under different numbers in different
places, the table has only the rows every place agrees on. The module paths are under fdia_graph.
| equation | what the code says it states | where the citation is |
|---|---|---|
| 12 | the tamper count the choice of a support minimizes: the meters moved beyond their noise, which the search counts per device | formulas.attacks.tampered_channels, sensing.noise.NoiseModel.tampered, the class engine.attacks.minimize.Minimizer and its module, the module engine.attacks.window, EpisodeDesigns.ramp_design, models.frames.SupportCost, models.frames.MinimizerResult, models.config.SearchSettings, models.choices.SupportMethod, the knob FrameKnobs.min_tamper |
| 12, 28, 33 | the l0 of these equations taken literally: the tampered measurements | models.choices.CostUnit, the knob FrameKnobs.objective |
| 13-14 | a generator's output is an injection measurement the overload attacker may tamper | engine.attacks.false_state.FalseState.generator_buses |
| 13-18 | the attack vector a = h(x_false) - h(x_true), per node channel and per flow channel | engine.attacks.frames.AttackFrames.attack_vector |
| 13-25 | a flow goal frees the loads and generators of the support | FalseState.goal_state |
| 17-20 | only a PMU reads the voltage angle, and it reads the current phasor of every branch end at its bus | sensing.meters.MeterPlan.from_placement, engine.core.FdiaGenerator.__init__, models.choices.MeterModel |
| 19-20 | the branch-current phasors a PMU reads, I_f = Yf V and I_t = Yt V | formulas.network.branch_currents, constants.channels.CurrentChannel, AttackFrames.current_attack, AttackFrames.currents_with_attack, formulas.attacks.tampered_devices, engine.attacks.window.AttackWindow.__init__, models.fields.RecordFields, schema (PMU_I) |
| 21 | the voltage magnitude of a bus stays inside its limit | engine.attacks.false_state._voltages_out_of_range, FalseState._out_of_bounds, FalseState.solve_flow_local |
| 22-23 | a generator's P and Q stay inside its limits | engine.attacks.false_state._clip_generator, FalseState._out_of_bounds, FalseState.solve_flow_local, FalseState.generator_buses, FalseState.limit_tolerance, formulas.attacks.limit_tolerance |
| 21-23 | the constraints every false state must satisfy: the bus voltage limits, and the generator P and Q limits at the generators of the reach (the support and its boundary), for a load goal and a flow goal alike; a generator limit is passed only by more than the bus's injection meter resolves, and the slack and a static generator on a load bus have none | formulas.attacks.operating_limits, formulas.attacks.within_limits, FalseState.operating_limits, FalseState.state_within_limits, FalseState.load_goal_state, FalseState.stealthy_state, EpisodeDesigns.am_overload_design, FdiaGenerator._case_limits, generation.search.SearchSource.__init__, SearchSource._knobs, models.frames.OperatingLimits |
| 24-25 | the flow each target line must show at each snapshot of the window: S_{l,t} = S_true_{l,t} + (t - kappa)/T (S_max - S_true_{l,kappa+T}) | the module engine.attacks.overload, models.frames.FlowGoal, models.frames.FlowSolve, formulas.network.local_flow_solve, FalseState.solve_flow_local, EpisodeDesigns.am_overload_design, engine.attacks.search.OverloadEpisode, errors.NoLineRatings, the package ratings |
| 25 | the rating S_max, reached at the last snapshot | engine.attacks.overload._schedule, formulas.attacks.branch_ratings, EpisodeDesigns.am_overload_design |
| 26-32 | the dynamic trusted-PMU configuration, as a constraint on the attack window | models.config.TrustSchedule, Minimizer.min_tamper (trust) |
| 28 | the union of the tampered devices and channels over every snapshot | engine.attacks.window.AttackWindow.cost, the module engine.attacks.minimize |
| 29 | the attack's state deviation is zero at a trusted PMU, so its bus keeps its true voltage | models.config.TrustSchedule, AttackWindow.support_at |
| 30-31 | trust accumulates, h^S_t = h^S_t-1 + dh^S_t: at snapshot t every PMU with a slot at or before t is pinned | models.config.TrustSchedule |