Line reconstruction API
The inverse Carson guide and worked example compare candidate conductor arrangements with specified sequence impedances and construct the corresponding four-wire line models.
PowerOptLab.SequenceLineObservation — Type
SequenceLineObservation(; z0, z1, frequency, ...)Diagonal zero- and positive-sequence line data for solve_inverse_carson. z0 and z1 are complex impedances. Optional b0 and b1 are real shunt susceptances. Values are converted to SI per metre internally.
Keywords
z_units=:ohm_per_km—:ohm_per_mor:ohm_per_km.b_units=:micro_siemens_per_km—:siemens_per_m,:siemens_per_km, or:micro_siemens_per_km.sigma— standard deviations in the same input units, ordered(R0, X0, R1, X1[, B0, B1]). If omitted, a descriptive 1% tolerance is used with an absolute floor in the declared input units; candidate scores then have no formal statistical interpretation.covariance— full positive-definite covariance matrix in the same ordered input units. It is mutually exclusive withsigma; correlations affect the Mahalanobis objective whilestandardized_residualremains marginal.frequency[Hz] andearth_resistivity=100.0[Ω·m].
The observation is assumed to come from a three-phase matrix, with any circuit neutral Kron-reduced before the symmetrical-component transform.
PowerOptLab.OverheadCarsonCandidate — Type
OverheadCarsonCandidate(; id, geometry, r_ac_ref, gmr, radius, lower, upper, ...)One discrete overhead construction considered by solve_inverse_carson. Conductor arrays are ordered (a,b,c[,n]) and use SI units: r_ac_ref [Ω/m], gmr, radius, and cap_radius [m]. Separate phase and neutral conductors are supported.
The continuous parameter order is returned in each fit and depends on geometry:
:horizontal_3:(half_span, height, temperature):triangle_3:(half_span, height, temperature);angleis fixed:horizontal_4:(inner_offset, outer_gap, height, temperature):neutral_under_4:(half_span, phase_height, neutral_drop, temperature)
Geometry values are metres and temperature is °C. lower, upper, and initial follow that order. alpha_20 may be a scalar or one value per conductor; resistance is corrected from temperature_ref using IEC's linear temperature relation.
PowerOptLab.solve_inverse_carson — Function
solve_inverse_carson(observation, candidates; kwargs...) -> InverseCarsonResultFit every discrete overhead construction candidate to diagonal sequence data. Each candidate is solved independently as a bound-constrained smooth NLP with deterministic multistart. Fits are returned in increasing weighted-residual order; ambiguity is retained rather than collapsed to a single winner.
Keywords
starts=16— deterministic starts per candidate.acceptance_sigma=3.0— a candidate is compatible only when every standardized residual is within this threshold.rank_tolerance=1e-6— relative threshold for the singular values of the standardized prediction Jacobian.confidence_level=0.95— level for the local linearized parameter intervals.optimizer=Ipopt.Optimizer,verbose=false;solver_optionsaccepts an iterable of name-value pairs or a named tuple. Ipopt receives safe defaultshessian_approximation="limited-memory"andbound_relax_factor=0.0before user options are applied. Other optimizers receive no Ipopt-specific options.
The solver uses modified Carson only. Returned Z_primitive and C_primitive retain an explicit circuit neutral; Kron reduction is used solely to compare against the sequence observation.
PowerOptLab.profile_inverse_carson — Function
profile_inverse_carson(fit, candidate, observation; kwargs...)Compute connected one-parameter profile-likelihood confidence intervals around an inverse-Carson fit. Each parameter is fixed successively while all remaining parameters are reoptimized. An endpoint status of :threshold means the chi-square threshold was crossed, :bound means the candidate bound was reached, and :failed conservatively returns the bound because the profile solve failed.
The default threshold is the one-degree-of-freedom chi-square quantile implied by fit.confidence_level. points=12 traces each side before bisection; bisection_steps=16 refines the first crossing. A failed continuation solve is retried from deterministic alternative starts before the endpoint is labelled :failed. These are local connected profiles, not a guarantee that disconnected feasible regions do not exist.
PowerOptLab.InverseCarsonFit — Type
One fitted candidate returned by solve_inverse_carson.
PowerOptLab.InverseCarsonResult — Type
Result of solve_inverse_carson, retaining all candidate fits.
PowerOptLab.InverseCarsonProfileInterval — Type
Connected profile-likelihood interval for one inverse-Carson parameter.
PowerOptLab.materialize_inverse_carson — Function
materialize_inverse_carson(fit, candidate) -> DictCreate BMOPF-ready wire_data and line_geometry blocks for a successful inverse fit. The returned dictionary is not inserted into a network and no linecode is compiled automatically.