# Modified Hyperspheres Algorithm to Trace Homotopy Curves of Nonlinear Circuits Composed by Piecewise Linear Modelled Devices

Authors: H. Vazquez-Leal; V. M. Jimenez-Fernandez; B. Benhammouda; U. Filobello-Nino; A. Sarmiento-Reyes; A. Ramirez-Pinero; A. Marin-Hernandez; J. Huerta-Chua
Journal: The Scientific World Journal
 (2014)

---

## Abstract

We present a homotopy continuation method (HCM) for finding multiple operating points of nonlinear circuits composed of devices modelled by using piecewise linear (PWL) representations. We propose an adaptation of the modified spheres path tracking algorithm to trace the homotopy trajectories of PWL circuits. In order to assess the benefits of this proposal, four nonlinear circuits composed of piecewise linear modelled devices are analysed to determine their multiple operating points. The results show that HCM can find multiple solutions within a single homotopy trajectory. Furthermore, we take advantage of the fact that homotopy trajectories are PWL curves meant to replace the multidimensional interpolation and fine tuning stages of the path tracking algorithm with a simple and highly accurate procedure based on the parametric straight line equation.


---

## Body

## 1. Introduction

The circuit simulation tools are constantly improved in order to cope with the challenges due to the new fabrication technologies. Among the circuit analysis methodologies, the direct current (DC) analysis is highlighted as one of the most important because it describes the static behaviour of the circuits. As a result of the DC analysis of nonlinear circuits, one obtains a nonlinear algebraic equations system (NAES). The most common method applied to solve such equations is the Newton-Raphson method (NRM). However, it is common that NRM fails due to its well-known problems of convergence: oscillation and divergence to infinity, among others. In fact, NRM has a local convergence only, which means that if the starting point is not close enough to the sought solution the method will probably diverge. What is more, if the circuit under analysis is multistable, then NRM will not be helpful because it can locate only one solution per simulation, ignoring the existence of more solutions. Therefore, the homotopy continuation method (HCM) [1–37] arises as an alternative to NRM due to its characteristics: to find multiple operating points and better convergence [38].In recent years, the PWL modelling technique gained popularity as a tool for circuit simulation and other related areas [39, 40]. The basic idea is to replace traditional models by their piecewise linear (PWL) representations [41–44]. The main advantages are reduction of equations complexity, the straightforward inclusion of empirical models, and potential replacing of piecewise models by their unified PWL representation. Several methodologies have been proposed to find multiple solutions of PWL circuits [45–57].However such methodologies exhibit some drawbacks like the requirement of several initial points to find multiple solutions [53, 54], the use of implicit PWL models [55, 56], and the need of expressing the circuit equations in terms of the linear complementary problem (LCP) that implies computing model state variables [57]. Therefore, in order to circumvent the aforementioned disadvantages, we explore the application of HCM methods in combination with an adaptation of the modified spheres algorithm (MSA) [37] for the DC analysis of PWL circuits.This paper is organized as follows. A brief description of PWL modelling is presented in Section2. In Section 3, we introduce the proposed HCM and its path following technique (MSA). In Section 4, four case studies of nonlinear circuits are presented and solved by using a HCM method. Numerical simulations and a discussion about the results are provided in Section 5. Finally, a concluding remark is given in Section 6.


## 2. Brief Description of PWL Modelling

A mathematical model approach, widely used in nonlinear circuit analysis, is the so-called piecewise linear (PWL). The aim of this kind of modeling is to approximate the nonlinear behavior of a circuit element by using a set of linear mappings. This means transforming a single nonlinear equation into a finite number of linear equations. One of the first piecewise linear models was provided by Chua and Kang in [58]. Another proposal was presented by Van Bokhoven in [59]. Subsequent contributions were the extension of the Chua model reported by Guzelis and Goknar in [60] and the parametric proposal given by Vandenberghe et al. in [61], among others. While there are diverse proposals of PWL models, they can be classified into two classes. The first one contains explicit models. For this class of models, the output vector can be obtained by just substituting the input vector into the model. The second one contains models which are implicit. In such models the output vector cannot be obtained directly. In contrast, an algorithm has to be performed by which the output vector is computed [62]. The more representative examples of explicit and implicit PWL descriptions are the canonical model of Chua1 and the model of Bokhoven1, respectively.The formal definition of the Chua1 model is expressed as follows.Theorem 1.
Any one-dimensional piecewise linear curve withL segments and σ break points β
1
<
β
2
<
⋯
<
β
σ can be represented by the expression
(1)
y
(
x
)
=
a
+
b
x
+
∑
i
=
1
σ
‍
c
i
|
x
-
β
i
|
,
where the model parameters can be computed by
(2)
a
=
y
(
0
)
-
∑
i
=
1
σ
‍
c
i
|
β
i
|
,
b
=
J
(
1
)
+
J
(
σ
+
1
)
2
,
c
i
=
J
(
i
+
1
)
-
J
(
i
)
2
,
i
=
1,2
,
…
,
σ
,
with J
(
i
) denoting the slope of the ith constitutive segment in the piecewise linear curve.Meanwhile, the Bokhoven1 model is expressed by a state variable system defined in formulation of LCP. For further details about LCP, the reader is referred to [63].The main factor that motivates the use of PWL models is the simplicity of their structure, which is linear in each region of the domain. However, in terms of circuit analysis the use of piecewise linear models means transforming a single nonlinear equation into several linear equations that could easily be solved by standard methods from linear algebra. The problem lies now in the extremely large number of linear regions to be discarded to determine the entire set of circuit solutions. Unfortunately, this task requires enormous computational resources. To overcome that problem several methodologies and algorithms have been proposed. For example, Chua and Ying [64] reported an efficient method where the number of linear simultaneous equations to be solved could be decreased by a sign test. The same idea is improved by Yamamura and Ochiai in [65] where linear programming techniques are applied and a more efficient sign test algorithm is also reported. Katzenelson presents an algorithm based on Newton’s homotopy in [53], and more recently Tadeusiewicz and Kuczyński offered a method that combines the homotopy concept and the theory known as a linear complementary problem [57].


