Quantized State Systems Method
   HOME

TheInfoList



OR:

The quantized state systems (QSS) methods are a family of numerical integration solvers based on the idea of state quantization,
dual Dual or Duals may refer to: Paired/two things * Dual (mathematics), a notion of paired concepts that mirror one another ** Dual (category theory), a formalization of mathematical duality *** see more cases in :Duality theories * Dual number, a nu ...
to the traditional idea of time discretization. Unlike traditional numerical solution methods, which approach the problem by
discretizing In applied mathematics, discretization is the process of transferring continuous functions, models, variables, and equations into discrete counterparts. This process is usually carried out as a first step toward making them suitable for numerica ...
time and solving for the next (real-valued) state at each successive time step, QSS methods keep time as a continuous entity and instead quantize the system's state, instead solving for the ''time'' at which the state deviates from its quantized value by a ''quantum''. They can also have many advantages compared to classical algorithms. They inherently allow for modeling discontinuities in the system due to their discrete-event nature and asynchronous nature. They also allow for explicit root-finding and detection of zero-crossing using ''explicit'' algorithms, avoiding the need for iteration---a fact which is especially important in the case of stiff systems, where traditional time-stepping methods require a heavy computational penalty due to the requirement to implicitly solve for the next system state. Finally, QSS methods satisfy remarkable global stability and error bounds, described below, which are not satisfied by classical solution techniques. By their nature, QSS methods are therefore neatly modeled by the
DEVS DEVS, abbreviating Discrete Event System Specification, is a modular and hierarchical formalism for modeling and analyzing general systems that can be discrete event systems which might be described by state transition tables, and continuous stat ...
formalism, a discrete-event
model of computation In computer science, and more specifically in computability theory and computational complexity theory, a model of computation is a model which describes how an output of a mathematical function is computed given an input. A model describes how ...
, in contrast with traditional methods, which form
discrete-time In mathematical dynamics, discrete time and continuous time are two alternative frameworks within which variables that evolve over time are modeled. Discrete time Discrete time views values of variables as occurring at distinct, separate "poi ...
models of the
continuous-time In mathematical dynamics, discrete time and continuous time are two alternative frameworks within which variables that evolve over time are modeled. Discrete time Discrete time views values of variables as occurring at distinct, separate "poi ...
system. They have therefore been implemented in owerDEVS a simulation engine for such discrete-event systems.


Theoretical properties

In 2001, Ernesto Kofman proved a remarkable property of the quantized-state system simulation method: namely, that when the technique is used to solve a
stable A stable is a building in which working animals are kept, especially horses or oxen. The building is usually divided into stalls, and may include storage for equipment and feed. Styles There are many different types of stables in use tod ...
linear time-invariant (LTI) system, the global error is bounded by a constant that is proportional to the quantum, but (crucially) independent of the duration of the simulation. More specifically, for a stable multidimensional LTI system with the
state-transition matrix In control theory, the state-transition matrix is a matrix whose product with the state vector x at an initial time t_0 gives x at a later time t. The state-transition matrix can be used to obtain the general solution of linear dynamical system ...
A and input matrix B, it was shown in K06that the absolute error vector \vec(t) is bounded above by : \left, \vec(t) \ \leq \left, V \\ \left, \Re\left(\Lambda\right)^ \Lambda \\ \left, V^ \\ \Delta\vec + \left, V \\ \left, \Re\left(\Lambda\right)^ V^ B \\ \Delta\vec where \Delta\vec is the vector of state quanta, \Delta\vec is the vector with quanta adopted in the input signals, V \Lambda V^ = A is the
eigendecomposition In linear algebra, eigendecomposition is the factorization of a matrix into a canonical form, whereby the matrix is represented in terms of its eigenvalues and eigenvectors. Only diagonalizable matrices can be factorized in this way. When the mat ...
or
Jordan canonical form \begin \lambda_1 1\hphantom\hphantom\\ \hphantom\lambda_1 1\hphantom\\ \hphantom\lambda_1\hphantom\\ \hphantom\lambda_2 1\hphantom\hphantom\\ \hphantom\hphantom\lambda_2\hphantom\\ \hphantom\lambda_3\hphantom\\ \hphantom\ddots\hphantom\\ ...
of A, and \left, \,\cdot\,\ denotes the element-wise
absolute value In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if x is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), ...
operator (not to be confused with the
determinant In mathematics, the determinant is a Scalar (mathematics), scalar-valued function (mathematics), function of the entries of a square matrix. The determinant of a matrix is commonly denoted , , or . Its value characterizes some properties of the ...
or
norm Norm, the Norm or NORM may refer to: In academic disciplines * Normativity, phenomenon of designating things as good or bad * Norm (geology), an estimate of the idealised mineral content of a rock * Norm (philosophy), a standard in normative e ...
). It is worth noticing that this remarkable error bound comes at a price: the global error for a stable LTI system is also, in a sense, bounded ''below'' by the quantum itself, at least for the first-order QSS1 method. This is because, unless the approximation happens to coincide ''exactly'' with the correct value (an event which will
almost surely In probability theory, an event is said to happen almost surely (sometimes abbreviated as a.s.) if it happens with probability 1 (with respect to the probability measure). In other words, the set of outcomes on which the event does not occur ha ...
not happen), it will simply continue oscillating around the equilibrium, as the state is always (by definition) guaranteed to change by exactly one quantum outside of the equilibrium. Avoiding this condition would require finding a reliable technique for dynamically lowering the quantum in a manner analogous to
adaptive stepsize In mathematics and numerical analysis, an adaptive step size is used in some methods for the numerical solution of ordinary differential equations (including the special case of numerical integration) in order to control the errors of the metho ...
methods in traditional discrete time simulation algorithms.


