Network Analysis & Synthesis

Chapter 14
Computational Network Analysis and Design Optimization

Post Graduate Program in Electrical Engineering
Network Analysis & Synthesis   •   Post Graduate

Computational Network Analysis and Design Optimization

Introduction

Modern network synthesis rarely ends with a closed-form transfer function. Large integrated circuits, power networks, communication filters and electromagnetic compatibility models may contain millions of unknowns, nonlinear devices, uncertain parameters and competing design objectives. Computational network analysis converts physical laws into structured algebraic or differential-algebraic equations; design optimization repeatedly solves those equations to obtain component values, topology choices or operating policies that satisfy specifications.

The central computational problem is therefore not merely to solve a circuit once. It is to solve it accurately, efficiently and reproducibly across frequencies, time points, parameter variations and optimization iterations. Physical units, numerical conditioning, passivity, stability and model validity must be maintained throughout.

Learning Objectives

After completing this chapter, the reader should be able to:

  • formulate network equations using nodal and modified nodal analysis;
  • exploit sparsity and matrix structure in numerical solution;
  • distinguish direct, iterative and nonlinear solution algorithms;
  • perform frequency-domain, transient and sensitivity analysis;
  • formulate dimensionally consistent network optimization problems;
  • apply gradient, adjoint, KKT and robust-design concepts;
  • use model-order reduction without compromising stability or passivity;
  • evaluate computational results through verification, validation and uncertainty analysis.

1. From Physical Network to Computational Model

A computational model begins with topology, constitutive relations and conservation laws. Kirchhoff’s current law imposes current balance at each independent node, while Kirchhoff’s voltage law follows automatically from node-potential differences in nodal formulations.

For a linear resistor between nodes k and m,

ikm = g(vk-vm), \qquad g=1/R

where ikm is in amperes, vk and vm are in volts, resistance R is in ohms and conductance g is in siemens. The corresponding nodal-matrix stamp adds +g to diagonal entries (k,k) and (m,m), and -g to off-diagonal entries (k,m) and (m,k).

1.1 Nodal analysis

For a grounded, linear resistive network,

Gv=j

Here G is the nodal conductance matrix in siemens, v is the node-voltage vector in volts, and j is the injected-current vector in amperes. Thus every row is dimensionally an equation in amperes.

For a reciprocal passive resistor network, G is symmetric and positive semidefinite before adequate grounding. It becomes positive definite when every nonreference node has a resistive path to the reference node. Floating subnetworks make the matrix singular.

1.2 Modified nodal analysis

Ideal voltage sources and some controlled elements cannot be represented conveniently by ordinary nodal admittances. Modified nodal analysis (MNA) augments node voltages with selected branch currents:

\begin{bmatrix}G & N\\NT & 0\end{bmatrix}
\begin{bmatrix}v\\is\end{bmatrix}
=
\begin{bmatrix}j\\es\end{bmatrix}

For independent voltage sources, N is the source incidence matrix, is contains source currents and es contains prescribed source voltages. The first block row represents current balance; the second represents voltage constraints. Because different block rows represent different physical equations, the complete MNA matrix is not assigned one uniform physical unit.

Dynamic linear networks are commonly written as a differential-algebraic equation (DAE):

E\dot{x}(t)+Ax(t)=Bu(t), \qquad y(t)=Cx(t)+Du(t)

The state-like vector x may include node voltages and auxiliary currents. Matrix entries retain the units required by their associated equations. The matrix E may be singular; consequently, the system is generally a DAE rather than an ordinary differential equation.

2. Matrix Assembly and Sparse Computation

Each element contributes a small stamp to the global matrix. Since each branch connects only a few nodes, real network matrices are usually sparse. Sparse storage records only nonzero entries and their indices, reducing both memory and arithmetic.

Worked Example 1: Resistive nodal solution

A 10 V ideal source fixes node 1 at 10 V. Node 2 is connected to node 1 through 2 kΩ and to ground through 4 kΩ. KCL at node 2 gives

\frac{v2-10}{2000}+\frac{v2}{4000}=0

Equivalently, using millisiemens and volts,