## 3. The Proposed Homotopy Scheme

The equilibrium equation to describe the DC behaviour is obtained using the Kirchhoff laws, resulting in(3)
f
(
x
)
=
0
,
f
∈
R
n
⟶
R
n
,
where x represents the electrical variables of the circuit and n the number of variables.Homotopy methods are based on the fact that solutions are connected by a curve denominated “solution curve” or “homotopy curve.” Such curve is induced by including an extra parameter in the original NAES, resulting in(4)
H
(
f
(
x
)
,
λ
)
=
0
,
H
∈
R
n
×
R
⟶
R
n
,
where λ is the homotopy parameter and H
-
1
(
0
) the family of solutions that conforms the homotopy path.An example of homotopy formulation is Newton’s homotopy(5)
H
(
f
(
x
)
,
λ
)
=
f
(
x
)
+
(
λ
-
1
)
f
(
x
i
)
=
0
,
where x
i is the starting point of the trajectory.This system has the following properties.(1)
At the starting pointλ
=
0,
(6)
H
(
f
(
x
)
,
0
)
=
f
(
x
)
-
f
(
x
i
)
=
0
,
where the homotopy system admits at least the solution x
i.
(2)
The deformation continues until crossingλ
=
1 where
(7)
H
(
f
(
x
)
,
1
)
=
f
(
x
)
=
0
;
that is, the homotopy is reduced to (3).Thus, the original problem becomes a numerical continuation problem [4, 5, 12, 13, 21, 25–28], where the continuation variable is the homotopy parameter λ. The homotopy map creates a continuous line that crosses several times λ
=
1 depending on the number of operating points. A drawback of the homotopy methods is that there is no generalized methodology to guarantee that a single homotopy path possesses all the operating points of any given nonlinear circuit. In contrast, HCM can locate multiple operating points in comparison to NRM that can fail to find even a single operating point.


### 3.1. Modified Spheres Algorithm

Once the equilibrium equation and homotopy map are constructed, a new problem emerges: the homotopy trajectory should be traced in order to detect the roots. It is well known from the literature that if the path tracking algorithm is not correctly implemented, the simulation may fail to detect any root even though the roots are, in fact, along the curve [4, 5, 12, 13, 21, 25–28]. For the case of PWL circuits, the problem for the path tracking algorithm lies in the prediction stage, because most of the predictor mechanisms are based on the tangent of the homotopy curve. If we consider that the derivative of PWL functions is not defined at the break points, then the tangent of the homotopy curve can not be evaluated at such points. Therefore, we propose adapting the modified spheres algorithm (MSA) for the path following of the homotopy curves of PWL circuits, which is not based on the use of tangents of the trajectory.The homotopy formulation containsn equations and (
n
+
1
) variables, where x
i
(
i
=
1
,
…
,
n
) represent the variables of the system and x
n
+
1 is the homotopy parameter λ. Nevertheless, if we add the equation that describes a sphere [2, 3, 13, 37, 66] with center at c (initial point of the trajectory) and radius r expressed by
(8)
S
(
x
1
,
x
2
,
…
,
x
n
+
1
)
=
(
x
1
-
c
1
)
2
+
(
x
2
-
c
2
)
2
+
⋯
+
(
x
n
+
1
-
c
n
+
1
)
2
-
r
2
=
0
,
then, it is possible to apply a regular NRM to solve the homotopy formulation.Therefore, using (4) and (8), we formulate the augmented system as
(9)
H
1
(
f
1
(
x
)
,
λ
)
=
0
,
H
2
(
f
2
(
x
)
,
λ
)
=
0
,
⋮
H
n
(
f
n
(
x
)
,
λ
)
=
0
,
S
(
x
1
,
x
2
,
…
,
x
n
,
λ
)
=
0
.The solution curve can be traced by solving (9) for each hypersphere and updating the center of the hypersphere in each iteration step. The hyperspheres (S
1
,
S
2
,
…) are allocated successively as shown in Figure 1(a); at each step the solution obtained is used as the center of the new sphere. In the same fashion, Figure 1(b) depicts the application of MSA algorithm for the path tracking of PWL curves.Solution curves with spheres [37].
(a)
General homotopy curve
(b)
Piecewise linear homotopy curveThe proposed adaptation of the MSA scheme [37] for the Newton homotopy applied to PWL circuits is described as follows.(i)
Predictor: we use pointsO
1 and O
2 to predict the point k
1. The next predictor point and successive points are obtained as depicted in Figure 2(a).
(ii)
Corrector: after calculating the point predictor (k
1), a corrected point (O
3) is calculated by solving (9). This procedure is detailed in [37]. Nonetheless, if we consider that—for this work—the homotopy trajectory is described as a PWL curve, then the corrector step will require most of the time one iteration to correct the prediction over straight lines, except at the break points, where it will require more steps to correct the curve (see Figure 2(b)).
(iii)
There is a potential issue called reversion phenomenon that provokes a backward tracing. In [37] a strategy based on gradients and angles of the intersection of the sphere along the trajectory is proposed.
(iv)
Find zero strategy [12, 22]: the finding zero strategy should start after the trajectory crosses λ
=
1. This procedure requires detecting the two points (A andB) before and after λ
=
1 as depicted in Figure 3.
(v)
Interpolation of operating points [12, 22]: traditional schemes of path tracking algorithms require the application of complicated multidimensional interpolation algorithms as those reported in [37]. Nonetheless, as we will show in the cases study section, the homotopy trajectory of PWL circuits is also a PWL curve. Therefore, we propose using the formula of a parametric straight line to interpolate the solution at λ
=
1. Using the points A and B, we create two vectors A and B, respectively, resulting in the following equation:
(10)
B
+
t
(
B
-
A
)
=
0
,
where t is the parameter that describes the n
+
1-dimensional straight line. To perform the interpolation, we obtain the value of t that induces λ
=
1 and update the rest of the equations to obtain the sought solution S
* (see Figure 3). This process can be repeated each time the homotopy trajectory crosses λ
=
1.
(vi)
Improving accuracy for final solutions also known as fine tuning [22]: traditional path following schemes including the ones reported for the MSA scheme [13, 37] require extra steps of NRM to improve the accuracy of the interpolated solutions. However, the aforementioned interpolation step can theoretically obtain a highly accurate solution. The reason relies on the fact that the homotopy curve crosses exactly over the roots of the equilibrium equation; then, the straight line (10) also crosses over the exact solution.Spheres algorithm [37].
(a)
General homotopy trajectory
(b)
Piecewise linear homotopy trajectoryFigure 3
Interpolation procedure using a parametric straight line.