First-order QSS method – QSS1

Let an
initial value problem In multivariable calculus, an initial value problem (IVP) is an ordinary differential equation together with an initial condition which specifies the value of the unknown function at a given point in the domain. Modeling a system in physics or ...
be specified as follows. : \dot(t) = f(x(t), t), \quad x(t_0) = x_0. The first-order QSS method, known as QSS1, approximates the above system by : \dot(t) = f(q(t), t), \quad q(t_0) = x_0. where x and q are related by a ''
hysteretic Hysteresis is the dependence of the state of a system on its history. For example, a magnet may have more than one possible magnetic moment in a given magnetic field, depending on how the field changed in the past. Plots of a single component of ...
quantization function'' :q(t) = \beginx(t) & \text \left, x(t) - q(t^)\ \geq \Delta Q \\ q(t^) & \text\end where \Delta Q is called a ''quantum''. Notice that this quantization function is hysteretic because it has ''memory'': not only is its output a function of the current state x(t), but it also depends on its old value, q(t^). This formulation therefore approximates the state by a piecewise constant function, q(t), that updates its value as soon as the state deviates from this approximation by one quantum. The
multidimensional In physics and mathematics, the dimension of a Space (mathematics), mathematical space (or Mathematical object, object) is informally defined as the minimum number of coordinates needed to specify any Point (geometry), point within it. Thus, a ...
formulation of this system is almost the same as the single-dimensional formulation above: the k^\text quantized state q_k(t) is a function of its corresponding state, x_k(t), and the state vector \vec(t) is a function of the entire quantized state vector, \vec(t): :\vec(t) = f(\vec(t), t)


High-order QSS methods – QSS2 and QSS3

The second-order QSS method, QSS2, follows the same principle as QSS1, except that it defines q(t) as a piecewise linear approximation of the trajectory x(t) that updates its trajectory as soon as the two differ from each other by one quantum. The pattern continues for higher-order approximations, which define the quantized state q(t) as successively higher-order polynomial approximations of the system's state. It is important to note that, while in principle a QSS method of arbitrary order can be used to model a continuous-time system, it is seldom desirable to use methods of order higher than four, as the
Abel–Ruffini theorem In mathematics, the Abel–Ruffini theorem (also known as Abel's impossibility theorem) states that there is no solution in radicals to general polynomial equations of degree five or higher with arbitrary coefficients. Here, ''general'' means t ...
implies that the time of the next quantization, t, cannot (in general) be explicitly solved for algebraically when the polynomial approximation is of degree greater than four, and hence must be approximated iteratively using a
root-finding algorithm In numerical analysis, a root-finding algorithm is an algorithm for finding zeros, also called "roots", of continuous functions. A zero of a function is a number such that . As, generally, the zeros of a function cannot be computed exactly nor ...
. In practice, QSS2 or QSS3 proves sufficient for many problems and the use of higher-order methods results in little, if any, additional benefit.


Software implementation

The QSS Methods can be implemented as a discrete event system and simulated in any
DEVS DEVS, abbreviating Discrete Event System Specification, is a modular and hierarchical formalism for modeling and analyzing general systems that can be discrete event systems which might be described by state transition tables, and continuous stat ...
simulator. QSS methods constitute the main numerical solver for
PowerDEVS PowerDEVS is a general purpose software tool for DEVS modeling and simulation oriented to the simulation of hybrid systems. The environment allows defining atomic DEVS models in C++ language that can be then graphically coupled in hierarchical bloc ...
K011software. They have also been implemented in as a stand-alone version.


References

* K06 * K11


External links


Stand-alone implementation of QSS MethodsPowerDEVS at SourceForge
{{DEFAULTSORT:Quantized State System Methods Numerical differential equations