(0.5+0.25)v2=0.5(10)

The left and right sides are in milliamperes. Therefore,

v2=\frac{5}{0.75}=6.667\ \text{V}

The branch currents are (10-6.667)/2\text{ kΩ}=1.667\text{ mA} and 6.667/4\text{ kΩ}=1.667\text{ mA}, confirming KCL.

2.1 Direct methods

Gaussian elimination is normally implemented through matrix factorization:

  • LU factorization for general nonsymmetric matrices;
  • LDLT for symmetric indefinite matrices;
  • Cholesky factorization for symmetric positive-definite matrices.

Pivoting controls numerical instability but can increase fill-in—the creation of nonzeros during factorization. Fill-reducing orderings such as approximate minimum degree and nested dissection are therefore important in large sparse networks.

2.2 Iterative methods

Iterative solvers can be preferable when factorization is too expensive.

MethodPrincipal applicability
Conjugate gradient (CG)Requires a symmetric positive-definite matrix in its standard form
MINRESSymmetric, possibly indefinite systems
GMRESGeneral nonsymmetric systems
BiCGSTABGeneral nonsymmetric systems with short recurrences

A preconditioner M approximates the system matrix while being inexpensive to invert. The transformed system should have more favorable spectral properties. Common choices include Jacobi scaling, incomplete LU, incomplete Cholesky and multigrid methods.

The relative residual

rrel=\frac{\lVert b-Ax\rVert2}{\lVert b\rVert2}

measures equation satisfaction, but a small residual does not guarantee a small solution error when A is ill-conditioned. Scaling, condition estimation and physical cross-checks remain necessary.

3. Frequency-Domain and Time-Domain Analysis

3.1 AC analysis

For sinusoidal steady state at angular frequency ω in radians per second, capacitors and inductors have impedances

ZC=\frac{1}{j\omega C}, \qquad ZL=j\omega L

where C is in farads and L is in henries. The resulting complex linear system is

A(j\omega)x(j\omega)=b(j\omega)

A frequency sweep solves this system at multiple values of ω. Reusing symbolic factorization or preconditioners can substantially reduce cost because matrix sparsity often remains unchanged.

3.2 Transient integration

Applying backward Euler to E\dot{x}+Ax=Bu with step size h gives

\left(\frac{E}{h}+A\right)xn+1=Bun+1+\frac{E}{h}xn

Backward Euler is first-order accurate and strongly damping, which is useful for stiff circuits but may suppress fast physical oscillations. The trapezoidal rule is second-order accurate but can produce numerical ringing in stiff switched networks. Variable-step, variable-order backward differentiation formulas are widely used in professional simulators.

Initial conditions must satisfy algebraic constraints. Arbitrarily specified capacitor voltages or inductor currents may be inconsistent with ideal-source constraints, requiring a consistent-initialization calculation.

4. Nonlinear Network Solution

Semiconductor devices, saturating magnetic elements and nonlinear controlled sources lead to equations

F(x)=0

Newton’s method linearizes around iteration k:

J(x(k))\Delta x(k)=-F(x(k)), \qquad
x(k+1)=x(k)+\alphak\Delta x(k)

Here J=\partial F/\partial x is the Jacobian and 0<αk≤1 is a damping factor. Quadratic local convergence requires a sufficiently accurate Jacobian, a nonsingular Jacobian at the solution and an initial estimate in the local convergence region.

Practical safeguards include line searches, trust regions, source stepping, conductance stepping and voltage limiting. Convergence should be tested using both residual and update criteria, with tolerances scaled to physical variable magnitudes.

For transient nonlinear analysis, time discretization produces a nonlinear algebraic problem at every accepted time step. Factorization reuse and informed initial guesses from previous time points are therefore valuable.

5. Sensitivity Analysis

Let a network equation depend on design parameter p:

A(p)x(p)=b(p)

Differentiating gives

A\frac{dx}{dp}=\frac{db}{dp}-\frac{dA}{dp}x

Thus, direct sensitivity requires a linear solve for each parameter, although the same factorization of A can often be reused.