## 3.1. Modified Spheres Algorithm

Once the equilibrium equation and homotopy map are constructed, a new problem emerges: the homotopy trajectory should be traced in order to detect the roots. It is well known from the literature that if the path tracking algorithm is not correctly implemented, the simulation may fail to detect any root even though the roots are, in fact, along the curve [4, 5, 12, 13, 21, 25–28]. For the case of PWL circuits, the problem for the path tracking algorithm lies in the prediction stage, because most of the predictor mechanisms are based on the tangent of the homotopy curve. If we consider that the derivative of PWL functions is not defined at the break points, then the tangent of the homotopy curve can not be evaluated at such points. Therefore, we propose adapting the modified spheres algorithm (MSA) for the path following of the homotopy curves of PWL circuits, which is not based on the use of tangents of the trajectory.The homotopy formulation containsn equations and (
n
+
1
) variables, where x
i
(
i
=
1
,
…
,
n
) represent the variables of the system and x
n
+
1 is the homotopy parameter λ. Nevertheless, if we add the equation that describes a sphere [2, 3, 13, 37, 66] with center at c (initial point of the trajectory) and radius r expressed by
(8)
S
(
x
1
,
x
2
,
…
,
x
n
+
1
)
=
(
x
1
-
c
1
)
2
+
(
x
2
-
c
2
)
2
+
⋯
+
(
x
n
+
1
-
c
n
+
1
)
2
-
r
2
=
0
,
then, it is possible to apply a regular NRM to solve the homotopy formulation.Therefore, using (4) and (8), we formulate the augmented system as
(9)
H
1
(
f
1
(
x
)
,
λ
)
=
0
,
H
2
(
f
2
(
x
)
,
λ
)
=
0
,
⋮
H
n
(
f
n
(
x
)
,
λ
)
=
0
,
S
(
x
1
,
x
2
,
…
,
x
n
,
λ
)
=
0
.The solution curve can be traced by solving (9) for each hypersphere and updating the center of the hypersphere in each iteration step. The hyperspheres (S
1
,
S
2
,
…) are allocated successively as shown in Figure 1(a); at each step the solution obtained is used as the center of the new sphere. In the same fashion, Figure 1(b) depicts the application of MSA algorithm for the path tracking of PWL curves.Solution curves with spheres [37].
(a)
General homotopy curve
(b)
Piecewise linear homotopy curveThe proposed adaptation of the MSA scheme [37] for the Newton homotopy applied to PWL circuits is described as follows.(i)
Predictor: we use pointsO
1 and O
2 to predict the point k
1. The next predictor point and successive points are obtained as depicted in Figure 2(a).
(ii)
Corrector: after calculating the point predictor (k
1), a corrected point (O
3) is calculated by solving (9). This procedure is detailed in [37]. Nonetheless, if we consider that—for this work—the homotopy trajectory is described as a PWL curve, then the corrector step will require most of the time one iteration to correct the prediction over straight lines, except at the break points, where it will require more steps to correct the curve (see Figure 2(b)).
(iii)
There is a potential issue called reversion phenomenon that provokes a backward tracing. In [37] a strategy based on gradients and angles of the intersection of the sphere along the trajectory is proposed.
(iv)
Find zero strategy [12, 22]: the finding zero strategy should start after the trajectory crosses λ
=
1. This procedure requires detecting the two points (A andB) before and after λ
=
1 as depicted in Figure 3.
(v)
Interpolation of operating points [12, 22]: traditional schemes of path tracking algorithms require the application of complicated multidimensional interpolation algorithms as those reported in [37]. Nonetheless, as we will show in the cases study section, the homotopy trajectory of PWL circuits is also a PWL curve. Therefore, we propose using the formula of a parametric straight line to interpolate the solution at λ
=
1. Using the points A and B, we create two vectors A and B, respectively, resulting in the following equation:
(10)
B
+
t
(
B
-
A
)
=
0
,
where t is the parameter that describes the n
+
1-dimensional straight line. To perform the interpolation, we obtain the value of t that induces λ
=
1 and update the rest of the equations to obtain the sought solution S
* (see Figure 3). This process can be repeated each time the homotopy trajectory crosses λ
=
1.
(vi)
Improving accuracy for final solutions also known as fine tuning [22]: traditional path following schemes including the ones reported for the MSA scheme [13, 37] require extra steps of NRM to improve the accuracy of the interpolated solutions. However, the aforementioned interpolation step can theoretically obtain a highly accurate solution. The reason relies on the fact that the homotopy curve crosses exactly over the roots of the equilibrium equation; then, the straight line (10) also crosses over the exact solution.Spheres algorithm [37].
(a)
General homotopy trajectory
(b)
Piecewise linear homotopy trajectoryFigure 3
Interpolation procedure using a parametric straight line.


