Dynamics of Social Systems by C. Sidney Burrus, Howard Resnikoff - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Chapter 6Simulation

Dynamic Simulation on a Digital Computer

If a system is modeled by a differential equation, and if the equations are numerically solved on a digital computer or calculator, the system is said to be simulated on the computer. If the model is valid and the numerical methods accurate, experiments can be performed on the computer simulation that might be impossible to conduct otherwise.

Consider several examples that use the models already discussed. If a population is governed by a linear first-order equation

(6.1)
_autogen-svg2png-0001.png

one would not be able to "solve" this equation on a computer. If, however, we use Euler's method as was done in (14) by approximating the derivative as

(6.2)
_autogen-svg2png-0002.png

where time is considered at intervals of _autogen-svg2png-0003.png,

(6.3)
_autogen-svg2png-0004.png

This gives for (1) .EQ (34)

(6.4)
_autogen-svg2png-0005.png

If we include the time interval T in the functional notation by

(6.5)
_autogen-svg2png-0007.png

then (3) becomes

(6.6)
_autogen-svg2png-0008.png

which is now in a form that one can easily calculate successive values of x(n) given any initial value. This can be programmed on a computer or simply done on a hand calculator.

Next, consider the nonlinear equation that models a population with a simple limit given by (23).

(6.7)
_autogen-svg2png-0010.png

Using Euler's method again gives

(6.8)
_autogen-svg2png-0011.png

This equation is complex enough to illustrate several points; therefore, we will examine several numerical solutions. Equation 6.8 was programmed on a Tektronix 31 programmable calculator with a plotter automatically plotting the solutions by drawing straight lines between successive _autogen-svg2png-0012.png.

First, consider a low-density growth rate of _autogen-svg2png-0013.png or 10% per year for an initial population of _autogen-svg2png-0014.png over a time period of 100 years. We will use for the reducing effect on the growth rate in (2), a value of _autogen-svg2png-0015.png, which implies a carrying capacity for the system of _autogen-svg2png-0016.png. For the Euler method, a time interval of _autogen-svg2png-0017.pngyears is used, which means 50 calculations of (6) will be necessary for the 100-year period.

The curves in Figure A are the output of the simulation for the above parameters and also for other growth rates of 5% and 20%. Note the solution always approaching the same limit but requiring different amounts of time.

In Figure B, the model is run assuming several different initial populations. Again, the solutions always approach the limit of _autogen-svg2png-0018.png, even if the initial population is greater than _autogen-svg2png-0019.png.

Figure C shows the effects of various amounts of limiting by considering various values for the factor _autogen-svg2png-0020.png, and therefore _autogen-svg2png-0021.png, the carrying capacity. When the limit is removed (_autogen-svg2png-0022.png), the growth is exponential.

These examples illustrate the kinds of questions that can be pursued by running experiments on the computer simulation. There is one more point that should be considered. It has nothing to do with the differential equation model (23) but with the numerical procedure, Euler's method. Consider the effects of using various time intervals T while holding everything else constant. Figure D shows the results of this experiment. The curve resulting from using a time interval of _autogen-svg2png-0024.pngyears looks essentially the same as the exact solution of the differential equation. The numerical solution deviates more as T is increased until, for _autogen-svg2png-0026.pngyears, it has lost the character of the exact solution. A method for checking to see if T is sufficiently small is to try halving it until the change is small.

One last point should be made concerning this numerical simulation. Euler's method is the only approach to numerically solve (23) that has been discussed. That is not because it is the best – there are far more efficient and sophisticated methods – but that is not our subject here, so we will continue with the straightforward algorithm of Euler.

The super-exponential logistic equation of (31) was simulated on the calculator and run with a low population growth rate of _autogen-svg2png-0028.png, a maximum rate of _autogen-svg2png-0029.png, and a carrying capacity of _autogen-svg2png-0030.png. This solution is shown in Figure E and compared with an exponential of the same _autogen-svg2png-0031.png, and a simple logistic of the same ro and _autogen-svg2png-0033.png. The model was run again with a maximum growth rate of _autogen-svg2png-0034.png, and the results are shown in Figure F. Note the initial exponential growth which becomes super-exponential, growing extremely rapidly, then abruptly leveling off to an equilibrium.

Solutions