For a scalar performance function φ(x,p), define the adjoint vector by

AT\lambda=\left(\frac{\partial \phi}{\partial x}\right)T

Then

\frac{d\phi}{dp}=\frac{\partial\phi}{\partial p}
+\lambdaT\left(\frac{db}{dp}-\frac{dA}{dp}x\right)

The adjoint method is especially efficient when there are many parameters but few scalar outputs. For complex frequency-domain models, conjugate-transpose forms and real-valued objective differentiation must be handled carefully.

Finite differences are simple but sensitive to step selection and cancellation. Automatic differentiation systematically applies the chain rule and is increasingly used in differentiable circuit simulators. Complex-step differentiation can be highly accurate for analytic implementations, but it is not directly applicable through nonanalytic operations such as absolute value, clipping or discrete switching.

6. Formulating Network Design Optimization

A continuous design problem can be written as

\minz\ \Phi(z)
\quad\text{subject to}\quad
h(z)=0,\quad c(z)\leq 0,\quad zL\leq z\leq zU

The vector z contains design variables; Φ is the objective; h contains equality constraints; and c contains inequality constraints. Specifications may involve gain, bandwidth, loss, noise, stability margin, component cost, thermal limits or robustness.

A well-posed formulation requires:

  1. explicit units or per-unit normalization;
  2. realistic component and manufacturing bounds;
  3. continuous approximations only where physically justified;
  4. constraints evaluated over all required operating conditions;
  5. a model whose fidelity is appropriate to the design decision.

Weighted sums such as w1φ1+w2φ2 should combine normalized, dimensionless metrics; otherwise numerical weights obscure unit incompatibility. Multiobjective optimization may instead generate a Pareto frontier of nondominated designs.

6.1 KKT optimality conditions

For differentiable functions, define the Lagrangian

\mathcal{L}(z,\nu,\mu)=\Phi(z)+\nuTh(z)+\muTc(z)

At a local optimum satisfying an appropriate constraint qualification, the Karush–Kuhn–Tucker conditions are:

\nablaz\mathcal{L}=0,\quad h(z)=0,\quad c(z)\leq0,
\quad \mu\geq0,\quad \mui ci(z)=0

These conditions are necessary under regularity assumptions. They are also sufficient for a global optimum when the objective and inequality constraints are convex and equality constraints are affine.

Worked Example 2: Dimensionally consistent conductance optimization

Consider a conductance divider driven by an ideal voltage source. Conductance g1 joins the source to the output node, and g2 joins the output to ground. For positive conductances,

H=\frac{vo}{vs}=\frac{g1}{g1+g2}

Let g0=1\text{ mS} and introduce dimensionless per-unit variables x1=g1/g0 and x2=g2/g0. Minimize deviation from nominal values while requiring H≥2/3:

\minx1,x2\ \frac{1}{2}\left[(x1-1)2+(x2-1)2\right]
\quad\text{subject to}\quad c(x)=2x2-x1\leq0

Both the objective and constraint are dimensionless. The unconstrained point (1,1) violates the constraint. With the constraint active, the KKT stationarity equations are

x1-1-\mu=0, \qquad x2-1+2\mu=0

Together with x1=2x2, these yield

\mu=0.2, \qquad x1=1.2, \qquad x2=0.6

Hence g1=1.2\text{ mS}, g2=0.6\text{ mS} and H=1.2/(1.8)=2/3. Since the problem is convex, this KKT point is the unique global optimum. Explicit per-unit normalization prevents the dimensional inconsistency that would arise from adding unlike powers or units of physical conductance.

7. Optimization Algorithms

Gradient-based methods include steepest descent, quasi-Newton methods, sequential quadratic programming and interior-point algorithms. They are efficient for smooth, continuous problems when reliable derivatives are available.

Derivative-free methods—pattern search, covariance-matrix adaptation and other evolutionary techniques—are useful when simulations are noisy, discontinuous or unavailable for differentiation. They generally require more function evaluations and do not remove the need for verification.

Mixed-integer formulations are required when topology, switch state or catalog component selection is discrete. Surrogate models, Bayesian optimization and response surfaces can reduce the cost of expensive simulations, but predicted optima must be re-evaluated using the governing high-fidelity model.