## 4. Cases Study

In the present section, we will solve four case studies [64] to show the usefulness of the proposed method to perform the DC analysis of nonlinear circuits composed of devices modelled using the explicit PWL model (1). For all the cases’ study, we use a constant radius r
=
0.1 for the hyperspheres.


### 4.1. Circuit with Two Nonlinear Resistors

The following case study shows a simple circuit composed of two nonlinear resistors as depicted in Figure4. The models of the resistors R
1 and R
2 are
(11)
R
1

:
i
1
=
-
125
8
+
9
8
v
1
+
7
8
|
v
1
+
1
|
-
3
2
|
v
1
-
2
|
+
3
4
|
v
1
-
5
|
R
1
:
i
1
=
-
1
8
|
v
1
-
11
|
-
9
8
|
v
1
-
13
|
+
2
|
v
1
-
15
|
,
R
2

:
i
2
=
29
4
+
3
2
v
2
-
3
2
|
v
2
+
8
|
+
3
2
|
v
2
+
5
|
-
3
2
|
v
2
+
3
|
R
2
:
i
2
=
+
3
2
|
v
2
+
1
|
-
3
4
|
v
2
-
3
|
-
5
4
|
v
2
-
8
|
+
3
2
|
v
2
-
10
|
R
2
:
i
2
=
+
|
v
2
-
13
|
-
5
4
|
v
2
-
16
|
+
1
4
|
v
2
-
18
|
,
described by 7 and 11 PWL segments, respectively.Figure 4
Two nonlinear resistor circuits.Using Kirchhoff laws, we obtain(12)
f
1
(
v
1
,
v
2
)
=
v
1
+
v
2
+
2
i
1
-
9
=
0
,
f
2
(
v
1
,
v
2
)
=
v
1
+
v
2
+
2
i
2
-
9
=
0
.
Applying the Newton homotopy to (12) combined with MSA yields
(13)
H
1
(
v
1
,
v
2
,
λ
)
=
f
1
(
v
1
,
v
2
)
+
(
λ
-
1
)
f
1
(
v
1,0
,
v
2,0
)
=
0
,
H
2
(
v
1
,
v
2
,
λ
)
=
f
2
(
v
1
,
v
2
)
+
(
λ
-
1
)
f
2
(
v
1,0
,
v
2,0
)
=
0
,
S
(
v
1
,
v
2
,
λ
)
=
(
v
1
-
c
1
)
2
+
(
v
2
-
c
2
)
2
+
(
λ
-
c
3
)
2
-
r
2
=
0
,
where v
1,0
=
-
5 and v
2,0
=
-
4 are the initial point of the homotopy at λ
0
=
0 and S
(
v
1
,
v
2
,
λ
) is the equation of the hypersphere whose center will be updated at each iteration of the method.For the first hypersphere the center is located atc
1
=
v
1,0, c
2
=
v
2,0, and c
3
=
λ
0. The centers of the successive hyperspheres are obtained using the aforementioned procedure in Section 3.1. As a result of MSA algorithm, the three operating points of the circuit have been located (see Figure 5). In addition, Table 1 shows the computed solutions, iterations, and the mean square error (MSE).Table 1
Numerical solutions for (12).
Solution
Iteration
v
1
v
2
MSE=
(
f
1
2
+
f
2
2
)
/
2
S
1
168
1.49999999999
1.49999999998
0
S
2
196
4.00000000122
0.999999999476
2.22
e
-
18
S
3
214
5.66666666670
0.666666666664
2.12
e
-
20Homotopy path for (13).
(a)
Projectionλ-v
1
(b)
Projectionλ-v
2


### 4.2. Circuit with Three Nonlinear Resistors

The following case study shows a circuit composed of three nonlinear resistors as depicted in Figure6. The models of R
1, R
2, and R
3 resistors are
(14)
R
1