Computational network design optimization loop Design variablesand bounds Network solverDC, AC, transient Metrics andsensitivities Optimizerupdate and test Iterate until feasibility and convergence; then verify independently
Computational network design optimization loop
Figure: Computational network design optimization loop

Figure: Closed-loop computational workflow for network design optimization.

8. Model-Order Reduction

Repeated simulation of a large linear network can dominate optimization cost. Model-order reduction replaces the original model with a lower-dimensional approximation that preserves selected input–output behavior.

For a descriptor model

E\dot{x}=Ax+Bu, \qquad y=Cx+Du

projection uses x≈Vxr and a test basis W:

Er\dot{x}r=Arxr+Bru, \qquad y=Crxr+Du

where Er=WTEV, Ar=WTAV, Br=WTB and Cr=CV. Krylov-subspace methods match transfer-function moments around selected frequencies. Balanced truncation provides an error bound for stable standard state-space systems, but large-scale implementation can be expensive.

In passive electrical networks, a reduced model should ideally remain passive. Passivity-preserving projection is important because a nonpassive approximation may generate energy, destabilize interconnections or mislead optimization.

9. Uncertainty, Robustness and Reliability

Nominal optimization can produce fragile designs. Let uncertain parameters be represented by ξ. Three major formulations are:

  • Worst-case design: enforce constraints for every ξ in a prescribed set.
  • Chance-constrained design: require P(c(z,ξ)≤0)≥1-ε.
  • Reliability-based design: control a quantified probability of failure using statistical models.

Monte Carlo simulation is flexible but expensive for rare failures. Alternatives include Latin hypercube sampling, polynomial chaos, first-order reliability methods and local sensitivity screening. Correlations between manufacturing variables must not be ignored when physically present.

Robustness should include environmental and operating variations such as temperature, source impedance, load, aging and parasitics—not merely component tolerance.

10. Illustrative Case: EMI Low-Pass Filter Design

Background

An industrial sensor interface requires attenuation of high-frequency conducted interference. This is an illustrative case rather than a report of a specific commercial product. A series inductor L feeds a node terminated by a load RL and shunt capacitor C. The source has resistance Rs.

Problem

With Rs=RL=50\ Ω, the normalized gain must exceed 0.98 at 1 kHz and remain below 0.01 at 100 kHz. The normalization is relative to the DC divider gain H0=RL/(Rs+RL)=0.5. Candidate components must be selected from an approved catalog.

Analysis

The shunt impedance and voltage transfer function are

Zp=\left(\frac{1}{RL}+j\omega C\right)-1, \qquad
H(j\omega)=\frac{Zp}{Rs+j\omega L+Zp}

A catalog search evaluates each pair using sparse complex solves, rejects infeasible pairs and ranks feasible designs by component cost and volume. One feasible candidate is L=1\text{ mH} and C=1\text{ μF}.

At 1 kHz, ω=6283.19\text{ rad/s} and

Zp=45.51-j14.30\ \Omega

This gives |H|≈0.4977 and normalized gain |H|/H0≈0.9954, satisfying the passband requirement.

At 100 kHz,

Zp\approx0.0506-j1.5899\ \Omega

and |H|≈0.002530. The normalized gain is approximately 0.00506, satisfying the interference-rejection requirement.

Approach and Solution

The nominal search is followed by tolerance analysis over inductor, capacitor, source and load variations. Parasitic winding resistance, capacitor equivalent series resistance and inductor self-resonance are then added to the verification model. A design is accepted only if the worst tested corner remains compliant and component current and voltage ratings are respected.

Outcome

The candidate meets the two nominal frequency constraints. Its final adoption remains conditional on tolerance, thermal, self-resonance and laboratory electromagnetic-compatibility verification. This distinction prevents numerical feasibility from being mistaken for certified physical performance.

Learning Points

  • Normalize gain against the intended reference before applying specifications.
  • Include source and load impedances in filter design.
  • Catalog optimization combines discrete selection with continuous simulation.
  • Parasitics and ratings can invalidate an ideal-model optimum.
  • Independent measurement is part of validation, not an optional afterthought.