:
i
1
=
5
6
|
v
1
+
6
|
-
5
6
|
v
1
-
6
|
,
R
2

:
v
2
=
1
6
|
i
2
+
1
|
-
1
6
|
i
2
-
5
|
,
R
3

:
i
3
=
v
3
-
5
4
|
v
3
-
1
|
+
2
|
v
3
-
2
|
-
|
v
3
-
3
|
,
described by 3, 3, and 4 PWL segments, respectively.Figure 6
Three nonlinear resistor circuits.Using Kirchhoff laws [64], we obtain
(15)
f
1
(
v
1
,
v
2
,
v
3
)
=
v
1
+
i
2
+
v
3
-
i
1
-
5
=
0
,
f
2
(
v
1
,
v
2
,
v
3
)
=
i
2
+
v
3
-
v
2
-
5
=
0
,
f
3
(
v
1
,
v
2
,
v
3
)
=
-
v
3
-
i
3
+
5
=
0
.Next, we apply the Newton homotopy to (15) as done for the first case study, using v
1,0
=
15, i
2,0
=
-
1, and v
3,0
=
15 as the initial point of the homotopy. As a result of tracing the homotopy path, the three operating points of the circuit have been located (see Figure 7). In addition, Table 2 shows the found solutions, iterations, and the mean square error (MSE).Table 2
Numerical solutions for (15).
Solution
Iteration
v
1
i
2
v
3
MSE
S
1
137
9.9333333333
2.20000000000
2.86666666667
1.71
e
-
22
S
2
382
0.0999999999
2.20000000000
2.86666666666
1.45
e
-
22
S
3
610
−10.0666666666
2.20000000000
2.86666666667
3.86
e
-
23Figure 7
Projectionλ-v
1 of homotopy path for (15).


### 4.3. Schmitt Trigger Circuit

Consider the Schmitt trigger circuit of Figure8(a), where the bipolar transistors are modelled using the simplified Ebers-Moll (see Figure 8(b)) model of NPN transistors as depicted in Figure 8(c). The PWL model of five segments of the diodes of all transistors is
(16)
i
d
(
v
d
)
=
-
0.05486777833
+
0.1482755558
v
d
+
0.01157779318
|
v
d
-
0.306
|
+
0.01181869788
|
v
d
-
0.3375
|
+
0.04904536922
|
v
d
-
0.366
|
+
0.07583369515
|
v
d
-
0.3875
|
.Schmitt trigger circuit.
(a)
Original circuit
(b)
Simplified Embers-Moll model
(c)
Schmitt trigger circuit using Embers-Moll modelUsing Kirchhoff laws, we obtain(17)
f
1
(
v
1
,
v
2
)
=
3.33
-
1000
(
i
d
(
v
1
)
+
i
d
(
v
2
)
)
-
v
1
=
0
,
f
2
(
v
1
,
v
2
)
=
4
-
1392
i
d
(
v
1
)
-
1096
i
d
(
v
2
)
-
v
2
=
0
.Then, Newton homotopy is applied in the same fashion as in the first example, using as starting pointv
1,0
=
-
5 and v
2,0
=
-
2 at λ
=
0. The results show that the homotopy trajectory crosses for the three operating points of the Schmitt trigger circuit as depicted in Figure 9 and Table 3.Table 3
Numerical solutions for (17).
Solution
Iteration
v
1
v
2
MSE
S
1
59
0.022145787125
0.374592098924
6.11
e
-
18
S
2
63
0.348923957274
0.358608185920
1.70
e
-
21
S
3
68
0.372176159314
−0.117291118129
5
e
-
21Homotopy path for (17) projected over λ-v
1.
(a)
Homotopy path
(b)
Zoom to the solutions region


### 4.4. Chua’s Circuit with Nine Solutions

Consider Chua’s circuit of Figure10, where the bipolar transistors are modelled using the simplified Ebers-Moll (see Figure 8(b)) model of NPN transistors. The PWL model for the diodes of all transistors is (16).Figure 10
Chua’s circuit with nine solutions.Using Kirchhoff laws, we obtain(18)
f
1
(
v
1
,
v
2
,
v
3
,
v
4
)
=
4.36634
v
2
+
6103.168
i
d
(
v
1
)
f
1
(
v
1
,
v
2
,
v
3
,
v
4
)
=
+
2863.168
i
d
(
v
2
)
-
12
=
0
,
f
2
(
v
1
,
v
2
,
v
3
,
v
4
)
=
5.4
v
1
+
v
3
+
3580
i
d
(
v
1
)
+
6620
i
d
(
v
2
)
f
2
(
v
1
,
v
2
,
v
3
,
v
4
)
=
+
700
i
d
(
v
3
)
+
500
i
d
(
v
4
)
-
22
=
0
,
f
3
(
v
1
,
v
2
,
v
3
,
v
4
)
=
4.36634
v
4
+
6103.168
i
d
(
v
3
)
f
3
(
v
1
,
v
2
,
v
3
,
v
4
)
=
+
2863.168
i
d
(
v
4
)
-
12
=
0
,
f
4
(
v
1
,
v
2
,
v
3
,
v
4
)
=
v
1
+
5.4
v
3
+
700
i
d
(
v
1
)
f
4
(
v
1
,
v
2
,
v
3
,
v
4
)
=
+
3580
i
d
(
v
3
)
+
6620
i
d
(
v
4
)
-
22
=
0
.The Newton homotopy is applied to (18) in the same way as in the first case study. We trace two trajectories with the following starting points: Q
1
=
[
-
7
,
-
1,8
,
1
] and Q
2
=
[
0
,
-
7,0
,
0
]. After using the adapted MSA algorithm, the nine solutions of the circuit were found (see Figure 11). In addition, Table 4 shows the found solutions, iterations, and the mean square error (MSE).Table 4
Numerical solutions for (18).
Path
Solution
Iteration
v
1
v
2
v
3
v
4
MSE
Q
1
S
1
105
−0.734973033383
0.376723496304
0.318166142629
0.372621919721
1.14
e
-
17
Q
1
S
2
111
−0.650249656974
0.376723495848
−0.239265377696
0.376723494677
6.64
e
-
14
Q
1
S
3
235
0.326931131382
0.369666979551
−0.48305281023
0.376723495005
3.61
e
-
16
Q
1
S
4
243
0.329725453371
0.368724929946
0.324331786706
0.370543296483
6.27
e
-
19
Q
1
S
5
312
0.386520101863
−4.29094430670
0.337714498625
0.365872023364
6.40
e
-
17
Q
1
S
6
328
0.388146243604
−4.75726420472
−1.12762657849
0.376723498380
5.69
e
-
17
Q
2
S
7
58
0.383283219902
−3.63542706051
0.383283217035
−3.63542647848
1.73
e
-
16
Q
2
S
8
193
0.338139358469
0.364994969864
0.387969158453
−4.68386026807
2.86
e
-
19
Q
2
S
9
215
−1.19554608083
0.376723498781
0.389904592568
−5.48612114477
2.42
e
-
16Homotopy paths for (18) projected over λ-v
3.
(a)
Homotopy path for initial pointQ
1
(b)
Zoom for (a)
(c)
Homotopy path for initial pointQ
2
(d)
Zoom for (c)


## 4.1. Circuit with Two Nonlinear Resistors

The following case study shows a simple circuit composed of two nonlinear resistors as depicted in Figure4. The models of the resistors R
1 and R
2 are
(11)
R
1

:
i
1
=
-
125
8
+
9
8
v
1
+
7
8
|
v
1
+
1
|
-
3
2
|
v
1
-
2
|
+
3
4
|
v
1
-
5
|
R
1
:
i
1
=
-
1
8
|
v
1
-
11
|
-
9
8
|
v
1
-
13
|
+
2
|
v
1
-
15
|
,
R
2

:
i
2
=
29
4
+
3
2
v
2
-
3
2
|
v
2
+
8
|
+
3
2
|
v
2
+
5
|
-
3
2
|
v
2
+
3
|
R
2
:
i
2
=
+
3
2
|
v
2
+
1
|
-
3
4
|
v
2
-
3
|
-
5
4
|
v
2
-
8
|
+
3
2
|
v
2
-
10
|
R
2
:
i
2
=
+
|
v
2
-
13
|
-
5
4
|
v
2
-
16
|
+
1
4
|
v
2
-
18
|
,
described by 7 and 11 PWL segments, respectively.Figure 4
Two nonlinear resistor circuits.Using Kirchhoff laws, we obtain(12)
f
1
(
v
1
,
v
2
)
=
v
1
+
v
2
+
2
i
1
-
9
=
0
,
f
2
(
v
1
,
v
2
)
=
v
1
+
v
2
+
2
i
2
-
9
=
0
.
Applying the Newton homotopy to (12) combined with MSA yields
(13)
H
1
(
v
1
,
v
2
,
λ
)
=
f
1
(
v
1
,
v
2
)
+
(
λ
-
1
)
f
1
(
v
1,0
,
v
2,0
)
=
0
,
H
2
(
v
1
,
v
2
,
λ
)
=
f
2
(
v
1
,
v
2
)
+
(
λ
-
1
)
f
2
(
v
1,0
,
v
2,0
)
=
0
,
S
(
v
1
,
v
2
,
λ
)
=
(
v
1
-
c
1
)
2
+
(
v
2
-
c
2
)
2
+
(
λ
-
c
3
)
2
-
r
2
=
0
,
where v
1,0
=
-
5 and v
2,0
=
-
4 are the initial point of the homotopy at λ
0
=
0 and S
(
v
1
,
v
2
,
λ
) is the equation of the hypersphere whose center will be updated at each iteration of the method.For the first hypersphere the center is located atc
1
=
v
1,0, c
2
=
v
2,0, and c
3
=
λ
0. The centers of the successive hyperspheres are obtained using the aforementioned procedure in Section 3.1. As a result of MSA algorithm, the three operating points of the circuit have been located (see Figure 5). In addition, Table 1 shows the computed solutions, iterations, and the mean square error (MSE).Table 1
Numerical solutions for (12).
Solution
Iteration
v
1
v
2
MSE=
(
f
1
2
+
f
2
2
)
/
2
S
1
168
1.49999999999
1.49999999998
0
S
2
196
4.00000000122
0.999999999476
2.22
e
-
18
S
3
214
5.66666666670
0.666666666664
2.12
e
-
20Homotopy path for (13).
(a)
Projectionλ-v
1
(b)
Projectionλ-v
2


## 4.2. Circuit with Three Nonlinear Resistors