11. Verification, Validation and Governance

Verification asks whether equations and algorithms were solved correctly. Useful checks include KCL residuals, power balance, mesh refinement, time-step refinement and comparison with analytically solvable cases.

Validation asks whether the model represents the physical system adequately. It requires experimental data, calibrated uncertainty and a documented domain of applicability.

Computational best practices include version-controlled models, traceable component data, fixed solver tolerances, stored random seeds, unit tests for device stamps and independent re-simulation of final designs. Safety-critical networks also require change control, audit trails and compliance with applicable electrical, electromagnetic-compatibility and functional-safety standards.

Machine learning can accelerate surrogate modeling, anomaly detection and initial design generation. Nevertheless, training data may omit extreme operating regions, and unconstrained models need not obey KCL, passivity or stability. AI-generated designs should therefore be treated as proposals subjected to physics-based simulation, uncertainty analysis and engineering review.

Ethical and governance concerns include truthful reporting of assumptions, avoidance of selective corner testing, protection of proprietary design data and disclosure of surrogate-model limitations. Optimization should never trade away mandatory safety constraints merely to improve a numerical objective.

12. Challenges and Contemporary Developments

Major challenges include ill-conditioned multiscale models, nonsmooth switching behavior, combinatorial topology choices, expensive uncertainty propagation and conflicting objectives. Electromagnetic, thermal, mechanical and control interactions increasingly require multiphysics co-simulation.

Contemporary research includes differentiable simulators, physics-informed surrogates, randomized model reduction, passivity-constrained learning, GPU-accelerated sparse solvers and optimization under distributional uncertainty. These methods are promising, but scalability claims must be assessed together with error control, reproducibility and physical admissibility.

Chapter Summary

Computational network design begins by translating topology and element laws into sparse nodal, modified nodal or descriptor equations. Direct and iterative solvers must be selected according to matrix structure, conditioning and problem scale. Frequency-domain analysis, transient integration and Newton linearization address different classes of network behavior.

Sensitivity analysis links simulation to optimization; adjoint methods are particularly effective for many design variables and few outputs. Sound optimization requires dimensionally consistent objectives and constraints, realistic bounds, correct KKT interpretation and explicit treatment of discrete decisions. Model-order reduction, robust design and high-fidelity verification make repeated analysis practical without abandoning stability, passivity or uncertainty. Ultimately, computational feasibility must be supported by physical validation, governance and traceable engineering judgment.

Key Terms

Adjoint sensitivity: Gradient computation using an auxiliary transposed system, efficient for many parameters and few outputs.

Condition number: Measure of the sensitivity of a linear-system solution to perturbations.

Constraint qualification: Regularity condition supporting the validity of KKT necessity results.

Descriptor system: Dynamic system represented using a potentially singular matrix multiplying the derivative.

Differential-algebraic equation: System combining differential equations with algebraic constraints.

Fill-in: New nonzero matrix entries created during sparse factorization.

GMRES: Krylov iterative method for general nonsymmetric linear systems.

KKT conditions: First-order optimality conditions involving stationarity, feasibility and complementarity.

Modified nodal analysis: Nodal formulation augmented by selected branch currents.

Model-order reduction: Construction of a lower-dimensional approximation to a large dynamic model.

Passivity: Property that a system cannot generate net energy.

Per-unit normalization: Representation of physical quantities relative to declared base values.

Preconditioner: Easily solved approximation used to accelerate iterative convergence.

Robust optimization: Optimization designed to maintain performance under specified uncertainty.

Sparse matrix: Matrix in which most entries are zero.

Surrogate model: Computationally inexpensive approximation to a higher-fidelity model.

Trust region: Optimization or nonlinear-solution strategy restricting a model step to a reliable neighborhood.

Validation: Assessment of whether a model adequately represents the physical system.

Verification: Assessment of whether the computational model has been implemented and solved correctly.

Review Questions