The following case study shows a circuit composed of three nonlinear resistors as depicted in Figure6. The models of R
1, R
2, and R
3 resistors are
(14)
R
1

:
i
1
=
5
6
|
v
1
+
6
|
-
5
6
|
v
1
-
6
|
,
R
2

:
v
2
=
1
6
|
i
2
+
1
|
-
1
6
|
i
2
-
5
|
,
R
3

:
i
3
=
v
3
-
5
4
|
v
3
-
1
|
+
2
|
v
3
-
2
|
-
|
v
3
-
3
|
,
described by 3, 3, and 4 PWL segments, respectively.Figure 6
Three nonlinear resistor circuits.Using Kirchhoff laws [64], we obtain
(15)
f
1
(
v
1
,
v
2
,
v
3
)
=
v
1
+
i
2
+
v
3
-
i
1
-
5
=
0
,
f
2
(
v
1
,
v
2
,
v
3
)
=
i
2
+
v
3
-
v
2
-
5
=
0
,
f
3
(
v
1
,
v
2
,
v
3
)
=
-
v
3
-
i
3
+
5
=
0
.Next, we apply the Newton homotopy to (15) as done for the first case study, using v
1,0
=
15, i
2,0
=
-
1, and v
3,0
=
15 as the initial point of the homotopy. As a result of tracing the homotopy path, the three operating points of the circuit have been located (see Figure 7). In addition, Table 2 shows the found solutions, iterations, and the mean square error (MSE).Table 2
Numerical solutions for (15).
Solution
Iteration
v
1
i
2
v
3
MSE
S
1
137
9.9333333333
2.20000000000
2.86666666667
1.71
e
-
22
S
2
382
0.0999999999
2.20000000000
2.86666666666
1.45
e
-
22
S
3
610
−10.0666666666
2.20000000000
2.86666666667
3.86
e
-
23Figure 7
Projectionλ-v
1 of homotopy path for (15).


## 4.3. Schmitt Trigger Circuit

Consider the Schmitt trigger circuit of Figure8(a), where the bipolar transistors are modelled using the simplified Ebers-Moll (see Figure 8(b)) model of NPN transistors as depicted in Figure 8(c). The PWL model of five segments of the diodes of all transistors is
(16)
i
d
(
v
d
)
=
-
0.05486777833
+
0.1482755558
v
d
+
0.01157779318
|
v
d
-
0.306
|
+
0.01181869788
|
v
d
-
0.3375
|
+
0.04904536922
|
v
d
-
0.366
|
+
0.07583369515
|
v
d
-
0.3875
|
.Schmitt trigger circuit.
(a)
Original circuit
(b)
Simplified Embers-Moll model
(c)
Schmitt trigger circuit using Embers-Moll modelUsing Kirchhoff laws, we obtain(17)
f
1
(
v
1
,
v
2
)
=
3.33
-
1000
(
i
d
(
v
1
)
+
i
d
(
v
2
)
)
-
v
1
=
0
,
f
2
(
v
1
,
v
2
)
=
4
-
1392
i
d
(
v
1
)
-
1096
i
d
(
v
2
)
-
v
2
=
0
.Then, Newton homotopy is applied in the same fashion as in the first example, using as starting pointv
1,0
=
-
5 and v
2,0
=
-
2 at λ
=
0. The results show that the homotopy trajectory crosses for the three operating points of the Schmitt trigger circuit as depicted in Figure 9 and Table 3.Table 3
Numerical solutions for (17).
Solution
Iteration
v
1
v
2
MSE
S
1
59
0.022145787125
0.374592098924
6.11
e
-
18
S
2
63
0.348923957274
0.358608185920
1.70
e
-
21
S
3
68
0.372176159314
−0.117291118129
5
e
-
21Homotopy path for (17) projected over λ-v
1.
(a)
Homotopy path
(b)
Zoom to the solutions region


## 4.4. Chua’s Circuit with Nine Solutions

Consider Chua’s circuit of Figure10, where the bipolar transistors are modelled using the simplified Ebers-Moll (see Figure 8(b)) model of NPN transistors. The PWL model for the diodes of all transistors is (16).Figure 10
Chua’s circuit with nine solutions.Using Kirchhoff laws, we obtain(18)
f
1
(
v
1
,
v
2
,
v
3
,
v
4
)
=
4.36634
v
2
+
6103.168
i
d
(
v
1
)
f
1
(
v
1
,
v
2
,
v
3
,
v
4
)
=
+
2863.168
i
d
(
v
2
)
-
12
=
0
,
f
2
(
v
1
,
v
2
,
v
3
,
v
4
)
=
5.4
v
1
+
v
3
+
3580
i
d
(
v
1
)
+
6620
i
d
(
v
2
)
f
2
(
v
1
,
v
2
,
v
3
,
v
4
)
=
+
700
i
d
(
v
3
)
+
500
i
d
(
v
4
)
-
22
=
0
,
f
3
(
v
1
,
v
2
,
v
3
,
v
4
)
=
4.36634
v
4
+
6103.168
i
d
(
v
3
)
f
3
(
v
1
,
v
2
,
v
3
,
v
4
)
=
+
2863.168
i
d
(
v
4
)
-
12
=
0
,
f
4
(
v
1
,
v
2
,
v
3
,
v
4
)
=
v
1
+
5.4
v
3
+
700
i
d
(
v
1
)
f
4
(
v
1
,
v
2
,
v
3
,
v
4
)
=
+
3580
i
d
(
v
3
)
+
6620
i
d
(
v
4
)
-
22
=
0
.The Newton homotopy is applied to (18) in the same way as in the first case study. We trace two trajectories with the following starting points: Q
1
=
[
-
7
,
-
1,8
,
1
] and Q
2
=
[
0
,
-
7,0
,
0
]. After using the adapted MSA algorithm, the nine solutions of the circuit were found (see Figure 11). In addition, Table 4 shows the found solutions, iterations, and the mean square error (MSE).Table 4
Numerical solutions for (18).
Path
Solution
Iteration
v
1
v
2
v
3
v
4
MSE
Q
1
S
1
105
−0.734973033383
0.376723496304
0.318166142629
0.372621919721
1.14
e
-
17
Q
1
S
2
111
−0.650249656974
0.376723495848
−0.239265377696
0.376723494677
6.64
e
-
14
Q
1
S
3
235
0.326931131382
0.369666979551
−0.48305281023
0.376723495005
3.61
e
-
16
Q
1
S
4
243
0.329725453371
0.368724929946
0.324331786706
0.370543296483
6.27
e
-
19
Q
1
S
5
312
0.386520101863
−4.29094430670
0.337714498625
0.365872023364
6.40
e
-
17
Q
1
S
6
328
0.388146243604
−4.75726420472
−1.12762657849
0.376723498380
5.69
e
-
17
Q
2
S
7
58
0.383283219902
−3.63542706051
0.383283217035
−3.63542647848
1.73
e
-
16
Q
2
S
8
193
0.338139358469
0.364994969864
0.387969158453
−4.68386026807
2.86
e
-
19
Q
2
S
9
215
−1.19554608083
0.376723498781
0.389904592568
−5.48612114477
2.42
e
-
16Homotopy paths for (18) projected over λ-v
3.
(a)
Homotopy path for initial pointQ
1
(b)
Zoom for (a)
(c)
Homotopy path for initial pointQ
2
(d)
Zoom for (c)


## 5. Numerical Simulation and Discussion

All case studies were successfully solved using the proposed methodology. For the first three case studies, it was possible to find within a single trajectory the three operating points of each problem, and for the last case study, we find the nine solutions of Chua’s circuit using two starting points. The high accuracy of the located operating points shows that the simple interpolation algorithm based on straight lines is a powerful tool and is simple to implement (see Tables1–4). Besides, the accuracy of the interpolate solutions allows us to discard the stage of applying NRM extra steps to increase accuracy usually required by path tracking algorithms [4, 5, 12, 13, 21, 25–28]. It is important to remark that the variety of solved circuits exhibits the high potential of HCM combined with MSA to solve multistable nonlinear circuits integrated by devices modelled with explicit PWL representations.In [53, 54] methods based on the Newton homotopy are reported, which are capable of locating only one solution per simulation. Therefore if user requires to find more solutions, it is necessary to propose some random initial points to perform more simulations. Instead, the proposed methodology is capable of locating multiple operating points within a single path or simulation.Methods reported in [55, 56] use implicit PWL models. This implies that the number of linear regions explodes due to the diode synthesis. Besides, compared to the explicit models, implicit PWL models require a more complex algorithm to compute the model state variables. The proposed methodology uses an explicit model representation easy to implement.In [57] a methodology that depends on the specific circuit topology description of multiport with extracted ideal diodes is reported. In such methodology, circuit equations are expressed in terms of the LCP which implies computing model state variables. The proposed methodology is based on a straightforward methodology based on the traditional circuit analysis tools used to build commercial circuit simulators and a simple path tracking algorithm easy to implement.Further research should be addressed in the following topics.(i)
Implement a strategy to use the fact that the homotopy curves are straight lines to accelerate the homotopy simulation.
(ii)
Implement a circuit simulator to solve high density transistor circuits modelled by the PWL technique.
(iii)
Replace the Newton homotopy by other methods as the fixed point homotopy [14], double bounded homotopy [12, 37], double bounded polynomial homotopy [11, 36], Newton fixed-point homotopy [67], d-homotopy [68], and multiparameter homotopy [13, 17], among others. This research can lead to proposal of better homotopy schemes with better results in aspects like number of found solutions, CPU time, and global convergence, among others.
(iv)
Theoretically obtain the position of the break points of the PWL homotopy curve, significantly decreasing the number of steps. Such research can conduct to a very fast path tracking scheme.
(v)
Propose a methodology to obtain an optimal initial point for the homotopy simulation. This golden starting point will possess the characteristic of producing a minimum number of iterations and a maximum number of found solutions or all solutions.


## 6. Conclusions

In this work, we presented a homotopy scheme based on the Newton homotopy and a modified MSA path tracking algorithm, applied to the DC simulation of nonlinear circuits composed of devices modelled by PWL techniques. The effectiveness and power of the proposed scheme were exhibited by the successful solution of all the operating points of several circuits including devices as nonlinear resistors, diodes, transistors, and transactors, among others. In addition, the high accuracy of the solutions was reached by applying a simple interpolation technique that discards the use of Newton-Raphson extra steps to increase the accuracy of the interpolated solutions. Finally, further research should be performed to extend the application of the proposed scheme to very large integrated circuits (VLSI).



---

*Source: 938598-2014-08-11.xml*