Short Answer Questions

  1. Why can a grounded passive resistor network have a positive-definite nodal conductance matrix?
  2. Distinguish verification from validation.
  3. What is fill-in in sparse factorization?
  4. Why must weighted objective terms normally be normalized?
  5. When is adjoint sensitivity preferable to direct sensitivity?

Long Answer Questions

  1. Derive the MNA equations for a network containing resistors, current sources and ideal voltage sources.
  2. Compare sparse direct and Krylov iterative methods for large network equations.
  3. Explain Newton’s method and its convergence safeguards in nonlinear circuit simulation.
  4. Discuss nominal, worst-case and chance-constrained network optimization.
  5. Explain projection-based model-order reduction and the importance of passivity preservation.

Analytical / Application Questions

  1. Formulate and solve a dimensionally consistent optimization problem for a resistive divider required to meet a specified voltage ratio.
  2. Develop an adjoint-gradient procedure for minimizing insertion loss over several frequencies.
  3. Design a verification and uncertainty-analysis plan for an optimized power-electronic filter intended for safety-critical service.

Multiple Choice Questions with Answers

Question 1

For a grounded linear resistive network, which equation is the standard nodal form?

A. Gv=j

B. Ev=Gj

C. Gj=v

D. vTG=j

Correct Answer: A. Gv=j

Question 2

Which standard iterative method requires the coefficient matrix to be symmetric positive definite?

A. GMRES

B. BiCGSTAB

C. Conjugate gradient

D. MINRES

Correct Answer: C. Conjugate gradient

Question 3

A 10 V node is connected to an unknown node through 2 kΩ, and the unknown node is connected to ground through 4 kΩ. What is the unknown-node voltage?

A. 2.500 V

B. 3.333 V

C. 5.000 V

D. 6.667 V

Correct Answer: D. 6.667 V

Question 4

Why is an adjoint method attractive when optimizing one scalar metric with respect to many parameters?

A. It eliminates the forward network solution

B. It generally requires one adjoint solve per scalar metric rather than per parameter

C. It guarantees global optimality

D. It converts all nonlinear networks into linear networks

Correct Answer: B. It generally requires one adjoint solve per scalar metric rather than per parameter

Question 5

Which statement correctly describes KKT conditions for a differentiable constrained problem?

A. They are always sufficient for a global optimum

B. They apply only to unconstrained problems

C. Under a suitable constraint qualification, they are necessary at a local optimum

D. They require every inequality constraint to be active

Correct Answer: C. Under a suitable constraint qualification, they are necessary at a local optimum

Question 6

In the normalized conductance-divider example, the optimal per-unit conductances are x1=1.2 and x2=0.6. What is the voltage transfer ratio?

A. 1/3

B. 1/2

C. 2/3

D. 3/2

Correct Answer: C. 2/3

Question 7

What is the principal numerical disadvantage of backward Euler for oscillatory network transients?

A. It cannot solve DAEs

B. It introduces strong numerical damping

C. It is unconditionally unstable for passive circuits

D. It requires a symmetric matrix

Correct Answer: B. It introduces strong numerical damping

Question 8

Which property is especially important when reducing a passive electrical network model?

A. The reduced model should preserve passivity

B. The reduced model must have the same number of states

C. Every reduced matrix must be diagonal

D. All parasitic elements must be removed

Correct Answer: A. The reduced model should preserve passivity

Question 9

Which action is an example of computational verification rather than physical validation?

A. Comparing simulated output with laboratory measurements

B. Checking KCL residuals and repeating the solution with tighter tolerances

C. Calibrating uncertain parameters from experiments

D. Testing a prototype over temperature

Correct Answer: B. Checking KCL residuals and repeating the solution with tighter tolerances

Question 10

Why must an AI-generated network design still undergo physics-based simulation and engineering review?

A. AI models always use nodal analysis

B. AI-generated component values are necessarily integers

C. A learned model may violate physical constraints or extrapolate beyond its training domain

D. Physics-based solvers cannot evaluate optimized designs

Correct Answer: C. A learned model may violate physical constraints or extrapolate beyond its training domain

Network Analysis & Synthesis
Chapter 14 of 14