From dec1455c38a4d5324c5a0cbb8a4d96aa42fdf105 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Sun, 9 Aug 2020 23:37:56 -0700 Subject: [PATCH 001/260] code fix and unit test --- control/tests/timeresp_test.py | 8 ++++++++ control/timeresp.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 5549b2a88..93ac59e25 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -204,6 +204,14 @@ def test_impulse_response(self): np.testing.assert_array_almost_equal( yy, np.vstack((youttrue, np.zeros_like(youttrue))), decimal=4) + # discrete time + self.siso_tf1 + dt = 0.1 + sysdt = self.siso_tf1.sample(dt, 'impulse') + t = np.arange(0, 3, dt) + np.testing.assert_array_almost_equal(control.impulse_response(sys, t)[1], + control.impulse_response(sysdt, t)[1]) + def test_initial_response(self): # Test SISO system sys = self.siso_ss1 diff --git a/control/timeresp.py b/control/timeresp.py index 8670c180d..d6c31a89b 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -815,7 +815,7 @@ def impulse_response(sys, T=None, X0=0., input=0, output=None, T_num=None, new_X0 = B + X0 else: new_X0 = X0 - U[0] = 1. + U[0] = 1./sys.dt # unit area impulse T, yout, _xout = forced_response(sys, T, U, new_X0, transpose=transpose, squeeze=squeeze) From 0b85e3b13538257aab64b910ab4dace7a7146831 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 10 Aug 2020 13:41:40 -0700 Subject: [PATCH 002/260] suggested fix to unit test --- control/tests/timeresp_test.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 93ac59e25..39bc533bf 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -204,14 +204,15 @@ def test_impulse_response(self): np.testing.assert_array_almost_equal( yy, np.vstack((youttrue, np.zeros_like(youttrue))), decimal=4) - # discrete time - self.siso_tf1 + def test_discrete_time_impulse(self): + # discrete time impulse sampled version should match cont time dt = 0.1 - sysdt = self.siso_tf1.sample(dt, 'impulse') t = np.arange(0, 3, dt) - np.testing.assert_array_almost_equal(control.impulse_response(sys, t)[1], - control.impulse_response(sysdt, t)[1]) - + sys = self.siso_tf1 + sysdt = sys.sample(dt, 'impulse') + np.testing.assert_array_almost_equal(impulse_response(sys, t)[1], + impulse_response(sysdt, t)[1]) + def test_initial_response(self): # Test SISO system sys = self.siso_ss1 From 1a6d80668b3ea81329f0e474400be1a84205fd86 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 14 Aug 2020 13:45:03 -0700 Subject: [PATCH 003/260] eliminate _evalfr in lti system classes, replaced with __call__, which evaluates at many frequencies at once --- control/bench/time_freqresp.py | 4 +- control/frdata.py | 168 +++++++++++--------------- control/freqplot.py | 14 +-- control/lti.py | 74 ++++++++++-- control/margins.py | 16 +-- control/nichols.py | 2 +- control/statesp.py | 147 ++++++++--------------- control/tests/frd_test.py | 179 ++++++++++++---------------- control/tests/freqresp_test.py | 12 +- control/tests/statesp_array_test.py | 23 +--- control/tests/statesp_test.py | 39 ++---- control/tests/xferfcn_test.py | 38 ++---- control/xferfcn.py | 110 +++-------------- doc/control.rst | 1 + examples/robust_mimo.py | 2 +- examples/robust_siso.py | 8 +- 16 files changed, 333 insertions(+), 504 deletions(-) diff --git a/control/bench/time_freqresp.py b/control/bench/time_freqresp.py index 1945cbc24..3ae837082 100644 --- a/control/bench/time_freqresp.py +++ b/control/bench/time_freqresp.py @@ -8,7 +8,7 @@ sys_tf = tf(sys) w = logspace(-1,1,50) ntimes = 1000 -time_ss = timeit("sys.freqresp(w)", setup="from __main__ import sys, w", number=ntimes) -time_tf = timeit("sys_tf.freqresp(w)", setup="from __main__ import sys_tf, w", number=ntimes) +time_ss = timeit("sys.freqquency_response(w)", setup="from __main__ import sys, w", number=ntimes) +time_tf = timeit("sys_tf.frequency_response(w)", setup="from __main__ import sys_tf, w", number=ntimes) print("State-space model on %d states: %f" % (nstates, time_ss)) print("Transfer-function model on %d states: %f" % (nstates, time_tf)) diff --git a/control/frdata.py b/control/frdata.py index 8ca9dfd9d..084f4aba3 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -47,8 +47,8 @@ # External function declarations from warnings import warn import numpy as np -from numpy import angle, array, empty, ones, \ - real, imag, absolute, eye, linalg, where, dot +from numpy import angle, array, empty, ones, isin, \ + real, imag, absolute, eye, linalg, where, dot, sort from scipy.interpolate import splprep, splev from .lti import LTI @@ -107,17 +107,10 @@ def __init__(self, *args, **kwargs): # not an FRD, but still a system, second argument should be # the frequency range otherlti = args[0] - self.omega = array(args[1], dtype=float) - self.omega.sort() + self.omega = sort(np.asarray(args[1], dtype=float)) numfreq = len(self.omega) - # calculate frequency response at my points - self.fresp = empty( - (otherlti.outputs, otherlti.inputs, numfreq), - dtype=complex) - for k, w in enumerate(self.omega): - self.fresp[:, :, k] = otherlti._evalfr(w) - + self.fresp = otherlti(1j * self.omega, squeeze=False) else: # The user provided a response and a freq vector self.fresp = array(args[0], dtype=complex) @@ -141,7 +134,7 @@ def __init__(self, *args, **kwargs): self.omega = args[0].omega self.fresp = args[0].fresp else: - raise ValueError("Needs 1 or 2 arguments; receivd %i." % len(args)) + raise ValueError("Needs 1 or 2 arguments; received %i." % len(args)) # create interpolation functions if smooth: @@ -163,7 +156,7 @@ def __str__(self): mimo = self.inputs > 1 or self.outputs > 1 outstr = ['Frequency response data'] - mt, pt, wt = self.freqresp(self.omega) + #mt, pt, wt = self.frequency_response(self.omega) for i in range(self.inputs): for j in range(self.outputs): if mimo: @@ -173,7 +166,7 @@ def __str__(self): outstr.extend( ['%12.3f %10.4g%+10.4gj' % (w, m, p) for m, p, w in zip(real(self.fresp[j, i, :]), - imag(self.fresp[j, i, :]), wt)]) + imag(self.fresp[j, i, :]), self.omega)]) return '\n'.join(outstr) @@ -342,28 +335,14 @@ def __pow__(self, other): return (FRD(ones(self.fresp.shape), self.omega) / self) * \ (self**(other+1)) - def evalfr(self, omega): - """Evaluate a transfer function at a single angular frequency. - - self._evalfr(omega) returns the value of the frequency response - at frequency omega. - - Note that a "normal" FRD only returns values for which there is an - entry in the omega vector. An interpolating FRD can return - intermediate values. - - """ - warn("FRD.evalfr(omega) will be deprecated in a future release " - "of python-control; use sys.eval(omega) instead", - PendingDeprecationWarning) # pragma: no coverage - return self._evalfr(omega) - # Define the `eval` function to evaluate an FRD at a given (real) # frequency. Note that we choose to use `eval` instead of `evalfr` to # avoid confusion with :func:`evalfr`, which takes a complex number as its # argument. Similarly, we don't use `__call__` to avoid confusion between # G(s) for a transfer function and G(omega) for an FRD object. - def eval(self, omega): + # update Sawyer B. Fuller 2020.08.14: __call__ added to provide a uniform + # interface to systems in general and the lti.frequency_response method + def eval(self, omega, squeeze=True): """Evaluate a transfer function at a single angular frequency. self.evalfr(omega) returns the value of the frequency response @@ -371,81 +350,69 @@ def eval(self, omega): Note that a "normal" FRD only returns values for which there is an entry in the omega vector. An interpolating FRD can return - intermediate values. + intermediate values. + + squeeze: bool, optional (default=True) + If True and sys is single input, single output (SISO), return a + 1D array or scalar depending on omega's length. """ - return self._evalfr(omega) - - # Internal function to evaluate the frequency responses - def _evalfr(self, omega): - """Evaluate a transfer function at a single angular frequency.""" - # Preallocate the output. - if getattr(omega, '__iter__', False): - out = empty((self.outputs, self.inputs, len(omega)), dtype=complex) - else: - out = empty((self.outputs, self.inputs), dtype=complex) + omega_array = np.array(omega, ndmin=1) # array-like version of omega + if any(omega_array.imag > 0): + raise ValueError("FRD.eval can only accept real-valued omega") if self.ifunc is None: - try: - out = self.fresp[:, :, where(self.omega == omega)[0][0]] - except Exception: + elements = isin(self.omega, omega) + if sum(elements) < len(omega_array): raise ValueError( - "Frequency %f not in frequency list, try an interpolating" - " FRD if you want additional points" % omega) - else: - if getattr(omega, '__iter__', False): - for i in range(self.outputs): - for j in range(self.inputs): - for k, w in enumerate(omega): - frraw = splev(w, self.ifunc[i, j], der=0) - out[i, j, k] = frraw[0] + 1.0j * frraw[1] + "not all frequencies omega are in frequency list of FRD " + "system. Try an interpolating FRD for additional points.") else: - for i in range(self.outputs): - for j in range(self.inputs): - frraw = splev(omega, self.ifunc[i, j], der=0) - out[i, j] = frraw[0] + 1.0j * frraw[1] - + out = self.fresp[:, :, elements] + else: + out = empty((self.outputs, self.inputs, len(omega_array))) + for i in range(self.outputs): + for j in range(self.inputs): + for k, w in enumerate(omega_array): + frraw = splev(w, self.ifunc[i, j], der=0) + out[i, j, k] = frraw[0] + 1.0j * frraw[1] + if not hasattr(omega, '__len__'): + # omega is a scalar, squeeze down array along last dim + out = np.squeeze(out, axis=2) + if squeeze and self.issiso(): + out = out[0][0] return out - # Method for generating the frequency response of the system - def freqresp(self, omega): - """Evaluate the frequency response at a list of angular frequencies. - - Reports the value of the magnitude, phase, and angular frequency of - the requency response evaluated at omega, where omega is a list of - angular frequencies, and is a sorted version of the input omega. - - Parameters - ---------- - omega : array_like - A list of frequencies in radians/sec at which the system should be - evaluated. The list can be either a python list or a numpy array - and will be sorted before evaluation. - - Returns - ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray - The magnitude (absolute value, not dB or log10) of the system - frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray - The wrapped phase in radians of the system frequency response. - omega : ndarray or list or tuple - The list of sorted frequencies at which the response was - evaluated. - """ - # Preallocate outputs. - numfreq = len(omega) - mag = empty((self.outputs, self.inputs, numfreq)) - phase = empty((self.outputs, self.inputs, numfreq)) - - omega.sort() + def __call__(self, s, squeeze=True): + """Evaluate the system's transfer function at complex frequencies s. - for k, w in enumerate(omega): - fresp = self._evalfr(w) - mag[:, :, k] = abs(fresp) - phase[:, :, k] = angle(fresp) + For a SISO system, returns the complex value of the + transfer function. For a MIMO transfer fuction, returns a + matrix of values. + + Raises an error if s is not purely imaginary. + + squeeze: bool, optional (default=True) + If True and sys is single input, single output (SISO), return a + 1D array or scalar depending on omega's length. - return mag, phase, omega + """ + if any(abs(np.array(s, ndmin=1).real) > 0): + raise ValueError("__call__: FRD systems can only accept" + "purely imaginary frequencies") + # need to preserve array or scalar status + if hasattr(s, '__len__'): + return self.eval(np.asarray(s).imag, squeeze=squeeze) + else: + return self.eval(complex(s).imag, squeeze=squeeze) + + def freqresp(self, omega): + warn("FrequencyResponseData.freqresp(omega) will be deprecated in a " + "future release of python-control; use " + "FrequencyResponseData.frequency_response(sys, omega), or " + "freqresp(sys, omega) in the MATLAB compatibility module " + "instead", PendingDeprecationWarning) + return self.frequency_response(omega) def feedback(self, other=1, sign=-1): """Feedback interconnection between two FRD objects.""" @@ -515,11 +482,10 @@ def _convertToFRD(sys, omega, inputs=1, outputs=1): "Frequency ranges of FRD do not match, conversion not implemented") elif isinstance(sys, LTI): - omega.sort() - fresp = empty((sys.outputs, sys.inputs, len(omega)), dtype=complex) - for k, w in enumerate(omega): - fresp[:, :, k] = sys._evalfr(w) - + omega = np.sort(omega) + fresp = sys(1j * omega) + if len(fresp.shape) == 1: + fresp = fresp[np.newaxis, np.newaxis, :] return FRD(fresp, omega, smooth=True) elif isinstance(sys, (int, float, complex, np.number)): diff --git a/control/freqplot.py b/control/freqplot.py index 7b296c111..ef63dd2fb 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -136,7 +136,7 @@ def bode_plot(syslist, omega=None, Notes ----- 1. Alternatively, you may use the lower-level method (mag, phase, freq) - = sys.freqresp(freq) to generate the frequency response for a system, + = sys.frequency_response(freq) to generate the frequency response for a system, but it returns a MIMO response. 2. If a discrete time model is given, the frequency response is plotted @@ -207,7 +207,7 @@ def bode_plot(syslist, omega=None, else: nyquistfrq = None # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega_sys = sys.freqresp(omega_sys) + mag_tmp, phase_tmp, omega_sys = sys.frequency_response(omega_sys) mag = np.atleast_1d(np.squeeze(mag_tmp)) phase = np.atleast_1d(np.squeeze(phase_tmp)) phase = unwrap(phase) @@ -524,7 +524,7 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, "Nyquist is currently only implemented for SISO systems.") else: # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega = sys.freqresp(omega) + mag_tmp, phase_tmp, omega = sys.frequency_response(omega) mag = np.squeeze(mag_tmp) phase = np.squeeze(phase_tmp) @@ -654,7 +654,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): omega_plot = omega / (2. * math.pi) if Hz else omega # TODO: Need to add in the mag = 1 lines - mag_tmp, phase_tmp, omega = S.freqresp(omega) + mag_tmp, phase_tmp, omega = S.frequency_response(omega) mag = np.squeeze(mag_tmp) if dB: plot_axes['s'].semilogx(omega_plot, 20 * np.log10(mag), **kwargs) @@ -664,7 +664,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): plot_axes['s'].tick_params(labelbottom=False) plot_axes['s'].grid(grid, which='both') - mag_tmp, phase_tmp, omega = (P * S).freqresp(omega) + mag_tmp, phase_tmp, omega = (P * S).frequency_response(omega) mag = np.squeeze(mag_tmp) if dB: plot_axes['ps'].semilogx(omega_plot, 20 * np.log10(mag), **kwargs) @@ -674,7 +674,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): plot_axes['ps'].set_ylabel("$|PS|$" + " (dB)" if dB else "") plot_axes['ps'].grid(grid, which='both') - mag_tmp, phase_tmp, omega = (C * S).freqresp(omega) + mag_tmp, phase_tmp, omega = (C * S).frequency_response(omega) mag = np.squeeze(mag_tmp) if dB: plot_axes['cs'].semilogx(omega_plot, 20 * np.log10(mag), **kwargs) @@ -685,7 +685,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): plot_axes['cs'].set_ylabel("$|CS|$" + " (dB)" if dB else "") plot_axes['cs'].grid(grid, which='both') - mag_tmp, phase_tmp, omega = T.freqresp(omega) + mag_tmp, phase_tmp, omega = T.frequency_response(omega) mag = np.squeeze(mag_tmp) if dB: plot_axes['t'].semilogx(omega_plot, 20 * np.log10(mag), **kwargs) diff --git a/control/lti.py b/control/lti.py index 8db14794b..6d39955bb 100644 --- a/control/lti.py +++ b/control/lti.py @@ -13,7 +13,8 @@ """ import numpy as np -from numpy import absolute, real +from numpy import absolute, real, angle, abs +from warnings import warn __all__ = ['issiso', 'timebase', 'timebaseEqual', 'isdtime', 'isctime', 'pole', 'zero', 'damp', 'evalfr', 'freqresp', 'dcgain'] @@ -109,10 +110,55 @@ def damp(self): Z = -real(splane_poles)/wn return wn, Z, poles + def frequency_response(self, omega, squeeze=True): + """Evaluate the linear time-invariant system at an array of angular + frequencies. + + Reports the frequency response of the system, + + G(j*omega) = mag*exp(j*phase) + + for continuous time systems. For discrete time systems, the response is + evaluated around the unit circle such that + + G(exp(j*omega*dt)) = mag*exp(j*phase). + + Parameters + ---------- + omega : array_like or float + A list, tuple, array, or scalar value of frequencies in + radians/sec at which the system will be evaluated. + squeeze: bool, optional (default=True) + If True and sys is single input, single output (SISO), return a + 1D array or scalar depending on omega's length. + + Returns + ------- + mag : (self.outputs, self.inputs, len(omega)) ndarray + The magnitude (absolute value, not dB or log10) of the system + frequency response. + phase : (self.outputs, self.inputs, len(omega)) ndarray + The wrapped phase in radians of the system frequency response. + omega : ndarray + The (sorted) frequencies at which the response was evaluated. + + """ + omega = np.sort(np.array(omega, ndmin=1)) + if isdtime(self, strict=True): + # Convert the frequency to discrete time + if np.any(omega * self.dt > np.pi): + warn("__call__: evaluation above Nyquist frequency") + s = np.exp(1j * omega * self.dt) + else: + s = 1j * omega + response = self.__call__(s, squeeze=squeeze) + return abs(response), angle(response), omega + def dcgain(self): """Return the zero-frequency gain""" raise NotImplementedError("dcgain not implemented for %s objects" % str(self.__class__)) + # Test to see if a system is SISO def issiso(sys, strict=False): @@ -379,20 +425,22 @@ def damp(sys, doprint=True): (p.real, p.imag, d, w)) return wn, damping, poles -def evalfr(sys, x): +def evalfr(sys, x, squeeze=True): """ - Evaluate the transfer function of an LTI system for a single complex - number x. + Evaluate the transfer function of an LTI system for complex frequency x. To evaluate at a frequency, enter x = omega*j, where omega is the - frequency in radians + frequency in radians per second Parameters ---------- sys: StateSpace or TransferFunction Linear system - x: scalar + x: scalar or array-like Complex number + squeeze: bool, optional (default=True) + If True and sys is single input, single output (SISO), return a + 1D array or scalar depending on omega's length. Returns ------- @@ -417,12 +465,12 @@ def evalfr(sys, x): .. todo:: Add example with MIMO system """ - if issiso(sys): + if squeeze and issiso(sys): return sys.horner(x)[0][0] return sys.horner(x) -def freqresp(sys, omega): +def freqresp(sys, omega, squeeze=True): """ Frequency response of an LTI system at multiple angular frequencies. @@ -434,6 +482,9 @@ def freqresp(sys, omega): A list of frequencies in radians/sec at which the system should be evaluated. The list can be either a python list or a numpy array and will be sorted before evaluation. + squeeze: bool, optional (default=True) + If True and sys is single input, single output (SISO), return a + 1D array or scalar depending on omega's length. Returns ------- @@ -453,9 +504,8 @@ def freqresp(sys, omega): Notes ----- - This function is a wrapper for StateSpace.freqresp and - TransferFunction.freqresp. The output omega is a sorted version of the - input omega. + This function is a wrapper for StateSpace.frequency_response and + TransferFunction.frequency_response. Examples -------- @@ -480,7 +530,7 @@ def freqresp(sys, omega): #>>> # frequency response from the 1st input to the 2nd output, for #>>> # s = 0.1i, i, 10i. """ - return sys.freqresp(omega) + return sys.frequency_response(omega, squeeze=squeeze) def dcgain(sys): diff --git a/control/margins.py b/control/margins.py index 7bdcf6caa..4094b43bf 100644 --- a/control/margins.py +++ b/control/margins.py @@ -213,15 +213,15 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): # a bit coarse, have the interpolated frd evaluated again def _mod(w): """Calculate |G(jw)| - 1""" - return np.abs(sys._evalfr(w)[0][0]) - 1 + return np.abs(sys(1j * w)[0][0]) - 1 def _arg(w): """Calculate the phase angle at -180 deg""" - return np.angle(-sys._evalfr(w)[0][0]) + return np.angle(-sys(1j * w)[0][0]) def _dstab(w): """Calculate the distance from -1 point""" - return np.abs(sys._evalfr(w)[0][0] + 1.) + return np.abs(sys(1j * w)[0][0] + 1.) # Find all crossings, note that this depends on omega having # a correct range @@ -232,7 +232,7 @@ def _dstab(w): # find the phase crossings ang(H(jw) == -180 widx = np.where(np.diff(np.sign(_arg(sys.omega))))[0] - widx = widx[np.real(sys._evalfr(sys.omega[widx])[0][0]) <= 0] + widx = widx[np.real(sys(1j * sys.omega[widx])[0][0]) <= 0] w_180 = np.array( [sp.optimize.brentq(_arg, sys.omega[i], sys.omega[i+1]) for i in widx]) @@ -249,10 +249,10 @@ def _dstab(w): # margins, as iterables, converted frdata and xferfcn calculations to # vector for this with np.errstate(all='ignore'): - gain_w_180 = np.abs(sys._evalfr(w_180)[0][0]) + gain_w_180 = np.abs(sys(1j * w_180)) GM = 1.0/gain_w_180 - SM = np.abs(sys._evalfr(wstab)[0][0]+1) - PM = np.remainder(np.angle(sys._evalfr(wc)[0][0], deg=True), 360.0) - 180.0 + SM = np.abs(sys(1j * wstab)+1) + PM = np.remainder(np.angle(sys(1j * wc), deg=True), 360.0) - 180.0 if returnall: return GM, PM, SM, w_180, wc, wstab @@ -313,7 +313,7 @@ def phase_crossover_frequencies(sys): # using real() to avoid rounding errors and results like 1+0j # it would be nice to have a vectorized version of self.evalfr here - gain = np.real(np.asarray([tf._evalfr(f)[0][0] for f in realposfreq])) + gain = np.real(np.asarray([tf(1j * f)[0][0] for f in realposfreq])) return realposfreq, gain diff --git a/control/nichols.py b/control/nichols.py index c8a98ed5e..c4ac4de0c 100644 --- a/control/nichols.py +++ b/control/nichols.py @@ -96,7 +96,7 @@ def nichols_plot(sys_list, omega=None, grid=None): for sys in sys_list: # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega = sys.freqresp(omega) + mag_tmp, phase_tmp, omega = sys.frequency_response(omega) mag = np.squeeze(mag_tmp) phase = np.squeeze(phase_tmp) diff --git a/control/statesp.py b/control/statesp.py index 522d187a9..a4f3aec71 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -54,7 +54,7 @@ import math import numpy as np from numpy import any, array, asarray, concatenate, cos, delete, \ - dot, empty, exp, eye, isinf, ones, pad, sin, zeros, squeeze + dot, empty, exp, eye, isinf, ones, pad, sin, zeros, squeeze, pi from numpy.random import rand, randn from numpy.linalg import solve, eigvals, matrix_rank from numpy.linalg.linalg import LinAlgError @@ -437,99 +437,27 @@ def __rdiv__(self, other): raise NotImplementedError("StateSpace.__rdiv__ is not implemented yet.") - def evalfr(self, omega): - """Evaluate a SS system's transfer function at a single frequency. + def __call__(self, s, squeeze=True): + """Evaluate system's transfer function at complex frequencies s/z. + + If squeeze is True (default) and sys is single input, single output + (SISO), return a 1D array or scalar depending on s. - self._evalfr(omega) returns the value of the transfer function matrix - with input value s = i * omega. - - """ - warn("StateSpace.evalfr(omega) will be deprecated in a future " - "release of python-control; use evalfr(sys, omega*1j) instead", - PendingDeprecationWarning) - return self._evalfr(omega) - - def _evalfr(self, omega): - """Evaluate a SS system's transfer function at a single frequency""" - # Figure out the point to evaluate the transfer function - if isdtime(self, strict=True): - dt = timebase(self) - s = exp(1.j * omega * dt) - if omega * dt > math.pi: - warn("_evalfr: frequency evaluation above Nyquist frequency") - else: - s = omega * 1.j - - return self.horner(s) - - def horner(self, s): - """Evaluate the systems's transfer function for a complex variable - - Returns a matrix of values evaluated at complex variable s. - """ - resp = np.dot(self.C, solve(s * eye(self.states) - self.A, - self.B)) + self.D - return array(resp) - - def freqresp(self, omega): - """Evaluate the system's transfer function at a list of frequencies - - Reports the frequency response of the system, - - G(j*omega) = mag*exp(j*phase) - - for continuous time. For discrete time systems, the response is - evaluated around the unit circle such that - - G(exp(j*omega*dt)) = mag*exp(j*phase). - - Parameters - ---------- - omega : array_like - A list of frequencies in radians/sec at which the system should be - evaluated. The list can be either a python list or a numpy array - and will be sorted before evaluation. - - Returns - ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray - The magnitude (absolute value, not dB or log10) of the system - frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray - The wrapped phase in radians of the system frequency response. - omega : ndarray - The list of sorted frequencies at which the response was - evaluated. - """ - # In case omega is passed in as a list, rather than a proper array. - omega = np.asarray(omega) - - numFreqs = len(omega) - Gfrf = np.empty((self.outputs, self.inputs, numFreqs), - dtype=np.complex128) - - # Sort frequency and calculate complex frequencies on either imaginary - # axis (continuous time) or unit circle (discrete time). - omega.sort() - if isdtime(self, strict=True): - dt = timebase(self) - cmplx_freqs = exp(1.j * omega * dt) - if max(np.abs(omega)) * dt > math.pi: - warn("freqresp: frequency evaluation above Nyquist frequency") - else: - cmplx_freqs = omega * 1.j - - # Do the frequency response evaluation. Use TB05AD from Slycot - # if it's available, otherwise use the built-in horners function. + """ + # Use TB05AD from Slycot if available try: from slycot import tb05ad - n = np.shape(self.A)[0] + # preallocate + s_arr = np.array(s, ndmin=1) # array-like version of s + out = np.empty((self.outputs, self.inputs, len(s_arr)), + dtype=complex) + n = self.states m = self.inputs p = self.outputs # The first call both evaluates C(sI-A)^-1 B and also returns # Hessenberg transformed matrices at, bt, ct. - result = tb05ad(n, m, p, cmplx_freqs[0], self.A, + result = tb05ad(n, m, p, s_arr[0], self.A, self.B, self.C, job='NG') # When job='NG', result = (at, bt, ct, g_i, hinvb, info) at = result[0] @@ -537,27 +465,54 @@ def freqresp(self, omega): ct = result[2] # TB05AD frequency evaluation does not include direct feedthrough. - Gfrf[:, :, 0] = result[3] + self.D + out[:, :, 0] = result[3] + self.D # Now, iterate through the remaining frequencies using the # transformed state matrices, at, bt, ct. # Start at the second frequency, already have the first. - for kk, cmplx_freqs_kk in enumerate(cmplx_freqs[1:numFreqs]): - result = tb05ad(n, m, p, cmplx_freqs_kk, at, - bt, ct, job='NH') + for kk, s_kk in enumerate(s_arr[1:len(s_arr)]): + result = tb05ad(n, m, p, s_kk, at, bt, ct, job='NH') # When job='NH', result = (g_i, hinvb, info) # kk+1 because enumerate starts at kk = 0. # but zero-th spot is already filled. - Gfrf[:, :, kk+1] = result[0] + self.D - + out[:, :, kk+1] = result[0] + self.D + + if not hasattr(s, '__len__'): + # received a scalar s, squeeze down the array + out = np.squeeze(out, axis=2) except ImportError: # Slycot unavailable. Fall back to horner. - for kk, cmplx_freqs_kk in enumerate(cmplx_freqs): - Gfrf[:, :, kk] = self.horner(cmplx_freqs_kk) + out = self.horner(s) + if squeeze and self.issiso(): + return out[0][0] + else: + return out - # mag phase omega - return np.abs(Gfrf), np.angle(Gfrf), omega + def horner(self, s): + """Evaluate systems's transfer function at complex frequencies s. + """ + s_arr = np.array(s, ndmin=1) # force to be an array + # Preallocate + out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex) + + for idx, s_idx in enumerate(s_arr): + out[:,:,idx] = \ + np.dot(self.C, + solve(s_idx * eye(self.states) - self.A, self.B)) \ + + self.D + if not hasattr(s, '__len__'): + # received a scalar s, squeeze down the array along last dim + out = np.squeeze(out, axis=2) + return out + + def freqresp(self, omega): + warn("StateSpace.freqresp(omega) will be deprecated in a " + "future release of python-control; use " + "StateSpace.frequency_response(sys, omega), or " + "freqresp(sys, omega) in the MATLAB compatibility module " + "instead", PendingDeprecationWarning) + return self.frequency_response(omega) # Compute poles and zeros def pole(self): diff --git a/control/tests/frd_test.py b/control/tests/frd_test.py index fcbc10263..3d57753bc 100644 --- a/control/tests/frd_test.py +++ b/control/tests/frd_test.py @@ -37,7 +37,7 @@ def testSISOtf(self): assert isinstance(frd, FRD) np.testing.assert_array_almost_equal( - frd.freqresp([1.0]), h.freqresp([1.0])) + frd.frequency_response([1.0]), h.frequency_response([1.0])) def testOperators(self): # get two SISO transfer functions @@ -48,39 +48,39 @@ def testOperators(self): f2 = FRD(h2, omega) np.testing.assert_array_almost_equal( - (f1 + f2).freqresp([0.1, 1.0, 10])[0], - (h1 + h2).freqresp([0.1, 1.0, 10])[0]) + (f1 + f2).frequency_response([0.1, 1.0, 10])[0], + (h1 + h2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1 + f2).freqresp([0.1, 1.0, 10])[1], - (h1 + h2).freqresp([0.1, 1.0, 10])[1]) + (f1 + f2).frequency_response([0.1, 1.0, 10])[1], + (h1 + h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 - f2).freqresp([0.1, 1.0, 10])[0], - (h1 - h2).freqresp([0.1, 1.0, 10])[0]) + (f1 - f2).frequency_response([0.1, 1.0, 10])[0], + (h1 - h2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1 - f2).freqresp([0.1, 1.0, 10])[1], - (h1 - h2).freqresp([0.1, 1.0, 10])[1]) + (f1 - f2).frequency_response([0.1, 1.0, 10])[1], + (h1 - h2).frequency_response([0.1, 1.0, 10])[1]) # multiplication and division np.testing.assert_array_almost_equal( - (f1 * f2).freqresp([0.1, 1.0, 10])[1], - (h1 * h2).freqresp([0.1, 1.0, 10])[1]) + (f1 * f2).frequency_response([0.1, 1.0, 10])[1], + (h1 * h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 / f2).freqresp([0.1, 1.0, 10])[1], - (h1 / h2).freqresp([0.1, 1.0, 10])[1]) + (f1 / f2).frequency_response([0.1, 1.0, 10])[1], + (h1 / h2).frequency_response([0.1, 1.0, 10])[1]) # with default conversion from scalar np.testing.assert_array_almost_equal( - (f1 * 1.5).freqresp([0.1, 1.0, 10])[1], - (h1 * 1.5).freqresp([0.1, 1.0, 10])[1]) + (f1 * 1.5).frequency_response([0.1, 1.0, 10])[1], + (h1 * 1.5).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 / 1.7).freqresp([0.1, 1.0, 10])[1], - (h1 / 1.7).freqresp([0.1, 1.0, 10])[1]) + (f1 / 1.7).frequency_response([0.1, 1.0, 10])[1], + (h1 / 1.7).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (2.2 * f2).freqresp([0.1, 1.0, 10])[1], - (2.2 * h2).freqresp([0.1, 1.0, 10])[1]) + (2.2 * f2).frequency_response([0.1, 1.0, 10])[1], + (2.2 * h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (1.3 / f2).freqresp([0.1, 1.0, 10])[1], - (1.3 / h2).freqresp([0.1, 1.0, 10])[1]) + (1.3 / f2).frequency_response([0.1, 1.0, 10])[1], + (1.3 / h2).frequency_response([0.1, 1.0, 10])[1]) def testOperatorsTf(self): # get two SISO transfer functions @@ -92,24 +92,24 @@ def testOperatorsTf(self): f2 # reference to avoid pyflakes error np.testing.assert_array_almost_equal( - (f1 + h2).freqresp([0.1, 1.0, 10])[0], - (h1 + h2).freqresp([0.1, 1.0, 10])[0]) + (f1 + h2).frequency_response([0.1, 1.0, 10])[0], + (h1 + h2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1 + h2).freqresp([0.1, 1.0, 10])[1], - (h1 + h2).freqresp([0.1, 1.0, 10])[1]) + (f1 + h2).frequency_response([0.1, 1.0, 10])[1], + (h1 + h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 - h2).freqresp([0.1, 1.0, 10])[0], - (h1 - h2).freqresp([0.1, 1.0, 10])[0]) + (f1 - h2).frequency_response([0.1, 1.0, 10])[0], + (h1 - h2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1 - h2).freqresp([0.1, 1.0, 10])[1], - (h1 - h2).freqresp([0.1, 1.0, 10])[1]) + (f1 - h2).frequency_response([0.1, 1.0, 10])[1], + (h1 - h2).frequency_response([0.1, 1.0, 10])[1]) # multiplication and division np.testing.assert_array_almost_equal( - (f1 * h2).freqresp([0.1, 1.0, 10])[1], - (h1 * h2).freqresp([0.1, 1.0, 10])[1]) + (f1 * h2).frequency_response([0.1, 1.0, 10])[1], + (h1 * h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 / h2).freqresp([0.1, 1.0, 10])[1], - (h1 / h2).freqresp([0.1, 1.0, 10])[1]) + (f1 / h2).frequency_response([0.1, 1.0, 10])[1], + (h1 / h2).frequency_response([0.1, 1.0, 10])[1]) # the reverse does not work def testbdalg(self): @@ -121,45 +121,45 @@ def testbdalg(self): f2 = FRD(h2, omega) np.testing.assert_array_almost_equal( - (bdalg.series(f1, f2)).freqresp([0.1, 1.0, 10])[0], - (bdalg.series(h1, h2)).freqresp([0.1, 1.0, 10])[0]) + (bdalg.series(f1, f2)).frequency_response([0.1, 1.0, 10])[0], + (bdalg.series(h1, h2)).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (bdalg.parallel(f1, f2)).freqresp([0.1, 1.0, 10])[0], - (bdalg.parallel(h1, h2)).freqresp([0.1, 1.0, 10])[0]) + (bdalg.parallel(f1, f2)).frequency_response([0.1, 1.0, 10])[0], + (bdalg.parallel(h1, h2)).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (bdalg.feedback(f1, f2)).freqresp([0.1, 1.0, 10])[0], - (bdalg.feedback(h1, h2)).freqresp([0.1, 1.0, 10])[0]) + (bdalg.feedback(f1, f2)).frequency_response([0.1, 1.0, 10])[0], + (bdalg.feedback(h1, h2)).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (bdalg.negate(f1)).freqresp([0.1, 1.0, 10])[0], - (bdalg.negate(h1)).freqresp([0.1, 1.0, 10])[0]) + (bdalg.negate(f1)).frequency_response([0.1, 1.0, 10])[0], + (bdalg.negate(h1)).frequency_response([0.1, 1.0, 10])[0]) # append() and connect() not implemented for FRD objects # np.testing.assert_array_almost_equal( -# (bdalg.append(f1, f2)).freqresp([0.1, 1.0, 10])[0], -# (bdalg.append(h1, h2)).freqresp([0.1, 1.0, 10])[0]) +# (bdalg.append(f1, f2)).frequency_response([0.1, 1.0, 10])[0], +# (bdalg.append(h1, h2)).frequency_response([0.1, 1.0, 10])[0]) # # f3 = bdalg.append(f1, f2, f2) # h3 = bdalg.append(h1, h2, h2) # Q = np.mat([ [1, 2], [2, -1] ]) # np.testing.assert_array_almost_equal( -# (bdalg.connect(f3, Q, [2], [1])).freqresp([0.1, 1.0, 10])[0], -# (bdalg.connect(h3, Q, [2], [1])).freqresp([0.1, 1.0, 10])[0]) +# (bdalg.connect(f3, Q, [2], [1])).frequency_response([0.1, 1.0, 10])[0], +# (bdalg.connect(h3, Q, [2], [1])).frequency_response([0.1, 1.0, 10])[0]) def testFeedback(self): h1 = TransferFunction([1], [1, 2, 2]) omega = np.logspace(-1, 2, 10) f1 = FRD(h1, omega) np.testing.assert_array_almost_equal( - f1.feedback(1).freqresp([0.1, 1.0, 10])[0], - h1.feedback(1).freqresp([0.1, 1.0, 10])[0]) + f1.feedback(1).frequency_response([0.1, 1.0, 10])[0], + h1.feedback(1).frequency_response([0.1, 1.0, 10])[0]) # Make sure default argument also works np.testing.assert_array_almost_equal( - f1.feedback().freqresp([0.1, 1.0, 10])[0], - h1.feedback().freqresp([0.1, 1.0, 10])[0]) + f1.feedback().frequency_response([0.1, 1.0, 10])[0], + h1.feedback().frequency_response([0.1, 1.0, 10])[0]) def testFeedback2(self): h2 = StateSpace([[-1.0, 0], [0, -2.0]], [[0.4], [0.1]], @@ -192,11 +192,11 @@ def testMIMO(self): omega = np.logspace(-1, 2, 10) f1 = FRD(sys, omega) np.testing.assert_array_almost_equal( - sys.freqresp([0.1, 1.0, 10])[0], - f1.freqresp([0.1, 1.0, 10])[0]) + sys.frequency_response([0.1, 1.0, 10])[0], + f1.frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - sys.freqresp([0.1, 1.0, 10])[1], - f1.freqresp([0.1, 1.0, 10])[1]) + sys.frequency_response([0.1, 1.0, 10])[1], + f1.frequency_response([0.1, 1.0, 10])[1]) @unittest.skipIf(not slycot_check(), "slycot not installed") def testMIMOfb(self): @@ -208,11 +208,11 @@ def testMIMOfb(self): f1 = FRD(sys, omega).feedback([[0.1, 0.3], [0.0, 1.0]]) f2 = FRD(sys.feedback([[0.1, 0.3], [0.0, 1.0]]), omega) np.testing.assert_array_almost_equal( - f1.freqresp([0.1, 1.0, 10])[0], - f2.freqresp([0.1, 1.0, 10])[0]) + f1.frequency_response([0.1, 1.0, 10])[0], + f2.frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - f1.freqresp([0.1, 1.0, 10])[1], - f2.freqresp([0.1, 1.0, 10])[1]) + f1.frequency_response([0.1, 1.0, 10])[1], + f2.frequency_response([0.1, 1.0, 10])[1]) @unittest.skipIf(not slycot_check(), "slycot not installed") def testMIMOfb2(self): @@ -224,11 +224,11 @@ def testMIMOfb2(self): f1 = FRD(sys, omega).feedback(K) f2 = FRD(sys.feedback(K), omega) np.testing.assert_array_almost_equal( - f1.freqresp([0.1, 1.0, 10])[0], - f2.freqresp([0.1, 1.0, 10])[0]) + f1.frequency_response([0.1, 1.0, 10])[0], + f2.frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - f1.freqresp([0.1, 1.0, 10])[1], - f2.freqresp([0.1, 1.0, 10])[1]) + f1.frequency_response([0.1, 1.0, 10])[1], + f2.frequency_response([0.1, 1.0, 10])[1]) @unittest.skipIf(not slycot_check(), "slycot not installed") def testMIMOMult(self): @@ -240,11 +240,11 @@ def testMIMOMult(self): f1 = FRD(sys, omega) f2 = FRD(sys, omega) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[0], - (sys*sys).freqresp([0.1, 1.0, 10])[0]) + (f1*f2).frequency_response([0.1, 1.0, 10])[0], + (sys*sys).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[1], - (sys*sys).freqresp([0.1, 1.0, 10])[1]) + (f1*f2).frequency_response([0.1, 1.0, 10])[1], + (sys*sys).frequency_response([0.1, 1.0, 10])[1]) @unittest.skipIf(not slycot_check(), "slycot not installed") def testMIMOSmooth(self): @@ -257,14 +257,14 @@ def testMIMOSmooth(self): f1 = FRD(sys, omega, smooth=True) f2 = FRD(sys2, omega, smooth=True) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[0], - (sys*sys2).freqresp([0.1, 1.0, 10])[0]) + (f1*f2).frequency_response([0.1, 1.0, 10])[0], + (sys*sys2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[1], - (sys*sys2).freqresp([0.1, 1.0, 10])[1]) + (f1*f2).frequency_response([0.1, 1.0, 10])[1], + (sys*sys2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[2], - (sys*sys2).freqresp([0.1, 1.0, 10])[2]) + (f1*f2).frequency_response([0.1, 1.0, 10])[2], + (sys*sys2).frequency_response([0.1, 1.0, 10])[2]) def testAgainstOctave(self): # with data from octave: @@ -277,8 +277,8 @@ def testAgainstOctave(self): omega = np.logspace(-1, 2, 10) f1 = FRD(sys, omega) np.testing.assert_array_almost_equal( - (f1.freqresp([1.0])[0] * - np.exp(1j*f1.freqresp([1.0])[1])).reshape(3, 2), + (f1.frequency_response([1.0])[0] * + np.exp(1j*f1.frequency_response([1.0])[1])).reshape(3, 2), np.matrix('0.4-0.2j 0; 0 0.1-0.2j; 0 0.3-0.1j')) def test_string_representation(self): @@ -383,36 +383,13 @@ def test_operator_conversion(self): def test_eval(self): sys_tf = ct.tf([1], [1, 2, 1]) frd_tf = FRD(sys_tf, np.logspace(-1, 1, 3)) - np.testing.assert_almost_equal(sys_tf.evalfr(1), frd_tf.eval(1)) + np.testing.assert_almost_equal(sys_tf(1j), frd_tf.eval(1)) + np.testing.assert_almost_equal(sys_tf(1j), frd_tf(1j)) # Should get an error if we evaluate at an unknown frequency - self.assertRaises(ValueError, frd_tf.eval, 2) - - # This test only works in Python 3 due to a conflict with the same - # warning type in other test modules (frd_test.py). See - # https://bugs.python.org/issue4180 for more details - @unittest.skipIf(pysys.version_info < (3, 0), "test requires Python 3+") - def test_evalfr_deprecated(self): - sys_tf = ct.tf([1], [1, 2, 1]) - frd_tf = FRD(sys_tf, np.logspace(-1, 1, 3)) - - # Deprecated version of the call (should generate warning) - import warnings - with warnings.catch_warnings(): - # Make warnings generate an exception - warnings.simplefilter('error') - - # Make sure that we get a pending deprecation warning - self.assertRaises(PendingDeprecationWarning, frd_tf.evalfr, 1.) - - # FRD.evalfr() is being deprecated - import warnings - with warnings.catch_warnings(): - # Make warnings generate an exception - warnings.simplefilter('error') - - # Make sure that we get a pending deprecation warning - self.assertRaises(PendingDeprecationWarning, frd_tf.evalfr, 1.) + self.assertRaises(Exception, frd_tf.eval(2)) + # Should get an error if we use __call__ at real-valued frequency + self.assertRaises(ValueError, frd_tf(2)) def test_repr_str(self): # repr printing diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 9d59a1972..991a4cacd 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -18,7 +18,7 @@ from control.exception import slycot_check -class TestFreqresp(unittest.TestCase): +class TestFrequencyResponse(unittest.TestCase): def setUp(self): self.A = np.matrix('1,1;0,1') self.C = np.matrix('1,0') @@ -30,7 +30,7 @@ def test_siso(self): sys = StateSpace(self.A,B,self.C,D) # test frequency response - frq=sys.freqresp(self.omega) + frq=sys.frequency_response(self.omega) # test bode plot bode(sys) @@ -84,7 +84,7 @@ def test_superimpose(self): self.assertEqual(len(ax.get_lines()), 2) def test_doubleint(self): - # 30 May 2016, RMM: added to replicate typecast bug in freqresp.py + # 30 May 2016, RMM: added to replicate typecast bug in frequency_response.py A = np.matrix('0, 1; 0, 0'); B = np.matrix('0; 1'); C = np.matrix('1, 0'); @@ -99,7 +99,7 @@ def test_mimo(self): D = np.matrix('0,0') sysMIMO = ss(self.A,B,self.C,D) - frqMIMO = sysMIMO.freqresp(self.omega) + frqMIMO = sysMIMO.frequency_response(self.omega) tfMIMO = tf(sysMIMO) #bode(sysMIMO) # - should throw not implemented exception @@ -167,7 +167,7 @@ def test_discrete(self): omega_ok = np.linspace(10e-4,0.99,100) * np.pi/sys.dt # Test frequency response - ret = sys.freqresp(omega_ok) + ret = sys.frequency_response(omega_ok) # Check for warning if frequency is out of range import warnings @@ -179,7 +179,7 @@ def test_discrete(self): # Look for a warning about sampling above Nyquist frequency omega_bad = np.linspace(10e-4,1.1,10) * np.pi/sys.dt - ret = sys.freqresp(omega_bad) + ret = sys.frequency_response(omega_bad) print("len(w) =", len(w)) self.assertEqual(len(w), 1) self.assertIn("above", str(w[-1].message)) diff --git a/control/tests/statesp_array_test.py b/control/tests/statesp_array_test.py index a2d034075..02e5d69d6 100644 --- a/control/tests/statesp_array_test.py +++ b/control/tests/statesp_array_test.py @@ -180,7 +180,7 @@ def test_multiply_ss(self): np.testing.assert_array_almost_equal(sys.C, C) np.testing.assert_array_almost_equal(sys.D, D) - def test_evalfr(self): + def test_call(self): """Evaluate the frequency response at one frequency.""" A = [[-2, 0.5], [0.5, -0.3]] @@ -196,22 +196,7 @@ def test_evalfr(self): # Correct versions of the call np.testing.assert_almost_equal(evalfr(sys, 1j), resp) - np.testing.assert_almost_equal(sys._evalfr(1.), resp) - - # Deprecated version of the call (should generate warning) - import warnings - with warnings.catch_warnings(record=True) as w: - # Set up warnings filter to only show warnings in control module - warnings.filterwarnings("ignore") - warnings.filterwarnings("always", module="control") - - # Make sure that we get a pending deprecation warning - sys.evalfr(1.) - assert len(w) == 1 - assert issubclass(w[-1].category, PendingDeprecationWarning) - - # Leave the warnings filter like we found it - warnings.resetwarnings() + np.testing.assert_almost_equal(sys(1.j), resp) @unittest.skipIf(not slycot_check(), "slycot not installed") def test_freq_resp(self): @@ -233,7 +218,7 @@ def test_freq_resp(self): [-0.438157380501337, -1.40720969147217]]] true_omega = [0.1, 10.] - mag, phase, omega = sys.freqresp(true_omega) + mag, phase, omega = sys.frequency_response(true_omega) np.testing.assert_almost_equal(mag, true_mag) np.testing.assert_almost_equal(phase, true_phase) @@ -518,7 +503,7 @@ def test_horner(self): self.sys322.horner(1.+1.j) # Make sure result agrees with frequency response - mag, phase, omega = self.sys322.freqresp([1]) + mag, phase, omega = self.sys322.frequency_response([1]) np.testing.assert_array_almost_equal( self.sys322.horner(1.j), mag[:,:,0] * np.exp(1.j * phase[:,:,0])) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 96404d79f..77a6d3ec2 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -189,7 +189,7 @@ def test_multiply_ss(self): np.testing.assert_array_almost_equal(sys.C, C) np.testing.assert_array_almost_equal(sys.D, D) - def test_evalfr(self): + def test_call(self): """Evaluate the frequency response at one frequency.""" A = [[-2, 0.5], [0.5, -0.3]] @@ -205,7 +205,14 @@ def test_evalfr(self): # Correct versions of the call np.testing.assert_almost_equal(evalfr(sys, 1j), resp) - np.testing.assert_almost_equal(sys._evalfr(1.), resp) + np.testing.assert_almost_equal(sys(1.j), resp) + + def test_freqresp_deprecated(self): + A = [[-2, 0.5], [0.5, -0.3]] + B = [[0.3, -1.3], [0.1, 0.]] + C = [[0., 0.1], [-0.3, -0.2]] + D = [[0., -0.8], [-0.3, 0.]] + sys = StateSpace(A, B, C, D) # Deprecated version of the call (should generate warning) import warnings @@ -215,8 +222,7 @@ def test_evalfr(self): warnings.filterwarnings("always", module="control") # Make sure that we get a pending deprecation warning - sys.evalfr(1.) - assert len(w) == 1 + sys.freqresp(1.) assert issubclass(w[-1].category, PendingDeprecationWarning) @unittest.skipIf(not slycot_check(), "slycot not installed") @@ -239,12 +245,12 @@ def test_freq_resp(self): [-0.438157380501337, -1.40720969147217]]] true_omega = [0.1, 10.] - mag, phase, omega = sys.freqresp(true_omega) + mag, phase, omega = sys.frequency_response(true_omega) np.testing.assert_almost_equal(mag, true_mag) np.testing.assert_almost_equal(phase, true_phase) np.testing.assert_equal(omega, true_omega) - + @unittest.skipIf(not slycot_check(), "slycot not installed") def test_minreal(self): """Test a minreal model reduction.""" @@ -652,26 +658,5 @@ def test_copy_constructor(self): # Change the A matrix for the original system linsys.A[0, 0] = -3 np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value - - def test_sample_system_prewarping(self): - """test that prewarping works when converting from cont to discrete time system""" - A = np.array([ - [ 0.00000000e+00, 1.00000000e+00, 0.00000000e+00, 0.00000000e+00], - [-3.81097561e+01, -1.12500000e+00, 0.00000000e+00, 0.00000000e+00], - [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 1.00000000e+00], - [ 0.00000000e+00, 0.00000000e+00, -1.66356135e+04, -1.34748470e+01]]) - B = np.array([ - [ 0. ], [ 38.1097561 ],[ 0. ],[16635.61352143]]) - C = np.array([[0.90909091, 0. , 0.09090909, 0. ],]) - wwarp = 50 - Ts = 0.025 - plant = StateSpace(A,B,C,0) - plant_d_warped = plant.sample(Ts, 'bilinear', prewarp_frequency=wwarp) - np.testing.assert_array_almost_equal( - evalfr(plant, wwarp*1j), - evalfr(plant_d_warped, np.exp(wwarp*1j*Ts)), - decimal=4) - - if __name__ == "__main__": unittest.main() diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 02e6c2b37..4ee314df1 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -386,7 +386,7 @@ def test_slice(self): self.assertEqual((sys1.inputs, sys1.outputs), (2, 1)) self.assertEqual(sys1.dt, 0.5) - def test_evalfr_siso(self): + def test_call_siso(self): """Evaluate the frequency response of a SISO system at one frequency.""" sys = TransferFunction([1., 3., 5], [1., 6., 2., -1]) @@ -400,38 +400,22 @@ def test_evalfr_siso(self): # Test call version as well np.testing.assert_almost_equal(sys(1.j), -0.5 - 0.5j) np.testing.assert_almost_equal( - sys(32.j), 0.00281959302585077 - 0.030628473607392j) + sys(32j), 0.00281959302585077 - 0.030628473607392j) # Test internal version (with real argument) np.testing.assert_array_almost_equal( - sys._evalfr(1.), np.array([[-0.5 - 0.5j]])) + sys(1j), np.array([[-0.5 - 0.5j]])) np.testing.assert_array_almost_equal( - sys._evalfr(32.), + sys(32j), np.array([[0.00281959302585077 - 0.030628473607392j]])) - # This test only works in Python 3 due to a conflict with the same - # warning type in other test modules (frd_test.py). See - # https://bugs.python.org/issue4180 for more details @unittest.skipIf(pysys.version_info < (3, 0), "test requires Python 3+") - def test_evalfr_deprecated(self): - sys = TransferFunction([1., 3., 5], [1., 6., 2., -1]) - - # Deprecated version of the call (should generate warning) - import warnings - with warnings.catch_warnings(): - # Make warnings generate an exception - warnings.simplefilter('error') - - # Make sure that we get a pending deprecation warning - self.assertRaises(PendingDeprecationWarning, sys.evalfr, 1.) - - @unittest.skipIf(pysys.version_info < (3, 0), "test requires Python 3+") - def test_evalfr_dtime(self): + def test_call_dtime(self): sys = TransferFunction([1., 3., 5], [1., 6., 2., -1], 0.1) np.testing.assert_array_almost_equal(sys(1j), -0.5 - 0.5j) @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_evalfr_mimo(self): + def test_call_mimo(self): """Evaluate the frequency response of a MIMO system at one frequency.""" num = [[[1., 2.], [0., 3.], [2., -1.]], @@ -443,12 +427,12 @@ def test_evalfr_mimo(self): [-0.083333333333333, -0.188235294117647 - 0.847058823529412j, -1. - 8.j]] - np.testing.assert_array_almost_equal(sys._evalfr(2.), resp) + np.testing.assert_array_almost_equal(evalfr(sys, 2j), resp) # Test call version as well np.testing.assert_array_almost_equal(sys(2.j), resp) - def test_freqresp_siso(self): + def test_frequency_response_siso(self): """Evaluate the magnitude and phase of a SISO system at multiple frequencies.""" @@ -459,14 +443,14 @@ def test_freqresp_siso(self): -1.32655885133871]]] trueomega = [0.1, 1., 10.] - mag, phase, omega = sys.freqresp(trueomega) + mag, phase, omega = sys.frequency_response(trueomega, squeeze=False) np.testing.assert_array_almost_equal(mag, truemag) np.testing.assert_array_almost_equal(phase, truephase) np.testing.assert_array_almost_equal(omega, trueomega) @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_freqresp_mimo(self): + def test_frequency_response_mimo(self): """Evaluate the magnitude and phase of a MIMO system at multiple frequencies.""" @@ -489,7 +473,7 @@ def test_freqresp_mimo(self): [-1.66852323, -1.89254688, -1.62050658], [-0.13298964, -1.10714871, -2.75046720]]] - mag, phase, omega = sys.freqresp(true_omega) + mag, phase, omega = sys.frequency_response(true_omega) np.testing.assert_array_almost_equal(mag, true_mag) np.testing.assert_array_almost_equal(phase, true_phase) diff --git a/control/xferfcn.py b/control/xferfcn.py index f50d5141d..bb342c732 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -204,18 +204,21 @@ def __init__(self, *args): self._truncatecoeff() - def __call__(self, s): - """Evaluate the system's transfer function for a complex variable + def __call__(self, s, squeeze=True): + """Evaluate the system's transfer function at the complex frequency s/z. - For a SISO transfer function, returns the value of the + For a SISO transfer function, returns the complex value of the transfer function. For a MIMO transfer fuction, returns a - matrix of values evaluated at complex variable s.""" + matrix of values. + + If squeeze is True (default) and sys is single input, single output + (SISO), return a 1D array or scalar depending on s. - if self.issiso(): - # return a scalar + """ + if squeeze and self.issiso(): + # return a scalar/1d array of outputs return self.horner(s)[0][0] else: - # return a matrix return self.horner(s) def _truncatecoeff(self): @@ -608,40 +611,10 @@ def __getitem__(self, key): else: return TransferFunction(num, den, self.dt) - def evalfr(self, omega): - """Evaluate a transfer function at a single angular frequency. - - self._evalfr(omega) returns the value of the transfer function - matrix with input value s = i * omega. - - """ - warn("TransferFunction.evalfr(omega) will be deprecated in a " - "future release of python-control; use evalfr(sys, omega*1j) " - "instead", PendingDeprecationWarning) - return self._evalfr(omega) - - def _evalfr(self, omega): - """Evaluate a transfer function at a single angular frequency.""" - # TODO: implement for discrete time systems - if isdtime(self, strict=True): - # Convert the frequency to discrete time - dt = timebase(self) - s = exp(1.j * omega * dt) - if np.any(omega * dt > pi): - warn("_evalfr: frequency evaluation above Nyquist frequency") - else: - s = 1.j * omega - - return self.horner(s) - def horner(self, s): - """Evaluate the systems's transfer function for a complex variable - - Returns a matrix of values evaluated at complex variable s. - """ - + "Evaluate system's transfer function at complex frequencies s." # Preallocate the output. - if getattr(s, '__iter__', False): + if hasattr(s, '__len__'): out = empty((self.outputs, self.inputs, len(s)), dtype=complex) else: out = empty((self.outputs, self.inputs), dtype=complex) @@ -654,59 +627,12 @@ def horner(self, s): return out def freqresp(self, omega): - """Evaluate the transfer function at a list of angular frequencies. - - Reports the frequency response of the system, - - G(j*omega) = mag*exp(j*phase) - - for continuous time. For discrete time systems, the response is - evaluated around the unit circle such that - - G(exp(j*omega*dt)) = mag*exp(j*phase). - - Parameters - ---------- - omega : array_like - A list of frequencies in radians/sec at which the system should be - evaluated. The list can be either a python list or a numpy array - and will be sorted before evaluation. - - Returns - ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray - The magnitude (absolute value, not dB or log10) of the system - frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray - The wrapped phase in radians of the system frequency response. - omega : ndarray or list or tuple - The list of sorted frequencies at which the response was - evaluated. - """ - # Preallocate outputs. - numfreq = len(omega) - mag = empty((self.outputs, self.inputs, numfreq)) - phase = empty((self.outputs, self.inputs, numfreq)) - - # Figure out the frequencies - omega.sort() - if isdtime(self, strict=True): - dt = timebase(self) - slist = np.array([exp(1.j * w * dt) for w in omega]) - if max(omega) * dt > pi: - warn("freqresp: frequency evaluation above Nyquist frequency") - else: - slist = np.array([1j * w for w in omega]) - - # Compute frequency response for each input/output pair - for i in range(self.outputs): - for j in range(self.inputs): - fresp = (polyval(self.num[i][j], slist) / - polyval(self.den[i][j], slist)) - mag[i, j, :] = abs(fresp) - phase[i, j, :] = angle(fresp) - - return mag, phase, omega + warn("TransferFunction.freqresp(omega) will be deprecated in a " + "future release of python-control; use " + "TransferFunction.frequency_response(sys, omega), or " + "freqresp(sys, omega) in the MATLAB compatibility module " + "instead", PendingDeprecationWarning) + return self.frequency_response(omega) def pole(self): """Compute the poles of a transfer function.""" diff --git a/doc/control.rst b/doc/control.rst index 57d64b1eb..0705e1b9f 100644 --- a/doc/control.rst +++ b/doc/control.rst @@ -172,6 +172,7 @@ Utility functions and conversions tfdata timebase timebaseEqual + common_timebase unwrap use_fbs_defaults use_matlab_defaults diff --git a/examples/robust_mimo.py b/examples/robust_mimo.py index d4e1335e6..9cc5a1c3b 100644 --- a/examples/robust_mimo.py +++ b/examples/robust_mimo.py @@ -43,7 +43,7 @@ def triv_sigma(g, w): g - LTI object, order n w - frequencies, length m s - (m,n) array of singular values of g(1j*w)""" - m, p, _ = g.freqresp(w) + m, p, _ = g.frequency_response(w) sjw = (m*np.exp(1j*p)).transpose(2, 0, 1) sv = np.linalg.svd(sjw, compute_uv=False) return sv diff --git a/examples/robust_siso.py b/examples/robust_siso.py index 87fcdb707..17ce10927 100644 --- a/examples/robust_siso.py +++ b/examples/robust_siso.py @@ -50,10 +50,10 @@ # frequency response omega = np.logspace(-2, 2, 101) -ws1mag, _, _ = ws1.freqresp(omega) -s1mag, _, _ = s1.freqresp(omega) -ws2mag, _, _ = ws2.freqresp(omega) -s2mag, _, _ = s2.freqresp(omega) +ws1mag, _, _ = ws1.frequency_response(omega) +s1mag, _, _ = s1.frequency_response(omega) +ws2mag, _, _ = ws2.frequency_response(omega) +s2mag, _, _ = s2.frequency_response(omega) plt.figure(1) # text uses log-scaled absolute, but dB are probably more familiar to most control engineers From b05492c08e73ebb29739acdf6924df6a4fe73764 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Sun, 16 Aug 2020 00:51:38 -0700 Subject: [PATCH 004/260] fixed remaining failing unit tests and cleanup of docfiles --- control/frdata.py | 13 +-- control/lti.py | 9 +- control/margins.py | 17 ++-- control/rlocus.py | 10 +-- control/statesp.py | 122 +++++++++++++++++----------- control/tests/frd_test.py | 4 +- control/tests/margin_test.py | 8 +- control/tests/statesp_array_test.py | 2 +- control/xferfcn.py | 63 ++++++++------ 9 files changed, 147 insertions(+), 101 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 084f4aba3..6016e1460 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -47,7 +47,7 @@ # External function declarations from warnings import warn import numpy as np -from numpy import angle, array, empty, ones, isin, \ +from numpy import angle, array, empty, ones, \ real, imag, absolute, eye, linalg, where, dot, sort from scipy.interpolate import splprep, splev from .lti import LTI @@ -354,7 +354,7 @@ def eval(self, omega, squeeze=True): squeeze: bool, optional (default=True) If True and sys is single input, single output (SISO), return a - 1D array or scalar depending on omega's length. + 1D array or scalar the same length as omega. """ omega_array = np.array(omega, ndmin=1) # array-like version of omega @@ -362,15 +362,16 @@ def eval(self, omega, squeeze=True): raise ValueError("FRD.eval can only accept real-valued omega") if self.ifunc is None: - elements = isin(self.omega, omega) + elements = np.isin(self.omega, omega) # binary array if sum(elements) < len(omega_array): raise ValueError( - "not all frequencies omega are in frequency list of FRD " - "system. Try an interpolating FRD for additional points.") + '''not all frequencies omega are in frequency list of FRD + system. Try an interpolating FRD for additional points.''') else: out = self.fresp[:, :, elements] else: - out = empty((self.outputs, self.inputs, len(omega_array))) + out = empty((self.outputs, self.inputs, len(omega_array)), + dtype=complex) for i in range(self.outputs): for j in range(self.inputs): for k, w in enumerate(omega_array): diff --git a/control/lti.py b/control/lti.py index 6d39955bb..c6bf318a9 100644 --- a/control/lti.py +++ b/control/lti.py @@ -465,9 +465,14 @@ def evalfr(sys, x, squeeze=True): .. todo:: Add example with MIMO system """ + out = sys.horner(x) + if not hasattr(x, '__len__'): + # received a scalar x, squeeze down the array along last dim + out = np.squeeze(out, axis=2) if squeeze and issiso(sys): - return sys.horner(x)[0][0] - return sys.horner(x) + return out[0][0] + else: + return out def freqresp(sys, omega, squeeze=True): diff --git a/control/margins.py b/control/margins.py index 4094b43bf..cda5095aa 100644 --- a/control/margins.py +++ b/control/margins.py @@ -213,15 +213,15 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): # a bit coarse, have the interpolated frd evaluated again def _mod(w): """Calculate |G(jw)| - 1""" - return np.abs(sys(1j * w)[0][0]) - 1 + return np.abs(sys(1j * w)) - 1 def _arg(w): """Calculate the phase angle at -180 deg""" - return np.angle(-sys(1j * w)[0][0]) + return np.angle(-sys(1j * w)) def _dstab(w): """Calculate the distance from -1 point""" - return np.abs(sys(1j * w)[0][0] + 1.) + return np.abs(sys(1j * w) + 1.) # Find all crossings, note that this depends on omega having # a correct range @@ -232,7 +232,7 @@ def _dstab(w): # find the phase crossings ang(H(jw) == -180 widx = np.where(np.diff(np.sign(_arg(sys.omega))))[0] - widx = widx[np.real(sys(1j * sys.omega[widx])[0][0]) <= 0] + widx = widx[np.real(sys(1j * sys.omega[widx])) <= 0] w_180 = np.array( [sp.optimize.brentq(_arg, sys.omega[i], sys.omega[i+1]) for i in widx]) @@ -296,11 +296,10 @@ def phase_crossover_frequencies(sys): (array([ 1.73205081, 0. ]), array([-0.5 , 0.25])) """ + if not sys.issiso(): + raise ValueError("MIMO systems not yet implemented.") # Convert to a transfer function tf = xferfcn._convert_to_transfer_function(sys) - - # if not siso, fall back to (0,0) element - #! TODO: should add a check and warning here num = tf.num[0][0] den = tf.den[0][0] @@ -313,7 +312,9 @@ def phase_crossover_frequencies(sys): # using real() to avoid rounding errors and results like 1+0j # it would be nice to have a vectorized version of self.evalfr here - gain = np.real(np.asarray([tf(1j * f)[0][0] for f in realposfreq])) + # update Sawyer B. Fuller 2020.08.15: your wish is my command. + #gain = np.real(np.asarray([tf(1j * f) for f in realposfreq])) + gain = np.real(tf(1j * realposfreq)) return realposfreq, gain diff --git a/control/rlocus.py b/control/rlocus.py index 9f7ff4568..39c2fcfb6 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -493,7 +493,7 @@ def _RLFindRoots(nump, denp, kvect): """Find the roots for the root locus.""" # Convert numerator and denominator to polynomials if they aren't roots = [] - for k in kvect: + for k in np.array(kvect, ndmin=1): curpoly = denp + k * nump curroots = curpoly.r if len(curroots) < denp.order: @@ -577,10 +577,10 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False): # Catch type error when event click is in the figure but not in an axis try: s = complex(event.xdata, event.ydata) - K = -1. / sys.horner(s) - K_xlim = -1. / sys.horner( + K = -1. / sys(s) + K_xlim = -1. / sys( complex(event.xdata + 0.05 * abs(xlim[1] - xlim[0]), event.ydata)) - K_ylim = -1. / sys.horner( + K_ylim = -1. / sys( complex(event.xdata, event.ydata + 0.05 * abs(ylim[1] - ylim[0]))) except TypeError: @@ -621,7 +621,7 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False): ax_rlocus.plot(s.real, s.imag, 'k.', marker='s', markersize=8, zorder=20, label='gain_point') - return K.real[0][0] + return K.real def _removeLine(label, ax): diff --git a/control/statesp.py b/control/statesp.py index a4f3aec71..40748c9fa 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -437,60 +437,91 @@ def __rdiv__(self, other): raise NotImplementedError("StateSpace.__rdiv__ is not implemented yet.") - def __call__(self, s, squeeze=True): - """Evaluate system's transfer function at complex frequencies s/z. + def __call__(self, x, squeeze=True): + """Evaluate system's transfer function at complex frequencies. + + Evaluates at complex frequency x, where x is s or z dependong on + whether the system is continuous or discrete-time. If squeeze is True (default) and sys is single input, single output - (SISO), return a 1D array or scalar depending on s. + (SISO), return a 1D array or scalar depending on the size of x. + For a MIMO system, returns an (n_outputs, n_inputs, n_x) array. """ - # Use TB05AD from Slycot if available + # Use Slycot if available try: - from slycot import tb05ad - - # preallocate - s_arr = np.array(s, ndmin=1) # array-like version of s - out = np.empty((self.outputs, self.inputs, len(s_arr)), - dtype=complex) - n = self.states - m = self.inputs - p = self.outputs - # The first call both evaluates C(sI-A)^-1 B and also returns - # Hessenberg transformed matrices at, bt, ct. - result = tb05ad(n, m, p, s_arr[0], self.A, - self.B, self.C, job='NG') - # When job='NG', result = (at, bt, ct, g_i, hinvb, info) - at = result[0] - bt = result[1] - ct = result[2] - - # TB05AD frequency evaluation does not include direct feedthrough. - out[:, :, 0] = result[3] + self.D - - # Now, iterate through the remaining frequencies using the - # transformed state matrices, at, bt, ct. - - # Start at the second frequency, already have the first. - for kk, s_kk in enumerate(s_arr[1:len(s_arr)]): - result = tb05ad(n, m, p, s_kk, at, bt, ct, job='NH') - # When job='NH', result = (g_i, hinvb, info) - - # kk+1 because enumerate starts at kk = 0. - # but zero-th spot is already filled. - out[:, :, kk+1] = result[0] + self.D - - if not hasattr(s, '__len__'): - # received a scalar s, squeeze down the array - out = np.squeeze(out, axis=2) - except ImportError: # Slycot unavailable. Fall back to horner. - out = self.horner(s) + out = self.slycot_horner(x) + except ImportError: # Slycot unavailable. use built-in horner. + out = self.horner(x) + if not hasattr(x, '__len__'): + # received a scalar x, squeeze down the array along last dim + out = np.squeeze(out, axis=2) if squeeze and self.issiso(): return out[0][0] else: return out + def slycot_horner(self, s): + """Evaluate system's transfer function at complex frequencies s + using Horner's method from Slycot. + + Expects inputs and outputs to be formatted correctly. Use __call__ + for a more user-friendly interface. + + Parameters + s : array-like + + Returns + output : array of size (outputs, inputs, len(s)) + + """ + from slycot import tb05ad + + # preallocate + s_arr = np.array(s, ndmin=1) # array-like version of s + out = np.empty((self.outputs, self.inputs, len(s_arr)), + dtype=complex) + n = self.states + m = self.inputs + p = self.outputs + # The first call both evaluates C(sI-A)^-1 B and also returns + # Hessenberg transformed matrices at, bt, ct. + result = tb05ad(n, m, p, s_arr[0], self.A, + self.B, self.C, job='NG') + # When job='NG', result = (at, bt, ct, g_i, hinvb, info) + at = result[0] + bt = result[1] + ct = result[2] + + # TB05AD frequency evaluation does not include direct feedthrough. + out[:, :, 0] = result[3] + self.D + + # Now, iterate through the remaining frequencies using the + # transformed state matrices, at, bt, ct. + + # Start at the second frequency, already have the first. + for kk, s_kk in enumerate(s_arr[1:len(s_arr)]): + result = tb05ad(n, m, p, s_kk, at, bt, ct, job='NH') + # When job='NH', result = (g_i, hinvb, info) + + # kk+1 because enumerate starts at kk = 0. + # but zero-th spot is already filled. + out[:, :, kk+1] = result[0] + self.D + return out + def horner(self, s): - """Evaluate systems's transfer function at complex frequencies s. + """Evaluate system's transfer function at complex frequencies s + using Horner's method. + + Expects inputs and outputs to be formatted correctly. Use __call__ + for a more user-friendly interface. + + Parameters + s : array-like + + Returns + output : array of size (outputs, inputs, len(s)) + """ s_arr = np.array(s, ndmin=1) # force to be an array # Preallocate @@ -501,9 +532,6 @@ def horner(self, s): np.dot(self.C, solve(s_idx * eye(self.states) - self.A, self.B)) \ + self.D - if not hasattr(s, '__len__'): - # received a scalar s, squeeze down the array along last dim - out = np.squeeze(out, axis=2) return out def freqresp(self, omega): @@ -879,7 +907,7 @@ def dcgain(self): if self.isctime(): gain = np.asarray(self.D-self.C.dot(np.linalg.solve(self.A, self.B))) else: - gain = self.horner(1) + gain = np.squeeze(self.horner(1)) except LinAlgError: # eigenvalue at DC gain = np.tile(np.nan, (self.outputs, self.inputs)) diff --git a/control/tests/frd_test.py b/control/tests/frd_test.py index 3d57753bc..5335a473e 100644 --- a/control/tests/frd_test.py +++ b/control/tests/frd_test.py @@ -387,9 +387,9 @@ def test_eval(self): np.testing.assert_almost_equal(sys_tf(1j), frd_tf(1j)) # Should get an error if we evaluate at an unknown frequency - self.assertRaises(Exception, frd_tf.eval(2)) + self.assertRaises(ValueError, frd_tf.eval, 2) # Should get an error if we use __call__ at real-valued frequency - self.assertRaises(ValueError, frd_tf(2)) + self.assertRaises(ValueError, frd_tf, 2) def test_repr_str(self): # repr printing diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index 2f60c7bc6..70d6b9b5b 100755 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -76,7 +76,7 @@ def test_stability_margins_omega(sys, refout, refoutall): def test_stability_margins_3input(sys, refout, refoutall): """Test stability_margins() function with mag, phase, omega input""" omega = np.logspace(-2, 2, 2000) - mag, phase, omega_ = sys.freqresp(omega) + mag, phase, omega_ = sys.frequency_response(omega) out = stability_margins((mag, phase*180/np.pi, omega_)) assert_allclose(out, refout, atol=1.5e-3) @@ -92,7 +92,7 @@ def test_margin_sys(sys, refout, refoutall): def test_margin_3input(sys, refout, refoutall): """Test margin() function with mag, phase, omega input""" omega = np.logspace(-2, 2, 2000) - mag, phase, omega_ = sys.freqresp(omega) + mag, phase, omega_ = sys.frequency_response(omega) out = margin((mag, phase*180/np.pi, omega_)) assert_allclose(out, np.array(refout)[[0, 1, 3, 4]], atol=1.5e-3) @@ -113,7 +113,7 @@ def test_phase_crossover_frequencies(): [[3], [4]]], [[[1, 2, 3, 4], [1, 1]], [[1, 1], [1, 1]]]) - omega, gain = phase_crossover_frequencies(tf) + omega, gain = phase_crossover_frequencies(tf[0,0]) assert_allclose(omega, [1.73205, 0.], atol=1.5e-3) assert_allclose(gain, [-0.5, 0.25], atol=1.5e-3) @@ -123,7 +123,7 @@ def test_mag_phase_omega(): sys = TransferFunction(15, [1, 6, 11, 6]) out = stability_margins(sys) omega = np.logspace(-2, 2, 1000) - mag, phase, omega = sys.freqresp(omega) + mag, phase, omega = sys.frequency_response(omega) out2 = stability_margins((mag, phase*180/np.pi, omega)) ind = [0, 1, 3, 4] # indices of gm, pm, wg, wp -- ignore sm marg1 = np.array(out)[ind] diff --git a/control/tests/statesp_array_test.py b/control/tests/statesp_array_test.py index 02e5d69d6..ffc89ab97 100644 --- a/control/tests/statesp_array_test.py +++ b/control/tests/statesp_array_test.py @@ -505,7 +505,7 @@ def test_horner(self): # Make sure result agrees with frequency response mag, phase, omega = self.sys322.frequency_response([1]) np.testing.assert_array_almost_equal( - self.sys322.horner(1.j), + np.squeeze(self.sys322.horner(1.j)), mag[:,:,0] * np.exp(1.j * phase[:,:,0])) def tearDown(self): diff --git a/control/xferfcn.py b/control/xferfcn.py index bb342c732..f43f282b4 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -204,22 +204,48 @@ def __init__(self, *args): self._truncatecoeff() - def __call__(self, s, squeeze=True): - """Evaluate the system's transfer function at the complex frequency s/z. - - For a SISO transfer function, returns the complex value of the - transfer function. For a MIMO transfer fuction, returns a - matrix of values. + def __call__(self, x, squeeze=True): + """Evaluate system's transfer function at complex frequencies. + + Evaluates at complex frequencies x, where x is s or z dependong on + whether the system is continuous or discrete-time. If squeeze is True (default) and sys is single input, single output - (SISO), return a 1D array or scalar depending on s. - - """ + (SISO), return a 1D array or scalar depending on the shape of x. + For a MIMO system, returns an (n_outputs, n_inputs, n_x) array. + + """ + out = self.horner(x) + if not hasattr(x, '__len__'): + # received a scalar x, squeeze down the array along last dim + out = np.squeeze(out, axis=2) if squeeze and self.issiso(): # return a scalar/1d array of outputs - return self.horner(s)[0][0] + return out[0][0] else: - return self.horner(s) + return out + + def horner(self, s): + """Evaluate system's transfer function at complex frequencies s + using Horner's method. + + Expects inputs and outputs to be formatted correctly. Use __call__ + for a more user-friendly interface. + + Parameters + s : array-like + + Returns + output : array of size (outputs, inputs, len(s)) + + """ + s_arr = np.array(s, ndmin=1) # force to be an array + out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex) + for i in range(self.outputs): + for j in range(self.inputs): + out[i][j] = (polyval(self.num[i][j], s) / + polyval(self.den[i][j], s)) + return out def _truncatecoeff(self): """Remove extraneous zero coefficients from num and den. @@ -611,21 +637,6 @@ def __getitem__(self, key): else: return TransferFunction(num, den, self.dt) - def horner(self, s): - "Evaluate system's transfer function at complex frequencies s." - # Preallocate the output. - if hasattr(s, '__len__'): - out = empty((self.outputs, self.inputs, len(s)), dtype=complex) - else: - out = empty((self.outputs, self.inputs), dtype=complex) - - for i in range(self.outputs): - for j in range(self.inputs): - out[i][j] = (polyval(self.num[i][j], s) / - polyval(self.den[i][j], s)) - - return out - def freqresp(self, omega): warn("TransferFunction.freqresp(omega) will be deprecated in a " "future release of python-control; use " From 2c4ac62e5b69d6a8511dc2173c32338d98b43e01 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Sun, 16 Aug 2020 00:59:08 -0700 Subject: [PATCH 005/260] minor fix following suggested change in frd str method --- control/frdata.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 6016e1460..cd0680f8d 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -156,7 +156,6 @@ def __str__(self): mimo = self.inputs > 1 or self.outputs > 1 outstr = ['Frequency response data'] - #mt, pt, wt = self.frequency_response(self.omega) for i in range(self.inputs): for j in range(self.outputs): if mimo: @@ -164,9 +163,10 @@ def __str__(self): outstr.append('Freq [rad/s] Response') outstr.append('------------ ---------------------') outstr.extend( - ['%12.3f %10.4g%+10.4gj' % (w, m, p) - for m, p, w in zip(real(self.fresp[j, i, :]), - imag(self.fresp[j, i, :]), self.omega)]) + ['%12.3f %10.4g%+10.4gj' % (w, re, im) + for w, re, im in zip(self.omega, + real(self.fresp[j, i, :]), + imag(self.fresp[j, i, :]))]) return '\n'.join(outstr) From 6213a543debba42c270d4cf7cad88776ade554b9 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Sun, 16 Aug 2020 01:11:03 -0700 Subject: [PATCH 006/260] fixed a few bugs that slipped through --- control/matlab/__init__.py | 4 ++-- control/statesp.py | 1 + control/tests/iosys_test.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/control/matlab/__init__.py b/control/matlab/__init__.py index 413dc6d86..a2ec5efc1 100644 --- a/control/matlab/__init__.py +++ b/control/matlab/__init__.py @@ -224,8 +224,8 @@ \* :func:`~control.nichols` Nichols plot \* :func:`margin` gain and phase margins \ lti/allmargin all crossover frequencies and margins -\* :func:`freqresp` frequency response over a frequency grid -\* :func:`evalfr` frequency response at single frequency +\* :func:`freqresp` frequency response +\* :func:`evalfr` frequency response at complex frequency s == ========================== ============================================ diff --git a/control/statesp.py b/control/statesp.py index 40748c9fa..1e502323e 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -527,6 +527,7 @@ def horner(self, s): # Preallocate out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex) + #TODO: can this be vectorized? for idx, s_idx in enumerate(s_arr): out[:,:,idx] = \ np.dot(self.C, diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 0738e8b18..fdbcc6088 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -860,8 +860,8 @@ def test_lineariosys_statespace(self): np.testing.assert_array_equal( iosys_siso.pole(), self.siso_linsys.pole()) omega = np.logspace(.1, 10, 100) - mag_io, phase_io, omega_io = iosys_siso.freqresp(omega) - mag_ss, phase_ss, omega_ss = self.siso_linsys.freqresp(omega) + mag_io, phase_io, omega_io = iosys_siso.frequency_response(omega) + mag_ss, phase_ss, omega_ss = self.siso_linsys.frequency_response(omega) np.testing.assert_array_equal(mag_io, mag_ss) np.testing.assert_array_equal(phase_io, phase_ss) np.testing.assert_array_equal(omega_io, omega_ss) From 8486b7a46cb4d518614d0845b3c6f76f8bb20887 Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Mon, 17 Aug 2020 10:49:14 -0700 Subject: [PATCH 007/260] Update control/frdata.py Co-authored-by: Ben Greiner --- control/frdata.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index cd0680f8d..686ae8823 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -391,12 +391,24 @@ def __call__(self, s, squeeze=True): transfer function. For a MIMO transfer fuction, returns a matrix of values. - Raises an error if s is not purely imaginary. - + Parameters + ---------- + s : scalar or array_like + Complex frequencies squeeze: bool, optional (default=True) If True and sys is single input, single output (SISO), return a 1D array or scalar depending on omega's length. + Returns + ------- + ndarray or scalar + Frequency response + + Raises + ------ + ValueError + If `s` is not purely imaginary. + """ if any(abs(np.array(s, ndmin=1).real) > 0): raise ValueError("__call__: FRD systems can only accept" From c8bf92f15729a973d011566b08b8159ad95f3841 Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Mon, 17 Aug 2020 10:49:51 -0700 Subject: [PATCH 008/260] Update control/frdata.py Co-authored-by: Ben Greiner --- control/frdata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/frdata.py b/control/frdata.py index 686ae8823..1fd359d67 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -352,10 +352,11 @@ def eval(self, omega, squeeze=True): entry in the omega vector. An interpolating FRD can return intermediate values. + Parameters + ---------- squeeze: bool, optional (default=True) If True and sys is single input, single output (SISO), return a 1D array or scalar the same length as omega. - """ omega_array = np.array(omega, ndmin=1) # array-like version of omega if any(omega_array.imag > 0): From 371986c50d1319af713095d19a509faeb2115a5b Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Mon, 17 Aug 2020 10:50:43 -0700 Subject: [PATCH 009/260] Update control/lti.py doc fix Co-authored-by: Ben Greiner --- control/lti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/lti.py b/control/lti.py index c6bf318a9..e89e81825 100644 --- a/control/lti.py +++ b/control/lti.py @@ -436,7 +436,7 @@ def evalfr(sys, x, squeeze=True): ---------- sys: StateSpace or TransferFunction Linear system - x: scalar or array-like + x: scalar or array_like Complex number squeeze: bool, optional (default=True) If True and sys is single input, single output (SISO), return a From d8fbaa0c42b26aba42376060926768b4d0b9c892 Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Mon, 17 Aug 2020 11:04:50 -0700 Subject: [PATCH 010/260] Update control/statesp.py suggested doctoring fix for statesspace.slycot_horner Co-authored-by: Ben Greiner --- control/statesp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/control/statesp.py b/control/statesp.py index 1e502323e..debe58d70 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -469,7 +469,9 @@ def slycot_horner(self, s): for a more user-friendly interface. Parameters - s : array-like + ---------- + s : array_like + Complex frequency Returns output : array of size (outputs, inputs, len(s)) From 17bc2a818da112881e49e9daa48a8b16c08ebace Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Mon, 17 Aug 2020 11:08:13 -0700 Subject: [PATCH 011/260] Apply suggestions from code review doctoring fixes to adhere to numpydoc convention Co-authored-by: Ben Greiner --- control/statesp.py | 14 +++++++++----- control/xferfcn.py | 9 ++++++--- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index debe58d70..08eab1beb 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -474,8 +474,9 @@ def slycot_horner(self, s): Complex frequency Returns - output : array of size (outputs, inputs, len(s)) - + ------- + output : (outputs, inputs, len(s)) complex ndarray + Frequency response """ from slycot import tb05ad @@ -519,11 +520,14 @@ def horner(self, s): for a more user-friendly interface. Parameters - s : array-like + ---------- + s : array_like + Complex frequencies Returns - output : array of size (outputs, inputs, len(s)) - + ------- + output : (outputs, inputs, len(s)) complex ndarray + Frequency response """ s_arr = np.array(s, ndmin=1) # force to be an array # Preallocate diff --git a/control/xferfcn.py b/control/xferfcn.py index f43f282b4..c8de0b265 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -233,11 +233,14 @@ def horner(self, s): for a more user-friendly interface. Parameters - s : array-like + ---------- + s : array_like + Complex frequencies Returns - output : array of size (outputs, inputs, len(s)) - + ------- + output : (outputs, inputs, len(s)) complex ndarray + Frequency response """ s_arr = np.array(s, ndmin=1) # force to be an array out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex) From 4ad33db513b13f916608442712d449001918d11d Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 17 Aug 2020 11:13:06 -0700 Subject: [PATCH 012/260] suggested changes in docstrings --- control/frdata.py | 4 ++-- control/margins.py | 6 ++++-- control/rlocus.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index cd0680f8d..9ece4d068 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -365,8 +365,8 @@ def eval(self, omega, squeeze=True): elements = np.isin(self.omega, omega) # binary array if sum(elements) < len(omega_array): raise ValueError( - '''not all frequencies omega are in frequency list of FRD - system. Try an interpolating FRD for additional points.''') + "not all frequencies omega are in frequency list of FRD " + "system. Try an interpolating FRD for additional points.") else: out = self.fresp[:, :, elements] else: diff --git a/control/margins.py b/control/margins.py index cda5095aa..35178831d 100644 --- a/control/margins.py +++ b/control/margins.py @@ -56,6 +56,8 @@ from . import xferfcn from .lti import issiso from . import frdata +from .exception import ControlMIMONotImplemented + __all__ = ['stability_margins', 'phase_crossover_frequencies', 'margin'] @@ -155,7 +157,7 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): # check for siso if not issiso(sys): - raise ValueError("Can only do margins for SISO system") + raise ControlMIMONotImplemented() # real and imaginary part polynomials in omega: rnum, inum = _polyimsplit(sys.num[0][0]) @@ -297,7 +299,7 @@ def phase_crossover_frequencies(sys): """ if not sys.issiso(): - raise ValueError("MIMO systems not yet implemented.") + raise ControlMIMONotImplemented() # Convert to a transfer function tf = xferfcn._convert_to_transfer_function(sys) num = tf.num[0][0] diff --git a/control/rlocus.py b/control/rlocus.py index 39c2fcfb6..40eb0b8c8 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -472,7 +472,7 @@ def _systopoly1d(sys): sys = _convert_to_transfer_function(sys) # Make sure we have a SISO system - if (sys.inputs > 1 or sys.outputs > 1): + if not sys.issiso(): raise ControlMIMONotImplemented() # Start by extracting the numerator and denominator from system object From 60433e028d1d7feff6ed97b456b8d93c229a9d7e Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 17 Aug 2020 12:54:04 -0700 Subject: [PATCH 013/260] better docstrings conforming to numpydoc --- control/frdata.py | 29 +++++++++++++++++------------ control/lti.py | 36 +++++++++++++++++------------------- control/statesp.py | 26 ++++++++++++++++++++------ control/xferfcn.py | 32 +++++++++++++++++++++++--------- 4 files changed, 77 insertions(+), 46 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 0a332d44e..9f36ab8f8 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -100,6 +100,7 @@ def __init__(self, *args, **kwargs): object, other than an FRD, call FRD(sys, omega) """ + # TODO: discrete-time FRD systems? smooth = kwargs.get('smooth', False) if len(args) == 2: @@ -386,29 +387,33 @@ def eval(self, omega, squeeze=True): return out def __call__(self, s, squeeze=True): - """Evaluate the system's transfer function at complex frequencies s. + """Evaluate system's transfer function at complex frequencies. + + Returns the complex frequency response `sys(x)` where `x` is `s` for + continuous-time systems and `x` is `z` for discrete-time systems. - For a SISO system, returns the complex value of the - transfer function. For a MIMO transfer fuction, returns a - matrix of values. + To evaluate at a frequency omega in radians per second, enter + x = omega*j. Parameters ---------- - s : scalar or array_like - Complex frequencies + x: complex scalar or array_like + Complex frequency(s) squeeze: bool, optional (default=True) - If True and sys is single input, single output (SISO), return a - 1D array or scalar depending on omega's length. - + If True and sys is single input single output (SISO), returns a + 1D array or scalar depending on the length of x. + Returns ------- - ndarray or scalar - Frequency response + fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is len(x) if and only if + system is SISO and squeeze=True. Raises ------ ValueError - If `s` is not purely imaginary. + If `s` is not purely imaginary, because FrequencyDomainData systems + are only defined at imaginary frequency values. """ if any(abs(np.array(s, ndmin=1).real) > 0): diff --git a/control/lti.py b/control/lti.py index e89e81825..8820e2a36 100644 --- a/control/lti.py +++ b/control/lti.py @@ -428,23 +428,29 @@ def damp(sys, doprint=True): def evalfr(sys, x, squeeze=True): """ Evaluate the transfer function of an LTI system for complex frequency x. + + Returns the complex frequency response `sys(x)` where `x` is `s` for + continuous-time systems and `x` is `z` for discrete-time systems. - To evaluate at a frequency, enter x = omega*j, where omega is the - frequency in radians per second + To evaluate at a frequency omega in radians per second, enter x = omega*j, + for continuous-time systems, or x = exp(j*omega*dt) for discrete-time + systems. Parameters ---------- sys: StateSpace or TransferFunction Linear system - x: scalar or array_like - Complex number + x: complex scalar or array_like + Complex frequency(s) squeeze: bool, optional (default=True) - If True and sys is single input, single output (SISO), return a - 1D array or scalar depending on omega's length. - + If True and sys is single input single output (SISO), returns a + 1D array or scalar depending on the length of x. + Returns ------- - fresp: ndarray + fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. If system is SISO and squeezeThe size of the array depends on + whether system is SISO and squeeze keyword. See Also -------- @@ -453,8 +459,8 @@ def evalfr(sys, x, squeeze=True): Notes ----- - This function is a wrapper for StateSpace.evalfr and - TransferFunction.evalfr. + This function is a wrapper for StateSpace.__call__ and + TransferFunction.__call__. Examples -------- @@ -465,15 +471,7 @@ def evalfr(sys, x, squeeze=True): .. todo:: Add example with MIMO system """ - out = sys.horner(x) - if not hasattr(x, '__len__'): - # received a scalar x, squeeze down the array along last dim - out = np.squeeze(out, axis=2) - if squeeze and issiso(sys): - return out[0][0] - else: - return out - + return sys.__call__(x, squeeze=squeeze) def freqresp(sys, omega, squeeze=True): """ diff --git a/control/statesp.py b/control/statesp.py index 08eab1beb..c5685e713 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -440,12 +440,26 @@ def __rdiv__(self, other): def __call__(self, x, squeeze=True): """Evaluate system's transfer function at complex frequencies. - Evaluates at complex frequency x, where x is s or z dependong on - whether the system is continuous or discrete-time. - - If squeeze is True (default) and sys is single input, single output - (SISO), return a 1D array or scalar depending on the size of x. - For a MIMO system, returns an (n_outputs, n_inputs, n_x) array. + Returns the complex frequency response `sys(x)` where `x` is `s` for + continuous-time systems and `x` is `z` for discrete-time systems. + + To evaluate at a frequency omega in radians per second, enter + x = omega*j, for continuous-time systems, or x = exp(j*omega*dt) for + discrete-time systems. + + Parameters + ---------- + x: complex scalar or array_like + Complex frequency(s) + squeeze: bool, optional (default=True) + If True and sys is single input single output (SISO), returns a + 1D array or scalar depending on the length of x. + + Returns + ------- + fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is len(x) if and only if + system is SISO and squeeze=True. """ # Use Slycot if available diff --git a/control/xferfcn.py b/control/xferfcn.py index c8de0b265..ad527325b 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -207,14 +207,28 @@ def __init__(self, *args): def __call__(self, x, squeeze=True): """Evaluate system's transfer function at complex frequencies. - Evaluates at complex frequencies x, where x is s or z dependong on - whether the system is continuous or discrete-time. - - If squeeze is True (default) and sys is single input, single output - (SISO), return a 1D array or scalar depending on the shape of x. - For a MIMO system, returns an (n_outputs, n_inputs, n_x) array. + Returns the complex frequency response `sys(x)` where `x` is `s` for + continuous-time systems and `x` is `z` for discrete-time systems. + + To evaluate at a frequency omega in radians per second, enter + x = omega*j, for continuous-time systems, or x = exp(j*omega*dt) for + discrete-time systems. + + Parameters + ---------- + x: complex scalar or array_like + Complex frequency(s) + squeeze: bool, optional (default=True) + If True and sys is single input single output (SISO), returns a + 1D array or scalar depending on the length of x. + + Returns + ------- + fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is len(x) if and only if + system is SISO and squeeze=True. - """ + """ out = self.horner(x) if not hasattr(x, '__len__'): # received a scalar x, squeeze down the array along last dim @@ -226,7 +240,7 @@ def __call__(self, x, squeeze=True): return out def horner(self, s): - """Evaluate system's transfer function at complex frequencies s + """Evaluates system's transfer function at complex frequencies s using Horner's method. Expects inputs and outputs to be formatted correctly. Use __call__ @@ -234,7 +248,7 @@ def horner(self, s): Parameters ---------- - s : array_like + s : array_like or scalar Complex frequencies Returns From 262fde685bfd5a5ba07578142d46ac42cfcd6e3d Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 17 Aug 2020 13:32:00 -0700 Subject: [PATCH 014/260] converted statesp.horner to take care of trying to use slycot_horner and doing fallback --- control/statesp.py | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index c5685e713..3ea597424 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -463,10 +463,7 @@ def __call__(self, x, squeeze=True): """ # Use Slycot if available - try: - out = self.slycot_horner(x) - except ImportError: # Slycot unavailable. use built-in horner. - out = self.horner(x) + out = self.horner(x) if not hasattr(x, '__len__'): # received a scalar x, squeeze down the array along last dim out = np.squeeze(out, axis=2) @@ -526,33 +523,45 @@ def slycot_horner(self, s): out[:, :, kk+1] = result[0] + self.D return out - def horner(self, s): - """Evaluate system's transfer function at complex frequencies s - using Horner's method. + def horner(self, x): + """Evaluate system's transfer function at complex frequencies x + using Horner's method. + Evaluates sys(x) where `x` is `s` for continuous-time systems and `z` + for discrete-time systems. + Expects inputs and outputs to be formatted correctly. Use __call__ for a more user-friendly interface. Parameters ---------- - s : array_like + x : array_like Complex frequencies Returns ------- output : (outputs, inputs, len(s)) complex ndarray Frequency response + + Notes + ----- + Attempts to use Slycot library, with a fall-back to python code. """ - s_arr = np.array(s, ndmin=1) # force to be an array - # Preallocate - out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex) - - #TODO: can this be vectorized? - for idx, s_idx in enumerate(s_arr): - out[:,:,idx] = \ - np.dot(self.C, - solve(s_idx * eye(self.states) - self.A, self.B)) \ - + self.D + try: + out = self.slycot_horner(x) + except (ImportError, Exception): + # Fall back because either Slycot unavailable or cannot handle + # certain cases. + x_arr = np.array(x, ndmin=1) # force to be an array + # Preallocate + out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) + + #TODO: can this be vectorized? + for idx, x_idx in enumerate(x_arr): + out[:,:,idx] = \ + np.dot(self.C, + solve(x_idx * eye(self.states) - self.A, self.B)) \ + + self.D return out def freqresp(self, omega): From 4c3ed0b7ad8c6b1a2f41378c8800263b32eb7483 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 17 Aug 2020 14:40:30 -0700 Subject: [PATCH 015/260] renamed slycot_horner to slycot_laub --- control/statesp.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index 3ea597424..0671ed1dc 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -472,9 +472,9 @@ def __call__(self, x, squeeze=True): else: return out - def slycot_horner(self, s): + def slycot_laub(self, s): """Evaluate system's transfer function at complex frequencies s - using Horner's method from Slycot. + using Laub's method from Slycot. Expects inputs and outputs to be formatted correctly. Use __call__ for a more user-friendly interface. @@ -525,7 +525,7 @@ def slycot_horner(self, s): def horner(self, x): """Evaluate system's transfer function at complex frequencies x - using Horner's method. + using Laub's or Horner's method. Evaluates sys(x) where `x` is `s` for continuous-time systems and `z` for discrete-time systems. @@ -545,10 +545,11 @@ def horner(self, x): Notes ----- - Attempts to use Slycot library, with a fall-back to python code. + Attempts to use Laub's method from Slycot library, with a + fall-back to python code. """ try: - out = self.slycot_horner(x) + out = self.slycot_laub(x) except (ImportError, Exception): # Fall back because either Slycot unavailable or cannot handle # certain cases. From b37c16b6d53e9ec0f7d63b2645cb3ef0a75b8ae7 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 17 Aug 2020 15:11:14 -0700 Subject: [PATCH 016/260] docs more consistent --- control/frdata.py | 31 ++++++++++++++++++------------- control/lti.py | 26 +++++++++++++------------- control/statesp.py | 40 +++++++++++++++++++--------------------- control/xferfcn.py | 24 ++++++++++++++---------- 4 files changed, 64 insertions(+), 57 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 9f36ab8f8..61b70a8b6 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -344,10 +344,7 @@ def __pow__(self, other): # update Sawyer B. Fuller 2020.08.14: __call__ added to provide a uniform # interface to systems in general and the lti.frequency_response method def eval(self, omega, squeeze=True): - """Evaluate a transfer function at a single angular frequency. - - self.evalfr(omega) returns the value of the frequency response - at frequency omega. + """Evaluate a transfer function at angular frequency omega. Note that a "normal" FRD only returns values for which there is an entry in the omega vector. An interpolating FRD can return @@ -355,10 +352,19 @@ def eval(self, omega, squeeze=True): Parameters ---------- + omega: float or array_like + Frequencies in radians per second squeeze: bool, optional (default=True) - If True and sys is single input, single output (SISO), return a - 1D array or scalar the same length as omega. - """ + If True and sys is single input single output (SISO), returns a + 1D array or scalar depending on the length of omega + + Returns + ------- + fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is len(x) if and only if + system is SISO and squeeze=True. + + """ omega_array = np.array(omega, ndmin=1) # array-like version of omega if any(omega_array.imag > 0): raise ValueError("FRD.eval can only accept real-valued omega") @@ -389,16 +395,15 @@ def eval(self, omega, squeeze=True): def __call__(self, s, squeeze=True): """Evaluate system's transfer function at complex frequencies. - Returns the complex frequency response `sys(x)` where `x` is `s` for - continuous-time systems and `x` is `z` for discrete-time systems. + Returns the complex frequency response `sys(s)`. To evaluate at a frequency omega in radians per second, enter - x = omega*j. - + x = omega*1j or use FRD.eval(omega) + Parameters ---------- - x: complex scalar or array_like - Complex frequency(s) + s: complex scalar or array_like + Complex frequencies squeeze: bool, optional (default=True) If True and sys is single input single output (SISO), returns a 1D array or scalar depending on the length of x. diff --git a/control/lti.py b/control/lti.py index 8820e2a36..b0b9d7060 100644 --- a/control/lti.py +++ b/control/lti.py @@ -134,10 +134,10 @@ def frequency_response(self, omega, squeeze=True): Returns ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray + mag : (self.outputs, self.inputs, len(omega)) or len(omega) ndarray The magnitude (absolute value, not dB or log10) of the system frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray + phase : (self.outputs, self.inputs, len(omega)) or len(omega) ndarray The wrapped phase in radians of the system frequency response. omega : ndarray The (sorted) frequencies at which the response was evaluated. @@ -430,10 +430,10 @@ def evalfr(sys, x, squeeze=True): Evaluate the transfer function of an LTI system for complex frequency x. Returns the complex frequency response `sys(x)` where `x` is `s` for - continuous-time systems and `x` is `z` for discrete-time systems. + continuous-time systems and `z` for discrete-time systems. - To evaluate at a frequency omega in radians per second, enter x = omega*j, - for continuous-time systems, or x = exp(j*omega*dt) for discrete-time + To evaluate at a frequency omega in radians per second, enter x = omega*1j, + for continuous-time systems, or x = exp(1j*omega*dt) for discrete-time systems. Parameters @@ -448,9 +448,9 @@ def evalfr(sys, x, squeeze=True): Returns ------- - fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray - The frequency response of the system. If system is SISO and squeezeThe size of the array depends on - whether system is SISO and squeeze keyword. + fresp : (sys.outputs, sys.inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is len(x) if and only if + system is SISO and squeeze=True. See Also -------- @@ -481,22 +481,22 @@ def freqresp(sys, omega, squeeze=True): ---------- sys: StateSpace or TransferFunction Linear system - omega: array_like + omega: float or array_like A list of frequencies in radians/sec at which the system should be evaluated. The list can be either a python list or a numpy array and will be sorted before evaluation. squeeze: bool, optional (default=True) - If True and sys is single input, single output (SISO), return a + If True and sys is single input, single output (SISO), returns 1D array or scalar depending on omega's length. Returns ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray + mag : (sys.outputs, sys.inputs, len(omega)) or len(omega) ndarray The magnitude (absolute value, not dB or log10) of the system frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray + phase : (sys.outputs, sys.inputs, len(omega)) or len(omega) ndarray The wrapped phase in radians of the system frequency response. - omega : ndarray or list or tuple + omega : ndarray The list of sorted frequencies at which the response was evaluated. diff --git a/control/statesp.py b/control/statesp.py index 0671ed1dc..2b9ef016a 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -438,26 +438,26 @@ def __rdiv__(self, other): raise NotImplementedError("StateSpace.__rdiv__ is not implemented yet.") def __call__(self, x, squeeze=True): - """Evaluate system's transfer function at complex frequencies. + """Evaluate system's transfer function at complex frequency. Returns the complex frequency response `sys(x)` where `x` is `s` for - continuous-time systems and `x` is `z` for discrete-time systems. + continuous-time systems and `z` for discrete-time systems. To evaluate at a frequency omega in radians per second, enter - x = omega*j, for continuous-time systems, or x = exp(j*omega*dt) for + x = omega*1j, for continuous-time systems, or x = exp(1j*omega*dt) for discrete-time systems. Parameters ---------- - x: complex scalar or array_like - Complex frequency(s) + x: complex or complex array_like + Complex frequencies squeeze: bool, optional (default=True) If True and sys is single input single output (SISO), returns a 1D array or scalar depending on the length of x. Returns ------- - fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray + fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray The frequency response of the system. Array is len(x) if and only if system is SISO and squeeze=True. @@ -472,8 +472,8 @@ def __call__(self, x, squeeze=True): else: return out - def slycot_laub(self, s): - """Evaluate system's transfer function at complex frequencies s + def slycot_laub(self, x): + """Evaluate system's transfer function at complex frequency using Laub's method from Slycot. Expects inputs and outputs to be formatted correctly. Use __call__ @@ -481,27 +481,25 @@ def slycot_laub(self, s): Parameters ---------- - s : array_like + x : complex array_like or complex Complex frequency Returns ------- - output : (outputs, inputs, len(s)) complex ndarray + output : (number_outputs, number_inputs, len(x)) complex ndarray Frequency response """ from slycot import tb05ad # preallocate - s_arr = np.array(s, ndmin=1) # array-like version of s - out = np.empty((self.outputs, self.inputs, len(s_arr)), - dtype=complex) + x_arr = np.array(x, ndmin=1) # array-like version of s n = self.states m = self.inputs p = self.outputs + out = np.empty((p, m, len(x_arr)), dtype=complex) # The first call both evaluates C(sI-A)^-1 B and also returns # Hessenberg transformed matrices at, bt, ct. - result = tb05ad(n, m, p, s_arr[0], self.A, - self.B, self.C, job='NG') + result = tb05ad(n, m, p, x_arr[0], self.A, self.B, self.C, job='NG') # When job='NG', result = (at, bt, ct, g_i, hinvb, info) at = result[0] bt = result[1] @@ -514,8 +512,8 @@ def slycot_laub(self, s): # transformed state matrices, at, bt, ct. # Start at the second frequency, already have the first. - for kk, s_kk in enumerate(s_arr[1:len(s_arr)]): - result = tb05ad(n, m, p, s_kk, at, bt, ct, job='NH') + for kk, x_kk in enumerate(x_arr[1:len(x_arr)]): + result = tb05ad(n, m, p, x_kk, at, bt, ct, job='NH') # When job='NH', result = (g_i, hinvb, info) # kk+1 because enumerate starts at kk = 0. @@ -524,10 +522,10 @@ def slycot_laub(self, s): return out def horner(self, x): - """Evaluate system's transfer function at complex frequencies x + """Evaluate system's transfer function at complex frequency using Laub's or Horner's method. - Evaluates sys(x) where `x` is `s` for continuous-time systems and `z` + Evaluates `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. Expects inputs and outputs to be formatted correctly. Use __call__ @@ -535,12 +533,12 @@ def horner(self, x): Parameters ---------- - x : array_like + x : complex array_like or complex Complex frequencies Returns ------- - output : (outputs, inputs, len(s)) complex ndarray + output : (number_outputs, number_inputs, len(x)) complex ndarray Frequency response Notes diff --git a/control/xferfcn.py b/control/xferfcn.py index ad527325b..3c898a320 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -208,23 +208,23 @@ def __call__(self, x, squeeze=True): """Evaluate system's transfer function at complex frequencies. Returns the complex frequency response `sys(x)` where `x` is `s` for - continuous-time systems and `x` is `z` for discrete-time systems. + continuous-time systems and `z` for discrete-time systems. To evaluate at a frequency omega in radians per second, enter - x = omega*j, for continuous-time systems, or x = exp(j*omega*dt) for + x = omega*1j, for continuous-time systems, or x = exp(1j*omega*dt) for discrete-time systems. Parameters ---------- - x: complex scalar or array_like - Complex frequency(s) + x: complex array_like or complex + Complex frequencies squeeze: bool, optional (default=True) If True and sys is single input single output (SISO), returns a 1D array or scalar depending on the length of x. Returns ------- - fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray + fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray The frequency response of the system. Array is len(x) if and only if system is SISO and squeeze=True. @@ -239,22 +239,26 @@ def __call__(self, x, squeeze=True): else: return out - def horner(self, s): - """Evaluates system's transfer function at complex frequencies s - using Horner's method. + def horner(self, x): + """Evaluate system's transfer function at complex frequency + using Horner's method. + Evaluates `sys(x)` where `x` is `s` for continuous-time systems and `z` + for discrete-time systems. + Expects inputs and outputs to be formatted correctly. Use __call__ for a more user-friendly interface. Parameters ---------- - s : array_like or scalar + x : complex array_like or complex Complex frequencies Returns ------- - output : (outputs, inputs, len(s)) complex ndarray + output : (self.outputs, self.inputs, len(x)) complex ndarray Frequency response + """ s_arr = np.array(s, ndmin=1) # force to be an array out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex) From 4e4b97f05d0bb17b7682f3c238deada9037cb3a1 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 17 Aug 2020 15:51:06 -0700 Subject: [PATCH 017/260] forgot to change a variable name everywhere in a function --- control/xferfcn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/control/xferfcn.py b/control/xferfcn.py index 3c898a320..abd6338dd 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -260,12 +260,12 @@ def horner(self, x): Frequency response """ - s_arr = np.array(s, ndmin=1) # force to be an array + s_arr = np.array(x, ndmin=1) # force to be an array out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex) for i in range(self.outputs): for j in range(self.inputs): - out[i][j] = (polyval(self.num[i][j], s) / - polyval(self.den[i][j], s)) + out[i][j] = (polyval(self.num[i][j], x) / + polyval(self.den[i][j], x)) return out def _truncatecoeff(self): From 5626a3a2744744c2342346a73991b1dab933ea5b Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Tue, 18 Aug 2020 12:47:06 +0200 Subject: [PATCH 018/260] revert doc/control.rst common_timebase is no longer existent --- doc/control.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/control.rst b/doc/control.rst index 0705e1b9f..57d64b1eb 100644 --- a/doc/control.rst +++ b/doc/control.rst @@ -172,7 +172,6 @@ Utility functions and conversions tfdata timebase timebaseEqual - common_timebase unwrap use_fbs_defaults use_matlab_defaults From 5caffa414afbab1dafee8537bf54a26787bb5eaf Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Wed, 19 Aug 2020 09:38:49 -0700 Subject: [PATCH 019/260] Update control/xferfcn.py numpydoc convention docstrings Co-authored-by: Ben Greiner --- control/xferfcn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/xferfcn.py b/control/xferfcn.py index abd6338dd..1f7fd1243 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -211,8 +211,8 @@ def __call__(self, x, squeeze=True): continuous-time systems and `z` for discrete-time systems. To evaluate at a frequency omega in radians per second, enter - x = omega*1j, for continuous-time systems, or x = exp(1j*omega*dt) for - discrete-time systems. + ``x = omega*1j``, for continuous-time systems, or ``x = exp(1j*omega*dt)`` + for discrete-time systems. Parameters ---------- From c888b6ee86554e94a8393bb1afcf676a24dc91a6 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Wed, 19 Aug 2020 10:27:57 -0700 Subject: [PATCH 020/260] numpydoc convention updates --- control/frdata.py | 40 ++++++++++++++++++++++++---------------- control/lti.py | 7 ++++--- control/statesp.py | 41 ++++++++++++++++++++++++----------------- control/xferfcn.py | 33 ++++++++++++++++++++------------- 4 files changed, 72 insertions(+), 49 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 61b70a8b6..ffb83c73e 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -355,14 +355,14 @@ def eval(self, omega, squeeze=True): omega: float or array_like Frequencies in radians per second squeeze: bool, optional (default=True) - If True and sys is single input single output (SISO), returns a - 1D array or scalar depending on the length of omega + If True and `sys` is single input single output (SISO), returns a + 1D array or scalar depending on the length of `omega` Returns ------- - fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray - The frequency response of the system. Array is len(x) if and only if - system is SISO and squeeze=True. + fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is ``len(x)`` if and only + if system is SISO and ``squeeze=True``. """ omega_array = np.array(omega, ndmin=1) # array-like version of omega @@ -398,27 +398,28 @@ def __call__(self, s, squeeze=True): Returns the complex frequency response `sys(s)`. To evaluate at a frequency omega in radians per second, enter - x = omega*1j or use FRD.eval(omega) + ``x = omega * 1j`` or use ``sys.eval(omega)`` Parameters ---------- s: complex scalar or array_like Complex frequencies squeeze: bool, optional (default=True) - If True and sys is single input single output (SISO), returns a - 1D array or scalar depending on the length of x. + If True and `sys` is single input single output (SISO), returns a + 1D array or scalar depending on the length of x`. Returns ------- - fresp : (num_outputs, num_inputs, len(x)) or len(x) complex ndarray - The frequency response of the system. Array is len(x) if and only if - system is SISO and squeeze=True. + fresp : (self.outputs, self.inputs, len(s)) or len(s) complex ndarray + The frequency response of the system. Array is ``len(s)`` if and + only if system is SISO and ``squeeze=True``. Raises ------ ValueError - If `s` is not purely imaginary, because FrequencyDomainData systems - are only defined at imaginary frequency values. + If `s` is not purely imaginary, because + :class:`FrequencyDomainData` systems are only defined at imaginary + frequency values. """ if any(abs(np.array(s, ndmin=1).real) > 0): @@ -431,11 +432,18 @@ def __call__(self, s, squeeze=True): return self.eval(complex(s).imag, squeeze=squeeze) def freqresp(self, omega): - warn("FrequencyResponseData.freqresp(omega) will be deprecated in a " + """(deprecated) Evaluate transfer function at complex frequencies. + + .. deprecated::0.9.0 + Method has been given the more pythonic name + :meth:`FrequencyResponseData.frequency_response`. Or use + :func:`freqresp` in the MATLAB compatibility module. + """ + warn("FrequencyResponseData.freqresp(omega) will be removed in a " "future release of python-control; use " - "FrequencyResponseData.frequency_response(sys, omega), or " + "FrequencyResponseData.frequency_response(omega), or " "freqresp(sys, omega) in the MATLAB compatibility module " - "instead", PendingDeprecationWarning) + "instead", DeprecationWarning) return self.frequency_response(omega) def feedback(self, other=1, sign=-1): diff --git a/control/lti.py b/control/lti.py index b0b9d7060..4af9dfc86 100644 --- a/control/lti.py +++ b/control/lti.py @@ -432,9 +432,10 @@ def evalfr(sys, x, squeeze=True): Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. - To evaluate at a frequency omega in radians per second, enter x = omega*1j, - for continuous-time systems, or x = exp(1j*omega*dt) for discrete-time - systems. + To evaluate at a frequency omega in radians per second, enter + ``x = omega * 1j`` for continuous-time systems, or + ``x = exp(1j * omega * dt)`` for discrete-time systems, or use + ``freqresp(sys, omega)``. Parameters ---------- diff --git a/control/statesp.py b/control/statesp.py index 2b9ef016a..d131e1aca 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -444,22 +444,23 @@ def __call__(self, x, squeeze=True): continuous-time systems and `z` for discrete-time systems. To evaluate at a frequency omega in radians per second, enter - x = omega*1j, for continuous-time systems, or x = exp(1j*omega*dt) for - discrete-time systems. + ``x = omega * 1j``, for continuous-time systems, or + ``x = exp(1j * omega * dt)`` for discrete-time systems. Or use + :meth:`StateSpace.frequency_response`. Parameters ---------- x: complex or complex array_like Complex frequencies squeeze: bool, optional (default=True) - If True and sys is single input single output (SISO), returns a - 1D array or scalar depending on the length of x. + If True and `sys` is single input single output (SISO), returns a + 1D array or scalar depending on the length of `x`. Returns ------- fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray - The frequency response of the system. Array is len(x) if and only if - system is SISO and squeeze=True. + The frequency response of the system. Array is ``len(x)`` if and + only if system is SISO and ``squeeze=True``. """ # Use Slycot if available @@ -476,7 +477,7 @@ def slycot_laub(self, x): """Evaluate system's transfer function at complex frequency using Laub's method from Slycot. - Expects inputs and outputs to be formatted correctly. Use __call__ + Expects inputs and outputs to be formatted correctly. Use ``sys(x)`` for a more user-friendly interface. Parameters @@ -492,7 +493,7 @@ def slycot_laub(self, x): from slycot import tb05ad # preallocate - x_arr = np.array(x, ndmin=1) # array-like version of s + x_arr = np.atleast_1d(x) # array-like version of x n = self.states m = self.inputs p = self.outputs @@ -528,7 +529,7 @@ def horner(self, x): Evaluates `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. - Expects inputs and outputs to be formatted correctly. Use __call__ + Expects inputs and outputs to be formatted correctly. Use ``sys(x)`` for a more user-friendly interface. Parameters @@ -538,20 +539,20 @@ def horner(self, x): Returns ------- - output : (number_outputs, number_inputs, len(x)) complex ndarray + output : (self.outputs, self.inputs, len(x)) complex ndarray Frequency response Notes ----- - Attempts to use Laub's method from Slycot library, with a - fall-back to python code. + Attempts to use Laub's method from Slycot library, with a + fall-back to python code. """ try: out = self.slycot_laub(x) except (ImportError, Exception): # Fall back because either Slycot unavailable or cannot handle # certain cases. - x_arr = np.array(x, ndmin=1) # force to be an array + x_arr = np.atleast_1d(x) # force to be an array # Preallocate out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) @@ -564,11 +565,17 @@ def horner(self, x): return out def freqresp(self, omega): - warn("StateSpace.freqresp(omega) will be deprecated in a " + """(deprecated) Evaluate transfer function at complex frequencies. + + .. deprecated::0.9.0 + Method has been given the more pythonic name + :meth:`StateSpace.frequency_response`. Or use + :func:`freqresp` in the MATLAB compatibility module. + """ + warn("StateSpace.freqresp(omega) will be removed in a " "future release of python-control; use " - "StateSpace.frequency_response(sys, omega), or " - "freqresp(sys, omega) in the MATLAB compatibility module " - "instead", PendingDeprecationWarning) + "sys.frequency_response(omega), or freqresp(sys, omega) in the " + "MATLAB compatibility module instead", DeprecationWarning) return self.frequency_response(omega) # Compute poles and zeros diff --git a/control/xferfcn.py b/control/xferfcn.py index abd6338dd..9613fa18c 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -211,22 +211,23 @@ def __call__(self, x, squeeze=True): continuous-time systems and `z` for discrete-time systems. To evaluate at a frequency omega in radians per second, enter - x = omega*1j, for continuous-time systems, or x = exp(1j*omega*dt) for - discrete-time systems. + ``x = omega * 1j``, for continuous-time systems, or + ``x = exp(1j * omega * dt)`` for discrete-time systems. Or use + :meth:`TransferFunction.frequency_response`. Parameters ---------- x: complex array_like or complex Complex frequencies squeeze: bool, optional (default=True) - If True and sys is single input single output (SISO), returns a - 1D array or scalar depending on the length of x. + If True and `sys` is single input single output (SISO), returns a + 1D array or scalar depending on the length of `x`. Returns ------- fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray - The frequency response of the system. Array is len(x) if and only if - system is SISO and squeeze=True. + The frequency response of the system. Array is `len(x)` if and + only if system is SISO and ``squeeze=True``. """ out = self.horner(x) @@ -246,7 +247,7 @@ def horner(self, x): Evaluates `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. - Expects inputs and outputs to be formatted correctly. Use __call__ + Expects inputs and outputs to be formatted correctly. Use ``sys(x)`` for a more user-friendly interface. Parameters @@ -260,8 +261,8 @@ def horner(self, x): Frequency response """ - s_arr = np.array(x, ndmin=1) # force to be an array - out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex) + x_arr = np.atleast_1d(x) # force to be an array + out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) for i in range(self.outputs): for j in range(self.inputs): out[i][j] = (polyval(self.num[i][j], x) / @@ -659,11 +660,17 @@ def __getitem__(self, key): return TransferFunction(num, den, self.dt) def freqresp(self, omega): - warn("TransferFunction.freqresp(omega) will be deprecated in a " + """(deprecated) Evaluate transfer function at complex frequencies. + + .. deprecated::0.9.0 + Method has been given the more pythonic name + :meth:`TransferFunction.frequency_response`. Or use + :func:`freqresp` in the MATLAB compatibility module. + """ + warn("TransferFunction.freqresp(omega) will be removed in a " "future release of python-control; use " - "TransferFunction.frequency_response(sys, omega), or " - "freqresp(sys, omega) in the MATLAB compatibility module " - "instead", PendingDeprecationWarning) + "sys.frequency_response(omega), or freqresp(sys, omega) in the " + "MATLAB compatibility module instead", DeprecationWarning) return self.frequency_response(omega) def pole(self): From 3cf80afbbb3bd9ccf4ce7a761709f7c2535756a0 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Wed, 19 Aug 2020 10:35:17 -0700 Subject: [PATCH 021/260] small numpydoc change in trasnferfunction to resolve merge --- control/xferfcn.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/control/xferfcn.py b/control/xferfcn.py index cfe963e11..9613fa18c 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -211,8 +211,9 @@ def __call__(self, x, squeeze=True): continuous-time systems and `z` for discrete-time systems. To evaluate at a frequency omega in radians per second, enter - ``x = omega*1j``, for continuous-time systems, or ``x = exp(1j*omega*dt)`` - for discrete-time systems. + ``x = omega * 1j``, for continuous-time systems, or + ``x = exp(1j * omega * dt)`` for discrete-time systems. Or use + :meth:`TransferFunction.frequency_response`. Parameters ---------- From 330e517002114e00cd07fc00f978a1be3c6b2fc4 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Wed, 19 Aug 2020 10:44:32 -0700 Subject: [PATCH 022/260] unit tests now test for deprecation of sys.freqresp --- control/tests/statesp_test.py | 2 +- control/tests/xferfcn_test.py | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 77a6d3ec2..e96a91014 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -223,7 +223,7 @@ def test_freqresp_deprecated(self): # Make sure that we get a pending deprecation warning sys.freqresp(1.) - assert issubclass(w[-1].category, PendingDeprecationWarning) + assert issubclass(w[-1].category, DeprecationWarning) @unittest.skipIf(not slycot_check(), "slycot not installed") def test_freq_resp(self): diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 4ee314df1..140979a79 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -432,6 +432,19 @@ def test_call_mimo(self): # Test call version as well np.testing.assert_array_almost_equal(sys(2.j), resp) + def test_freqresp_deprecated(self): + sys = TransferFunction([1., 3., 5], [1., 6., 2., -1.]) + # Deprecated version of the call (should generate warning) + import warnings + with warnings.catch_warnings(record=True) as w: + # Set up warnings filter to only show warnings in control module + warnings.filterwarnings("ignore") + warnings.filterwarnings("always", module="control") + + # Make sure that we get a pending deprecation warning + sys.freqresp(1.) + assert issubclass(w[-1].category, DeprecationWarning) + def test_frequency_response_siso(self): """Evaluate the magnitude and phase of a SISO system at multiple frequencies.""" From bb8132e2a2e9c594e9e04e0521b391a16cb9e2ea Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 21 Dec 2020 14:17:58 -0800 Subject: [PATCH 023/260] dev instructions --- doc/index.rst | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/doc/index.rst b/doc/index.rst index b6c44d387..cfd4fbd1a 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -49,11 +49,59 @@ or to test the installed package:: .. _pytest: https://docs.pytest.org/ -Your contributions are welcome! Simply fork the `GitHub repository `_ and send a +.. rubric:: Contributing + +Your contributions are welcome! Simply fork the `GitHub repository `_ and send a `pull request`_. .. _pull request: https://github.com/python-control/python-control/pulls +The following details suggested steps for making your own contributions to the project using GitHub + +1. Fork on GitHub: login/create an account and click Fork button at the top right corner of https://github.com/python-control/python-control/. + +2. Clone to computer (Replace [you] with your Github username):: + + git clone https://github.com/[you]/python-control.git + cd python_control + +3. Set up remote upstream:: + + git remote add upstream https://github.com/python-control/python-control.git + +4. Start working on a new issue or feature by first creating a new branch with a descriptive name:: + + git checkout -b + +5. Write great code. Suggestion: write the tests you would like your code to satisfy before writing the code itself. This is known as test-driven development. + +6. Run tests and fix as necessary until everything passes:: + + pytest -v + + (for documentation, run ``make html`` in ``doc`` directory) + +7. Commit changes:: + + git add + git commit -m "commit message" + +8. Update & sync your local code to the upstream version on Github before submitting (especially if it has been awhile):: + + git checkout master; git fetch --all; git merge upstream/master; git push + + and then bring those changes into your branch:: + + git checkout ; git rebase master + +9. Push your branch to GitHub:: + + git push origin + +10. Issue pull request to submit your code modifications to Github by going to your fork on Github, clicking Pull Request, and entering a description. +11. Repeat steps 5--9 until feature is complete + + .. rubric:: Links - Issue tracker: https://github.com/python-control/python-control/issues From 2dac8b8071015ad1c00253d49586a52b6d5e8c44 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 28 Dec 2020 14:27:12 -0800 Subject: [PATCH 024/260] updated parsing for use_legacy_defaults --- control/config.py | 54 +++++++++++++++++++++++++++--------- control/tests/config_test.py | 16 ++++++++++- 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/control/config.py b/control/config.py index 21840231b..ad9ffb235 100644 --- a/control/config.py +++ b/control/config.py @@ -171,17 +171,45 @@ def use_legacy_defaults(version): Parameters ---------- version : string - version number of the defaults desired. ranges from '0.1' to '0.8.4'. + Version number of the defaults desired. Ranges from '0.1' to '0.8.4'. """ - numbers_list = version.split(".") - first_digit = int(numbers_list[0]) - second_digit = int(numbers_list[1].strip('abcdef')) # remove trailing letters - if second_digit < 8: - # TODO: anything for 0.7 and below if needed - pass - elif second_digit == 8: - if len(version) > 4: - third_digit = int(version[4]) - use_numpy_matrix(True) # alternatively: set_defaults('statesp', use_numpy_matrix=True) - else: - raise ValueError('''version number not recognized. Possible values range from '0.1' to '0.8.4'.''') + import re + (major, minor, patch) = (None, None, None) # default values + + # Early release tag format: REL-0.N + match = re.match("REL-0.([12])", version) + if match: (major, minor, patch) = (0, int(match.group(1)), 0) + + # Early release tag format: control-0.Np + match = re.match("control-0.([3-6])([a-d])", version) + if match: (major, minor, patch) = \ + (0, int(match.group(1)), ord(match.group(2)) - ord('a') + 1) + + # Early release tag format: v0.Np + match = re.match("[vV]?0.([3-6])([a-d])", version) + if match: (major, minor, patch) = \ + (0, int(match.group(1)), ord(match.group(2)) - ord('a') + 1) + + # Abbreviated version format: vM.N or M.N + match = re.match("([vV]?[0-9]).([0-9])", version) + if match: (major, minor, patch) = \ + (int(match.group(1)), int(match.group(2)), 0) + + # Standard version format: vM.N.P or M.N.P + match = re.match("[vV]?([0-9]).([0-9]).([0-9])", version) + if match: (major, minor, patch) = \ + (int(match.group(1)), int(match.group(2)), int(match.group(3))) + + # Make sure we found match + if major is None or minor is None: + raise ValueError("Version number not recognized. Try M.N.P format.") + + # + # Go backwards through releases and reset defaults + # + + # Version 0.9.0: switched to 'array' as default for state space objects + if major == 0 and minor < 9: + set_defaults('statesp', use_numpy_matrix=True) + + return (major, minor, patch) diff --git a/control/tests/config_test.py b/control/tests/config_test.py index 667a7e3c4..a8e86d1ff 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -214,14 +214,28 @@ def test_reset_defaults(self): def test_legacy_defaults(self): ct.use_legacy_defaults('0.8.3') assert(isinstance(ct.ss(0,0,0,1).D, np.matrix)) + ct.reset_defaults() assert(isinstance(ct.ss(0,0,0,1).D, np.ndarray)) + assert(not isinstance(ct.ss(0,0,0,1).D, np.matrix)) + + ct.use_legacy_defaults('0.9.0') + assert(isinstance(ct.ss(0,0,0,1).D, np.ndarray)) + assert(not isinstance(ct.ss(0,0,0,1).D, np.matrix)) + # test that old versions don't raise a problem + ct.use_legacy_defaults('REL-0.1') + ct.use_legacy_defaults('control-0.3a') ct.use_legacy_defaults('0.6c') ct.use_legacy_defaults('0.8.2') ct.use_legacy_defaults('0.1') + + # Make sure that nonsense versions generate an error + self.assertRaises(ValueError, ct.use_legacy_defaults, "a.b.c") + self.assertRaises(ValueError, ct.use_legacy_defaults, "1.x.3") + + # Leave everything like we found it ct.config.reset_defaults() - def test_change_default_dt(self): ct.set_defaults('statesp', default_dt=0) From 2849413798b394467fbe47dd70bbbfa2a2790fa1 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 28 Dec 2020 14:27:48 -0800 Subject: [PATCH 025/260] change statesp to use ndarray by default --- control/statesp.py | 2 +- control/tests/{modelsimp_test.py => modelsimp_matrix_test.py} | 0 control/tests/{robust_test.py => robust_matrix_test.py} | 0 control/tests/{statefbk_test.py => statefbk_matrix_test.py} | 0 control/tests/{statesp_test.py => statesp_matrix_test.py} | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename control/tests/{modelsimp_test.py => modelsimp_matrix_test.py} (100%) rename control/tests/{robust_test.py => robust_matrix_test.py} (100%) rename control/tests/{statefbk_test.py => statefbk_matrix_test.py} (100%) rename control/tests/{statesp_test.py => statesp_matrix_test.py} (100%) diff --git a/control/statesp.py b/control/statesp.py index dd0ea6f5e..5af916bf0 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -70,7 +70,7 @@ # Define module default parameter values _statesp_defaults = { - 'statesp.use_numpy_matrix': True, + 'statesp.use_numpy_matrix': False, # False is default in 0.9.0 and above 'statesp.default_dt': None, 'statesp.remove_useless_states': True, } diff --git a/control/tests/modelsimp_test.py b/control/tests/modelsimp_matrix_test.py similarity index 100% rename from control/tests/modelsimp_test.py rename to control/tests/modelsimp_matrix_test.py diff --git a/control/tests/robust_test.py b/control/tests/robust_matrix_test.py similarity index 100% rename from control/tests/robust_test.py rename to control/tests/robust_matrix_test.py diff --git a/control/tests/statefbk_test.py b/control/tests/statefbk_matrix_test.py similarity index 100% rename from control/tests/statefbk_test.py rename to control/tests/statefbk_matrix_test.py diff --git a/control/tests/statesp_test.py b/control/tests/statesp_matrix_test.py similarity index 100% rename from control/tests/statesp_test.py rename to control/tests/statesp_matrix_test.py From 90c564c5893973ce1ea0aa8d8430e4a76636b75e Mon Sep 17 00:00:00 2001 From: bnavigator Date: Tue, 29 Dec 2020 05:32:34 +0100 Subject: [PATCH 026/260] skip impulse sampling for old scipy --- control/tests/timeresp_test.py | 59 +++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 2c195b888..8020d8078 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -9,7 +9,12 @@ # specific unit tests will do that. import unittest +from distutils.version import StrictVersion + import numpy as np +import pytest +import scipy as sp + from control.timeresp import * from control.timeresp import _ideal_tfinal_and_dt, _default_time_vector from control.statesp import * @@ -29,11 +34,11 @@ def setUp(self): # Create some transfer functions self.siso_tf1 = TransferFunction([1], [1, 2, 1]) self.siso_tf2 = _convert_to_transfer_function(self.siso_ss1) - + # tests for pole cancellation - self.pole_cancellation = TransferFunction([1.067e+05, 5.791e+04], + self.pole_cancellation = TransferFunction([1.067e+05, 5.791e+04], [10.67, 1.067e+05, 5.791e+04]) - self.no_pole_cancellation = TransferFunction([1.881e+06], + self.no_pole_cancellation = TransferFunction([1.881e+06], [188.1, 1.881e+06]) # Create MIMO system, contains ``siso_ss1`` twice @@ -177,8 +182,8 @@ def test_step_info(self): # https://github.com/python-control/python-control/issues/440 step_info_no_cancellation = step_info(self.no_pole_cancellation) step_info_cancellation = step_info(self.pole_cancellation) - for key in step_info_no_cancellation: - np.testing.assert_allclose(step_info_no_cancellation[key], + for key in step_info_no_cancellation: + np.testing.assert_allclose(step_info_no_cancellation[key], step_info_cancellation[key], rtol=1e-4) def test_impulse_response(self): @@ -218,6 +223,8 @@ def test_impulse_response(self): np.testing.assert_array_almost_equal( yy, np.vstack((youttrue, np.zeros_like(youttrue))), decimal=4) + @pytest.mark.skipif(StrictVersion(sp.__version__) < "1.3.0", + reason="requires SciPy 1.3.0 or greater") def test_discrete_time_impulse(self): # discrete time impulse sampled version should match cont time dt = 0.1 @@ -226,7 +233,7 @@ def test_discrete_time_impulse(self): sysdt = sys.sample(dt, 'impulse') np.testing.assert_array_almost_equal(impulse_response(sys, t)[1], impulse_response(sysdt, t)[1]) - + def test_initial_response(self): # Test SISO system sys = self.siso_ss1 @@ -363,7 +370,7 @@ def test_step_robustness(self): "Unit test: https://github.com/python-control/python-control/issues/240" # Create 2 input, 2 output system num = [ [[0], [1]], [[1], [0]] ] - + den1 = [ [[1], [1,1]], [[1,4], [1]] ] sys1 = TransferFunction(num, den1) @@ -381,47 +388,47 @@ def test_auto_generated_time_vector(self): ratio = 9.21034*p # taken from code ratio2 = 25*p np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, .5]))[0], + _ideal_tfinal_and_dt(TransferFunction(1, [1, .5]))[0], (ratio/p)) np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, .5]).sample(.1))[0], + _ideal_tfinal_and_dt(TransferFunction(1, [1, .5]).sample(.1))[0], (ratio2/p)) # confirm a TF with poles at 0 and p simulates for ratio/p seconds np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, .5, 0]))[0], + _ideal_tfinal_and_dt(TransferFunction(1, [1, .5, 0]))[0], (ratio2/p)) - # confirm a TF with a natural frequency of wn rad/s gets a + # confirm a TF with a natural frequency of wn rad/s gets a # dt of 1/(ratio*wn) wn = 10 ratio_dt = 1/(0.025133 * ratio * wn) np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 0, wn**2]))[1], + _ideal_tfinal_and_dt(TransferFunction(1, [1, 0, wn**2]))[1], 1/(ratio_dt*ratio*wn)) wn = 100 np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 0, wn**2]))[1], + _ideal_tfinal_and_dt(TransferFunction(1, [1, 0, wn**2]))[1], 1/(ratio_dt*ratio*wn)) zeta = .1 np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]))[1], + _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]))[1], 1/(ratio_dt*ratio*wn)) # but a smapled one keeps its dt np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]).sample(.1))[1], + _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]).sample(.1))[1], .1) np.testing.assert_array_almost_equal( - np.diff(initial_response(TransferFunction(1, [1, 2*zeta*wn, wn**2]).sample(.1))[0][0:2]), + np.diff(initial_response(TransferFunction(1, [1, 2*zeta*wn, wn**2]).sample(.1))[0][0:2]), .1) np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]))[1], + _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]))[1], 1/(ratio_dt*ratio*wn)) - - + + # TF with fast oscillations simulates only 5000 time steps even with long tfinal - self.assertEqual(5000, + self.assertEqual(5000, len(_default_time_vector(TransferFunction(1, [1, 0, wn**2]),tfinal=100))) - + sys = TransferFunction(1, [1, .5, 0]) sysdt = TransferFunction(1, [1, .5, 0], .1) # test impose number of time steps @@ -430,16 +437,16 @@ def test_auto_generated_time_vector(self): self.assertNotEqual(15, len(step_response(sysdt, T_num=15)[0])) # test impose final time np.testing.assert_array_almost_equal( - 100, + 100, np.ceil(step_response(sys, 100)[0][-1])) np.testing.assert_array_almost_equal( - 100, + 100, np.ceil(step_response(sysdt, 100)[0][-1])) np.testing.assert_array_almost_equal( - 100, + 100, np.ceil(impulse_response(sys, 100)[0][-1])) np.testing.assert_array_almost_equal( - 100, + 100, np.ceil(initial_response(sys, 100)[0][-1])) @@ -490,7 +497,7 @@ def test_time_vector(self): np.testing.assert_array_equal(tout, Tin1) # MIMO forced response - tout, yout, xout = forced_response(self.mimo_dss1, Tin1, + tout, yout, xout = forced_response(self.mimo_dss1, Tin1, (np.sin(Tin1), np.cos(Tin1)), mimo_x0) self.assertEqual(np.shape(tout), np.shape(yout[0,:])) From d6d77dcdb41c660d4a3b5db3114703018d433495 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Fri, 21 Aug 2020 21:03:06 +0200 Subject: [PATCH 027/260] returnScipySignalLTI for discrete systems and add unit tests --- control/statesp.py | 45 +++++++++++++++++++----- control/tests/statesp_matrix_test.py | 52 ++++++++++++++++++++++++++++ control/tests/xferfcn_test.py | 41 ++++++++++++++++++++++ control/xferfcn.py | 39 ++++++++++++++++----- 4 files changed, 161 insertions(+), 16 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index 5af916bf0..d23fbd7be 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -59,7 +59,8 @@ from numpy.linalg import solve, eigvals, matrix_rank from numpy.linalg.linalg import LinAlgError import scipy as sp -from scipy.signal import lti, cont2discrete +from scipy.signal import cont2discrete +from scipy.signal import StateSpace as signalStateSpace from warnings import warn from .lti import LTI, timebase, timebaseEqual, isdtime from . import config @@ -200,7 +201,7 @@ def __init__(self, *args, **kw): raise ValueError("Needs 1 or 4 arguments; received %i." % len(args)) # Process keyword arguments - remove_useless = kw.get('remove_useless', + remove_useless = kw.get('remove_useless', config.defaults['statesp.remove_useless_states']) # Convert all matrices to standard form @@ -798,9 +799,7 @@ def minreal(self, tol=0.0): else: return StateSpace(self) - - # TODO: add discrete time check - def returnScipySignalLTI(self): + def returnScipySignalLTI(self, strict=True): """Return a list of a list of :class:`scipy.signal.lti` objects. For instance, @@ -809,15 +808,45 @@ def returnScipySignalLTI(self): >>> out[3][5] is a :class:`scipy.signal.lti` object corresponding to the transfer - function from the 6th input to the 4th output.""" + function from the 6th input to the 4th output. + + Parameters + ---------- + strict : bool, optional + True (default): + The timebase `ssobject.dt` cannot be None; it must + be continuous (0) or discrete (True or > 0). + False: + If `ssobject.dt` is None, continuous time + :class:`scipy.signal.lti` objects are returned. + + Returns + ------- + out : list of list of :class:`scipy.signal.StateSpace` + continuous time (inheriting from :class:`scipy.signal.lti`) + or discrete time (inheriting from :class:`scipy.signal.dlti`) + SISO objects + """ + if strict and self.dt is None: + raise ValueError("with strict=True, dt cannot be None") + + if self.dt: + kwdt = {'dt': self.dt} + else: + # scipy convention for continuous time lti systems: call without + # dt keyword argument + kwdt = {} # Preallocate the output. out = [[[] for _ in range(self.inputs)] for _ in range(self.outputs)] for i in range(self.outputs): for j in range(self.inputs): - out[i][j] = lti(asarray(self.A), asarray(self.B[:, j]), - asarray(self.C[i, :]), self.D[i, j]) + out[i][j] = signalStateSpace(asarray(self.A), + asarray(self.B[:, j:j + 1]), + asarray(self.C[i:i + 1, :]), + asarray(self.D[i:i + 1, j:j + 1]), + **kwdt) return out diff --git a/control/tests/statesp_matrix_test.py b/control/tests/statesp_matrix_test.py index 34a17f992..e7e91364a 100644 --- a/control/tests/statesp_matrix_test.py +++ b/control/tests/statesp_matrix_test.py @@ -5,6 +5,7 @@ import unittest import numpy as np +import pytest from numpy.linalg import solve from scipy.linalg import eigvals, block_diag from control import matlab @@ -673,5 +674,56 @@ def test_sample_system_prewarping(self): decimal=4) +class TestLTIConverter: + """Test returnScipySignalLTI method""" + + @pytest.fixture + def mimoss(self, request): + """Test system with various dt values""" + n = 5 + m = 3 + p = 2 + bx, bu = np.mgrid[1:n + 1, 1:m + 1] + cy, cx = np.mgrid[1:p + 1, 1:n + 1] + dy, du = np.mgrid[1:p + 1, 1:m + 1] + return StateSpace(np.eye(5) + np.eye(5, 5, 1), + bx * bu, + cy * cx, + dy * du, + request.param) + + @pytest.mark.parametrize("mimoss", + [None, + 0, + 0.1, + 1, + True], + indirect=True) + def test_returnScipySignalLTI(self, mimoss): + """Test returnScipySignalLTI method with strict=False""" + sslti = mimoss.returnScipySignalLTI(strict=False) + for i in range(mimoss.outputs): + for j in range(mimoss.inputs): + np.testing.assert_allclose(sslti[i][j].A, mimoss.A) + np.testing.assert_allclose(sslti[i][j].B, mimoss.B[:, + j:j + 1]) + np.testing.assert_allclose(sslti[i][j].C, mimoss.C[i:i + 1, + :]) + np.testing.assert_allclose(sslti[i][j].D, mimoss.D[i:i + 1, + j:j + 1]) + if mimoss.dt == 0: + assert sslti[i][j].dt is None + else: + assert sslti[i][j].dt == mimoss.dt + + @pytest.mark.parametrize("mimoss", [None], indirect=True) + def test_returnScipySignalLTI_error(self, mimoss): + """Test returnScipySignalLTI method with dt=None and strict=True""" + with pytest.raises(ValueError): + mimoss.returnScipySignalLTI() + with pytest.raises(ValueError): + mimoss.returnScipySignalLTI(strict=True) + + if __name__ == "__main__": unittest.main() diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 02e6c2b37..17e602090 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -4,6 +4,8 @@ # RMM, 30 Mar 2011 (based on TestXferFcn from v0.4a) import unittest +import pytest + import sys as pysys import numpy as np from control.statesp import StateSpace, _convertToStateSpace, rss @@ -934,5 +936,44 @@ def test_sample_system_prewarping(self): decimal=4) +class TestLTIConverter: + """Test returnScipySignalLTI method""" + + @pytest.fixture + def mimotf(self, request): + """Test system with various dt values""" + return TransferFunction([[[11], [12], [13]], + [[21], [22], [23]]], + [[[1, -1]] * 3] * 2, + request.param) + + @pytest.mark.parametrize("mimotf", + [None, + 0, + 0.1, + 1, + True], + indirect=True) + def test_returnScipySignalLTI(self, mimotf): + """Test returnScipySignalLTI method with strict=False""" + sslti = mimotf.returnScipySignalLTI(strict=False) + for i in range(2): + for j in range(3): + np.testing.assert_allclose(sslti[i][j].num, mimotf.num[i][j]) + np.testing.assert_allclose(sslti[i][j].den, mimotf.den[i][j]) + if mimotf.dt == 0: + assert sslti[i][j].dt is None + else: + assert sslti[i][j].dt == mimotf.dt + + @pytest.mark.parametrize("mimotf", [None], indirect=True) + def test_returnScipySignalLTI_error(self, mimotf): + """Test returnScipySignalLTI method with dt=None and strict=True""" + with pytest.raises(ValueError): + mimotf.returnScipySignalLTI() + with pytest.raises(ValueError): + mimotf.returnScipySignalLTI(strict=True) + + if __name__ == "__main__": unittest.main() diff --git a/control/xferfcn.py b/control/xferfcn.py index 1cba50bd7..4077080e3 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -57,7 +57,8 @@ polyadd, polymul, polyval, roots, sqrt, zeros, squeeze, exp, pi, \ where, delete, real, poly, nonzero import scipy as sp -from scipy.signal import lti, tf2zpk, zpk2tf, cont2discrete +from scipy.signal import tf2zpk, zpk2tf, cont2discrete +from scipy.signal import TransferFunction as signalTransferFunction from copy import deepcopy from warnings import warn from itertools import chain @@ -801,7 +802,7 @@ def minreal(self, tol=None): # end result return TransferFunction(num, den, self.dt) - def returnScipySignalLTI(self): + def returnScipySignalLTI(self, strict=True): """Return a list of a list of :class:`scipy.signal.lti` objects. For instance, @@ -809,22 +810,44 @@ def returnScipySignalLTI(self): >>> out = tfobject.returnScipySignalLTI() >>> out[3][5] - is a class:`scipy.signal.lti` object corresponding to the + is a :class:`scipy.signal.lti` object corresponding to the transfer function from the 6th input to the 4th output. + Parameters + ---------- + strict : bool, optional + True (default): + The timebase `tfobject.dt` cannot be None; it must be + continuous (0) or discrete (True or > 0). + False: + if `tfobject.dt` is None, continuous time + :class:`scipy.signal.lti`objects are returned + + Returns + ------- + out : list of list of :class:`scipy.signal.TransferFunction` + continuous time (inheriting from :class:`scipy.signal.lti`) + or discrete time (inheriting from :class:`scipy.signal.dlti`) + SISO objects """ + if strict and self.dt is None: + raise ValueError("with strict=True, dt cannot be None") - # TODO: implement for discrete time systems - if self.dt != 0 and self.dt is not None: - raise NotImplementedError("Function not \ - implemented in discrete time") + if self.dt: + kwdt = {'dt': self.dt} + else: + # scipy convention for continuous time lti systems: call without + # dt keyword argument + kwdt = {} # Preallocate the output. out = [[[] for j in range(self.inputs)] for i in range(self.outputs)] for i in range(self.outputs): for j in range(self.inputs): - out[i][j] = lti(self.num[i][j], self.den[i][j]) + out[i][j] = signalTransferFunction(self.num[i][j], + self.den[i][j], + **kwdt) return out From 092b76cdd71dab97c2598d0e20d41e60b59996fd Mon Sep 17 00:00:00 2001 From: bnavigator Date: Wed, 30 Dec 2020 00:12:21 +0100 Subject: [PATCH 028/260] fix statefbk docstring and input array type --- control/statefbk.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/control/statefbk.py b/control/statefbk.py index c08c645e9..35192d7f4 100644 --- a/control/statefbk.py +++ b/control/statefbk.py @@ -120,7 +120,7 @@ def place(A, B, p): raise ControlDimension(err_str) # Convert desired poles to numpy array - placed_eigs = np.array(p) + placed_eigs = np.atleast_1d(np.squeeze(np.asarray(p))) result = place_poles(A_mat, B_mat, placed_eigs, method='YT') K = result.gain_matrix @@ -201,7 +201,7 @@ def place_varga(A, B, p, dtime=False, alpha=None): # Compute the system eigenvalues and convert poles to numpy array system_eigs = np.linalg.eig(A_mat)[0] - placed_eigs = np.array(p) + placed_eigs = np.atleast_1d(np.squeeze(np.asarray(p))) # Need a character parameter for SB01BD if dtime: @@ -292,8 +292,8 @@ def lqe(A, G, C, QN, RN, NN=None): Examples -------- - >>> K, P, E = lqe(A, G, C, QN, RN) - >>> K, P, E = lqe(A, G, C, QN, RN, NN) + >>> L, P, E = lqe(A, G, C, QN, RN) + >>> L, P, E = lqe(A, G, C, QN, RN, NN) See Also -------- From 5a9e4332bab0e59f721ef86b1eb36c0049e09a10 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Wed, 30 Dec 2020 01:32:33 +0100 Subject: [PATCH 029/260] update docstring for statefbk inputs --- control/statefbk.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/control/statefbk.py b/control/statefbk.py index 35192d7f4..1d51cfc61 100644 --- a/control/statefbk.py +++ b/control/statefbk.py @@ -41,7 +41,7 @@ # External packages and modules import numpy as np -import scipy as sp + from . import statesp from .mateqn import care from .statesp import _ssmatrix @@ -59,11 +59,11 @@ def place(A, B, p): Parameters ---------- - A : 2D array + A : 2D array_like Dynamics matrix - B : 2D array + B : 2D array_like Input matrix - p : 1D list + p : 1D array_like Desired eigenvalue locations Returns @@ -133,11 +133,11 @@ def place_varga(A, B, p, dtime=False, alpha=None): Required Parameters ---------- - A : 2D array + A : 2D array_like Dynamics matrix - B : 2D array + B : 2D array_like Input matrix - p : 1D list + p : 1D array_like Desired eigenvalue locations Optional Parameters @@ -264,9 +264,9 @@ def lqe(A, G, C, QN, RN, NN=None): Parameters ---------- - A, G : 2D array + A, G : 2D array_like Dynamics and noise input matrices - QN, RN : 2D array + QN, RN : 2D array_like Process and sensor noise covariance matrices NN : 2D array, optional Cross covariance matrix @@ -324,9 +324,9 @@ def acker(A, B, poles): Parameters ---------- - A, B : 2D arrays + A, B : 2D array_like State and input matrix of the system - poles : 1D list + poles : 1D array_like Desired eigenvalue locations Returns From 4eee1f3ea46f2f993f4c548155ac2ef42da4f0fb Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 30 Dec 2020 17:51:48 +0100 Subject: [PATCH 030/260] handle empty pole vector for timevector calculation (#485) --- control/timeresp.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/control/timeresp.py b/control/timeresp.py index 946fc6270..f4f293bdf 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -846,8 +846,8 @@ def _ideal_tfinal_and_dt(sys, is_step=True): The system whose time response is to be computed is_step : bool Scales the dc value by the magnitude of the nonzero mode since - integrating the impulse response gives - :math:`\int e^{-\lambda t} = -e^{-\lambda t}/ \lambda` + integrating the impulse response gives + :math:`\\int e^{-\\lambda t} = -e^{-\\lambda t}/ \\lambda` Default is True. Returns @@ -900,8 +900,10 @@ def _ideal_tfinal_and_dt(sys, is_step=True): p_u, p = p[m_u], p[~m_u] if p_u.size > 0: m_u = (p_u.real < 0) & (np.abs(p_u.imag) < sqrt_eps) - t_emp = np.max(log_decay_percent / np.abs(np.log(p_u[~m_u])/dt)) - tfinal = max(tfinal, t_emp) + if np.any(~m_u): + t_emp = np.max( + log_decay_percent / np.abs(np.log(p_u[~m_u]) / dt)) + tfinal = max(tfinal, t_emp) # zero - negligible effect on tfinal m_z = np.abs(p) < sqrt_eps From c432fd5ec1c188e44182c5765d505181e7199ad4 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 30 Dec 2020 20:32:40 +0100 Subject: [PATCH 031/260] Refactor the test suite using pytest for array and matrix types (#438) * reorganize travis matrix, extend conftest.py * pytestify bdalg_test * pytestify canonical_test * pytestify config_test * pytestify convert_test.py * pytestify ctrlutil_test * pytestify delay_test.py * pytestify discrete_test * pytestify flatsys_test * pytestify frd_test * pytestify freqresp_test.py * pytestify input_element_int_test * pytestify iosys_test * pytestify lti_test.py * pytestify mateqn_test * pytestify matlab tests * pytestify minreal_test * pytestify modelsimp * pytestify nichols_test * pytestify phaseplot_test * pytestify rlocus_test.py * pytestify robust tests * pytestify sisotool_test.py * pytestify slycot_convert_test.py * pytestify statefbk tests * pytestify statesp tests * pytestify timeresp_test.py * pytestify xferfcn_input_test.py remove a lot of duplicate code by converting everything into a single parametrized test function. * pytestify xferfcn tests * make tests work with pre #431 source code state revert this commit when merging a rebased #431 (remove statesp_test.py::test_copy_constructor_nodt if not applicable) --- .travis.yml | 68 +- control/tests/bdalg_test.py | 214 ++-- control/tests/canonical_test.py | 167 +-- control/tests/config_test.py | 179 ++- control/tests/conftest.py | 82 +- control/tests/convert_test.py | 379 +++--- control/tests/ctrlutil_test.py | 18 +- control/tests/delay_test.py | 89 +- control/tests/discrete_test.py | 620 ++++----- control/tests/flatsys_test.py | 78 +- control/tests/frd_test.py | 140 +- control/tests/freqresp_test.py | 475 +++---- control/tests/input_element_int_test.py | 74 +- control/tests/iosys_test.py | 603 +++++---- control/tests/lti_test.py | 45 +- control/tests/margin_test.py | 0 control/tests/mateqn_test.py | 166 +-- ...test_control_matlab.py => matlab2_test.py} | 151 +-- control/tests/matlab_test.py | 874 +++++++------ control/tests/minreal_test.py | 75 +- control/tests/modelsimp_array_test.py | 251 ---- control/tests/modelsimp_matrix_test.py | 135 -- control/tests/modelsimp_test.py | 225 ++++ control/tests/nichols_test.py | 44 +- control/tests/phaseplot_test.py | 45 +- control/tests/pzmap_test.py | 0 control/tests/rlocus_test.py | 67 +- control/tests/robust_array_test.py | 393 ------ .../{robust_matrix_test.py => robust_test.py} | 129 +- control/tests/sisotool_test.py | 32 +- control/tests/slycot_convert_test.py | 394 +++--- control/tests/statefbk_array_test.py | 413 ------ control/tests/statefbk_matrix_test.py | 348 ----- control/tests/statefbk_test.py | 381 ++++++ control/tests/statesp_array_test.py | 639 ---------- ...statesp_matrix_test.py => statesp_test.py} | 595 +++++---- control/tests/timeresp_test.py | 1128 +++++++++-------- control/tests/xferfcn_input_test.py | 328 ++--- control/tests/xferfcn_test.py | 574 +++++---- setup.cfg | 1 - setup.py | 2 +- 41 files changed, 4559 insertions(+), 6062 deletions(-) mode change 100755 => 100644 control/tests/conftest.py mode change 100755 => 100644 control/tests/margin_test.py rename control/tests/{test_control_matlab.py => matlab2_test.py} (81%) delete mode 100644 control/tests/modelsimp_array_test.py delete mode 100644 control/tests/modelsimp_matrix_test.py create mode 100644 control/tests/modelsimp_test.py mode change 100755 => 100644 control/tests/pzmap_test.py delete mode 100644 control/tests/robust_array_test.py rename control/tests/{robust_matrix_test.py => robust_test.py} (80%) delete mode 100644 control/tests/statefbk_array_test.py delete mode 100644 control/tests/statefbk_matrix_test.py create mode 100644 control/tests/statefbk_test.py delete mode 100644 control/tests/statesp_array_test.py rename control/tests/{statesp_matrix_test.py => statesp_test.py} (57%) diff --git a/.travis.yml b/.travis.yml index ec615501d..3e700c485 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,72 +13,38 @@ cache: - $HOME/.local python: + - "3.9" + - "3.8" - "3.7" - "3.6" - - "2.7" -# Test against multiple version of SciPy, with and without slycot -# -# Because there were significant changes in SciPy between v0 and v1, we -# test against both of these using the Travis CI environment capability -# -# We also want to test with and without slycot env: - SCIPY=scipy SLYCOT=conda # default, with slycot via conda - SCIPY=scipy SLYCOT= # default, w/out slycot - - SCIPY="scipy==0.19.1" SLYCOT= # legacy support, w/out slycot # Add optional builds that test against latest version of slycot, python jobs: include: - - name: "linux, Python 2.7, slycot=source" - os: linux - dist: xenial - services: xvfb - python: "2.7" - env: SCIPY=scipy SLYCOT=source - - name: "linux, Python 3.7, slycot=source" - os: linux - dist: xenial - services: xvfb - python: "3.7" - env: SCIPY=scipy SLYCOT=source - - name: "linux, Python 3.8, slycot=source" - os: linux - dist: xenial - services: xvfb + - name: "Python 3.8, slycot=source" python: "3.8" env: SCIPY=scipy SLYCOT=source - - name: "use numpy matrix" - dist: xenial - services: xvfb - python: "3.8" - env: SCIPY=scipy SLYCOT=source PYTHON_CONTROL_STATESPACE_ARRAY=1 - - # Exclude combinations that are very unlikely (and don't work) - exclude: - - python: "3.7" # python3.7 should use latest scipy + - name: "Python 3.9, slycot=source, array and matrix" + python: "3.9" + env: SCIPY=scipy SLYCOT=source PYTHON_CONTROL_ARRAY_AND_MATRIX=1 + # Because there were significant changes in SciPy between v0 and v1, we + # also test against the latest v0 (without Slycot) for old pythons. + # newer pythons should always use newer SciPy. + - name: "Python 2.7, Scipy 0.19.1" + python: "2.7" + env: SCIPY="scipy==0.19.1" SLYCOT= + - name: "Python 3.6, Scipy 0.19.1" + python: "3.6" env: SCIPY="scipy==0.19.1" SLYCOT= allow_failures: - - name: "linux, Python 2.7, slycot=source" - os: linux - dist: xenial - services: xvfb - python: "2.7" - env: SCIPY=scipy SLYCOT=source - - name: "linux, Python 3.7, slycot=source" - os: linux - dist: xenial - services: xvfb - python: "3.7" - env: SCIPY=scipy SLYCOT=source - - name: "linux, Python 3.8, slycot=source" - os: linux - dist: xenial - services: xvfb - python: "3.8" - env: SCIPY=scipy SLYCOT=source + - env: SCIPY=scipy SLYCOT=source + - env: SCIPY=scipy SLYCOT=source PYTHON_CONTROL_ARRAY_AND_MATRIX=1 + # install required system libraries before_install: diff --git a/control/tests/bdalg_test.py b/control/tests/bdalg_test.py index a7ec6c14b..fc5f78f91 100644 --- a/control/tests/bdalg_test.py +++ b/control/tests/bdalg_test.py @@ -1,50 +1,53 @@ -#!/usr/bin/env python -# -# bdalg_test.py - test suite for block diagram algebra -# RMM, 30 Mar 2011 (based on TestBDAlg from v0.4a) +"""bdalg_test.py - test suite for block diagram algebra + +RMM, 30 Mar 2011 (based on TestBDAlg from v0.4a) +""" -import unittest import numpy as np from numpy import sort +import pytest + import control as ctrl from control.xferfcn import TransferFunction from control.statesp import StateSpace from control.bdalg import feedback, append, connect from control.lti import zero, pole -class TestFeedback(unittest.TestCase): + +class TestFeedback: """These are tests for the feedback function in bdalg.py. Currently, some of the tests are not implemented, or are not working properly. TODO: these need to be fixed.""" - def setUp(self): - """This contains some random LTI systems and scalars for testing.""" - - # Two random SISO systems. - self.sys1 = TransferFunction([1, 2], [1, 2, 3]) - self.sys2 = StateSpace([[1., 4.], [3., 2.]], [[1.], [-4.]], - [[1., 0.]], [[0.]]) # 2 states, SISO - self.sys3 = StateSpace([[-1.]], [[1.]], [[1.]], [[0.]]) # 1 state, SISO + @pytest.fixture + def tsys(self): + class T: + pass + # Three SISO systems. + T.sys1 = TransferFunction([1, 2], [1, 2, 3]) + T.sys2 = StateSpace([[1., 4.], [3., 2.]], [[1.], [-4.]], + [[1., 0.]], [[0.]]) + T.sys3 = StateSpace([[-1.]], [[1.]], [[1.]], [[0.]]) # 1 state, SISO # Two random scalars. - self.x1 = 2.5 - self.x2 = -3. + T.x1 = 2.5 + T.x2 = -3. + return T - def testScalarScalar(self): + def testScalarScalar(self, tsys): """Scalar system with scalar feedback block.""" + ans1 = feedback(tsys.x1, tsys.x2) + ans2 = feedback(tsys.x1, tsys.x2, 1.) - ans1 = feedback(self.x1, self.x2) - ans2 = feedback(self.x1, self.x2, 1.) - - self.assertAlmostEqual(ans1.num[0][0][0] / ans1.den[0][0][0], - -2.5 / 6.5) - self.assertAlmostEqual(ans2.num[0][0][0] / ans2.den[0][0][0], 2.5 / 8.5) + np.testing.assert_almost_equal( + ans1.num[0][0][0] / ans1.den[0][0][0], -2.5 / 6.5) + np.testing.assert_almost_equal( + ans2.num[0][0][0] / ans2.den[0][0][0], 2.5 / 8.5) - def testScalarSS(self): + def testScalarSS(self, tsys): """Scalar system with state space feedback block.""" - - ans1 = feedback(self.x1, self.sys2) - ans2 = feedback(self.x1, self.sys2, 1.) + ans1 = feedback(tsys.x1, tsys.sys2) + ans2 = feedback(tsys.x1, tsys.sys2, 1.) np.testing.assert_array_almost_equal(ans1.A, [[-1.5, 4.], [13., 2.]]) np.testing.assert_array_almost_equal(ans1.B, [[2.5], [-10.]]) @@ -56,18 +59,17 @@ def testScalarSS(self): np.testing.assert_array_almost_equal(ans2.D, [[2.5]]) # Make sure default arugments work as well - ans3 = feedback(self.sys2, 1) - ans4 = feedback(self.sys2) + ans3 = feedback(tsys.sys2, 1) + ans4 = feedback(tsys.sys2) np.testing.assert_array_almost_equal(ans3.A, ans4.A) np.testing.assert_array_almost_equal(ans3.B, ans4.B) np.testing.assert_array_almost_equal(ans3.C, ans4.C) np.testing.assert_array_almost_equal(ans3.D, ans4.D) - def testScalarTF(self): + def testScalarTF(self, tsys): """Scalar system with transfer function feedback block.""" - - ans1 = feedback(self.x1, self.sys1) - ans2 = feedback(self.x1, self.sys1, 1.) + ans1 = feedback(tsys.x1, tsys.sys1) + ans2 = feedback(tsys.x1, tsys.sys1, 1.) np.testing.assert_array_almost_equal(ans1.num, [[[2.5, 5., 7.5]]]) np.testing.assert_array_almost_equal(ans1.den, [[[1., 4.5, 8.]]]) @@ -75,16 +77,15 @@ def testScalarTF(self): np.testing.assert_array_almost_equal(ans2.den, [[[1., -0.5, -2.]]]) # Make sure default arugments work as well - ans3 = feedback(self.sys1, 1) - ans4 = feedback(self.sys1) + ans3 = feedback(tsys.sys1, 1) + ans4 = feedback(tsys.sys1) np.testing.assert_array_almost_equal(ans3.num, ans4.num) np.testing.assert_array_almost_equal(ans3.den, ans4.den) - def testSSScalar(self): + def testSSScalar(self, tsys): """State space system with scalar feedback block.""" - - ans1 = feedback(self.sys2, self.x1) - ans2 = feedback(self.sys2, self.x1, 1.) + ans1 = feedback(tsys.sys2, tsys.x1) + ans2 = feedback(tsys.sys2, tsys.x1, 1.) np.testing.assert_array_almost_equal(ans1.A, [[-1.5, 4.], [13., 2.]]) np.testing.assert_array_almost_equal(ans1.B, [[1.], [-4.]]) @@ -95,11 +96,10 @@ def testSSScalar(self): np.testing.assert_array_almost_equal(ans2.C, [[1., 0.]]) np.testing.assert_array_almost_equal(ans2.D, [[0.]]) - def testSSSS1(self): + def testSSSS1(self, tsys): """State space system with state space feedback block.""" - - ans1 = feedback(self.sys2, self.sys2) - ans2 = feedback(self.sys2, self.sys2, 1.) + ans1 = feedback(tsys.sys2, tsys.sys2) + ans2 = feedback(tsys.sys2, tsys.sys2, 1.) np.testing.assert_array_almost_equal(ans1.A, [[1., 4., -1., 0.], [3., 2., 4., 0.], [1., 0., 1., 4.], [-4., 0., 3., 2]]) @@ -112,10 +112,9 @@ def testSSSS1(self): np.testing.assert_array_almost_equal(ans2.C, [[1., 0., 0., 0.]]) np.testing.assert_array_almost_equal(ans2.D, [[0.]]) - def testSSSS2(self): + def testSSSS2(self, tsys): """State space system with state space feedback block, including a direct feedthrough term.""" - sys3 = StateSpace([[-1., 4.], [2., -3]], [[2.], [3.]], [[-3., 1.]], [[-2.]]) sys4 = StateSpace([[-3., -2.], [1., 4.]], [[-2.], [-6.]], [[2., -3.]], @@ -147,42 +146,39 @@ def testSSSS2(self): np.testing.assert_array_almost_equal(ans2.D, [[-0.285714285714286]]) - def testSSTF(self): + def testSSTF(self, tsys): """State space system with transfer function feedback block.""" - # This functionality is not implemented yet. pass - def testTFScalar(self): + def testTFScalar(self, tsys): """Transfer function system with scalar feedback block.""" - - ans1 = feedback(self.sys1, self.x1) - ans2 = feedback(self.sys1, self.x1, 1.) + ans1 = feedback(tsys.sys1, tsys.x1) + ans2 = feedback(tsys.sys1, tsys.x1, 1.) np.testing.assert_array_almost_equal(ans1.num, [[[1., 2.]]]) np.testing.assert_array_almost_equal(ans1.den, [[[1., 4.5, 8.]]]) np.testing.assert_array_almost_equal(ans2.num, [[[1., 2.]]]) np.testing.assert_array_almost_equal(ans2.den, [[[1., -0.5, -2.]]]) - def testTFSS(self): + def testTFSS(self, tsys): """Transfer function system with state space feedback block.""" - # This functionality is not implemented yet. pass - def testTFTF(self): + def testTFTF(self, tsys): """Transfer function system with transfer function feedback block.""" - - ans1 = feedback(self.sys1, self.sys1) - ans2 = feedback(self.sys1, self.sys1, 1.) + ans1 = feedback(tsys.sys1, tsys.sys1) + ans2 = feedback(tsys.sys1, tsys.sys1, 1.) np.testing.assert_array_almost_equal(ans1.num, [[[1., 4., 7., 6.]]]) np.testing.assert_array_almost_equal(ans1.den, - [[[1., 4., 11., 16., 13.]]]) + [[[1., 4., 11., 16., 13.]]]) np.testing.assert_array_almost_equal(ans2.num, [[[1., 4., 7., 6.]]]) - np.testing.assert_array_almost_equal(ans2.den, [[[1., 4., 9., 8., 5.]]]) + np.testing.assert_array_almost_equal(ans2.den, + [[[1., 4., 9., 8., 5.]]]) - def testLists(self): + def testLists(self, tsys): """Make sure that lists of various lengths work for operations""" sys1 = ctrl.tf([1, 1], [1, 2]) sys2 = ctrl.tf([1, 3], [1, 4]) @@ -195,19 +191,19 @@ def testLists(self): np.testing.assert_array_almost_equal(sort(pole(sys1_2)), [-4., -2.]) np.testing.assert_array_almost_equal(sort(zero(sys1_2)), [-3., -1.]) - sys1_3 = ctrl.series(sys1, sys2, sys3); + sys1_3 = ctrl.series(sys1, sys2, sys3) np.testing.assert_array_almost_equal(sort(pole(sys1_3)), [-6., -4., -2.]) np.testing.assert_array_almost_equal(sort(zero(sys1_3)), [-5., -3., -1.]) - sys1_4 = ctrl.series(sys1, sys2, sys3, sys4); + sys1_4 = ctrl.series(sys1, sys2, sys3, sys4) np.testing.assert_array_almost_equal(sort(pole(sys1_4)), [-8., -6., -4., -2.]) np.testing.assert_array_almost_equal(sort(zero(sys1_4)), [-7., -5., -3., -1.]) - sys1_5 = ctrl.series(sys1, sys2, sys3, sys4, sys5); + sys1_5 = ctrl.series(sys1, sys2, sys3, sys4, sys5) np.testing.assert_array_almost_equal(sort(pole(sys1_5)), [-8., -6., -4., -2., -0.]) np.testing.assert_array_almost_equal(sort(zero(sys1_5)), @@ -219,109 +215,103 @@ def testLists(self): np.testing.assert_array_almost_equal(sort(zero(sys1_2)), sort(zero(sys1 + sys2))) - sys1_3 = ctrl.parallel(sys1, sys2, sys3); + sys1_3 = ctrl.parallel(sys1, sys2, sys3) np.testing.assert_array_almost_equal(sort(pole(sys1_3)), [-6., -4., -2.]) np.testing.assert_array_almost_equal(sort(zero(sys1_3)), sort(zero(sys1 + sys2 + sys3))) - sys1_4 = ctrl.parallel(sys1, sys2, sys3, sys4); + sys1_4 = ctrl.parallel(sys1, sys2, sys3, sys4) np.testing.assert_array_almost_equal(sort(pole(sys1_4)), [-8., -6., -4., -2.]) - np.testing.assert_array_almost_equal(sort(zero(sys1_4)), - sort(zero(sys1 + sys2 + - sys3 + sys4))) - + np.testing.assert_array_almost_equal( + sort(zero(sys1_4)), + sort(zero(sys1 + sys2 + sys3 + sys4))) - sys1_5 = ctrl.parallel(sys1, sys2, sys3, sys4, sys5); + sys1_5 = ctrl.parallel(sys1, sys2, sys3, sys4, sys5) np.testing.assert_array_almost_equal(sort(pole(sys1_5)), [-8., -6., -4., -2., -0.]) - np.testing.assert_array_almost_equal(sort(zero(sys1_5)), - sort(zero(sys1 + sys2 + - sys3 + sys4 + sys5))) - def testMimoSeries(self): + np.testing.assert_array_almost_equal( + sort(zero(sys1_5)), + sort(zero(sys1 + sys2 + sys3 + sys4 + sys5))) + + def testMimoSeries(self, tsys): """regression: bdalg.series reverses order of arguments""" - g1 = ctrl.ss([],[],[],[[1,2],[0,3]]) - g2 = ctrl.ss([],[],[],[[1,0],[2,3]]) - ref = g2*g1 - tst = ctrl.series(g1,g2) - # assert_array_equal on mismatched matrices gives - # "repr failed for : ..." - def assert_equal(x,y): - np.testing.assert_array_equal(np.asarray(x), - np.asarray(y)) - assert_equal(ref.A, tst.A) - assert_equal(ref.B, tst.B) - assert_equal(ref.C, tst.C) - assert_equal(ref.D, tst.D) - - def test_feedback_args(self): + g1 = ctrl.ss([], [], [], [[1, 2], [0, 3]]) + g2 = ctrl.ss([], [], [], [[1, 0], [2, 3]]) + ref = g2 * g1 + tst = ctrl.series(g1, g2) + + np.testing.assert_array_equal(ref.A, tst.A) + np.testing.assert_array_equal(ref.B, tst.B) + np.testing.assert_array_equal(ref.C, tst.C) + np.testing.assert_array_equal(ref.D, tst.D) + + def test_feedback_args(self, tsys): # Added 25 May 2019 to cover missing exception handling in feedback() # If first argument is not LTI or convertable, generate an exception - args = ([1], self.sys2) - self.assertRaises(TypeError, ctrl.feedback, *args) + args = ([1], tsys.sys2) + with pytest.raises(TypeError): + ctrl.feedback(*args) # If second argument is not LTI or convertable, generate an exception - args = (self.sys1, np.array([1])) - self.assertRaises(TypeError, ctrl.feedback, *args) + args = (tsys.sys1, np.array([1])) + with pytest.raises(TypeError): + ctrl.feedback(*args) # Convert first argument to FRD, if needed h = TransferFunction([1], [1, 2, 2]) omega = np.logspace(-1, 2, 10) frd = ctrl.FRD(h, omega) sys = ctrl.feedback(1, frd) - self.assertTrue(isinstance(sys, ctrl.FRD)) + assert isinstance(sys, ctrl.FRD) - def testConnect(self): - sys = append(self.sys2, self.sys3) # two siso systems + def testConnect(self, tsys): + sys = append(tsys.sys2, tsys.sys3) # two siso systems # should not raise error connect(sys, [[1, 2], [2, -2]], [2], [1, 2]) connect(sys, [[1, 2], [2, 0]], [2], [1, 2]) connect(sys, [[1, 2, 0], [2, -2, 1]], [2], [1, 2]) connect(sys, [[1, 2], [2, -2]], [2, 1], [1]) - sys3x3 = append(sys, self.sys3) # 3x3 mimo + sys3x3 = append(sys, tsys.sys3) # 3x3 mimo connect(sys3x3, [[1, 2, 0], [2, -2, 1], [3, -3, 0]], [2], [1, 2]) connect(sys3x3, [[1, 2, 0], [2, -2, 1], [3, -3, 0]], [1, 2, 3], [3]) connect(sys3x3, [[1, 2, 0], [2, -2, 1], [3, -3, 0]], [2, 3], [2, 1]) # feedback interconnection out of bounds: input too high Q = [[1, 3], [2, -2]] - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [2], [1, 2]) # feedback interconnection out of bounds: input too low Q = [[0, 2], [2, -2]] - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [2], [1, 2]) # feedback interconnection out of bounds: output too high Q = [[1, 2], [2, -3]] - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [2], [1, 2]) Q = [[1, 2], [2, 4]] - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [2], [1, 2]) # input/output index testing - Q = [[1, 2], [2, -2]] # OK interconnection + Q = [[1, 2], [2, -2]] # OK interconnection # input index is out of bounds: too high - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [3], [1, 2]) # input index is out of bounds: too low - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [0], [1, 2]) - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [-2], [1, 2]) # output index is out of bounds: too high - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [2], [1, 3]) # output index is out of bounds: too low - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [2], [1, 0]) - with self.assertRaises(IndexError): + with pytest.raises(IndexError): connect(sys, Q, [2], [1, -1]) - - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/canonical_test.py b/control/tests/canonical_test.py index 7d4ae4e27..f88f1af56 100644 --- a/control/tests/canonical_test.py +++ b/control/tests/canonical_test.py @@ -1,24 +1,24 @@ -#!/usr/bin/env python +"""canonical_test.py""" -import unittest import numpy as np -from control import ss, tf, tf2ss, ss2tf +import pytest + +from control import ss, tf, tf2ss from control.canonical import canonical_form, reachable_form, \ observable_form, modal_form, similarity_transform from control.exception import ControlNotImplemented -class TestCanonical(unittest.TestCase): +class TestCanonical: """Tests for the canonical forms class""" def test_reachable_form(self): """Test the reachable canonical form""" - # Create a system in the reachable canonical form coeffs = [1.0, 2.0, 3.0, 4.0, 1.0] A_true = np.polynomial.polynomial.polycompanion(coeffs) A_true = np.fliplr(np.rot90(A_true)) - B_true = np.matrix("1.0 0.0 0.0 0.0").T - C_true = np.matrix("1.0 1.0 1.0 1.0") + B_true = np.array([[1.0, 0.0, 0.0, 0.0]]).T + C_true = np.array([[1.0, 1.0, 1.0, 1.0]]) D_true = 42.0 # Perform a coordinate transform with a random invertible matrix @@ -44,30 +44,46 @@ def test_reachable_form(self): # Reachable form only supports SISO sys = tf([[ [1], [1] ]], [[ [1, 2, 1], [1, 2, 1] ]]) np.testing.assert_raises(ControlNotImplemented, reachable_form, sys) - def test_unreachable_system(self): """Test reachable canonical form with an unreachable system""" - # Create an unreachable system - A = np.matrix("1.0 2.0 2.0; 4.0 5.0 5.0; 7.0 8.0 8.0") - B = np.matrix("1.0 1.0 1.0").T - C = np.matrix("1.0 1.0 1.0") - D = 42.0 + A = np.array([[1., 2., 2.], + [4., 5., 5.], + [7., 8., 8.]]) + B = np.array([[1.], [1.],[1.]]) + C = np.array([[1., 1.,1.]]) + D = np.array([[42.0]]) sys = ss(A, B, C, D) # Check if an exception is raised np.testing.assert_raises(ValueError, canonical_form, sys, "reachable") - def test_modal_form(self): + @pytest.mark.parametrize( + "A_true, B_true, C_true, D_true", + [(np.diag([4.0, 3.0, 2.0, 1.0]), # order from largest to smallest + np.array([[1.1, 2.2, 3.3, 4.4]]).T, + np.array([[1.3, 1.4, 1.5, 1.6]]), + np.array([[42.0]])), + (np.array([[-1, 1, 0, 0], + [-1, -1, 0, 0], + [ 0, 0, -2, 0], + [ 0, 0, 0, -3]]), + np.array([[0, 1, 0, 1]]).T, + np.array([[1, 0, 0, 1]]), + np.array([[0]])), + # Reorder rows to get complete coverage (real eigenvalue cxrtvfirst) + (np.array([[-1, 0, 0, 0], + [ 0, -2, 1, 0], + [ 0, -1, -2, 0], + [ 0, 0, 0, -3]]), + np.array([[0, 0, 1, 1]]).T, + np.array([[0, 1, 0, 1]]), + np.array([[0]])), + ], + ids=["sys1", "sys2", "sys3"]) + def test_modal_form(self, A_true, B_true, C_true, D_true): """Test the modal canonical form""" - - # Create a system in the modal canonical form - A_true = np.diag([4.0, 3.0, 2.0, 1.0]) # order from the largest to the smallest - B_true = np.matrix("1.1 2.2 3.3 4.4").T - C_true = np.matrix("1.3 1.4 1.5 1.6") - D_true = 42.0 - # Perform a coordinate transform with a random invertible matrix T_true = np.array([[-0.27144004, -0.39933167, 0.75634684, 0.44135471], [-0.74855725, -0.39136285, -0.18142339, -0.50356997], @@ -75,41 +91,24 @@ def test_modal_form(self): [-0.44769516, 0.15654653, -0.50060858, 0.72419146]]) A = np.linalg.solve(T_true, A_true).dot(T_true) B = np.linalg.solve(T_true, B_true) - C = C_true*T_true + C = C_true.dot(T_true) D = D_true - # Create a state space system and convert it to the modal canonical form + # Create a state space system and convert it to modal canonical form sys_check, T_check = canonical_form(ss(A, B, C, D), "modal") # Check against the true values - # TODO: Test in respect to ambiguous transformation (system characteristics?) + # TODO: Test in respect to ambiguous transformation + # (system characteristics?) np.testing.assert_array_almost_equal(sys_check.A, A_true) #np.testing.assert_array_almost_equal(sys_check.B, B_true) #np.testing.assert_array_almost_equal(sys_check.C, C_true) np.testing.assert_array_almost_equal(sys_check.D, D_true) #np.testing.assert_array_almost_equal(T_check, T_true) - # Check conversion when there are complex eigenvalues - A_true = np.array([[-1, 1, 0, 0], - [-1, -1, 0, 0], - [ 0, 0, -2, 0], - [ 0, 0, 0, -3]]) - B_true = np.array([[0], [1], [0], [1]]) - C_true = np.array([[1, 0, 0, 1]]) - D_true = np.array([[0]]) - - A = np.linalg.solve(T_true, A_true).dot(T_true) - B = np.linalg.solve(T_true, B_true) - C = C_true.dot(T_true) - D = D_true - # Create state space system and convert to modal canonical form sys_check, T_check = canonical_form(ss(A, B, C, D), 'modal') - # Check A and D matrix, which are uniquely defined - np.testing.assert_array_almost_equal(sys_check.A, A_true) - np.testing.assert_array_almost_equal(sys_check.D, D_true) - # B matrix should be all ones (or zero if not controllable) # TODO: need to update modal_form() to implement this if np.allclose(T_check, T_true): @@ -117,59 +116,26 @@ def test_modal_form(self): np.testing.assert_array_almost_equal(sys_check.C, C_true) # Make sure Hankel coefficients are OK - from numpy.linalg import matrix_power for i in range(A.shape[0]): np.testing.assert_almost_equal( - np.dot(np.dot(C_true, matrix_power(A_true, i)), B_true), - np.dot(np.dot(C, matrix_power(A, i)), B)) - - # Reorder rows to get complete coverage (real eigenvalue cxrtvfirst) - A_true = np.array([[-1, 0, 0, 0], - [ 0, -2, 1, 0], - [ 0, -1, -2, 0], - [ 0, 0, 0, -3]]) - B_true = np.array([[0], [0], [1], [1]]) - C_true = np.array([[0, 1, 0, 1]]) - D_true = np.array([[0]]) - - A = np.linalg.solve(T_true, A_true).dot(T_true) - B = np.linalg.solve(T_true, B_true) - C = C_true.dot(T_true) - D = D_true - - # Create state space system and convert to modal canonical form - sys_check, T_check = canonical_form(ss(A, B, C, D), 'modal') + np.dot(np.dot(C_true, np.linalg.matrix_power(A_true, i)), + B_true), + np.dot(np.dot(C, np.linalg.matrix_power(A, i)), B)) - # Check A and D matrix, which are uniquely defined - np.testing.assert_array_almost_equal(sys_check.A, A_true) - np.testing.assert_array_almost_equal(sys_check.D, D_true) + def test_modal_form_MIMO(self): + """Test error because modal form only supports SISO""" + sys = tf([[[1], [1]]], [[[1, 2, 1], [1, 2, 1]]]) + with pytest.raises(ControlNotImplemented): + modal_form(sys) - # B matrix should be all ones (or zero if not controllable) - # TODO: need to update modal_form() to implement this - if np.allclose(T_check, T_true): - np.testing.assert_array_almost_equal(sys_check.B, B_true) - np.testing.assert_array_almost_equal(sys_check.C, C_true) - - # Make sure Hankel coefficients are OK - from numpy.linalg import matrix_power - for i in range(A.shape[0]): - np.testing.assert_almost_equal( - np.dot(np.dot(C_true, matrix_power(A_true, i)), B_true), - np.dot(np.dot(C, matrix_power(A, i)), B)) - - # Modal form only supports SISO - sys = tf([[ [1], [1] ]], [[ [1, 2, 1], [1, 2, 1] ]]) - np.testing.assert_raises(ControlNotImplemented, modal_form, sys) - def test_observable_form(self): """Test the observable canonical form""" - # Create a system in the observable canonical form coeffs = [1.0, 2.0, 3.0, 4.0, 1.0] A_true = np.polynomial.polynomial.polycompanion(coeffs) A_true = np.fliplr(np.flipud(A_true)) - B_true = np.matrix("1.0 1.0 1.0 1.0").T - C_true = np.matrix("1.0 0.0 0.0 0.0") + B_true = np.array([[1.0, 1.0, 1.0, 1.0]]).T + C_true = np.array([[1.0, 0.0, 0.0, 0.0]]) D_true = 42.0 # Perform a coordinate transform with a random invertible matrix @@ -192,31 +158,35 @@ def test_observable_form(self): np.testing.assert_array_almost_equal(sys_check.D, D_true) np.testing.assert_array_almost_equal(T_check, T_true) - # Observable form only supports SISO - sys = tf([[ [1], [1] ]], [[ [1, 2, 1], [1, 2, 1] ]]) - np.testing.assert_raises(ControlNotImplemented, observable_form, sys) - + def test_observable_form_MIMO(self): + """Test error as Observable form only supports SISO""" + sys = tf([[[1], [1] ]], [[[1, 2, 1], [1, 2, 1]]]) + with pytest.raises(ControlNotImplemented): + observable_form(sys) def test_unobservable_system(self): """Test observable canonical form with an unobservable system""" - # Create an unobservable system - A = np.matrix("1.0 2.0 2.0; 4.0 5.0 5.0; 7.0 8.0 8.0") - B = np.matrix("1.0 1.0 1.0").T - C = np.matrix("1.0 1.0 1.0") + A = np.array([[1., 2., 2.], + [4., 5., 5.], + [7., 8., 8.]]) + + B = np.array([[1.], [1.], [1.]]) + C = np.array([[1., 1., 1.]]) D = 42.0 sys = ss(A, B, C, D) # Check if an exception is raised - np.testing.assert_raises(ValueError, canonical_form, sys, "observable") + with pytest.raises(ValueError): + canonical_form(sys, "observable") def test_arguments(self): # Additional unit tests added on 25 May 2019 to increase coverage # Unknown canonical forms should generate exception sys = tf([1], [1, 2, 1]) - np.testing.assert_raises( - ControlNotImplemented, canonical_form, sys, 'unknown') + with pytest.raises(ControlNotImplemented): + canonical_form(sys, 'unknown') def test_similarity(self): """Test similarty transform""" @@ -261,7 +231,7 @@ def test_similarity(self): np.testing.assert_array_almost_equal(mimo_new.B, mimo_ini.B) np.testing.assert_array_almost_equal(mimo_new.C, mimo_ini.C) np.testing.assert_array_almost_equal(mimo_new.D, mimo_ini.D) - + # Time rescaling mimo_tim = similarity_transform(mimo_ini, np.eye(4), timescale=0.3) mimo_new = similarity_transform(mimo_tim, np.eye(4), timescale=1/0.3) @@ -287,7 +257,4 @@ def test_similarity(self): np.testing.assert_array_almost_equal(mimo_new.B, mimo_ini.B) np.testing.assert_array_almost_equal(mimo_new.C, mimo_ini.C) np.testing.assert_array_almost_equal(mimo_new.D, mimo_ini.D) - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/config_test.py b/control/tests/config_test.py index a8e86d1ff..3979ffca5 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -1,52 +1,55 @@ -#!/usr/bin/env python -# -# config_test.py - test config module -# RMM, 25 may 2019 -# -# This test suite checks the functionality of the config module - -import unittest +"""config_test.py - test config module + +RMM, 25 may 2019 + +This test suite checks the functionality of the config module +""" + +from math import pi, log10 + +import matplotlib.pyplot as plt +from matplotlib.testing.decorators import cleanup as mplcleanup import numpy as np +import pytest + import control as ct -import matplotlib.pyplot as plt -from math import pi, log10 -class TestConfig(unittest.TestCase): - def setUp(self): - # Create a simple second order system to use for testing - self.sys = ct.tf([10], [1, 2, 1]) +@pytest.mark.usefixtures("editsdefaults") # makes sure to reset the defaults + # to the test configuration +class TestConfig: + + # Create a simple second order system to use for testing + sys = ct.tf([10], [1, 2, 1]) def test_set_defaults(self): ct.config.set_defaults('config', test1=1, test2=2, test3=None) - self.assertEqual(ct.config.defaults['config.test1'], 1) - self.assertEqual(ct.config.defaults['config.test2'], 2) - self.assertEqual(ct.config.defaults['config.test3'], None) + assert ct.config.defaults['config.test1'] == 1 + assert ct.config.defaults['config.test2'] == 2 + assert ct.config.defaults['config.test3'] is None + @mplcleanup def test_get_param(self): - self.assertEqual( - ct.config._get_param('bode', 'dB'), - ct.config.defaults['bode.dB']) - self.assertEqual(ct.config._get_param('bode', 'dB', 1), 1) + assert ct.config._get_param('bode', 'dB')\ + == ct.config.defaults['bode.dB'] + assert ct.config._get_param('bode', 'dB', 1) == 1 ct.config.defaults['config.test1'] = 1 - self.assertEqual(ct.config._get_param('config', 'test1', None), 1) - self.assertEqual(ct.config._get_param('config', 'test1', None, 1), 1) - - ct.config.defaults['config.test3'] = None - self.assertEqual(ct.config._get_param('config', 'test3'), None) - self.assertEqual(ct.config._get_param('config', 'test3', 1), 1) - self.assertEqual( - ct.config._get_param('config', 'test3', None, 1), None) - - self.assertEqual(ct.config._get_param('config', 'test4'), None) - self.assertEqual(ct.config._get_param('config', 'test4', 1), 1) - self.assertEqual(ct.config._get_param('config', 'test4', 2, 1), 2) - self.assertEqual(ct.config._get_param('config', 'test4', None, 3), 3) - - self.assertEqual( - ct.config._get_param('config', 'test4', {'test4':1}, None), 1) + assert ct.config._get_param('config', 'test1', None) == 1 + assert ct.config._get_param('config', 'test1', None, 1) == 1 + + ct.config.defaults['config.test3'] is None + assert ct.config._get_param('config', 'test3') is None + assert ct.config._get_param('config', 'test3', 1) == 1 + assert ct.config._get_param('config', 'test3', None, 1) is None + + assert ct.config._get_param('config', 'test4') is None + assert ct.config._get_param('config', 'test4', 1) == 1 + assert ct.config._get_param('config', 'test4', 2, 1) == 2 + assert ct.config._get_param('config', 'test4', None, 3) == 3 + assert ct.config._get_param('config', 'test4', {'test4': 1}, None) == 1 + @mplcleanup def test_fbs_bode(self): ct.use_fbs_defaults() @@ -91,8 +94,7 @@ def test_fbs_bode(self): phase_x, phase_y = (((plt.gcf().axes[1]).get_lines())[0]).get_data() np.testing.assert_almost_equal(phase_y[-1], -pi, decimal=2) - ct.reset_defaults() - + @mplcleanup def test_matlab_bode(self): ct.use_matlab_defaults() @@ -120,7 +122,7 @@ def test_matlab_bode(self): # Make sure the x-axis is in rad/sec and y-axis is in degrees np.testing.assert_almost_equal(phase_x[-1], 1000, decimal=1) np.testing.assert_almost_equal(phase_y[-1], -180, decimal=0) - + # Override the defaults and make sure that works as well plt.figure() ct.bode_plot(self.sys, omega, dB=True) @@ -137,8 +139,7 @@ def test_matlab_bode(self): phase_x, phase_y = (((plt.gcf().axes[1]).get_lines())[0]).get_data() np.testing.assert_almost_equal(phase_y[-1], -pi, decimal=2) - ct.reset_defaults() - + @mplcleanup def test_custom_bode_default(self): ct.config.defaults['bode.dB'] = True ct.config.defaults['bode.deg'] = True @@ -160,24 +161,22 @@ def test_custom_bode_default(self): np.testing.assert_almost_equal(mag_y[0], 20*log10(10), decimal=3) np.testing.assert_almost_equal(phase_y[-1], -pi, decimal=2) - ct.reset_defaults() - + @mplcleanup def test_bode_number_of_samples(self): # Set the number of samples (default is 50, from np.logspace) mag_ret, phase_ret, omega_ret = ct.bode_plot(self.sys, omega_num=87) - self.assertEqual(len(mag_ret), 87) + assert len(mag_ret) == 87 # Change the default number of samples ct.config.defaults['freqplot.number_of_samples'] = 76 mag_ret, phase_ret, omega_ret = ct.bode_plot(self.sys) - self.assertEqual(len(mag_ret), 76) - + assert len(mag_ret) == 76 + # Override the default number of samples mag_ret, phase_ret, omega_ret = ct.bode_plot(self.sys, omega_num=87) - self.assertEqual(len(mag_ret), 87) - - ct.reset_defaults() + assert len(mag_ret) == 87 + @mplcleanup def test_bode_feature_periphery_decade(self): # Generate a sample Bode plot to figure out the range it uses ct.reset_defaults() # Make sure starting state is correct @@ -198,30 +197,26 @@ def test_bode_feature_periphery_decade(self): np.testing.assert_almost_equal(omega_ret[0], omega_min*10) np.testing.assert_almost_equal(omega_ret[-1], omega_max/10) - ct.reset_defaults() - def test_reset_defaults(self): ct.use_matlab_defaults() ct.reset_defaults() - self.assertEqual(ct.config.defaults['bode.dB'], False) - self.assertEqual(ct.config.defaults['bode.deg'], True) - self.assertEqual(ct.config.defaults['bode.Hz'], False) - self.assertEqual( - ct.config.defaults['freqplot.number_of_samples'], None) - self.assertEqual( - ct.config.defaults['freqplot.feature_periphery_decades'], 1.0) + assert not ct.config.defaults['bode.dB'] + assert ct.config.defaults['bode.deg'] + assert not ct.config.defaults['bode.Hz'] + assert ct.config.defaults['freqplot.number_of_samples'] is None + assert ct.config.defaults['freqplot.feature_periphery_decades'] == 1.0 def test_legacy_defaults(self): - ct.use_legacy_defaults('0.8.3') - assert(isinstance(ct.ss(0,0,0,1).D, np.matrix)) - + with pytest.deprecated_call(): + ct.use_legacy_defaults('0.8.3') + assert(isinstance(ct.ss(0, 0, 0, 1).D, np.matrix)) ct.reset_defaults() - assert(isinstance(ct.ss(0,0,0,1).D, np.ndarray)) - assert(not isinstance(ct.ss(0,0,0,1).D, np.matrix)) + assert(isinstance(ct.ss(0, 0, 0, 1).D, np.ndarray)) + assert(not isinstance(ct.ss(0, 0, 0, 1).D, np.matrix)) ct.use_legacy_defaults('0.9.0') - assert(isinstance(ct.ss(0,0,0,1).D, np.ndarray)) - assert(not isinstance(ct.ss(0,0,0,1).D, np.matrix)) + assert(isinstance(ct.ss(0, 0, 0, 1).D, np.ndarray)) + assert(not isinstance(ct.ss(0, 0, 0, 1).D, np.matrix)) # test that old versions don't raise a problem ct.use_legacy_defaults('REL-0.1') @@ -231,30 +226,28 @@ def test_legacy_defaults(self): ct.use_legacy_defaults('0.1') # Make sure that nonsense versions generate an error - self.assertRaises(ValueError, ct.use_legacy_defaults, "a.b.c") - self.assertRaises(ValueError, ct.use_legacy_defaults, "1.x.3") - - # Leave everything like we found it - ct.config.reset_defaults() - - def test_change_default_dt(self): - ct.set_defaults('statesp', default_dt=0) - self.assertEqual(ct.ss(0,0,0,1).dt, 0) - ct.set_defaults('statesp', default_dt=None) - self.assertEqual(ct.ss(0,0,0,1).dt, None) - ct.set_defaults('xferfcn', default_dt=0) - self.assertEqual(ct.tf(1, 1).dt, 0) - ct.set_defaults('xferfcn', default_dt=None) - self.assertEqual(ct.tf(1, 1).dt, None) - - - def tearDown(self): - # Get rid of any figures that we created - plt.close('all') - - # Reset the configuration defaults - ct.config.reset_defaults() - - -if __name__ == '__main__': - unittest.main() + with pytest.raises(ValueError): + ct.use_legacy_defaults("a.b.c") + with pytest.raises(ValueError): + ct.use_legacy_defaults("1.x.3") + + @pytest.mark.parametrize("dt", [0, None]) + def test_change_default_dt(self, dt): + """Test that system with dynamics uses correct default dt""" + ct.set_defaults('statesp', default_dt=dt) + assert ct.ss(1, 0, 0, 1).dt == dt + ct.set_defaults('xferfcn', default_dt=dt) + assert ct.tf(1, [1, 1]).dt == dt + + # nlsys = ct.iosys.NonlinearIOSystem( + # lambda t, x, u: u * x * x, + # lambda t, x, u: x, inputs=1, outputs=1) + # assert nlsys.dt == dt + + @pytest.mark.skip("implemented in gh-431") + def test_change_default_dt_static(self): + """Test that static gain systems always have dt=None""" + ct.set_defaults('control', default_dt=0) + assert ct.tf(1, 1).dt is None + assert ct.ss(0, 0, 0, 1).dt is None + # TODO: add in test for static gain iosys diff --git a/control/tests/conftest.py b/control/tests/conftest.py old mode 100755 new mode 100644 index 60c3d0de1..7204c8f14 --- a/control/tests/conftest.py +++ b/control/tests/conftest.py @@ -1,18 +1,88 @@ -# contest.py - pytest local plugins and fixtures +"""conftest.py - pytest local plugins and fixtures""" +from contextlib import contextmanager +from distutils.version import StrictVersion import os +import sys import matplotlib as mpl +import numpy as np +import scipy as sp import pytest import control +TEST_MATRIX_AND_ARRAY = os.getenv("PYTHON_CONTROL_ARRAY_AND_MATRIX") == "1" -@pytest.fixture(scope="session", autouse=True) -def use_numpy_ndarray(): - """Switch the config to use ndarray instead of matrix""" - if os.getenv("PYTHON_CONTROL_STATESPACE_ARRAY") == "1": - control.config.defaults['statesp.use_numpy_matrix'] = False +# some common pytest marks. These can be used as test decorators or in +# pytest.param(marks=) +slycotonly = pytest.mark.skipif(not control.exception.slycot_check(), + reason="slycot not installed") +noscipy0 = pytest.mark.skipif(StrictVersion(sp.__version__) < "1.0", + reason="requires SciPy 1.0 or greater") +nopython2 = pytest.mark.skipif(sys.version_info < (3, 0), + reason="requires Python 3+") +matrixfilter = pytest.mark.filterwarnings("ignore:.*matrix subclass:" + "PendingDeprecationWarning") +matrixerrorfilter = pytest.mark.filterwarnings("error:.*matrix subclass:" + "PendingDeprecationWarning") + + +@pytest.fixture(scope="session", autouse=TEST_MATRIX_AND_ARRAY, + params=[pytest.param("arrayout", marks=matrixerrorfilter), + pytest.param("matrixout", marks=matrixfilter)]) +def matarrayout(request): + """Switch the config to use np.ndarray and np.matrix as returns""" + restore = control.config.defaults['statesp.use_numpy_matrix'] + control.use_numpy_matrix(request.param == "matrixout", warn=False) + yield + control.use_numpy_matrix(restore, warn=False) + + +def ismatarrayout(obj): + """Test if the returned object has the correct type as configured + + note that isinstance(np.matrix(obj), np.ndarray) is True + """ + use_matrix = control.config.defaults['statesp.use_numpy_matrix'] + return (isinstance(obj, np.ndarray) + and isinstance(obj, np.matrix) == use_matrix) + + +def asmatarrayout(obj): + """Return a object according to the configured default""" + use_matrix = control.config.defaults['statesp.use_numpy_matrix'] + matarray = np.asmatrix if use_matrix else np.asarray + return matarray(obj) + + +@contextmanager +def check_deprecated_matrix(): + """Check that a call produces a deprecation warning because of np.matrix""" + use_matrix = control.config.defaults['statesp.use_numpy_matrix'] + if use_matrix: + with pytest.deprecated_call(): + try: + yield + finally: + pass + else: + yield + + +@pytest.fixture(scope="session", + params=[p for p, usebydefault in + [(pytest.param(np.array, + id="arrayin"), + True), + (pytest.param(np.matrix, + id="matrixin", + marks=matrixfilter), + False)] + if usebydefault or TEST_MATRIX_AND_ARRAY]) +def matarrayin(request): + """Use array and matrix to construct input data in tests""" + return request.param @pytest.fixture(scope="function") diff --git a/control/tests/convert_test.py b/control/tests/convert_test.py index e0b0e0364..de1cf01d1 100644 --- a/control/tests/convert_test.py +++ b/control/tests/convert_test.py @@ -15,252 +15,234 @@ """ from __future__ import print_function -import unittest +from warnings import warn + import numpy as np -from control import matlab +import pytest + +from control import rss, ss, ss2tf, tf, tf2ss from control.statesp import _mimo2siso from control.statefbk import ctrb, obsv from control.freqplot import bode -from control.matlab import tf from control.exception import slycot_check +from control.tests.conftest import slycotonly -class TestConvert(unittest.TestCase): - """Test state space and transfer function conversions.""" - def setUp(self): - """Set up testing parameters.""" - - # Number of times to run each of the randomized tests. - self.numTests = 1 # almost guarantees failure - # Maximum number of states to test + 1 - self.maxStates = 4 - # Maximum number of inputs and outputs to test + 1 - # If slycot is not installed, just check SISO - self.maxIO = 5 if slycot_check() else 2 - # Set to True to print systems to the output. - self.debug = False - # get consistent results - np.random.seed(7) +# Set to True to print systems to the output. +verbose = False +# Maximum number of states to test + 1 +maxStates = 4 +# Maximum number of inputs and outputs to test + 1 +# If slycot is not installed, just check SISO +maxIO = 5 if slycot_check() else 2 + + +@pytest.fixture +def fixedseed(scope='module'): + """Get consistent results""" + np.random.seed(7) + + +class TestConvert: + """Test state space and transfer function conversions.""" def printSys(self, sys, ind): """Print system to the standard output.""" + print("sys%i:\n" % ind) + print(sys) - if self.debug: - print("sys%i:\n" % ind) - print(sys) - - def testConvert(self): - """Test state space to transfer function conversion.""" - verbose = self.debug - - # print __doc__ - - # Machine precision for floats. - # eps = np.finfo(float).eps - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - # start with a random SS system and transform to TF then - # back to SS, check that the matrices are the same. - ssOriginal = matlab.rss(states, outputs, inputs) - if (verbose): - self.printSys(ssOriginal, 1) - - # Make sure the system is not degenerate - Cmat = ctrb(ssOriginal.A, ssOriginal.B) - if (np.linalg.matrix_rank(Cmat) != states): - if (verbose): - print(" skipping (not reachable)") - continue - Omat = obsv(ssOriginal.A, ssOriginal.C) - if (np.linalg.matrix_rank(Omat) != states): - if (verbose): - print(" skipping (not observable)") - continue - - tfOriginal = matlab.tf(ssOriginal) - if (verbose): - self.printSys(tfOriginal, 2) - - ssTransformed = matlab.ss(tfOriginal) - if (verbose): - self.printSys(ssTransformed, 3) - - tfTransformed = matlab.tf(ssTransformed) - if (verbose): - self.printSys(tfTransformed, 4) - - # Check to see if the state space systems have same dim - if (ssOriginal.states != ssTransformed.states): - print("WARNING: state space dimension mismatch: " + \ - "%d versus %d" % \ - (ssOriginal.states, ssTransformed.states)) - - # Now make sure the frequency responses match - # Since bode() only handles SISO, go through each I/O pair - # For phase, take sine and cosine to avoid +/- 360 offset - for inputNum in range(inputs): - for outputNum in range(outputs): - if (verbose): - print("Checking input %d, output %d" \ - % (inputNum, outputNum)) - ssorig_mag, ssorig_phase, ssorig_omega = \ - bode(_mimo2siso(ssOriginal, \ - inputNum, outputNum), \ - deg=False, plot=False) - ssorig_real = ssorig_mag * np.cos(ssorig_phase) - ssorig_imag = ssorig_mag * np.sin(ssorig_phase) - - # - # Make sure TF has same frequency response - # - num = tfOriginal.num[outputNum][inputNum] - den = tfOriginal.den[outputNum][inputNum] - tforig = tf(num, den) - - tforig_mag, tforig_phase, tforig_omega = \ - bode(tforig, ssorig_omega, \ - deg=False, plot=False) - - tforig_real = tforig_mag * np.cos(tforig_phase) - tforig_imag = tforig_mag * np.sin(tforig_phase) - np.testing.assert_array_almost_equal( \ - ssorig_real, tforig_real) - np.testing.assert_array_almost_equal( \ - ssorig_imag, tforig_imag) - - # - # Make sure xform'd SS has same frequency response - # - ssxfrm_mag, ssxfrm_phase, ssxfrm_omega = \ - bode(_mimo2siso(ssTransformed, \ - inputNum, outputNum), \ - ssorig_omega, \ - deg=False, plot=False) - ssxfrm_real = ssxfrm_mag * np.cos(ssxfrm_phase) - ssxfrm_imag = ssxfrm_mag * np.sin(ssxfrm_phase) - np.testing.assert_array_almost_equal( \ - ssorig_real, ssxfrm_real) - np.testing.assert_array_almost_equal( \ - ssorig_imag, ssxfrm_imag) - # - # Make sure xform'd TF has same frequency response - # - num = tfTransformed.num[outputNum][inputNum] - den = tfTransformed.den[outputNum][inputNum] - tfxfrm = tf(num, den) - tfxfrm_mag, tfxfrm_phase, tfxfrm_omega = \ - bode(tfxfrm, ssorig_omega, \ - deg=False, plot=False) - - tfxfrm_real = tfxfrm_mag * np.cos(tfxfrm_phase) - tfxfrm_imag = tfxfrm_mag * np.sin(tfxfrm_phase) - np.testing.assert_array_almost_equal( \ - ssorig_real, tfxfrm_real) - np.testing.assert_array_almost_equal( \ - ssorig_imag, tfxfrm_imag) + @pytest.mark.parametrize("states", range(1, maxStates)) + @pytest.mark.parametrize("inputs", range(1, maxIO)) + @pytest.mark.parametrize("outputs", range(1, maxIO)) + def testConvert(self, fixedseed, states, inputs, outputs): + """Test state space to transfer function conversion. + + start with a random SS system and transform to TF then + back to SS, check that the matrices are the same. + """ + ssOriginal = rss(states, outputs, inputs) + if verbose: + self.printSys(ssOriginal, 1) + + # Make sure the system is not degenerate + Cmat = ctrb(ssOriginal.A, ssOriginal.B) + if (np.linalg.matrix_rank(Cmat) != states): + pytest.skip("not reachable") + Omat = obsv(ssOriginal.A, ssOriginal.C) + if (np.linalg.matrix_rank(Omat) != states): + pytest.skip("not observable") + + tfOriginal = tf(ssOriginal) + if (verbose): + self.printSys(tfOriginal, 2) + + ssTransformed = ss(tfOriginal) + if (verbose): + self.printSys(ssTransformed, 3) + + tfTransformed = tf(ssTransformed) + if (verbose): + self.printSys(tfTransformed, 4) + + # Check to see if the state space systems have same dim + if (ssOriginal.states != ssTransformed.states) and verbose: + print("WARNING: state space dimension mismatch: %d versus %d" % + (ssOriginal.states, ssTransformed.states)) + + # Now make sure the frequency responses match + # Since bode() only handles SISO, go through each I/O pair + # For phase, take sine and cosine to avoid +/- 360 offset + for inputNum in range(inputs): + for outputNum in range(outputs): + if (verbose): + print("Checking input %d, output %d" + % (inputNum, outputNum)) + ssorig_mag, ssorig_phase, ssorig_omega = \ + bode(_mimo2siso(ssOriginal, inputNum, outputNum), + deg=False, plot=False) + ssorig_real = ssorig_mag * np.cos(ssorig_phase) + ssorig_imag = ssorig_mag * np.sin(ssorig_phase) + + # + # Make sure TF has same frequency response + # + num = tfOriginal.num[outputNum][inputNum] + den = tfOriginal.den[outputNum][inputNum] + tforig = tf(num, den) + + tforig_mag, tforig_phase, tforig_omega = \ + bode(tforig, ssorig_omega, + deg=False, plot=False) + + tforig_real = tforig_mag * np.cos(tforig_phase) + tforig_imag = tforig_mag * np.sin(tforig_phase) + np.testing.assert_array_almost_equal( + ssorig_real, tforig_real) + np.testing.assert_array_almost_equal( + ssorig_imag, tforig_imag) + + # + # Make sure xform'd SS has same frequency response + # + ssxfrm_mag, ssxfrm_phase, ssxfrm_omega = \ + bode(_mimo2siso(ssTransformed, + inputNum, outputNum), + ssorig_omega, + deg=False, plot=False) + ssxfrm_real = ssxfrm_mag * np.cos(ssxfrm_phase) + ssxfrm_imag = ssxfrm_mag * np.sin(ssxfrm_phase) + np.testing.assert_array_almost_equal( + ssorig_real, ssxfrm_real, decimal=5) + np.testing.assert_array_almost_equal( + ssorig_imag, ssxfrm_imag, decimal=5) + + # Make sure xform'd TF has same frequency response + # + num = tfTransformed.num[outputNum][inputNum] + den = tfTransformed.den[outputNum][inputNum] + tfxfrm = tf(num, den) + tfxfrm_mag, tfxfrm_phase, tfxfrm_omega = \ + bode(tfxfrm, ssorig_omega, + deg=False, plot=False) + + tfxfrm_real = tfxfrm_mag * np.cos(tfxfrm_phase) + tfxfrm_imag = tfxfrm_mag * np.sin(tfxfrm_phase) + np.testing.assert_array_almost_equal( + ssorig_real, tfxfrm_real, decimal=5) + np.testing.assert_array_almost_equal( + ssorig_imag, tfxfrm_imag, decimal=5) def testConvertMIMO(self): - """Test state space to transfer function conversion.""" - verbose = self.debug - - # Do a MIMO conversation and make sure that it is processed - # correctly both with and without slycot - # - # Example from issue #120, jgoppert - import control - - # Set up a transfer function (should always work) - tfcn = control.tf([[[-235, 1.146e4], - [-235, 1.146E4], - [-235, 1.146E4, 0]]], - [[[1, 48.78, 0], - [1, 48.78, 0, 0], - [0.008, 1.39, 48.78]]]) + """Test state space to transfer function conversion. + + Do a MIMO conversation and make sure that it is processed + correctly both with and without slycot + + Example from issue gh-120, jgoppert + """ + + # Set up a 1x3 transfer function (should always work) + tsys = tf([[[-235, 1.146e4], + [-235, 1.146E4], + [-235, 1.146E4, 0]]], + [[[1, 48.78, 0], + [1, 48.78, 0, 0], + [0.008, 1.39, 48.78]]]) # Convert to state space and look for an error if (not slycot_check()): - self.assertRaises(TypeError, control.tf2ss, tfcn) + with pytest.raises(TypeError): + tf2ss(tsys) + else: + ssys = tf2ss(tsys) + assert ssys.B.shape[1] == 3 + assert ssys.C.shape[0] == 1 def testTf2ssStaticSiso(self): """Regression: tf2ss for SISO static gain""" - import control - gsiso = control.tf2ss(control.tf(23, 46)) - self.assertEqual(0, gsiso.states) - self.assertEqual(1, gsiso.inputs) - self.assertEqual(1, gsiso.outputs) - # in all cases ratios are exactly representable, so assert_array_equal is fine + gsiso = tf2ss(tf(23, 46)) + assert 0 == gsiso.states + assert 1 == gsiso.inputs + assert 1 == gsiso.outputs + # in all cases ratios are exactly representable, so assert_array_equal + # is fine np.testing.assert_array_equal([[0.5]], gsiso.D) def testTf2ssStaticMimo(self): """Regression: tf2ss for MIMO static gain""" - import control # 2x3 TFM - gmimo = control.tf2ss(control.tf( + gmimo = tf2ss(tf( [[ [23], [3], [5] ], [ [-1], [0.125], [101.3] ]], [[ [46], [0.1], [80] ], [ [2], [-0.1], [1] ]])) - self.assertEqual(0, gmimo.states) - self.assertEqual(3, gmimo.inputs) - self.assertEqual(2, gmimo.outputs) - d = np.matrix([[0.5, 30, 0.0625], [-0.5, -1.25, 101.3]]) + assert 0 == gmimo.states + assert 3 == gmimo.inputs + assert 2 == gmimo.outputs + d = np.array([[0.5, 30, 0.0625], [-0.5, -1.25, 101.3]]) np.testing.assert_array_equal(d, gmimo.D) def testSs2tfStaticSiso(self): """Regression: ss2tf for SISO static gain""" - import control - gsiso = control.ss2tf(control.ss([], [], [], 0.5)) + gsiso = ss2tf(ss([], [], [], 0.5)) np.testing.assert_array_equal([[[0.5]]], gsiso.num) np.testing.assert_array_equal([[[1.]]], gsiso.den) def testSs2tfStaticMimo(self): """Regression: ss2tf for MIMO static gain""" - import control # 2x3 TFM a = [] b = [] c = [] - d = np.matrix([[0.5, 30, 0.0625], [-0.5, -1.25, 101.3]]) - gtf = control.ss2tf(control.ss(a,b,c,d)) + d = np.array([[0.5, 30, 0.0625], [-0.5, -1.25, 101.3]]) + gtf = ss2tf(ss(a, b, c, d)) # we need a 3x2x1 array to compare with gtf.num - # np.testing.assert_array_equal doesn't seem to like a matrices - # with an extra dimension, so convert to ndarray - numref = np.asarray(d)[...,np.newaxis] - np.testing.assert_array_equal(numref, np.array(gtf.num) / np.array(gtf.den)) + numref = d[..., np.newaxis] + np.testing.assert_array_equal(numref, + np.array(gtf.num) / np.array(gtf.den)) + @slycotonly def testTf2SsDuplicatePoles(self): - """Tests for "too few poles for MIMO tf #111" """ - import control - try: - import slycot - num = [ [ [1], [0] ], - [ [0], [1] ] ] - - den = [ [ [1,0], [1] ], - [ [1], [1,0] ] ] - g = control.tf(num, den) - s = control.ss(g) - np.testing.assert_array_equal(g.pole(), s.pole()) - except ImportError: - print("Slycot not present, skipping") - - @unittest.skipIf(not slycot_check(), "slycot not installed") + """Tests for 'too few poles for MIMO tf gh-111'""" + num = [[[1], [0]], + [[0], [1]]] + den = [[[1, 0], [1]], + [[1], [1, 0]]] + g = tf(num, den) + s = ss(g) + np.testing.assert_array_equal(g.pole(), s.pole()) + + @slycotonly def test_tf2ss_robustness(self): - """Unit test to make sure that tf2ss is working correctly. - Source: https://github.com/python-control/python-control/issues/240 - """ - import control - + """Unit test to make sure that tf2ss is working correctly. gh-240""" num = [ [[0], [1]], [[1], [0]] ] den1 = [ [[1], [1,1]], [[1,4], [1]] ] - sys1tf = control.tf(num, den1) - sys1ss = control.tf2ss(sys1tf) + sys1tf = tf(num, den1) + sys1ss = tf2ss(sys1tf) # slight perturbation den2 = [ [[1], [1e-10, 1, 1]], [[1,4], [1]] ] - sys2tf = control.tf(num, den2) - sys2ss = control.tf2ss(sys2tf) + sys2tf = tf(num, den2) + sys2ss = tf2ss(sys2tf) # Make sure that the poles match for StateSpace and TransferFunction np.testing.assert_array_almost_equal(np.sort(sys1tf.pole()), @@ -268,6 +250,3 @@ def test_tf2ss_robustness(self): np.testing.assert_array_almost_equal(np.sort(sys2tf.pole()), np.sort(sys2ss.pole())) - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/ctrlutil_test.py b/control/tests/ctrlutil_test.py index 03a347154..460ff601c 100644 --- a/control/tests/ctrlutil_test.py +++ b/control/tests/ctrlutil_test.py @@ -1,11 +1,13 @@ -import unittest +"""ctrlutil_test.py""" + import numpy as np -from control.ctrlutil import * -class TestUtils(unittest.TestCase): - def setUp(self): - self.mag = np.array([1, 10, 100, 2, 0.1, 0.01]) - self.db = np.array([0, 20, 40, 6.0205999, -20, -40]) +from control.ctrlutil import db2mag, mag2db, unwrap + +class TestUtils: + + mag = np.array([1, 10, 100, 2, 0.1, 0.01]) + db = np.array([0, 20, 40, 6.0205999, -20, -40]) def check_unwrap_array(self, angle, period=None): if period is None: @@ -56,7 +58,3 @@ def test_mag2db(self): def test_mag2db_array(self): db_array = mag2db(self.mag) np.testing.assert_array_almost_equal(db_array, self.db) - - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/delay_test.py b/control/tests/delay_test.py index 17c049d24..533eb4a72 100644 --- a/control/tests/delay_test.py +++ b/control/tests/delay_test.py @@ -1,25 +1,25 @@ -#!/usr/bin/env python -*-coding: utf-8-*- -# -# Test Pade approx -# -# Primitive; ideally test to numerical limits +# -*- coding: utf-8 -*- +"""Test Pade approx -from __future__ import division +Primitive; ideally test to numerical limits +""" -import unittest +from __future__ import division import numpy as np +import pytest from control.delay import pade -class TestPade(unittest.TestCase): - - # Reference data from Miklos Vajta's paper "Some remarks on - # Padé-approximations", Table 1, with corrections. The - # corrections are to highest power coeff in numerator for - # (ddeg,ndeg)=(4,3) and (5,4); use Eq (12) in the paper to verify +class TestPade: + """Test Pade approx + Reference data from Miklos Vajta's paper "Some remarks on + Padé-approximations", Table 1, with corrections. The + corrections are to highest power coeff in numerator for + (ddeg,ndeg)=(4,3) and (5,4); use Eq (12) in the paper to verify + """ # all for T = 1 ref = [ # dendeg numdeg den num @@ -33,35 +33,40 @@ class TestPade(unittest.TestCase): ( 4, 3, [1,16,120,480,840], [-4,60,-360,840]), ( 5, 5, [1,30,420,3360,15120,30240], [-1,30,-420,3360,-15120,30240]), ( 5, 4, [1,25,300,2100,8400,15120,], [5,-120,1260,-6720,15120]), - ] + ] - def testRefs(self): + @pytest.mark.parametrize("dendeg, numdeg, refden, refnum", ref) + def testRefs(self, dendeg, numdeg, refden, refnum): "test reference cases for T=1" T = 1 - for dendeg, numdeg, refden, refnum in self.ref: - num, den = pade(T, dendeg, numdeg) - np.testing.assert_array_almost_equal_nulp(np.array(refden), den, nulp=2) - np.testing.assert_array_almost_equal_nulp(np.array(refnum), num, nulp=2) + num, den = pade(T, dendeg, numdeg) + np.testing.assert_array_almost_equal_nulp( + np.array(refden), den, nulp=2) + np.testing.assert_array_almost_equal_nulp( + np.array(refnum), num, nulp=2) - def testTvalues(self): + @pytest.mark.parametrize("dendeg, numdeg, baseden, basenum", ref) + @pytest.mark.parametrize("T", [1/53, 21.95]) + def testTvalues(self, T, dendeg, numdeg, baseden, basenum): "test reference cases for T!=1" - Ts = [1/53, 21.95] - for dendeg, numdeg, baseden, basenum in self.ref: - for T in Ts: - refden = T**np.arange(dendeg, -1, -1)*baseden - refnum = T**np.arange(numdeg, -1, -1)*basenum - refnum /= refden[0] - refden /= refden[0] - num, den = pade(T, dendeg, numdeg) - np.testing.assert_array_almost_equal_nulp(refden, den, nulp=2) - np.testing.assert_array_almost_equal_nulp(refnum, num, nulp=2) + refden = T**np.arange(dendeg, -1, -1)*baseden + refnum = T**np.arange(numdeg, -1, -1)*basenum + refnum /= refden[0] + refden /= refden[0] + num, den = pade(T, dendeg, numdeg) + np.testing.assert_array_almost_equal_nulp(refden, den, nulp=2) + np.testing.assert_array_almost_equal_nulp(refnum, num, nulp=2) def testErrors(self): "ValueError raised for invalid arguments" - self.assertRaises(ValueError,pade,-1,1) # T<0 - self.assertRaises(ValueError,pade,1,-1) # dendeg < 0 - self.assertRaises(ValueError,pade,1,2,-3) # numdeg < 0 - self.assertRaises(ValueError,pade,1,2,3) # numdeg > dendeg + with pytest.raises(ValueError): + pade(-1, 1) # T<0 + with pytest.raises(ValueError): + pade(1, -1) # dendeg < 0 + with pytest.raises(ValueError): + pade(1, 2, -3) # numdeg < 0 + with pytest.raises(ValueError): + pade(1, 2, 3) # numdeg > dendeg def testNumdeg(self): "numdeg argument follows docs" @@ -72,10 +77,10 @@ def testNumdeg(self): for numdeg in range(0,dendeg+1)] testneg = [pade(T,dendeg,numdeg) for numdeg in range(-dendeg,0)] - self.assertEqual(ref[:-1],testneg) - self.assertEqual(ref[-1], pade(T,dendeg,dendeg)) - self.assertEqual(ref[-1], pade(T,dendeg,None)) - self.assertEqual(ref[-1], pade(T,dendeg)) + assert ref[:-1] == testneg + assert ref[-1] == pade(T,dendeg,dendeg) + assert ref[-1] == pade(T,dendeg,None) + assert ref[-1] == pade(T,dendeg) def testT0(self): "T=0 always returns [1],[1]" @@ -85,8 +90,8 @@ def testT0(self): for dendeg in range(1, 6): for numdeg in range(0, dendeg+1): num, den = pade(T, dendeg, numdeg) - np.testing.assert_array_almost_equal_nulp(np.array(refnum), np.array(num)) - np.testing.assert_array_almost_equal_nulp(np.array(refden), np.array(den)) + np.testing.assert_array_almost_equal_nulp( + np.array(refnum), np.array(num)) + np.testing.assert_array_almost_equal_nulp( + np.array(refden), np.array(den)) -if __name__ == '__main__': - unittest.main() diff --git a/control/tests/discrete_test.py b/control/tests/discrete_test.py index 9c1928dab..7aee216d4 100644 --- a/control/tests/discrete_test.py +++ b/control/tests/discrete_test.py @@ -1,351 +1,383 @@ -#!/usr/bin/env python -# -# discrete_test.py - test discrete time classes -# RMM, 9 Sep 2012 +"""discrete_test.py - test discrete time classes + +RMM, 9 Sep 2012 +""" -import unittest import numpy as np +import pytest + from control import StateSpace, TransferFunction, feedback, step_response, \ isdtime, timebase, isctime, sample_system, bode, impulse_response, \ - timebaseEqual, forced_response -from control import matlab + evalfr, timebaseEqual, forced_response, rss -class TestDiscrete(unittest.TestCase): - """Tests for the DiscreteStateSpace class.""" - def setUp(self): - """Set up a SISO and MIMO system to test operations on.""" +class TestDiscrete: + """Tests for the system classes with discrete timebase.""" + @pytest.fixture + def tsys(self): + """Create some systems for testing""" + class Tsys: + pass + T = Tsys() # Single input, single output continuous and discrete time systems - sys = matlab.rss(3, 1, 1) - self.siso_ss1 = StateSpace(sys.A, sys.B, sys.C, sys.D) - self.siso_ss1c = StateSpace(sys.A, sys.B, sys.C, sys.D, 0.0) - self.siso_ss1d = StateSpace(sys.A, sys.B, sys.C, sys.D, 0.1) - self.siso_ss2d = StateSpace(sys.A, sys.B, sys.C, sys.D, 0.2) - self.siso_ss3d = StateSpace(sys.A, sys.B, sys.C, sys.D, True) + sys = rss(3, 1, 1) + T.siso_ss1 = StateSpace(sys.A, sys.B, sys.C, sys.D, None) + T.siso_ss1c = StateSpace(sys.A, sys.B, sys.C, sys.D, 0.0) + T.siso_ss1d = StateSpace(sys.A, sys.B, sys.C, sys.D, 0.1) + T.siso_ss2d = StateSpace(sys.A, sys.B, sys.C, sys.D, 0.2) + T.siso_ss3d = StateSpace(sys.A, sys.B, sys.C, sys.D, True) # Two input, two output continuous time system A = [[-3., 4., 2.], [-1., -3., 0.], [2., 5., 3.]] B = [[1., 4.], [-3., -3.], [-2., 1.]] C = [[4., 2., -3.], [1., 4., 3.]] D = [[-2., 4.], [0., 1.]] - self.mimo_ss1 = StateSpace(A, B, C, D) - self.mimo_ss1c = StateSpace(A, B, C, D, 0) + T.mimo_ss1 = StateSpace(A, B, C, D, None) + T.mimo_ss1c = StateSpace(A, B, C, D, 0) # Two input, two output discrete time system - self.mimo_ss1d = StateSpace(A, B, C, D, 0.1) + T.mimo_ss1d = StateSpace(A, B, C, D, 0.1) # Same system, but with a different sampling time - self.mimo_ss2d = StateSpace(A, B, C, D, 0.2) + T.mimo_ss2d = StateSpace(A, B, C, D, 0.2) # Single input, single output continuus and discrete transfer function - self.siso_tf1 = TransferFunction([1, 1], [1, 2, 1]) - self.siso_tf1c = TransferFunction([1, 1], [1, 2, 1], 0) - self.siso_tf1d = TransferFunction([1, 1], [1, 2, 1], 0.1) - self.siso_tf2d = TransferFunction([1, 1], [1, 2, 1], 0.2) - self.siso_tf3d = TransferFunction([1, 1], [1, 2, 1], True) - - def testTimebaseEqual(self): - self.assertEqual(timebaseEqual(self.siso_ss1, self.siso_tf1), True) - self.assertEqual(timebaseEqual(self.siso_ss1, self.siso_ss1c), True) - self.assertEqual(timebaseEqual(self.siso_ss1, self.siso_ss1d), True) - self.assertEqual(timebaseEqual(self.siso_ss1d, self.siso_ss1c), False) - self.assertEqual(timebaseEqual(self.siso_ss1d, self.siso_ss2d), False) - self.assertEqual(timebaseEqual(self.siso_ss1d, self.siso_ss3d), False) - - def testSystemInitialization(self): + T.siso_tf1 = TransferFunction([1, 1], [1, 2, 1], None) + T.siso_tf1c = TransferFunction([1, 1], [1, 2, 1], 0) + T.siso_tf1d = TransferFunction([1, 1], [1, 2, 1], 0.1) + T.siso_tf2d = TransferFunction([1, 1], [1, 2, 1], 0.2) + T.siso_tf3d = TransferFunction([1, 1], [1, 2, 1], True) + + return T + + def testTimebaseEqual(self, tsys): + """Test for equal timebases and not so equal ones""" + assert timebaseEqual(tsys.siso_ss1, tsys.siso_tf1) + assert timebaseEqual(tsys.siso_ss1, tsys.siso_ss1c) + assert not timebaseEqual(tsys.siso_ss1d, tsys.siso_ss1c) + assert not timebaseEqual(tsys.siso_ss1d, tsys.siso_ss2d) + assert not timebaseEqual(tsys.siso_ss1d, tsys.siso_ss3d) + + def testSystemInitialization(self, tsys): # Check to make sure systems are discrete time with proper variables - self.assertEqual(self.siso_ss1.dt, None) - self.assertEqual(self.siso_ss1c.dt, 0) - self.assertEqual(self.siso_ss1d.dt, 0.1) - self.assertEqual(self.siso_ss2d.dt, 0.2) - self.assertEqual(self.siso_ss3d.dt, True) - self.assertEqual(self.mimo_ss1c.dt, 0) - self.assertEqual(self.mimo_ss1d.dt, 0.1) - self.assertEqual(self.mimo_ss2d.dt, 0.2) - self.assertEqual(self.siso_tf1.dt, None) - self.assertEqual(self.siso_tf1c.dt, 0) - self.assertEqual(self.siso_tf1d.dt, 0.1) - self.assertEqual(self.siso_tf2d.dt, 0.2) - self.assertEqual(self.siso_tf3d.dt, True) - - def testCopyConstructor(self): - for sys in (self.siso_ss1, self.siso_ss1c, self.siso_ss1d): - newsys = StateSpace(sys); - self.assertEqual(sys.dt, newsys.dt) - for sys in (self.siso_tf1, self.siso_tf1c, self.siso_tf1d): - newsys = TransferFunction(sys); - self.assertEqual(sys.dt, newsys.dt) - - def test_timebase(self): - self.assertEqual(timebase(1), None); - self.assertRaises(ValueError, timebase, [1, 2]) - self.assertEqual(timebase(self.siso_ss1, strict=False), None); - self.assertEqual(timebase(self.siso_ss1, strict=True), None); - self.assertEqual(timebase(self.siso_ss1c), 0); - self.assertEqual(timebase(self.siso_ss1d), 0.1); - self.assertEqual(timebase(self.siso_ss2d), 0.2); - self.assertEqual(timebase(self.siso_ss3d), True); - self.assertEqual(timebase(self.siso_ss3d, strict=False), 1); - self.assertEqual(timebase(self.siso_tf1, strict=False), None); - self.assertEqual(timebase(self.siso_tf1, strict=True), None); - self.assertEqual(timebase(self.siso_tf1c), 0); - self.assertEqual(timebase(self.siso_tf1d), 0.1); - self.assertEqual(timebase(self.siso_tf2d), 0.2); - self.assertEqual(timebase(self.siso_tf3d), True); - self.assertEqual(timebase(self.siso_tf3d, strict=False), 1); - - def test_timebase_conversions(self): + assert tsys.siso_ss1.dt is None + assert tsys.siso_ss1c.dt == 0 + assert tsys.siso_ss1d.dt == 0.1 + assert tsys.siso_ss2d.dt == 0.2 + assert tsys.siso_ss3d.dt is True + assert tsys.mimo_ss1c.dt == 0 + assert tsys.mimo_ss1d.dt == 0.1 + assert tsys.mimo_ss2d.dt == 0.2 + assert tsys.siso_tf1.dt is None + assert tsys.siso_tf1c.dt == 0 + assert tsys.siso_tf1d.dt == 0.1 + assert tsys.siso_tf2d.dt == 0.2 + assert tsys.siso_tf3d.dt is True + + def testCopyConstructor(self, tsys): + for sys in (tsys.siso_ss1, tsys.siso_ss1c, tsys.siso_ss1d): + newsys = StateSpace(sys) + assert sys.dt == newsys.dt + for sys in (tsys.siso_tf1, tsys.siso_tf1c, tsys.siso_tf1d): + newsys = TransferFunction(sys) + assert sys.dt == newsys.dt + + def test_timebase(self, tsys): + assert timebase(1) is None + with pytest.raises(ValueError): + timebase([1, 2]) + assert timebase(tsys.siso_ss1, strict=False) is None + assert timebase(tsys.siso_ss1, strict=True) is None + assert timebase(tsys.siso_ss1c) == 0 + assert timebase(tsys.siso_ss1d) == 0.1 + assert timebase(tsys.siso_ss2d) == 0.2 + assert timebase(tsys.siso_ss3d) + assert timebase(tsys.siso_ss3d, strict=False) == 1 + assert timebase(tsys.siso_tf1, strict=False) is None + assert timebase(tsys.siso_tf1, strict=True) is None + assert timebase(tsys.siso_tf1c) == 0 + assert timebase(tsys.siso_tf1d) == 0.1 + assert timebase(tsys.siso_tf2d) == 0.2 + assert timebase(tsys.siso_tf3d) + assert timebase(tsys.siso_tf3d, strict=False) == 1 + + def test_timebase_conversions(self, tsys): '''Check to make sure timebases transfer properly''' - tf1 = TransferFunction([1,1],[1,2,3]) # unspecified - tf2 = TransferFunction([1,1],[1,2,3], 0) # cont time - tf3 = TransferFunction([1,1],[1,2,3], True) # dtime, unspec - tf4 = TransferFunction([1,1],[1,2,3], 1) # dtime, dt=1 + tf1 = TransferFunction([1, 1], [1, 2, 3], None) # unspecified + tf2 = TransferFunction([1, 1], [1, 2, 3], 0) # cont time + tf3 = TransferFunction([1, 1], [1, 2, 3], True) # dtime, unspec + tf4 = TransferFunction([1, 1], [1, 2, 3], .1) # dtime, dt=.1 # Make sure unspecified timebase is converted correctly - self.assertEqual(timebase(tf1*tf1), timebase(tf1)) - self.assertEqual(timebase(tf1*tf2), timebase(tf2)) - self.assertEqual(timebase(tf1*tf3), timebase(tf3)) - self.assertEqual(timebase(tf1*tf4), timebase(tf4)) - self.assertEqual(timebase(tf2*tf1), timebase(tf2)) - self.assertEqual(timebase(tf3*tf1), timebase(tf3)) - self.assertEqual(timebase(tf4*tf1), timebase(tf4)) - self.assertEqual(timebase(tf1+tf1), timebase(tf1)) - self.assertEqual(timebase(tf1+tf2), timebase(tf2)) - self.assertEqual(timebase(tf1+tf3), timebase(tf3)) - self.assertEqual(timebase(tf1+tf4), timebase(tf4)) - self.assertEqual(timebase(feedback(tf1, tf1)), timebase(tf1)) - self.assertEqual(timebase(feedback(tf1, tf2)), timebase(tf2)) - self.assertEqual(timebase(feedback(tf1, tf3)), timebase(tf3)) - self.assertEqual(timebase(feedback(tf1, tf4)), timebase(tf4)) + assert timebase(tf1*tf1) == timebase(tf1) + assert timebase(tf1*tf2) == timebase(tf2) + assert timebase(tf1*tf3) == timebase(tf3) + assert timebase(tf1*tf4) == timebase(tf4) + assert timebase(tf2*tf1) == timebase(tf2) + assert timebase(tf3*tf1) == timebase(tf3) + assert timebase(tf4*tf1) == timebase(tf4) + assert timebase(tf1+tf1) == timebase(tf1) + assert timebase(tf1+tf2) == timebase(tf2) + assert timebase(tf1+tf3) == timebase(tf3) + assert timebase(tf1+tf4) == timebase(tf4) + assert timebase(feedback(tf1, tf1)) == timebase(tf1) + assert timebase(feedback(tf1, tf2)) == timebase(tf2) + assert timebase(feedback(tf1, tf3)) == timebase(tf3) + assert timebase(feedback(tf1, tf4)) == timebase(tf4) # Make sure discrete time without sampling is converted correctly - self.assertEqual(timebase(tf3*tf3), timebase(tf3)) - self.assertEqual(timebase(tf3*tf4), timebase(tf4)) - self.assertEqual(timebase(tf3+tf3), timebase(tf3)) - self.assertEqual(timebase(tf3+tf3), timebase(tf4)) - self.assertEqual(timebase(feedback(tf3, tf3)), timebase(tf3)) - self.assertEqual(timebase(feedback(tf3, tf4)), timebase(tf4)) + assert timebase(tf3*tf3) == timebase(tf3) + assert timebase(tf3+tf3) == timebase(tf3) + assert timebase(feedback(tf3, tf3)) == timebase(tf3) # Make sure all other combinations are errors - try: - tf2*tf3 # Error; incompatible timebases - raise ValueError("incompatible operation allowed") - except ValueError: - pass - try: - tf2*tf4 # Error; incompatible timebases - raise ValueError("incompatible operation allowed") - except ValueError: - pass - try: - tf2+tf3 # Error; incompatible timebases - raise ValueError("incompatible operation allowed") - except ValueError: - pass - try: - tf2+tf4 # Error; incompatible timebases - raise ValueError("incompatible operation allowed") - except ValueError: - pass - try: - feedback(tf2, tf3) # Error; incompatible timebases - raise ValueError("incompatible operation allowed") - except ValueError: - pass - try: - feedback(tf2, tf4) # Error; incompatible timebases - raise ValueError("incompatible operation allowed") - except ValueError: - pass - - def testisdtime(self): + with pytest.raises(ValueError, match="different sampling times"): + tf2 * tf3 + with pytest.raises(ValueError, match="different sampling times"): + tf3 * tf2 + with pytest.raises(ValueError, match="different sampling times"): + tf2 * tf4 + with pytest.raises(ValueError, match="different sampling times"): + tf4 * tf2 + with pytest.raises(ValueError, match="different sampling times"): + tf2 + tf3 + with pytest.raises(ValueError, match="different sampling times"): + tf3 + tf2 + with pytest.raises(ValueError, match="different sampling times"): + tf2 + tf4 + with pytest.raises(ValueError, match="different sampling times"): + tf4 + tf2 + with pytest.raises(ValueError, match="different sampling times"): + feedback(tf2, tf3) + with pytest.raises(ValueError, match="different sampling times"): + feedback(tf3, tf2) + with pytest.raises(ValueError, match="different sampling times"): + feedback(tf2, tf4) + with pytest.raises(ValueError, match="different sampling times"): + feedback(tf4, tf2) + + def testisdtime(self, tsys): # Constant - self.assertEqual(isdtime(1), True); - self.assertEqual(isdtime(1, strict=True), False); + assert isdtime(1) + assert not isdtime(1, strict=True) # State space - self.assertEqual(isdtime(self.siso_ss1), True); - self.assertEqual(isdtime(self.siso_ss1, strict=True), False); - self.assertEqual(isdtime(self.siso_ss1c), False); - self.assertEqual(isdtime(self.siso_ss1c, strict=True), False); - self.assertEqual(isdtime(self.siso_ss1d), True); - self.assertEqual(isdtime(self.siso_ss1d, strict=True), True); - self.assertEqual(isdtime(self.siso_ss3d, strict=True), True); + assert isdtime(tsys.siso_ss1) + assert not isdtime(tsys.siso_ss1, strict=True) + assert not isdtime(tsys.siso_ss1c) + assert not isdtime(tsys.siso_ss1c, strict=True) + assert isdtime(tsys.siso_ss1d) + assert isdtime(tsys.siso_ss1d, strict=True) + assert isdtime(tsys.siso_ss3d, strict=True) # Transfer function - self.assertEqual(isdtime(self.siso_tf1), True); - self.assertEqual(isdtime(self.siso_tf1, strict=True), False); - self.assertEqual(isdtime(self.siso_tf1c), False); - self.assertEqual(isdtime(self.siso_tf1c, strict=True), False); - self.assertEqual(isdtime(self.siso_tf1d), True); - self.assertEqual(isdtime(self.siso_tf1d, strict=True), True); - self.assertEqual(isdtime(self.siso_tf3d, strict=True), True); - - def testisctime(self): + assert isdtime(tsys.siso_tf1) + assert not isdtime(tsys.siso_tf1, strict=True) + assert not isdtime(tsys.siso_tf1c) + assert not isdtime(tsys.siso_tf1c, strict=True) + assert isdtime(tsys.siso_tf1d) + assert isdtime(tsys.siso_tf1d, strict=True) + assert isdtime(tsys.siso_tf3d, strict=True) + + def testisctime(self, tsys): # Constant - self.assertEqual(isctime(1), True); - self.assertEqual(isctime(1, strict=True), False); + assert isctime(1) + assert not isctime(1, strict=True) # State Space - self.assertEqual(isctime(self.siso_ss1), True); - self.assertEqual(isctime(self.siso_ss1, strict=True), False); - self.assertEqual(isctime(self.siso_ss1c), True); - self.assertEqual(isctime(self.siso_ss1c, strict=True), True); - self.assertEqual(isctime(self.siso_ss1d), False); - self.assertEqual(isctime(self.siso_ss1d, strict=True), False); - self.assertEqual(isctime(self.siso_ss3d, strict=True), False); + assert isctime(tsys.siso_ss1) + assert not isctime(tsys.siso_ss1, strict=True) + assert isctime(tsys.siso_ss1c) + assert isctime(tsys.siso_ss1c, strict=True) + assert not isctime(tsys.siso_ss1d) + assert not isctime(tsys.siso_ss1d, strict=True) + assert not isctime(tsys.siso_ss3d, strict=True) # Transfer Function - self.assertEqual(isctime(self.siso_tf1), True); - self.assertEqual(isctime(self.siso_tf1, strict=True), False); - self.assertEqual(isctime(self.siso_tf1c), True); - self.assertEqual(isctime(self.siso_tf1c, strict=True), True); - self.assertEqual(isctime(self.siso_tf1d), False); - self.assertEqual(isctime(self.siso_tf1d, strict=True), False); - self.assertEqual(isctime(self.siso_tf3d, strict=True), False); - - def testAddition(self): + assert isctime(tsys.siso_tf1) + assert not isctime(tsys.siso_tf1, strict=True) + assert isctime(tsys.siso_tf1c) + assert isctime(tsys.siso_tf1c, strict=True) + assert not isctime(tsys.siso_tf1d) + assert not isctime(tsys.siso_tf1d, strict=True) + assert not isctime(tsys.siso_tf3d, strict=True) + + def testAddition(self, tsys): # State space addition - sys = self.siso_ss1 + self.siso_ss1d - sys = self.siso_ss1 + self.siso_ss1c - sys = self.siso_ss1c + self.siso_ss1 - sys = self.siso_ss1d + self.siso_ss1 - sys = self.siso_ss1c + self.siso_ss1c - sys = self.siso_ss1d + self.siso_ss1d - sys = self.siso_ss3d + self.siso_ss3d - self.assertRaises(ValueError, StateSpace.__add__, self.mimo_ss1c, - self.mimo_ss1d) - self.assertRaises(ValueError, StateSpace.__add__, self.mimo_ss1d, - self.mimo_ss2d) - self.assertRaises(ValueError, StateSpace.__add__, self.siso_ss1d, - self.siso_ss3d) + sys = tsys.siso_ss1 + tsys.siso_ss1d + sys = tsys.siso_ss1 + tsys.siso_ss1c + sys = tsys.siso_ss1c + tsys.siso_ss1 + sys = tsys.siso_ss1d + tsys.siso_ss1 + sys = tsys.siso_ss1c + tsys.siso_ss1c + sys = tsys.siso_ss1d + tsys.siso_ss1d + sys = tsys.siso_ss3d + tsys.siso_ss3d + + with pytest.raises(ValueError): + StateSpace.__add__(tsys.mimo_ss1c, tsys.mimo_ss1d) + with pytest.raises(ValueError): + StateSpace.__add__(tsys.mimo_ss1d, tsys.mimo_ss2d) + with pytest.raises(ValueError): + StateSpace.__add__(tsys.siso_ss1d, tsys.siso_ss3d) # Transfer function addition - sys = self.siso_tf1 + self.siso_tf1d - sys = self.siso_tf1 + self.siso_tf1c - sys = self.siso_tf1c + self.siso_tf1 - sys = self.siso_tf1d + self.siso_tf1 - sys = self.siso_tf1c + self.siso_tf1c - sys = self.siso_tf1d + self.siso_tf1d - sys = self.siso_tf2d + self.siso_tf2d - self.assertRaises(ValueError, TransferFunction.__add__, self.siso_tf1c, - self.siso_tf1d) - self.assertRaises(ValueError, TransferFunction.__add__, self.siso_tf1d, - self.siso_tf2d) - self.assertRaises(ValueError, TransferFunction.__add__, self.siso_tf1d, - self.siso_tf3d) + sys = tsys.siso_tf1 + tsys.siso_tf1d + sys = tsys.siso_tf1 + tsys.siso_tf1c + sys = tsys.siso_tf1c + tsys.siso_tf1 + sys = tsys.siso_tf1d + tsys.siso_tf1 + sys = tsys.siso_tf1c + tsys.siso_tf1c + sys = tsys.siso_tf1d + tsys.siso_tf1d + sys = tsys.siso_tf2d + tsys.siso_tf2d + + with pytest.raises(ValueError): + TransferFunction.__add__(tsys.siso_tf1c, tsys.siso_tf1d) + with pytest.raises(ValueError): + TransferFunction.__add__(tsys.siso_tf1d, tsys.siso_tf2d) + with pytest.raises(ValueError): + TransferFunction.__add__(tsys.siso_tf1d, tsys.siso_tf3d) # State space + transfer function - sys = self.siso_ss1c + self.siso_tf1c - sys = self.siso_tf1c + self.siso_ss1c - sys = self.siso_ss1d + self.siso_tf1d - sys = self.siso_tf1d + self.siso_ss1d - self.assertRaises(ValueError, TransferFunction.__add__, self.siso_tf1c, - self.siso_ss1d) - - def testMultiplication(self): - # State space addition - sys = self.siso_ss1 * self.siso_ss1d - sys = self.siso_ss1 * self.siso_ss1c - sys = self.siso_ss1c * self.siso_ss1 - sys = self.siso_ss1d * self.siso_ss1 - sys = self.siso_ss1c * self.siso_ss1c - sys = self.siso_ss1d * self.siso_ss1d - self.assertRaises(ValueError, StateSpace.__mul__, self.mimo_ss1c, - self.mimo_ss1d) - self.assertRaises(ValueError, StateSpace.__mul__, self.mimo_ss1d, - self.mimo_ss2d) - self.assertRaises(ValueError, StateSpace.__mul__, self.siso_ss1d, - self.siso_ss3d) - - # Transfer function addition - sys = self.siso_tf1 * self.siso_tf1d - sys = self.siso_tf1 * self.siso_tf1c - sys = self.siso_tf1c * self.siso_tf1 - sys = self.siso_tf1d * self.siso_tf1 - sys = self.siso_tf1c * self.siso_tf1c - sys = self.siso_tf1d * self.siso_tf1d - self.assertRaises(ValueError, TransferFunction.__mul__, self.siso_tf1c, - self.siso_tf1d) - self.assertRaises(ValueError, TransferFunction.__mul__, self.siso_tf1d, - self.siso_tf2d) - self.assertRaises(ValueError, TransferFunction.__mul__, self.siso_tf1d, - self.siso_tf3d) + sys = tsys.siso_ss1c + tsys.siso_tf1c + sys = tsys.siso_tf1c + tsys.siso_ss1c + sys = tsys.siso_ss1d + tsys.siso_tf1d + sys = tsys.siso_tf1d + tsys.siso_ss1d + with pytest.raises(ValueError): + TransferFunction.__add__(tsys.siso_tf1c, tsys.siso_ss1d) + + def testMultiplication(self, tsys): + # State space multiplication + sys = tsys.siso_ss1 * tsys.siso_ss1d + sys = tsys.siso_ss1 * tsys.siso_ss1c + sys = tsys.siso_ss1c * tsys.siso_ss1 + sys = tsys.siso_ss1d * tsys.siso_ss1 + sys = tsys.siso_ss1c * tsys.siso_ss1c + sys = tsys.siso_ss1d * tsys.siso_ss1d + + with pytest.raises(ValueError): + StateSpace.__mul__(tsys.mimo_ss1c, tsys.mimo_ss1d) + with pytest.raises(ValueError): + StateSpace.__mul__(tsys.mimo_ss1d, tsys.mimo_ss2d) + with pytest.raises(ValueError): + StateSpace.__mul__(tsys.siso_ss1d, tsys.siso_ss3d) + + # Transfer function multiplication + sys = tsys.siso_tf1 * tsys.siso_tf1d + sys = tsys.siso_tf1 * tsys.siso_tf1c + sys = tsys.siso_tf1c * tsys.siso_tf1 + sys = tsys.siso_tf1d * tsys.siso_tf1 + sys = tsys.siso_tf1c * tsys.siso_tf1c + sys = tsys.siso_tf1d * tsys.siso_tf1d + + with pytest.raises(ValueError): + TransferFunction.__mul__(tsys.siso_tf1c, tsys.siso_tf1d) + with pytest.raises(ValueError): + TransferFunction.__mul__(tsys.siso_tf1d, tsys.siso_tf2d) + with pytest.raises(ValueError): + TransferFunction.__mul__(tsys.siso_tf1d, tsys.siso_tf3d) # State space * transfer function - sys = self.siso_ss1c * self.siso_tf1c - sys = self.siso_tf1c * self.siso_ss1c - sys = self.siso_ss1d * self.siso_tf1d - sys = self.siso_tf1d * self.siso_ss1d - self.assertRaises(ValueError, TransferFunction.__mul__, self.siso_tf1c, - self.siso_ss1d) - - - def testFeedback(self): - # State space addition - sys = feedback(self.siso_ss1, self.siso_ss1d) - sys = feedback(self.siso_ss1, self.siso_ss1c) - sys = feedback(self.siso_ss1c, self.siso_ss1) - sys = feedback(self.siso_ss1d, self.siso_ss1) - sys = feedback(self.siso_ss1c, self.siso_ss1c) - sys = feedback(self.siso_ss1d, self.siso_ss1d) - self.assertRaises(ValueError, feedback, self.mimo_ss1c, self.mimo_ss1d) - self.assertRaises(ValueError, feedback, self.mimo_ss1d, self.mimo_ss2d) - self.assertRaises(ValueError, feedback, self.siso_ss1d, self.siso_ss3d) - - # Transfer function addition - sys = feedback(self.siso_tf1, self.siso_tf1d) - sys = feedback(self.siso_tf1, self.siso_tf1c) - sys = feedback(self.siso_tf1c, self.siso_tf1) - sys = feedback(self.siso_tf1d, self.siso_tf1) - sys = feedback(self.siso_tf1c, self.siso_tf1c) - sys = feedback(self.siso_tf1d, self.siso_tf1d) - self.assertRaises(ValueError, feedback, self.siso_tf1c, self.siso_tf1d) - self.assertRaises(ValueError, feedback, self.siso_tf1d, self.siso_tf2d) - self.assertRaises(ValueError, feedback, self.siso_tf1d, self.siso_tf3d) + sys = tsys.siso_ss1c * tsys.siso_tf1c + sys = tsys.siso_tf1c * tsys.siso_ss1c + sys = tsys.siso_ss1d * tsys.siso_tf1d + sys = tsys.siso_tf1d * tsys.siso_ss1d + with pytest.raises(ValueError): + TransferFunction.__mul__(tsys.siso_tf1c, + tsys.siso_ss1d) + + + def testFeedback(self, tsys): + # State space feedback + sys = feedback(tsys.siso_ss1, tsys.siso_ss1d) + sys = feedback(tsys.siso_ss1, tsys.siso_ss1c) + sys = feedback(tsys.siso_ss1c, tsys.siso_ss1) + sys = feedback(tsys.siso_ss1d, tsys.siso_ss1) + sys = feedback(tsys.siso_ss1c, tsys.siso_ss1c) + sys = feedback(tsys.siso_ss1d, tsys.siso_ss1d) + + with pytest.raises(ValueError): + feedback(tsys.mimo_ss1c, tsys.mimo_ss1d) + with pytest.raises(ValueError): + feedback(tsys.mimo_ss1d, tsys.mimo_ss2d) + with pytest.raises(ValueError): + feedback(tsys.siso_ss1d, tsys.siso_ss3d) + + # Transfer function feedback + sys = feedback(tsys.siso_tf1, tsys.siso_tf1d) + sys = feedback(tsys.siso_tf1, tsys.siso_tf1c) + sys = feedback(tsys.siso_tf1c, tsys.siso_tf1) + sys = feedback(tsys.siso_tf1d, tsys.siso_tf1) + sys = feedback(tsys.siso_tf1c, tsys.siso_tf1c) + sys = feedback(tsys.siso_tf1d, tsys.siso_tf1d) + + with pytest.raises(ValueError): + feedback(tsys.siso_tf1c, tsys.siso_tf1d) + with pytest.raises(ValueError): + feedback(tsys.siso_tf1d, tsys.siso_tf2d) + with pytest.raises(ValueError): + feedback(tsys.siso_tf1d, tsys.siso_tf3d) # State space, transfer function - sys = feedback(self.siso_ss1c, self.siso_tf1c) - sys = feedback(self.siso_tf1c, self.siso_ss1c) - sys = feedback(self.siso_ss1d, self.siso_tf1d) - sys = feedback(self.siso_tf1d, self.siso_ss1d) - self.assertRaises(ValueError, feedback, self.siso_tf1c, self.siso_ss1d) - - def testSimulation(self): + sys = feedback(tsys.siso_ss1c, tsys.siso_tf1c) + sys = feedback(tsys.siso_tf1c, tsys.siso_ss1c) + sys = feedback(tsys.siso_ss1d, tsys.siso_tf1d) + sys = feedback(tsys.siso_tf1d, tsys.siso_ss1d) + with pytest.raises(ValueError): + feedback(tsys.siso_tf1c, tsys.siso_ss1d) + + def testSimulation(self, tsys): T = range(100) U = np.sin(T) # For now, just check calling syntax # TODO: add checks on output of simulations - tout, yout = step_response(self.siso_ss1d) - tout, yout = step_response(self.siso_ss1d, T) - tout, yout = impulse_response(self.siso_ss1d, T) - tout, yout = impulse_response(self.siso_ss1d) - tout, yout, xout = forced_response(self.siso_ss1d, T, U, 0) - tout, yout, xout = forced_response(self.siso_ss2d, T, U, 0) - tout, yout, xout = forced_response(self.siso_ss3d, T, U, 0) - - def test_sample_system(self): + tout, yout = step_response(tsys.siso_ss1d) + tout, yout = step_response(tsys.siso_ss1d, T) + tout, yout = impulse_response(tsys.siso_ss1d) + tout, yout = impulse_response(tsys.siso_ss1d, T) + tout, yout, xout = forced_response(tsys.siso_ss1d, T, U, 0) + tout, yout, xout = forced_response(tsys.siso_ss2d, T, U, 0) + tout, yout, xout = forced_response(tsys.siso_ss3d, T, U, 0) + + def test_sample_system(self, tsys): # Make sure we can convert various types of systems - for sysc in (self.siso_tf1, self.siso_tf1c, - self.siso_ss1, self.siso_ss1c, - self.mimo_ss1, self.mimo_ss1c): + for sysc in (tsys.siso_tf1, tsys.siso_tf1c, + tsys.siso_ss1, tsys.siso_ss1c, + tsys.mimo_ss1, tsys.mimo_ss1c): for method in ("zoh", "bilinear", "euler", "backward_diff"): sysd = sample_system(sysc, 1, method=method) - self.assertEqual(sysd.dt, 1) + assert sysd.dt == 1 # Check "matched", defined only for SISO transfer functions - for sysc in (self.siso_tf1, self.siso_tf1c): + for sysc in (tsys.siso_tf1, tsys.siso_tf1c): sysd = sample_system(sysc, 1, method="matched") - self.assertEqual(sysd.dt, 1) - + assert sysd.dt == 1 + + @pytest.mark.parametrize("plantname", + ["siso_ss1c", + "siso_tf1c"]) + def test_sample_system_prewarp(self, tsys, plantname): + """bilinear approximation with prewarping test""" + wwarp = 50 + Ts = 0.025 + # test state space version + plant = getattr(tsys, plantname) + plant_d_warped = plant.sample(Ts, 'bilinear', prewarp_frequency=wwarp) + plant_fr = evalfr(plant, wwarp * 1j) + dt = plant_d_warped.dt + plant_d_fr = evalfr(plant_d_warped, np.exp(wwarp * 1.j * dt)) + np.testing.assert_array_almost_equal(plant_fr, plant_d_fr) + + def test_sample_system_errors(self, tsys): # Check errors - self.assertRaises(ValueError, sample_system, self.siso_ss1d, 1) - self.assertRaises(ValueError, sample_system, self.siso_tf1d, 1) - self.assertRaises(ValueError, sample_system, self.siso_ss1, 1, 'unknown') + with pytest.raises(ValueError): + sample_system(tsys.siso_ss1d, 1) + with pytest.raises(ValueError): + sample_system(tsys.siso_tf1d, 1) + with pytest.raises(ValueError): + sample_system(tsys.siso_ss1, 1, 'unknown') + - def test_sample_ss(self): + def test_sample_ss(self, tsys): # double integrators, two different ways sys1 = StateSpace([[0.,1.],[0.,0.]], [[0.],[1.]], [[1.,0.]], 0.) sys2 = StateSpace([[0.,0.],[1.,0.]], [[1.],[0.]], [[0.,1.]], 0.) @@ -359,22 +391,22 @@ def test_sample_ss(self): np.testing.assert_array_almost_equal(sysd.B, Bd) np.testing.assert_array_almost_equal(sysd.C, sys.C) np.testing.assert_array_almost_equal(sysd.D, sys.D) - self.assertEqual(sysd.dt, h) + assert sysd.dt == h - def test_sample_tf(self): + def test_sample_tf(self, tsys): # double integrator sys = TransferFunction(1, [1,0,0]) for h in (0.1, 0.5, 1, 2): numd_expected = 0.5 * h**2 * np.array([1.,1.]) dend_expected = np.array([1.,-2.,1.]) sysd = sample_system(sys, h, method='zoh') - self.assertEqual(sysd.dt, h) + assert sysd.dt == h numd = sysd.num[0][0] dend = sysd.den[0][0] np.testing.assert_array_almost_equal(numd, numd_expected) np.testing.assert_array_almost_equal(dend, dend_expected) - def test_discrete_bode(self): + def test_discrete_bode(self, tsys): # Create a simple discrete time system and check the calculation sys = TransferFunction([1], [1, 0.5], 1) omega = [1, 2, 3] @@ -383,7 +415,3 @@ def test_discrete_bode(self): np.testing.assert_array_almost_equal(omega, omega_out) np.testing.assert_array_almost_equal(mag_out, np.absolute(H_z)) np.testing.assert_array_almost_equal(phase_out, np.angle(H_z)) - - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/flatsys_test.py b/control/tests/flatsys_test.py index 0c1d0c92c..1281c519a 100644 --- a/control/tests/flatsys_test.py +++ b/control/tests/flatsys_test.py @@ -1,57 +1,55 @@ -#!/usr/bin/env python -# -# flatsys_test.py - test flat system module -# RMM, 29 Jun 2019 -# -# This test suite checks to make sure that the basic functions supporting -# differential flat systetms are functioning. It doesn't do exhaustive -# testing of operations on flat systems. Separate unit tests should be -# created for that purpose. - -import unittest +"""flatsys_test.py - test flat system module + +RMM, 29 Jun 2019 + +This test suite checks to make sure that the basic functions supporting +differential flat systetms are functioning. It doesn't do exhaustive +testing of operations on flat systems. Separate unit tests should be +created for that purpose. +""" + +from distutils.version import StrictVersion + import numpy as np +import pytest import scipy as sp + import control as ct import control.flatsys as fs -from distutils.version import StrictVersion -class TestFlatSys(unittest.TestCase): - def setUp(self): - ct.use_numpy_matrix(False) +class TestFlatSys: + """Test differential flat systems""" - def test_double_integrator(self): + @pytest.mark.parametrize( + "xf, uf, Tf", + [([1, 0], [0], 2), + ([0, 1], [0], 3), + ([1, 1], [1], 4)]) + def test_double_integrator(self, xf, uf, Tf): # Define a second order integrator sys = ct.StateSpace([[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], 0) flatsys = fs.LinearFlatSystem(sys) - # Define the endpoints of a trajectory - x1 = [0, 0]; u1 = [0]; T1 = 1 - x2 = [1, 0]; u2 = [0]; T2 = 2 - x3 = [0, 1]; u3 = [0]; T3 = 3 - x4 = [1, 1]; u4 = [1]; T4 = 4 - # Define the basis set poly = fs.PolyFamily(6) - # Plan trajectories for various combinations - for x0, u0, xf, uf, Tf in [ - (x1, u1, x2, u2, T2), (x1, u1, x3, u3, T3), (x1, u1, x4, u4, T4)]: - traj = fs.point_to_point(flatsys, x0, u0, xf, uf, Tf, basis=poly) + x1, u1, = [0, 0], [0] + traj = fs.point_to_point(flatsys, x1, u1, xf, uf, Tf, basis=poly) - # Verify that the trajectory computation is correct - x, u = traj.eval([0, Tf]) - np.testing.assert_array_almost_equal(x0, x[:, 0]) - np.testing.assert_array_almost_equal(u0, u[:, 0]) - np.testing.assert_array_almost_equal(xf, x[:, 1]) - np.testing.assert_array_almost_equal(uf, u[:, 1]) + # Verify that the trajectory computation is correct + x, u = traj.eval([0, Tf]) + np.testing.assert_array_almost_equal(x1, x[:, 0]) + np.testing.assert_array_almost_equal(u1, u[:, 0]) + np.testing.assert_array_almost_equal(xf, x[:, 1]) + np.testing.assert_array_almost_equal(uf, u[:, 1]) - # Simulate the system and make sure we stay close to desired traj - T = np.linspace(0, Tf, 100) - xd, ud = traj.eval(T) + # Simulate the system and make sure we stay close to desired traj + T = np.linspace(0, Tf, 100) + xd, ud = traj.eval(T) - t, y, x = ct.forced_response(sys, T, ud, x0) - np.testing.assert_array_almost_equal(x, xd, decimal=3) + t, y, x = ct.forced_response(sys, T, ud, x1) + np.testing.assert_array_almost_equal(x, xd, decimal=3) def test_kinematic_car(self): """Differential flatness for a kinematic car""" @@ -123,9 +121,3 @@ def vehicle_output(t, x, u, params): return x vehicle_flat, T, ud, x0, return_x=True) np.testing.assert_allclose(x, xd, atol=0.01, rtol=0.01) - def tearDown(self): - ct.reset_defaults() - - -if __name__ == '__main__': - unittest.main() diff --git a/control/tests/frd_test.py b/control/tests/frd_test.py index fcbc10263..18f2f17b1 100644 --- a/control/tests/frd_test.py +++ b/control/tests/frd_test.py @@ -1,33 +1,36 @@ -#!/usr/bin/env python -# -# frd_test.py - test FRD class -# RvP, 4 Oct 2012 +"""frd_test.py - test FRD class +RvP, 4 Oct 2012 +""" -import unittest import sys as pysys + import numpy as np +import matplotlib.pyplot as plt +import pytest + import control as ct from control.statesp import StateSpace from control.xferfcn import TransferFunction from control.frdata import FRD, _convertToFRD, FrequencyResponseData -from control import bdalg -from control import freqplot -from control.exception import slycot_check -import matplotlib.pyplot as plt +from control import bdalg, evalfr, freqplot +from control.tests.conftest import slycotonly -class TestFRD(unittest.TestCase): +class TestFRD: """These are tests for functionality and correct reporting of the frequency response data class.""" def testBadInputType(self): """Give the constructor invalid input types.""" - self.assertRaises(ValueError, FRD) - self.assertRaises(TypeError, FRD, [1]) + with pytest.raises(ValueError): + FRD() + with pytest.raises(TypeError): + FRD([1]) def testInconsistentDimension(self): - self.assertRaises(TypeError, FRD, [1, 1], [1, 2, 3]) + with pytest.raises(TypeError): + FRD([1, 1], [1, 2, 3]) def testSISOtf(self): # get a SISO transfer function @@ -36,8 +39,11 @@ def testSISOtf(self): frd = FRD(h, omega) assert isinstance(frd, FRD) - np.testing.assert_array_almost_equal( - frd.freqresp([1.0]), h.freqresp([1.0])) + mag1, phase1, omega1 = frd.freqresp([1.0]) + mag2, phase2, omega2 = h.freqresp([1.0]) + np.testing.assert_array_almost_equal(mag1, mag2) + np.testing.assert_array_almost_equal(phase1, phase2) + np.testing.assert_array_almost_equal(omega1, omega2) def testOperators(self): # get two SISO transfer functions @@ -169,7 +175,7 @@ def testFeedback2(self): def testAuto(self): omega = np.logspace(-1, 2, 10) f1 = _convertToFRD(1, omega) - f2 = _convertToFRD(np.matrix([[1, 0], [0.1, -1]]), omega) + f2 = _convertToFRD(np.array([[1, 0], [0.1, -1]]), omega) f2 = _convertToFRD([[1, 0], [0.1, -1]], omega) f1, f2 # reference to avoid pyflakes error @@ -183,7 +189,7 @@ def testNyquist(self): freqplot.nyquist(f1, f1.omega) # plt.savefig('/dev/null', format='svg') - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMIMO(self): sys = StateSpace([[-0.5, 0.0], [0.0, -1.0]], [[1.0, 0.0], [0.0, 1.0]], @@ -198,7 +204,7 @@ def testMIMO(self): sys.freqresp([0.1, 1.0, 10])[1], f1.freqresp([0.1, 1.0, 10])[1]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMIMOfb(self): sys = StateSpace([[-0.5, 0.0], [0.0, -1.0]], [[1.0, 0.0], [0.0, 1.0]], @@ -214,13 +220,15 @@ def testMIMOfb(self): f1.freqresp([0.1, 1.0, 10])[1], f2.freqresp([0.1, 1.0, 10])[1]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMIMOfb2(self): - sys = StateSpace(np.matrix('-2.0 0 0; 0 -1 1; 0 0 -3'), - np.matrix('1.0 0; 0 0; 0 1'), + sys = StateSpace(np.array([[-2.0, 0, 0], + [0, -1, 1], + [0, 0, -3]]), + np.array([[1.0, 0], [0, 0], [0, 1]]), np.eye(3), np.zeros((3, 2))) omega = np.logspace(-1, 2, 10) - K = np.matrix('1 0.3 0; 0.1 0 0') + K = np.array([[1, 0.3, 0], [0.1, 0, 0]]) f1 = FRD(sys, omega).feedback(K) f2 = FRD(sys.feedback(K), omega) np.testing.assert_array_almost_equal( @@ -230,7 +238,7 @@ def testMIMOfb2(self): f1.freqresp([0.1, 1.0, 10])[1], f2.freqresp([0.1, 1.0, 10])[1]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMIMOMult(self): sys = StateSpace([[-0.5, 0.0], [0.0, -1.0]], [[1.0, 0.0], [0.0, 1.0]], @@ -246,13 +254,13 @@ def testMIMOMult(self): (f1*f2).freqresp([0.1, 1.0, 10])[1], (sys*sys).freqresp([0.1, 1.0, 10])[1]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMIMOSmooth(self): sys = StateSpace([[-0.5, 0.0], [0.0, -1.0]], [[1.0, 0.0], [0.0, 1.0]], [[1.0, 0.0], [0.0, 1.0], [1.0, 1.0]], [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]]) - sys2 = np.matrix([[1, 0, 0], [0, 1, 0]]) * sys + sys2 = np.array([[1, 0, 0], [0, 1, 0]]) * sys omega = np.logspace(-1, 2, 10) f1 = FRD(sys, omega, smooth=True) f2 = FRD(sys2, omega, smooth=True) @@ -271,47 +279,54 @@ def testAgainstOctave(self): # sys = ss([-2 0 0; 0 -1 1; 0 0 -3], # [1 0; 0 0; 0 1], eye(3), zeros(3,2)) # bfr = frd(bsys, [1]) - sys = StateSpace(np.matrix('-2.0 0 0; 0 -1 1; 0 0 -3'), - np.matrix('1.0 0; 0 0; 0 1'), + sys = StateSpace(np.array([[-2.0, 0, 0], [0, -1, 1], [0, 0, -3]]), + np.array([[1.0, 0], [0, 0], [0, 1]]), np.eye(3), np.zeros((3, 2))) omega = np.logspace(-1, 2, 10) f1 = FRD(sys, omega) np.testing.assert_array_almost_equal( (f1.freqresp([1.0])[0] * - np.exp(1j*f1.freqresp([1.0])[1])).reshape(3, 2), - np.matrix('0.4-0.2j 0; 0 0.1-0.2j; 0 0.3-0.1j')) + np.exp(1j * f1.freqresp([1.0])[1])).reshape(3, 2), + np.array([[0.4 - 0.2j, 0], [0, 0.1 - 0.2j], [0, 0.3 - 0.1j]])) - def test_string_representation(self): + def test_string_representation(self, capsys): sys = FRD([1, 2, 3], [4, 5, 6]) print(sys) # Just print without checking - def test_frequency_mismatch(self): + def test_frequency_mismatch(self, recwarn): + # recwarn: there may be a warning before the error! # Overlapping but non-equal frequency ranges sys1 = FRD([1, 2, 3], [4, 5, 6]) sys2 = FRD([2, 3, 4], [5, 6, 7]) - self.assertRaises(NotImplementedError, FRD.__add__, sys1, sys2) + with pytest.raises(NotImplementedError): + FRD.__add__(sys1, sys2) # One frequency range is a subset of another sys1 = FRD([1, 2, 3], [4, 5, 6]) sys2 = FRD([2, 3], [4, 5]) - self.assertRaises(NotImplementedError, FRD.__add__, sys1, sys2) + with pytest.raises(NotImplementedError): + FRD.__add__(sys1, sys2) def test_size_mismatch(self): sys1 = FRD(ct.rss(2, 2, 2), np.logspace(-1, 1, 10)) # Different number of inputs sys2 = FRD(ct.rss(3, 1, 2), np.logspace(-1, 1, 10)) - self.assertRaises(ValueError, FRD.__add__, sys1, sys2) + with pytest.raises(ValueError): + FRD.__add__(sys1, sys2) # Different number of outputs sys2 = FRD(ct.rss(3, 2, 1), np.logspace(-1, 1, 10)) - self.assertRaises(ValueError, FRD.__add__, sys1, sys2) + with pytest.raises(ValueError): + FRD.__add__(sys1, sys2) # Inputs and outputs don't match - self.assertRaises(ValueError, FRD.__mul__, sys2, sys1) + with pytest.raises(ValueError): + FRD.__mul__(sys2, sys1) # Feedback mismatch - self.assertRaises(ValueError, FRD.feedback, sys2, sys1) + with pytest.raises(ValueError): + FRD.feedback(sys2, sys1) def test_operator_conversion(self): sys_tf = ct.tf([1], [1, 2, 1]) @@ -365,7 +380,8 @@ def test_operator_conversion(self): np.testing.assert_array_almost_equal(sys_pow.fresp, chk_pow.fresp) # Assertion error if we try to raise to a non-integer power - self.assertRaises(ValueError, FRD.__pow__, frd_tf, 0.5) + with pytest.raises(ValueError): + FRD.__pow__(frd_tf, 0.5) # Selected testing on transfer function conversion sys_add = frd_2 + sys_tf @@ -375,44 +391,29 @@ def test_operator_conversion(self): # Input/output mismatch size mismatch in rmul sys1 = FRD(ct.rss(2, 2, 2), np.logspace(-1, 1, 10)) - self.assertRaises(ValueError, FRD.__rmul__, frd_2, sys1) + with pytest.raises(ValueError): + FRD.__rmul__(frd_2, sys1) # Make sure conversion of something random generates exception - self.assertRaises(TypeError, FRD.__add__, frd_tf, 'string') + with pytest.raises(TypeError): + FRD.__add__(frd_tf, 'string') def test_eval(self): sys_tf = ct.tf([1], [1, 2, 1]) frd_tf = FRD(sys_tf, np.logspace(-1, 1, 3)) - np.testing.assert_almost_equal(sys_tf.evalfr(1), frd_tf.eval(1)) + np.testing.assert_almost_equal(evalfr(sys_tf, 1J), frd_tf.eval(1)) # Should get an error if we evaluate at an unknown frequency - self.assertRaises(ValueError, frd_tf.eval, 2) + with pytest.raises(ValueError): + frd_tf.eval(2) + - # This test only works in Python 3 due to a conflict with the same - # warning type in other test modules (frd_test.py). See - # https://bugs.python.org/issue4180 for more details - @unittest.skipIf(pysys.version_info < (3, 0), "test requires Python 3+") def test_evalfr_deprecated(self): sys_tf = ct.tf([1], [1, 2, 1]) frd_tf = FRD(sys_tf, np.logspace(-1, 1, 3)) - # Deprecated version of the call (should generate warning) - import warnings - with warnings.catch_warnings(): - # Make warnings generate an exception - warnings.simplefilter('error') - - # Make sure that we get a pending deprecation warning - self.assertRaises(PendingDeprecationWarning, frd_tf.evalfr, 1.) - - # FRD.evalfr() is being deprecated - import warnings - with warnings.catch_warnings(): - # Make warnings generate an exception - warnings.simplefilter('error') - - # Make sure that we get a pending deprecation warning - self.assertRaises(PendingDeprecationWarning, frd_tf.evalfr, 1.) + with pytest.deprecated_call(): + frd_tf.evalfr(1.) def test_repr_str(self): # repr printing @@ -427,8 +428,8 @@ def test_repr_str(self): sysm = FrequencyResponseData( np.matmul(array([[1],[2]]), sys0.fresp), sys0.omega) - self.assertEqual(repr(sys0), ref0) - self.assertEqual(repr(sys1), ref1) + assert repr(sys0) == ref0 + assert repr(sys1) == ref1 sys0r = eval(repr(sys0)) np.testing.assert_array_almost_equal(sys0r.fresp, sys0.fresp) np.testing.assert_array_almost_equal(sys0r.omega, sys0.omega) @@ -444,8 +445,8 @@ def test_repr_str(self): 1.000 0.9 +0.1j 10.000 0.1 +2j 100.000 0.05 +3j""" - self.assertEqual(str(sys0), refs) - self.assertEqual(str(sys1), refs) + assert str(sys0) == refs + assert str(sys1) == refs # print multi-input system refm = """Frequency response data @@ -463,7 +464,4 @@ def test_repr_str(self): 1.000 1.8 +0.2j 10.000 0.2 +4j 100.000 0.1 +6j""" - self.assertEqual(str(sysm), refm) - -if __name__ == "__main__": - unittest.main() + assert str(sysm) == refm diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 9d59a1972..1ecc88129 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -1,241 +1,250 @@ -#!/usr/bin/env python -# -# freqresp_test.py - test frequency response functions -# RMM, 30 May 2016 (based on timeresp_test.py) -# -# This is a rudimentary set of tests for frequency response functions, -# including bode plots. - -import unittest +"""freqresp_test.py - test frequency response functions + +RMM, 30 May 2016 (based on timeresp_test.py) + +This is a rudimentary set of tests for frequency response functions, +including bode plots. +""" + import matplotlib.pyplot as plt import numpy as np -from numpy.testing import assert_array_almost_equal +from numpy.testing import assert_allclose +import pytest import control as ctrl from control.statesp import StateSpace from control.xferfcn import TransferFunction from control.matlab import ss, tf, bode, rss -from control.exception import slycot_check - - -class TestFreqresp(unittest.TestCase): - def setUp(self): - self.A = np.matrix('1,1;0,1') - self.C = np.matrix('1,0') - self.omega = np.linspace(10e-2,10e2,1000) - - def test_siso(self): - B = np.matrix('0;1') - D = 0 - sys = StateSpace(self.A,B,self.C,D) - - # test frequency response - frq=sys.freqresp(self.omega) - - # test bode plot - bode(sys) - - # Convert to transfer function and test bode - systf = tf(sys) - bode(systf) - - def test_superimpose(self): - # Test to make sure that multiple calls to plots superimpose their - # data on the same axes unless told to do otherwise - - # Generate two plots in a row; should be on the same axes - plt.figure(1); plt.clf() - ctrl.bode_plot(ctrl.tf([1], [1,2,1])) - ctrl.bode_plot(ctrl.tf([5], [1, 1])) - - # Check to make sure there are two axes and that each axes has two lines - self.assertEqual(len(plt.gcf().axes), 2) - for ax in plt.gcf().axes: - # Make sure there are 2 lines in each subplot - assert len(ax.get_lines()) == 2 - - # Generate two plots as a list; should be on the same axes - plt.figure(2); plt.clf(); - ctrl.bode_plot([ctrl.tf([1], [1,2,1]), ctrl.tf([5], [1, 1])]) - - # Check to make sure there are two axes and that each axes has two lines - self.assertEqual(len(plt.gcf().axes), 2) - for ax in plt.gcf().axes: - # Make sure there are 2 lines in each subplot - assert len(ax.get_lines()) == 2 - - # Generate two separate plots; only the second should appear - plt.figure(3); plt.clf(); - ctrl.bode_plot(ctrl.tf([1], [1,2,1])) - plt.clf() - ctrl.bode_plot(ctrl.tf([5], [1, 1])) - - # Check to make sure there are two axes and that each axes has one line - self.assertEqual(len(plt.gcf().axes), 2) - for ax in plt.gcf().axes: - # Make sure there is only 1 line in the subplot - assert len(ax.get_lines()) == 1 - - # Now add a line to the magnitude plot and make sure if is there - for ax in plt.gcf().axes: - if ax.get_label() == 'control-bode-magnitude': +from control.tests.conftest import slycotonly + + +pytestmark = pytest.mark.usefixtures("mplcleanup") + + +def test_siso(): + """Test SISO frequency response""" + A = np.array([[1, 1], [0, 1]]) + B = np.array([[0], [1]]) + C = np.array([[1, 0]]) + D = 0 + sys = StateSpace(A, B, C, D) + omega = np.linspace(10e-2, 10e2, 1000) + + # test frequency response + sys.freqresp(omega) + + # test bode plot + bode(sys) + + # Convert to transfer function and test bode + systf = tf(sys) + bode(systf) + + +@pytest.mark.filterwarnings("ignore:.*non-positive left xlim:UserWarning") +def test_superimpose(): + """Test superimpose multiple calls. + + Test to make sure that multiple calls to plots superimpose their + data on the same axes unless told to do otherwise + """ + # Generate two plots in a row; should be on the same axes + plt.figure(1) + plt.clf() + ctrl.bode_plot(ctrl.tf([1], [1, 2, 1])) + ctrl.bode_plot(ctrl.tf([5], [1, 1])) + + # Check that there are two axes and that each axes has two lines + len(plt.gcf().axes) == 2 + for ax in plt.gcf().axes: + # Make sure there are 2 lines in each subplot + assert len(ax.get_lines()) == 2 + + # Generate two plots as a list; should be on the same axes + plt.figure(2) + plt.clf() + ctrl.bode_plot([ctrl.tf([1], [1, 2, 1]), ctrl.tf([5], [1, 1])]) + + # Check that there are two axes and that each axes has two lines + assert len(plt.gcf().axes) == 2 + for ax in plt.gcf().axes: + # Make sure there are 2 lines in each subplot + assert len(ax.get_lines()) == 2 + + # Generate two separate plots; only the second should appear + plt.figure(3) + plt.clf() + ctrl.bode_plot(ctrl.tf([1], [1, 2, 1])) + plt.clf() + ctrl.bode_plot(ctrl.tf([5], [1, 1])) + + # Check to make sure there are two axes and that each axes has one line + assert len(plt.gcf().axes) == 2 + for ax in plt.gcf().axes: + # Make sure there is only 1 line in the subplot + assert len(ax.get_lines()) == 1 + + # Now add a line to the magnitude plot and make sure if is there + for ax in plt.gcf().axes: + if ax.get_label() == 'control-bode-magnitude': break - ax.semilogx([1e-2, 1e1], 20 * np.log10([1, 1]), 'k-') - self.assertEqual(len(ax.get_lines()), 2) - - def test_doubleint(self): - # 30 May 2016, RMM: added to replicate typecast bug in freqresp.py - A = np.matrix('0, 1; 0, 0'); - B = np.matrix('0; 1'); - C = np.matrix('1, 0'); - D = 0; - sys = ss(A, B, C, D); - bode(sys); - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_mimo(self): - # MIMO - B = np.matrix('1,0;0,1') - D = np.matrix('0,0') - sysMIMO = ss(self.A,B,self.C,D) - - frqMIMO = sysMIMO.freqresp(self.omega) - tfMIMO = tf(sysMIMO) - - #bode(sysMIMO) # - should throw not implemented exception - #bode(tfMIMO) # - should throw not implemented exception - - #plt.figure(3) - #plt.semilogx(self.omega,20*np.log10(np.squeeze(frq[0]))) - - #plt.figure(4) - #bode(sysMIMO,self.omega) - - def test_bode_margin(self): - num = [1000] - den = [1, 25, 100, 0] - sys = ctrl.tf(num, den) - plt.figure() - ctrl.bode_plot(sys, margins=True,dB=False,deg = True, Hz=False) - fig = plt.gcf() - allaxes = fig.get_axes() - - mag_to_infinity = (np.array([6.07828691, 6.07828691]), - np.array([1.00000000e+00, 1.00000000e-08])) - assert_array_almost_equal(mag_to_infinity, allaxes[0].lines[2].get_data()) - - gm_to_infinty = (np.array([10., 10.]), np.array([4.00000000e-01, 1.00000000e-08])) - assert_array_almost_equal(gm_to_infinty, allaxes[0].lines[3].get_data()) - - one_to_gm = (np.array([10., 10.]), np.array([1., 0.4])) - assert_array_almost_equal(one_to_gm, allaxes[0].lines[4].get_data()) - - pm_to_infinity = (np.array([6.07828691, 6.07828691]), - np.array([100000., -157.46405841])) - assert_array_almost_equal(pm_to_infinity, allaxes[1].lines[2].get_data()) - - pm_to_phase = (np.array([6.07828691, 6.07828691]), np.array([-157.46405841, -180.])) - assert_array_almost_equal(pm_to_phase, allaxes[1].lines[3].get_data()) - - phase_to_infinity = (np.array([10., 10.]), np.array([1.00000000e-08, -1.80000000e+02])) - assert_array_almost_equal(phase_to_infinity, allaxes[1].lines[4].get_data()) - - def test_discrete(self): - # Test discrete time frequency response - - # SISO state space systems with either fixed or unspecified sampling times - sys = rss(3, 1, 1) - siso_ss1d = StateSpace(sys.A, sys.B, sys.C, sys.D, 0.1) - siso_ss2d = StateSpace(sys.A, sys.B, sys.C, sys.D, True) - - # MIMO state space systems with either fixed or unspecified sampling times - A = [[-3., 4., 2.], [-1., -3., 0.], [2., 5., 3.]] - B = [[1., 4.], [-3., -3.], [-2., 1.]] - C = [[4., 2., -3.], [1., 4., 3.]] - D = [[-2., 4.], [0., 1.]] - mimo_ss1d = StateSpace(A, B, C, D, 0.1) - mimo_ss2d = StateSpace(A, B, C, D, True) - - # SISO transfer functions - siso_tf1d = TransferFunction([1, 1], [1, 2, 1], 0.1) - siso_tf2d = TransferFunction([1, 1], [1, 2, 1], True) - - # Go through each system and call the code, checking return types - for sys in (siso_ss1d, siso_ss2d, mimo_ss1d, mimo_ss2d, - siso_tf1d, siso_tf2d): - # Set frequency range to just below Nyquist freq (for Bode) - omega_ok = np.linspace(10e-4,0.99,100) * np.pi/sys.dt - - # Test frequency response - ret = sys.freqresp(omega_ok) - - # Check for warning if frequency is out of range - import warnings - warnings.simplefilter('always', UserWarning) # don't supress - with warnings.catch_warnings(record=True) as w: - # Set up warnings filter to only show warnings in control module - warnings.filterwarnings("ignore") - warnings.filterwarnings("always", module="control") - - # Look for a warning about sampling above Nyquist frequency - omega_bad = np.linspace(10e-4,1.1,10) * np.pi/sys.dt - ret = sys.freqresp(omega_bad) - print("len(w) =", len(w)) - self.assertEqual(len(w), 1) - self.assertIn("above", str(w[-1].message)) - self.assertIn("Nyquist", str(w[-1].message)) - - # Test bode plots (currently only implemented for SISO) - if (sys.inputs == 1 and sys.outputs == 1): - # Generic call (frequency range calculated automatically) - ret_ss = bode(sys) - - # Convert to transfer function and test bode again - systf = tf(sys); - ret_tf = bode(systf) - - # Make sure we can pass a frequency range - bode(sys, omega_ok) - - else: - # Calling bode should generate a not implemented error - self.assertRaises(NotImplementedError, bode, (sys,)) - - def test_options(self): - """Test ability to set parameter values""" - # Generate a Bode plot of a transfer function - sys = ctrl.tf([1000], [1, 25, 100, 0]) - fig1 = plt.figure() - ctrl.bode_plot(sys, dB=False, deg = True, Hz=False) - - # Save the parameter values - left1, right1 = fig1.axes[0].xaxis.get_data_interval() - numpoints1 = len(fig1.axes[0].lines[0].get_data()[0]) - - # Same transfer function, but add a decade on each end - ctrl.config.set_defaults('freqplot', feature_periphery_decades=2) - fig2 = plt.figure() - ctrl.bode_plot(sys, dB=False, deg = True, Hz=False) - left2, right2 = fig2.axes[0].xaxis.get_data_interval() - - # Make sure we got an extra decade on each end - self.assertAlmostEqual(left2, 0.1 * left1) - self.assertAlmostEqual(right2, 10 * right1) - - # Same transfer function, but add more points to the plot - ctrl.config.set_defaults( - 'freqplot', feature_periphery_decades=2, number_of_samples=13) - fig3 = plt.figure() - ctrl.bode_plot(sys, dB=False, deg = True, Hz=False) - numpoints3 = len(fig3.axes[0].lines[0].get_data()[0]) - - # Make sure we got the right number of points - self.assertNotEqual(numpoints1, numpoints3) - self.assertEqual(numpoints3, 13) - - # Reset default parameters to avoid contamination - ctrl.config.reset_defaults() - - -if __name__ == '__main__': - unittest.main() + + ax.semilogx([1e-2, 1e1], 20 * np.log10([1, 1]), 'k-') + assert len(ax.get_lines()) == 2 + + +def test_doubleint(): + """Test typcast bug with double int + + 30 May 2016, RMM: added to replicate typecast bug in freqresp.py + """ + A = np.array([[0, 1], [0, 0]]) + B = np.array([[0], [1]]) + C = np.array([[1, 0]]) + D = 0 + sys = ss(A, B, C, D) + bode(sys) + + +@slycotonly +def test_mimo(): + """Test MIMO frequency response calls""" + A = np.array([[1, 1], [0, 1]]) + B = np.array([[1, 0], [0, 1]]) + C = np.array([[1, 0]]) + D = np.array([[0, 0]]) + omega = np.linspace(10e-2, 10e2, 1000) + sysMIMO = ss(A, B, C, D) + + sysMIMO.freqresp(omega) + tf(sysMIMO) + + +def test_bode_margin(): + """Test bode margins""" + num = [1000] + den = [1, 25, 100, 0] + sys = ctrl.tf(num, den) + plt.figure() + ctrl.bode_plot(sys, margins=True, dB=False, deg=True, Hz=False) + fig = plt.gcf() + allaxes = fig.get_axes() + + mag_to_infinity = (np.array([6.07828691, 6.07828691]), + np.array([1., 1e-8])) + assert_allclose(mag_to_infinity, allaxes[0].lines[2].get_data()) + + gm_to_infinty = (np.array([10., 10.]), + np.array([4e-1, 1e-8])) + assert_allclose(gm_to_infinty, allaxes[0].lines[3].get_data()) + + one_to_gm = (np.array([10., 10.]), + np.array([1., 0.4])) + assert_allclose(one_to_gm, allaxes[0].lines[4].get_data()) + + pm_to_infinity = (np.array([6.07828691, 6.07828691]), + np.array([100000., -157.46405841])) + assert_allclose(pm_to_infinity, allaxes[1].lines[2].get_data()) + + pm_to_phase = (np.array([6.07828691, 6.07828691]), + np.array([-157.46405841, -180.])) + assert_allclose(pm_to_phase, allaxes[1].lines[3].get_data()) + + phase_to_infinity = (np.array([10., 10.]), + np.array([1e-8, -1.8e2])) + assert_allclose(phase_to_infinity, allaxes[1].lines[4].get_data()) + + +@pytest.fixture +def dsystem_dt(request): + """Test systems for test_discrete""" + # SISO state space systems with either fixed or unspecified sampling times + sys = rss(3, 1, 1) + + # MIMO state space systems with either fixed or unspecified sampling times + A = [[-3., 4., 2.], [-1., -3., 0.], [2., 5., 3.]] + B = [[1., 4.], [-3., -3.], [-2., 1.]] + C = [[4., 2., -3.], [1., 4., 3.]] + D = [[-2., 4.], [0., 1.]] + + dt = request.param + systems = {'sssiso': StateSpace(sys.A, sys.B, sys.C, sys.D, dt), + 'ssmimo': StateSpace(A, B, C, D, dt), + 'tf': TransferFunction([1, 1], [1, 2, 1], dt)} + return systems + + +@pytest.fixture +def dsystem_type(request, dsystem_dt): + """Return system by typekey""" + systype = request.param + return dsystem_dt[systype] + + +@pytest.mark.parametrize("dsystem_dt", [0.1, True], indirect=True) +@pytest.mark.parametrize("dsystem_type", ['sssiso', 'ssmimo', 'tf'], + indirect=True) +def test_discrete(dsystem_type): + """Test discrete time frequency response""" + dsys = dsystem_type + # Set frequency range to just below Nyquist freq (for Bode) + omega_ok = np.linspace(10e-4, 0.99, 100) * np.pi / dsys.dt + + # Test frequency response + dsys.freqresp(omega_ok) + + # Check for warning if frequency is out of range + with pytest.warns(UserWarning, match="above.*Nyquist"): + # Look for a warning about sampling above Nyquist frequency + omega_bad = np.linspace(10e-4, 1.1, 10) * np.pi / dsys.dt + dsys.freqresp(omega_bad) + + # Test bode plots (currently only implemented for SISO) + if (dsys.inputs == 1 and dsys.outputs == 1): + # Generic call (frequency range calculated automatically) + bode(dsys) + + # Convert to transfer function and test bode again + systf = tf(dsys) + bode(systf) + + # Make sure we can pass a frequency range + bode(dsys, omega_ok) + + else: + # Calling bode should generate a not implemented error + with pytest.raises(NotImplementedError): + bode((dsys,)) + + +def test_options(editsdefaults): + """Test ability to set parameter values""" + # Generate a Bode plot of a transfer function + sys = ctrl.tf([1000], [1, 25, 100, 0]) + fig1 = plt.figure() + ctrl.bode_plot(sys, dB=False, deg=True, Hz=False) + + # Save the parameter values + left1, right1 = fig1.axes[0].xaxis.get_data_interval() + numpoints1 = len(fig1.axes[0].lines[0].get_data()[0]) + + # Same transfer function, but add a decade on each end + ctrl.config.set_defaults('freqplot', feature_periphery_decades=2) + fig2 = plt.figure() + ctrl.bode_plot(sys, dB=False, deg=True, Hz=False) + left2, right2 = fig2.axes[0].xaxis.get_data_interval() + + # Make sure we got an extra decade on each end + assert_allclose(left2, 0.1 * left1) + assert_allclose(right2, 10 * right1) + + # Same transfer function, but add more points to the plot + ctrl.config.set_defaults( + 'freqplot', feature_periphery_decades=2, number_of_samples=13) + fig3 = plt.figure() + ctrl.bode_plot(sys, dB=False, deg=True, Hz=False) + numpoints3 = len(fig3.axes[0].lines[0].get_data()[0]) + + # Make sure we got the right number of points + assert numpoints1 != numpoints3 + assert numpoints3 == 13 diff --git a/control/tests/input_element_int_test.py b/control/tests/input_element_int_test.py index c6a6f64a3..ecfaab834 100644 --- a/control/tests/input_element_int_test.py +++ b/control/tests/input_element_int_test.py @@ -1,54 +1,66 @@ -# input_element_int_test.py -# -# Author: Kangwon Lee (kangwonlee) -# Date: 22 Oct 2017 -# -# Unit tests contributed as part of PR #158, "SISO tf() may not work -# with numpy arrays with numpy.int elements" -# -# Modified: -# * 29 Dec 2017, RMM - updated file name and added header - -import unittest +"""input_element_int_test.py + +Author: Kangwon Lee (kangwonlee) +Date: 22 Oct 2017 + +Modified: +* 29 Dec 2017, RMM - updated file name and added header +""" + import numpy as np -import control as ctl +from control import dcgain, ss, tf + +class TestTfInputIntElement: + """input_element_int_test + + Unit tests contributed as part of PR gh-158, "SISO tf() may not work + with numpy arrays with numpy.int elements + """ -class TestTfInputIntElement(unittest.TestCase): - # currently these do not pass def test_tf_den_with_numpy_int_element(self): num = 1 den = np.convolve([1, 2, 1], [1, 1, 1]) - sys = ctl.tf(num, den) + sys = tf(num, den) - self.assertAlmostEqual(1.0, ctl.dcgain(sys)) + np.testing.assert_array_max_ulp(1., dcgain(sys)) def test_tf_num_with_numpy_int_element(self): num = np.convolve([1], [1, 1]) den = np.convolve([1, 2, 1], [1, 1, 1]) - sys = ctl.tf(num, den) + sys = tf(num, den) - self.assertAlmostEqual(1.0, ctl.dcgain(sys)) + np.testing.assert_array_max_ulp(1., dcgain(sys)) # currently these pass - def test_tf_input_with_int_element_works(self): + def test_tf_input_with_int_element(self): num = 1 den = np.convolve([1.0, 2, 1], [1, 1, 1]) - sys = ctl.tf(num, den) + sys = tf(num, den) - self.assertAlmostEqual(1.0, ctl.dcgain(sys)) + np.testing.assert_array_max_ulp(1., dcgain(sys)) def test_ss_input_with_int_element(self): - ident = np.matrix(np.identity(2), dtype=int) - a = np.matrix([[0, 1], - [-1, -2]], dtype=int) * ident - b = np.matrix([[0], + a = np.array([[0, 1], + [-1, -2]], dtype=int) + b = np.array([[0], [1]], dtype=int) - c = np.matrix([[0, 1]], dtype=int) - d = 0 + c = np.array([[0, 1]], dtype=int) + d = np.array([[1]], dtype=int) + + sys = ss(a, b, c, d) + sys2 = tf(sys) + np.testing.assert_array_max_ulp(dcgain(sys), dcgain(sys2)) - sys = ctl.ss(a, b, c, d) - sys2 = ctl.ss2tf(sys) - self.assertAlmostEqual(ctl.dcgain(sys), ctl.dcgain(sys2)) + def test_ss_input_with_0int_dcgain(self): + a = np.array([[0, 1], + [-1, -2]], dtype=int) + b = np.array([[0], + [1]], dtype=int) + c = np.array([[0, 1]], dtype=int) + d = 0 + sys = ss(a, b, c, d) + np.testing.assert_allclose(dcgain(sys), 0, + atol=np.finfo(np.float).epsneg) \ No newline at end of file diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 20f289d8c..740416507 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -1,85 +1,89 @@ -#!/usr/bin/env python -# -# iosys_test.py - test input/output system oeprations -# RMM, 17 Apr 2019 -# -# This test suite checks to make sure that basic input/output class -# operations are working. It doesn't do exhaustive testing of -# operations on input/output systems. Separate unit tests should be -# created for that purpose. +"""iosys_test.py - test input/output system oeprations + +RMM, 17 Apr 2019 + +This test suite checks to make sure that basic input/output class +operations are working. It doesn't do exhaustive testing of +operations on input/output systems. Separate unit tests should be +created for that purpose. +""" from __future__ import print_function -import unittest -import warnings + import numpy as np +import pytest import scipy as sp + import control as ct -import control.iosys as ios -from distutils.version import StrictVersion +from control import iosys as ios +from control.tests.conftest import noscipy0 -class TestIOSys(unittest.TestCase): - def setUp(self): - # Turn off numpy matrix warnings - import warnings - warnings.simplefilter('ignore', category=PendingDeprecationWarning) +class TestIOSys: + + @pytest.fixture + def tsys(self): + class TSys: + pass + T = TSys() + """Return some test systems""" # Create a single input/single output linear system - self.siso_linsys = ct.StateSpace( - [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[0]]) + T.siso_linsys = ct.StateSpace( + [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[0]], 0) # Create a multi input/multi output linear system - self.mimo_linsys1 = ct.StateSpace( + T.mimo_linsys1 = ct.StateSpace( [[-1, 1], [0, -2]], [[1, 0], [0, 1]], - [[1, 0], [0, 1]], np.zeros((2,2))) + [[1, 0], [0, 1]], np.zeros((2, 2)), 0) # Create a multi input/multi output linear system - self.mimo_linsys2 = ct.StateSpace( + T.mimo_linsys2 = ct.StateSpace( [[-1, 1], [0, -2]], [[0, 1], [1, 0]], - [[1, 0], [0, 1]], np.zeros((2,2))) + [[1, 0], [0, 1]], np.zeros((2, 2)), 0) # Create simulation parameters - self.T = np.linspace(0, 10, 100) - self.U = np.sin(self.T) - self.X0 = [0, 0] + T.T = np.linspace(0, 10, 100) + T.U = np.sin(T.T) + T.X0 = [0, 0] + + return T - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_linear_iosys(self): + @noscipy0 + def test_linear_iosys(self, tsys): # Create an input/output system from the linear system - linsys = self.siso_linsys + linsys = tsys.siso_linsys iosys = ios.LinearIOSystem(linsys) # Make sure that the right hand side matches linear system for x, u in (([0, 0], 0), ([1, 0], 0), ([0, 1], 0), ([0, 0], 1)): np.testing.assert_array_almost_equal( - np.reshape(iosys._rhs(0, x, u), (-1,1)), + np.reshape(iosys._rhs(0, x, u), (-1, 1)), np.dot(linsys.A, np.reshape(x, (-1, 1))) + np.dot(linsys.B, u)) # Make sure that simulations also line up - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) - np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) + np.testing.assert_allclose(lti_y, ios_y, atol=0.002, rtol=0.) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_tf2io(self): + @noscipy0 + def test_tf2io(self, tsys): # Create a transfer function from the state space system - linsys = self.siso_linsys + linsys = tsys.siso_linsys tfsys = ct.ss2tf(linsys) iosys = ct.tf2io(tfsys) # Verify correctness via simulation - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) - np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) + np.testing.assert_allclose(lti_y, ios_y, atol=0.002, rtol=0.) - def test_ss2io(self): + def test_ss2io(self, tsys): # Create an input/output system from the linear system - linsys = self.siso_linsys + linsys = tsys.siso_linsys iosys = ct.ss2io(linsys) np.testing.assert_array_equal(linsys.A, iosys.A) np.testing.assert_array_equal(linsys.B, iosys.B) @@ -89,50 +93,44 @@ def test_ss2io(self): # Try adding names to things iosys_named = ct.ss2io(linsys, inputs='u', outputs='y', states=['x1', 'x2'], name='iosys_named') - self.assertEqual(iosys_named.find_input('u'), 0) - self.assertEqual(iosys_named.find_input('x'), None) - self.assertEqual(iosys_named.find_output('y'), 0) - self.assertEqual(iosys_named.find_output('u'), None) - self.assertEqual(iosys_named.find_state('x0'), None) - self.assertEqual(iosys_named.find_state('x1'), 0) - self.assertEqual(iosys_named.find_state('x2'), 1) + assert iosys_named.find_input('u') == 0 + assert iosys_named.find_input('x') is None + assert iosys_named.find_output('y') == 0 + assert iosys_named.find_output('u') is None + assert iosys_named.find_state('x0') is None + assert iosys_named.find_state('x1') == 0 + assert iosys_named.find_state('x2') == 1 np.testing.assert_array_equal(linsys.A, iosys_named.A) np.testing.assert_array_equal(linsys.B, iosys_named.B) np.testing.assert_array_equal(linsys.C, iosys_named.C) np.testing.assert_array_equal(linsys.D, iosys_named.D) - # Make sure unspecified inputs/outputs/states are handled properly - def test_iosys_unspecified(self): - # System with unspecified inputs and outputs + def test_iosys_unspecified(self, tsys): + """System with unspecified inputs and outputs""" sys = ios.NonlinearIOSystem(secord_update, secord_output) np.testing.assert_raises(TypeError, sys.__mul__, sys) - # Make sure we can print various types of I/O systems - def test_iosys_print(self): + def test_iosys_print(self, tsys, capsys): + """Make sure we can print various types of I/O systems""" # Send the output to /dev/null - import os - f = open(os.devnull,"w") # Simple I/O system - iosys = ct.ss2io(self.siso_linsys) - print(iosys, file=f) + iosys = ct.ss2io(tsys.siso_linsys) + print(iosys) # I/O system without ninputs, noutputs ios_unspecified = ios.NonlinearIOSystem(secord_update, secord_output) - print(ios_unspecified, file=f) + print(ios_unspecified) # I/O system with derived inputs and outputs ios_linearized = ios.linearize(ios_unspecified, [0, 0], [0]) - print(ios_linearized, file=f) - - f.close() + print(ios_linearized) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_nonlinear_iosys(self): + @noscipy0 + def test_nonlinear_iosys(self, tsys): # Create a simple nonlinear I/O system nlsys = ios.NonlinearIOSystem(predprey) - T = self.T + T = tsys.T # Start by simulating from an equilibrium point X0 = [0, 0] @@ -147,25 +145,27 @@ def test_nonlinear_iosys(self): # Simulate a linear function as a nonlinear function and compare # # Create a single input/single output linear system - linsys = self.siso_linsys + linsys = tsys.siso_linsys # Create a nonlinear system with the same dynamics nlupd = lambda t, x, u, params: \ - np.reshape(np.dot(linsys.A, np.reshape(x, (-1, 1))) + np.dot(linsys.B, u), (-1,)) + np.reshape(np.dot(linsys.A, np.reshape(x, (-1, 1))) + + np.dot(linsys.B, u), (-1,)) nlout = lambda t, x, u, params: \ - np.reshape(np.dot(linsys.C, np.reshape(x, (-1, 1))) + np.dot(linsys.D, u), (-1,)) + np.reshape(np.dot(linsys.C, np.reshape(x, (-1, 1))) + + np.dot(linsys.D, u), (-1,)) nlsys = ios.NonlinearIOSystem(nlupd, nlout) # Make sure that simulations also line up - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) ios_t, ios_y = ios.input_output_response(nlsys, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) - def test_linearize(self): + def test_linearize(self, tsys): # Create a single input/single output linear system - linsys = self.siso_linsys + linsys = tsys.siso_linsys iosys = ios.LinearIOSystem(linsys) # Linearize it and make sure we get back what we started with @@ -178,8 +178,10 @@ def test_linearize(self): # Create a simple nonlinear system to check (kinematic car) def kincar_update(t, x, u, params): return np.array([np.cos(x[2]) * u[0], np.sin(x[2]) * u[0], u[1]]) + def kincar_output(t, x, u, params): return np.array([x[0], x[1]]) + iosys = ios.NonlinearIOSystem(kincar_update, kincar_output) linearized = iosys.linearize([0, 0, 0], [0, 0]) np.testing.assert_array_almost_equal(linearized.A, np.zeros((3,3))) @@ -189,13 +191,13 @@ def kincar_output(t, x, u, params): linearized.C, [[1, 0, 0], [0, 1, 0]]) np.testing.assert_array_almost_equal(linearized.D, np.zeros((2,2))) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_connect(self): + + @noscipy0 + def test_connect(self, tsys): # Define a couple of (linear) systems to interconnection - linsys1 = self.siso_linsys + linsys1 = tsys.siso_linsys iosys1 = ios.LinearIOSystem(linsys1) - linsys2 = self.siso_linsys + linsys2 = tsys.siso_linsys iosys2 = ios.LinearIOSystem(linsys2) # Connect systems in different ways and compare to StateSpace @@ -208,8 +210,8 @@ def test_connect(self): ) # Run a simulation and compare to linear response - T, U = self.T, self.U - X0 = np.concatenate((self.X0, self.X0)) + T, U = tsys.T, tsys.U + X0 = np.concatenate((tsys.X0, tsys.X0)) ios_t, ios_y, ios_x = ios.input_output_response( iosys_series, T, U, X0, return_x=True) lti_t, lti_y, lti_x = ct.forced_response(linsys_series, T, U, X0) @@ -217,7 +219,7 @@ def test_connect(self): np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) # Connect systems with different timebases - linsys2c = self.siso_linsys + linsys2c = tsys.siso_linsys linsys2c.dt = 0 # Reset the timebase iosys2c = ios.LinearIOSystem(linsys2c) iosys_series = ios.InterconnectedSystem( @@ -226,7 +228,7 @@ def test_connect(self): 0, # input = first system 1 # output = second system ) - self.assertTrue(ct.isctime(iosys_series, strict=True)) + assert ct.isctime(iosys_series, strict=True) ios_t, ios_y, ios_x = ios.input_output_response( iosys_series, T, U, X0, return_x=True) lti_t, lti_y, lti_x = ct.forced_response(linsys_series, T, U, X0) @@ -248,11 +250,10 @@ def test_connect(self): np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_static_nonlinearity(self): + @noscipy0 + def test_static_nonlinearity(self, tsys): # Linear dynamical system - linsys = self.siso_linsys + linsys = tsys.siso_linsys ioslin = ios.LinearIOSystem(linsys) # Nonlinear saturation @@ -261,7 +262,7 @@ def test_static_nonlinearity(self): nlsat = ios.NonlinearIOSystem(None, sat_output, inputs=1, outputs=1) # Set up parameters for simulation - T, U, X0 = self.T, 2 * self.U, self.X0 + T, U, X0 = tsys.T, 2 * tsys.U, tsys.X0 Usat = np.vectorize(sat)(U) # Make sure saturation works properly by comparing linear system with @@ -272,19 +273,20 @@ def test_static_nonlinearity(self): np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_array_almost_equal(lti_y, ios_y, decimal=2) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_algebraic_loop(self): + + @noscipy0 + @pytest.mark.filterwarnings("ignore:Duplicate name::control.iosys") + def test_algebraic_loop(self, tsys): # Create some linear and nonlinear systems to play with - linsys = self.siso_linsys + linsys = tsys.siso_linsys lnios = ios.LinearIOSystem(linsys) nlios = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u*u, inputs=1, outputs=1) + lambda t, x, u, params: u*u, inputs=1, outputs=1, dt=0) nlios1 = nlios.copy() nlios2 = nlios.copy() # Set up parameters for simulation - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 # Single nonlinear system - no states ios_t, ios_y = ios.input_output_response(nlios, T, U) @@ -308,7 +310,7 @@ def test_algebraic_loop(self): iosys = ios.InterconnectedSystem( (lnios, nlios), # linear system w/ nonlinear feedback ((1,), # feedback interconnection (sig to 0) - (0, (1, 0, -1))), + (0, (1, 0, -1))), 0, # input to linear system 0 # output from linear system ) @@ -324,11 +326,12 @@ def test_algebraic_loop(self): 0, 0 ) args = (iosys, T, U) - self.assertRaises(RuntimeError, ios.input_output_response, *args) + with pytest.raises(RuntimeError): + ios.input_output_response(*args) # Algebraic loop due to feedthrough term linsys = ct.StateSpace( - [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[1]]) + [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[1]], 0) lnios = ios.LinearIOSystem(linsys) iosys = ios.InterconnectedSystem( (nlios, lnios), # linear system w/ nonlinear feedback @@ -338,20 +341,20 @@ def test_algebraic_loop(self): ) args = (iosys, T, U, X0) # ios_t, ios_y = ios.input_output_response(iosys, T, U, X0) - self.assertRaises(RuntimeError, ios.input_output_response, *args) + with pytest.raises(RuntimeError): + ios.input_output_response(*args) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_summer(self): + @noscipy0 + def test_summer(self, tsys): # Construct a MIMO system for testing - linsys = self.mimo_linsys1 + linsys = tsys.mimo_linsys1 linio = ios.LinearIOSystem(linsys) linsys_parallel = linsys + linsys iosys_parallel = linio + linio # Set up parameters for simulation - T = self.T + T = tsys.T U = [np.sin(T), np.cos(T)] X0 = 0 @@ -359,20 +362,19 @@ def test_summer(self): ios_t, ios_y = ios.input_output_response(iosys_parallel, T, U, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_rmul(self): + @noscipy0 + def test_rmul(self, tsys): # Test right multiplication # TODO: replace with better tests when conversions are implemented # Set up parameters for simulation - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 # Linear system with input and output nonlinearities # Also creates a nested interconnected system - ioslin = ios.LinearIOSystem(self.siso_linsys) + ioslin = ios.LinearIOSystem(tsys.siso_linsys) nlios = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u*u, inputs=1, outputs=1) + lambda t, x, u, params: u*u, inputs=1, outputs=1, dt=0) sys1 = nlios * ioslin sys2 = ios.InputOutputSystem.__rmul__(nlios, sys1) @@ -381,13 +383,12 @@ def test_rmul(self): lti_t, lti_y, lti_x = ct.forced_response(ioslin, T, U*U, X0) np.testing.assert_array_almost_equal(ios_y, lti_y*lti_y, decimal=3) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_neg(self): + @noscipy0 + def test_neg(self, tsys): """Test negation of a system""" # Set up parameters for simulation - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 # Static nonlinear system nlios = ios.NonlinearIOSystem(None, \ @@ -397,7 +398,7 @@ def test_neg(self): # Linear system with input nonlinearity # Also creates a nested interconnected system - ioslin = ios.LinearIOSystem(self.siso_linsys) + ioslin = ios.LinearIOSystem(tsys.siso_linsys) sys = (ioslin) * (-nlios) # Make sure we got the right thing (via simulation comparison) @@ -405,36 +406,34 @@ def test_neg(self): lti_t, lti_y, lti_x = ct.forced_response(ioslin, T, U*U, X0) np.testing.assert_array_almost_equal(ios_y, -lti_y, decimal=3) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_feedback(self): + @noscipy0 + def test_feedback(self, tsys): # Set up parameters for simulation - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 # Linear system with constant feedback (via "nonlinear" mapping) - ioslin = ios.LinearIOSystem(self.siso_linsys) + ioslin = ios.LinearIOSystem(tsys.siso_linsys) nlios = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u, inputs=1, outputs=1) + lambda t, x, u, params: u, inputs=1, outputs=1, dt=0) iosys = ct.feedback(ioslin, nlios) - linsys = ct.feedback(self.siso_linsys, 1) + linsys = ct.feedback(tsys.siso_linsys, 1) ios_t, ios_y = ios.input_output_response(iosys, T, U, X0) lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) np.testing.assert_allclose(ios_y, lti_y,atol=0.002,rtol=0.) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_bdalg_functions(self): + @noscipy0 + def test_bdalg_functions(self, tsys): """Test block diagram functions algebra on I/O systems""" # Set up parameters for simulation - T = self.T + T = tsys.T U = [np.sin(T), np.cos(T)] X0 = 0 # Set up systems to be composed - linsys1 = self.mimo_linsys1 + linsys1 = tsys.mimo_linsys1 linio1 = ios.LinearIOSystem(linsys1) - linsys2 = self.mimo_linsys2 + linsys2 = tsys.mimo_linsys2 linio2 = ios.LinearIOSystem(linsys2) # Series interconnection @@ -447,7 +446,7 @@ def test_bdalg_functions(self): # Make sure that systems don't commute linsys_series = ct.series(linsys2, linsys1) lin_t, lin_y, lin_x = ct.forced_response(linsys_series, T, U, X0) - self.assertFalse((np.abs(lin_y - ios_y) < 1e-3).all()) + assert not (np.abs(lin_y - ios_y) < 1e-3).all() # Parallel interconnection linsys_parallel = ct.parallel(linsys1, linsys2) @@ -470,11 +469,10 @@ def test_bdalg_functions(self): ios_t, ios_y = ios.input_output_response(iosys_feedback, T, U, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_nonsquare_bdalg(self): + @noscipy0 + def test_nonsquare_bdalg(self, tsys): # Set up parameters for simulation - T = self.T + T = tsys.T U2 = [np.sin(T), np.cos(T)] U3 = [np.sin(T), np.cos(T), T] X0 = 0 @@ -519,11 +517,11 @@ def test_nonsquare_bdalg(self): # Mismatch should generate exception args = (iosys_3i2o, iosys_3i2o) - self.assertRaises(ValueError, ct.series, *args) + with pytest.raises(ValueError): + ct.series(*args) - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_discrete(self): + @noscipy0 + def test_discrete(self, tsys): """Test discrete time functionality""" # Create some linear and nonlinear systems to play with linsys = ct.StateSpace( @@ -531,7 +529,7 @@ def test_discrete(self): lnios = ios.LinearIOSystem(linsys) # Set up parameters for simulation - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 # Simulate and compare to LTI output ios_t, ios_y = ios.input_output_response(lnios, T, U, X0) @@ -540,12 +538,12 @@ def test_discrete(self): np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) # Test MIMO system, converted to discrete time - linsys = ct.StateSpace(self.mimo_linsys1) - linsys.dt = self.T[1] - self.T[0] + linsys = ct.StateSpace(tsys.mimo_linsys1) + linsys.dt = tsys.T[1] - tsys.T[0] lnios = ios.LinearIOSystem(linsys) # Set up parameters for simulation - T = self.T + T = tsys.T U = [np.sin(T), np.cos(T)] X0 = 0 @@ -555,13 +553,13 @@ def test_discrete(self): np.testing.assert_allclose(ios_t, lin_t,atol=0.002,rtol=0.) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) - def test_find_eqpts(self): + def test_find_eqpts(self, tsys): """Test find_eqpt function""" # Simple equilibrium point with no inputs nlsys = ios.NonlinearIOSystem(predprey) xeq, ueq, result = ios.find_eqpt( nlsys, [1.6, 1.2], None, return_result=True) - self.assertTrue(result.success) + assert result.success np.testing.assert_array_almost_equal(xeq, [1.64705879, 1.17923874]) np.testing.assert_array_almost_equal( nlsys._rhs(0, xeq, ueq), np.zeros((2,))) @@ -572,7 +570,7 @@ def test_find_eqpts(self): # Make sure the origin is a fixed point xeq, ueq, result = ios.find_eqpt( nlsys, [0, 0, 0, 0], [0, 4*9.8], return_result=True) - self.assertTrue(result.success) + assert result.success np.testing.assert_array_almost_equal( nlsys._rhs(0, xeq, ueq), np.zeros((4,))) np.testing.assert_array_almost_equal(xeq, [0, 0, 0, 0]) @@ -580,7 +578,7 @@ def test_find_eqpts(self): # Use a small lateral force to cause motion xeq, ueq, result = ios.find_eqpt( nlsys, [0, 0, 0, 0], [0.01, 4*9.8], return_result=True) - self.assertTrue(result.success) + assert result.success np.testing.assert_array_almost_equal( nlsys._rhs(0, xeq, ueq), np.zeros((4,)), decimal=5) @@ -588,7 +586,7 @@ def test_find_eqpts(self): xeq, ueq, result = ios.find_eqpt( nlsys, [0, 0, 0, 0], [0.01, 4*9.8], y0=[0.1, 0.1], return_result=True) - self.assertTrue(result.success) + assert result.success np.testing.assert_array_almost_equal( nlsys._out(0, xeq, ueq), [0.1, 0.1], decimal=5) np.testing.assert_array_almost_equal( @@ -598,7 +596,7 @@ def test_find_eqpts(self): xeq, ueq, result = ios.find_eqpt( nlsys, [0, 0, 0, 0], [0.01, 4*9.8], y0=[0.1, 0.1], iy = [0, 1], return_result=True) - self.assertTrue(result.success) + assert result.success np.testing.assert_array_almost_equal( nlsys._out(0, xeq, ueq), [0.1, 0.1], decimal=5) np.testing.assert_array_almost_equal( @@ -619,7 +617,7 @@ def test_find_eqpts(self): nlsys_full, [0, 0, 0, 0, 0, 0], [0.01, 4*9.8], y0=[0, 0, 0.1, 0.1, 0, 0], iy = [2, 3], idx=[2, 3, 4, 5], ix=[0, 1], return_result=True) - self.assertTrue(result.success) + assert result.success np.testing.assert_array_almost_equal( nlsys_full._out(0, xeq, ueq)[[2, 3]], [0.1, 0.1], decimal=5) np.testing.assert_array_almost_equal( @@ -631,7 +629,7 @@ def test_find_eqpts(self): nlsys_full, [0, 0, 0, 0, 0, 0], [0.01, 4*9.8], y0=[0, 0, 0.1, 0.1, 0, 0], iy=[3], iu=[1], idx=[2, 3, 4, 5], ix=[0, 1], return_result=True) - self.assertTrue(result.success) + assert result.success np.testing.assert_almost_equal(ueq[1], 4*9.8, decimal=5) np.testing.assert_array_almost_equal( nlsys_full._out(0, xeq, ueq)[[3]], [0.1], decimal=5) @@ -644,7 +642,7 @@ def test_find_eqpts(self): y0=[0, 0, 0, 0.1, 0, 0], iy=[3], dx0=[0.1, 0, 0, 0, 0, 0], idx=[1, 2, 3, 4, 5], ix=[0, 1], return_result=True) - self.assertTrue(result.success) + assert result.success np.testing.assert_array_almost_equal( nlsys_full._out(0, xeq, ueq)[-3:], [0.1, 0, 0], decimal=5) np.testing.assert_array_almost_equal( @@ -658,16 +656,15 @@ def test_find_eqpts(self): # If result is returned, user has to check xeq, ueq, result = ios.find_eqpt( lnios, [0, 0], [0], y0=[1], return_result=True) - self.assertFalse(result.success) + assert not result.success # If result is not returned, find_eqpt should return None xeq, ueq = ios.find_eqpt(lnios, [0, 0], [0], y0=[1]) - self.assertEqual(xeq, None) - self.assertEqual(ueq, None) + assert xeq is None + assert ueq is None - @unittest.skipIf(StrictVersion(sp.__version__) < "1.0", - "requires SciPy 1.0 or greater") - def test_params(self): + @noscipy0 + def test_params(self, tsys): # Start with the default set of parameters ios_secord_default = ios.NonlinearIOSystem( secord_update, secord_output, inputs=1, outputs=1, states=2) @@ -717,51 +714,41 @@ def test_params(self): np.testing.assert_array_almost_equal(w, [4j, -4j, 4j, -4j]) # Check for warning if we try to set params for LinearIOSystem - linsys = self.siso_linsys + linsys = tsys.siso_linsys iosys = ios.LinearIOSystem(linsys) - T, U, X0 = self.T, self.U, self.X0 + T, U, X0 = tsys.T, tsys.U, tsys.X0 lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) - with warnings.catch_warnings(record=True) as warnval: - # Turn off deprecation warnings - warnings.simplefilter("ignore", category=DeprecationWarning) - warnings.simplefilter("ignore", category=PendingDeprecationWarning) - - # Trigger a warning + with pytest.warns(UserWarning, match="LinearIOSystem.*ignored"): ios_t, ios_y = ios.input_output_response( iosys, T, U, X0, params={'something':0}) - # Verify that we got a warning - self.assertEqual(len(warnval), 1) - self.assertTrue(issubclass(warnval[-1].category, UserWarning)) - self.assertTrue("LinearIOSystem" in str(warnval[-1].message)) - self.assertTrue("ignored" in str(warnval[-1].message)) # Check to make sure results are OK np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) - def test_named_signals(self): + def test_named_signals(self, tsys): sys1 = ios.NonlinearIOSystem( updfcn = lambda t, x, u, params: np.array( - np.dot(self.mimo_linsys1.A, np.reshape(x, (-1, 1))) \ - + np.dot(self.mimo_linsys1.B, np.reshape(u, (-1, 1))) + np.dot(tsys.mimo_linsys1.A, np.reshape(x, (-1, 1))) \ + + np.dot(tsys.mimo_linsys1.B, np.reshape(u, (-1, 1))) ).reshape(-1,), outfcn = lambda t, x, u, params: np.array( - np.dot(self.mimo_linsys1.C, np.reshape(x, (-1, 1))) \ - + np.dot(self.mimo_linsys1.D, np.reshape(u, (-1, 1))) + np.dot(tsys.mimo_linsys1.C, np.reshape(x, (-1, 1))) \ + + np.dot(tsys.mimo_linsys1.D, np.reshape(u, (-1, 1))) ).reshape(-1,), inputs = ('u[0]', 'u[1]'), outputs = ('y[0]', 'y[1]'), - states = self.mimo_linsys1.states, - name = 'sys1') - sys2 = ios.LinearIOSystem(self.mimo_linsys2, + states = tsys.mimo_linsys1.states, + name = 'sys1', dt=0) + sys2 = ios.LinearIOSystem(tsys.mimo_linsys2, inputs = ('u[0]', 'u[1]'), outputs = ('y[0]', 'y[1]'), name = 'sys2') # Series interconnection (sys1 * sys2) using __mul__ ios_mul = sys1 * sys2 - ss_series = self.mimo_linsys1 * self.mimo_linsys2 + ss_series = tsys.mimo_linsys1 * tsys.mimo_linsys2 lin_series = ct.linearize(ios_mul, 0, 0) np.testing.assert_array_almost_equal(ss_series.A, lin_series.A) np.testing.assert_array_almost_equal(ss_series.B, lin_series.B) @@ -770,7 +757,7 @@ def test_named_signals(self): # Series interconnection (sys1 * sys2) using series ios_series = ct.series(sys2, sys1) - ss_series = ct.series(self.mimo_linsys2, self.mimo_linsys1) + ss_series = ct.series(tsys.mimo_linsys2, tsys.mimo_linsys1) lin_series = ct.linearize(ios_series, 0, 0) np.testing.assert_array_almost_equal(ss_series.A, lin_series.A) np.testing.assert_array_almost_equal(ss_series.B, lin_series.B) @@ -803,36 +790,37 @@ def test_named_signals(self): inplist=('sys1.u[0]', 'sys1.u[1]'), outlist=('sys2.u[0]', 'sys2.u[1]') # = sys1.y[0], sys1.y[1] ) - ss_feedback = ct.feedback(self.mimo_linsys1, self.mimo_linsys2) + ss_feedback = ct.feedback(tsys.mimo_linsys1, tsys.mimo_linsys2) lin_feedback = ct.linearize(ios_connect, 0, 0) np.testing.assert_array_almost_equal(ss_feedback.A, lin_feedback.A) np.testing.assert_array_almost_equal(ss_feedback.B, lin_feedback.B) np.testing.assert_array_almost_equal(ss_feedback.C, lin_feedback.C) np.testing.assert_array_almost_equal(ss_feedback.D, lin_feedback.D) - def test_sys_naming_convention(self): - """Enforce generic system names 'sys[i]' to be present when systems are created - without explicit names.""" + def test_sys_naming_convention(self, tsys): + """Enforce generic system names 'sys[i]' to be present when systems are + created without explicit names.""" ct.InputOutputSystem.idCounter = 0 - sys = ct.LinearIOSystem(self.mimo_linsys1) - self.assertEquals(sys.name, "sys[0]") - self.assertEquals(sys.copy().name, "copy of sys[0]") - + sys = ct.LinearIOSystem(tsys.mimo_linsys1) + + assert sys.name == "sys[0]" + assert sys.copy().name == "copy of sys[0]" + namedsys = ios.NonlinearIOSystem( - updfcn = lambda t, x, u, params: x, - outfcn = lambda t, x, u, params: u, - inputs = ('u[0]', 'u[1]'), - outputs = ('y[0]', 'y[1]'), - states = self.mimo_linsys1.states, - name = 'namedsys') + updfcn=lambda t, x, u, params: x, + outfcn=lambda t, x, u, params: u, + inputs=('u[0]', 'u[1]'), + outputs=('y[0]', 'y[1]'), + states=tsys.mimo_linsys1.states, + name='namedsys') unnamedsys1 = ct.NonlinearIOSystem( - lambda t,x,u,params: x, inputs=2, outputs=2, states=2 + lambda t, x, u, params: x, inputs=2, outputs=2, states=2 ) unnamedsys2 = ct.NonlinearIOSystem( - None, lambda t,x,u,params: u, inputs=2, outputs=2 + None, lambda t, x, u, params: u, inputs=2, outputs=2 ) - self.assertEquals(unnamedsys2.name, "sys[2]") + assert unnamedsys2.name == "sys[2]" # Unnamed/unnamed connections uu_series = unnamedsys1 * unnamedsys2 @@ -840,34 +828,33 @@ def test_sys_naming_convention(self): u_neg = - unnamedsys1 uu_feedback = unnamedsys2.feedback(unnamedsys1) uu_dup = unnamedsys1 * unnamedsys1.copy() - uu_hierarchical = uu_series*unnamedsys1 + uu_hierarchical = uu_series * unnamedsys1 - self.assertEquals(uu_series.name, "sys[3]") - self.assertEquals(uu_parallel.name, "sys[4]") - self.assertEquals(u_neg.name, "sys[5]") - self.assertEquals(uu_feedback.name, "sys[6]") - self.assertEquals(uu_dup.name, "sys[7]") - self.assertEquals(uu_hierarchical.name, "sys[8]") + assert uu_series.name == "sys[3]" + assert uu_parallel.name == "sys[4]" + assert u_neg.name == "sys[5]" + assert uu_feedback.name == "sys[6]" + assert uu_dup.name == "sys[7]" + assert uu_hierarchical.name == "sys[8]" # Unnamed/named connections un_series = unnamedsys1 * namedsys un_parallel = unnamedsys1 + namedsys un_feedback = unnamedsys2.feedback(namedsys) un_dup = unnamedsys1 * namedsys.copy() - un_hierarchical = uu_series*unnamedsys1 + un_hierarchical = uu_series * unnamedsys1 - self.assertEquals(un_series.name, "sys[9]") - self.assertEquals(un_parallel.name, "sys[10]") - self.assertEquals(un_feedback.name, "sys[11]") - self.assertEquals(un_dup.name, "sys[12]") - self.assertEquals(un_hierarchical.name, "sys[13]") + assert un_series.name == "sys[9]" + assert un_parallel.name == "sys[10]" + assert un_feedback.name == "sys[11]" + assert un_dup.name == "sys[12]" + assert un_hierarchical.name == "sys[13]" # Same system conflict - with warnings.catch_warnings(record=True) as warnval: + with pytest.warns(UserWarning): unnamedsys1 * unnamedsys1 - self.assertEqual(len(warnval), 1) - def test_signals_naming_convention(self): + def test_signals_naming_convention(self, tsys): """Enforce generic names to be present when systems are created without explicit signal names: input: 'u[i]' @@ -875,30 +862,30 @@ def test_signals_naming_convention(self): output: 'y[i]' """ ct.InputOutputSystem.idCounter = 0 - sys = ct.LinearIOSystem(self.mimo_linsys1) + sys = ct.LinearIOSystem(tsys.mimo_linsys1) for statename in ["x[0]", "x[1]"]: - self.assertTrue(statename in sys.state_index) + assert statename in sys.state_index for inputname in ["u[0]", "u[1]"]: - self.assertTrue(inputname in sys.input_index) + assert inputname in sys.input_index for outputname in ["y[0]", "y[1]"]: - self.assertTrue(outputname in sys.output_index) - self.assertEqual(len(sys.state_index), sys.nstates) - self.assertEqual(len(sys.input_index), sys.ninputs) - self.assertEqual(len(sys.output_index), sys.noutputs) + assert outputname in sys.output_index + assert len(sys.state_index) == sys.nstates + assert len(sys.input_index) == sys.ninputs + assert len(sys.output_index) == sys.noutputs namedsys = ios.NonlinearIOSystem( - updfcn = lambda t, x, u, params: x, - outfcn = lambda t, x, u, params: u, - inputs = ('u0'), - outputs = ('y0'), - states = ('x0'), - name = 'namedsys') + updfcn=lambda t, x, u, params: x, + outfcn=lambda t, x, u, params: u, + inputs=('u0'), + outputs=('y0'), + states=('x0'), + name='namedsys') unnamedsys = ct.NonlinearIOSystem( - lambda t,x,u,params: x, inputs=1, outputs=1, states=1 + lambda t, x, u, params: x, inputs=1, outputs=1, states=1 ) - self.assertTrue('u0' in namedsys.input_index) - self.assertTrue('y0' in namedsys.output_index) - self.assertTrue('x0' in namedsys.state_index) + assert 'u0' in namedsys.input_index + assert 'y0' in namedsys.output_index + assert 'x0' in namedsys.state_index # Unnamed/named connections un_series = unnamedsys * namedsys @@ -908,26 +895,25 @@ def test_signals_naming_convention(self): un_hierarchical = un_series*unnamedsys u_neg = - unnamedsys - self.assertTrue("sys[1].x[0]" in un_series.state_index) - self.assertTrue("namedsys.x0" in un_series.state_index) - self.assertTrue("sys[1].x[0]" in un_parallel.state_index) - self.assertTrue("namedsys.x0" in un_series.state_index) - self.assertTrue("sys[1].x[0]" in un_feedback.state_index) - self.assertTrue("namedsys.x0" in un_feedback.state_index) - self.assertTrue("sys[1].x[0]" in un_dup.state_index) - self.assertTrue("copy of namedsys.x0" in un_dup.state_index) - self.assertTrue("sys[1].x[0]" in un_hierarchical.state_index) - self.assertTrue("sys[2].sys[1].x[0]" in un_hierarchical.state_index) - self.assertTrue("sys[1].x[0]" in u_neg.state_index) + assert "sys[1].x[0]" in un_series.state_index + assert "namedsys.x0" in un_series.state_index + assert "sys[1].x[0]" in un_parallel.state_index + assert "namedsys.x0" in un_series.state_index + assert "sys[1].x[0]" in un_feedback.state_index + assert "namedsys.x0" in un_feedback.state_index + assert "sys[1].x[0]" in un_dup.state_index + assert "copy of namedsys.x0" in un_dup.state_index + assert "sys[1].x[0]" in un_hierarchical.state_index + assert "sys[2].sys[1].x[0]" in un_hierarchical.state_index + assert "sys[1].x[0]" in u_neg.state_index # Same system conflict - with warnings.catch_warnings(record=True) as warnval: + with pytest.warns(UserWarning): same_name_series = unnamedsys * unnamedsys - self.assertEquals(len(warnval), 1) - self.assertTrue("sys[1].x[0]" in same_name_series.state_index) - self.assertTrue("copy of sys[1].x[0]" in same_name_series.state_index) + assert "sys[1].x[0]" in same_name_series.state_index + assert "copy of sys[1].x[0]" in same_name_series.state_index - def test_named_signals_linearize_inconsistent(self): + def test_named_signals_linearize_inconsistent(self, tsys): """Mare sure that providing inputs or outputs not consistent with updfcn or outfcn fail """ @@ -935,15 +921,15 @@ def test_named_signals_linearize_inconsistent(self): def updfcn(t, x, u, params): """2 inputs, 2 states""" return np.array( - np.dot(self.mimo_linsys1.A, np.reshape(x, (-1, 1))) - + np.dot(self.mimo_linsys1.B, np.reshape(u, (-1, 1))) + np.dot(tsys.mimo_linsys1.A, np.reshape(x, (-1, 1))) + + np.dot(tsys.mimo_linsys1.B, np.reshape(u, (-1, 1))) ).reshape(-1,) def outfcn(t, x, u, params): """2 states, 2 outputs""" return np.array( - self.mimo_linsys1.C * np.reshape(x, (-1, 1)) - + self.mimo_linsys1.D * np.reshape(u, (-1, 1)) + tsys.mimo_linsys1.C * np.reshape(x, (-1, 1)) + + tsys.mimo_linsys1.D * np.reshape(u, (-1, 1)) ).reshape(-1,) for inputs, outputs in [ @@ -955,46 +941,48 @@ def outfcn(t, x, u, params): outfcn=outfcn, inputs=inputs, outputs=outputs, - states=self.mimo_linsys1.states, + states=tsys.mimo_linsys1.states, name='sys1') - self.assertRaises(ValueError, sys1.linearize, [0, 0], [0, 0]) + with pytest.raises(ValueError): + sys1.linearize([0, 0], [0, 0]) sys2 = ios.NonlinearIOSystem(updfcn=updfcn, outfcn=outfcn, inputs=('u[0]', 'u[1]'), outputs=('y[0]', 'y[1]'), - states=self.mimo_linsys1.states, + states=tsys.mimo_linsys1.states, name='sys1') for x0, u0 in [([0], [0, 0]), ([0, 0, 0], [0, 0]), ([0, 0], [0]), ([0, 0], [0, 0, 0])]: - self.assertRaises(ValueError, sys2.linearize, x0, u0) + with pytest.raises(ValueError): + sys2.linearize(x0, u0) - def test_lineariosys_statespace(self): + def test_lineariosys_statespace(self, tsys): """Make sure that a LinearIOSystem is also a StateSpace object""" - iosys_siso = ct.LinearIOSystem(self.siso_linsys) - self.assertTrue(isinstance(iosys_siso, ct.StateSpace)) + iosys_siso = ct.LinearIOSystem(tsys.siso_linsys) + assert isinstance(iosys_siso, ct.StateSpace) # Make sure that state space functions work for LinearIOSystems np.testing.assert_array_equal( - iosys_siso.pole(), self.siso_linsys.pole()) + iosys_siso.pole(), tsys.siso_linsys.pole()) omega = np.logspace(.1, 10, 100) mag_io, phase_io, omega_io = iosys_siso.freqresp(omega) - mag_ss, phase_ss, omega_ss = self.siso_linsys.freqresp(omega) + mag_ss, phase_ss, omega_ss = tsys.siso_linsys.freqresp(omega) np.testing.assert_array_equal(mag_io, mag_ss) np.testing.assert_array_equal(phase_io, phase_ss) np.testing.assert_array_equal(omega_io, omega_ss) # LinearIOSystem methods should override StateSpace methods io_mul = iosys_siso * iosys_siso - self.assertTrue(isinstance(io_mul, ct.InputOutputSystem)) + assert isinstance(io_mul, ct.InputOutputSystem) # But also retain linear structure - self.assertTrue(isinstance(io_mul, ct.StateSpace)) + assert isinstance(io_mul, ct.StateSpace) # And make sure the systems match - ss_series = self.siso_linsys * self.siso_linsys + ss_series = tsys.siso_linsys * tsys.siso_linsys np.testing.assert_array_equal(io_mul.A, ss_series.A) np.testing.assert_array_equal(io_mul.B, ss_series.B) np.testing.assert_array_equal(io_mul.C, ss_series.C) @@ -1002,8 +990,8 @@ def test_lineariosys_statespace(self): # Make sure that series does the same thing io_series = ct.series(iosys_siso, iosys_siso) - self.assertTrue(isinstance(io_series, ct.InputOutputSystem)) - self.assertTrue(isinstance(io_series, ct.StateSpace)) + assert isinstance(io_series, ct.InputOutputSystem) + assert isinstance(io_series, ct.StateSpace) np.testing.assert_array_equal(io_series.A, ss_series.A) np.testing.assert_array_equal(io_series.B, ss_series.B) np.testing.assert_array_equal(io_series.C, ss_series.C) @@ -1011,77 +999,65 @@ def test_lineariosys_statespace(self): # Test out feedback as well io_feedback = ct.feedback(iosys_siso, iosys_siso) - self.assertTrue(isinstance(io_series, ct.InputOutputSystem)) + assert isinstance(io_series, ct.InputOutputSystem) # But also retain linear structure - self.assertTrue(isinstance(io_series, ct.StateSpace)) + assert isinstance(io_series, ct.StateSpace) # And make sure the systems match - ss_feedback = ct.feedback(self.siso_linsys, self.siso_linsys) + ss_feedback = ct.feedback(tsys.siso_linsys, tsys.siso_linsys) np.testing.assert_array_equal(io_feedback.A, ss_feedback.A) np.testing.assert_array_equal(io_feedback.B, ss_feedback.B) np.testing.assert_array_equal(io_feedback.C, ss_feedback.C) np.testing.assert_array_equal(io_feedback.D, ss_feedback.D) - def test_duplicates(self): - nlios = ios.NonlinearIOSystem(lambda t,x,u,params: x, \ - lambda t, x, u, params: u*u, \ - inputs=1, outputs=1, states=1, name="sys") - - # Turn off deprecation warnings - warnings.simplefilter("ignore", category=DeprecationWarning) - warnings.simplefilter("ignore", category=PendingDeprecationWarning) + def test_duplicates(self, tsys): + nlios = ios.NonlinearIOSystem(lambda t, x, u, params: x, + lambda t, x, u, params: u * u, + inputs=1, outputs=1, states=1, + name="sys", dt=0) # Duplicate objects - with warnings.catch_warnings(record=True) as warnval: - # Trigger a warning + with pytest.warns(UserWarning, match="Duplicate object"): ios_series = nlios * nlios - # Verify that we got a warning - self.assertEqual(len(warnval), 1) - self.assertTrue(issubclass(warnval[-1].category, UserWarning)) - self.assertTrue("Duplicate object" in str(warnval[-1].message)) - # Nonduplicate objects nlios1 = nlios.copy() nlios2 = nlios.copy() - with warnings.catch_warnings(record=True) as warnval: + with pytest.warns(UserWarning, match="Duplicate name"): ios_series = nlios1 * nlios2 - self.assertEquals(len(warnval), 1) - # when subsystems have the same name, duplicates are - # renamed - self.assertTrue("copy of sys_1.x[0]" in ios_series.state_index.keys()) - self.assertTrue("copy of sys.x[0]" in ios_series.state_index.keys()) + assert "copy of sys_1.x[0]" in ios_series.state_index.keys() + assert "copy of sys.x[0]" in ios_series.state_index.keys() # Duplicate names - iosys_siso = ct.LinearIOSystem(self.siso_linsys) - nlios1 = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u*u, inputs=1, outputs=1, name="sys") - nlios2 = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u*u, inputs=1, outputs=1, name="sys") - with warnings.catch_warnings(record=True) as warnval: - # Trigger a warning - iosys = ct.InterconnectedSystem( - (nlios1, iosys_siso, nlios2), inputs=0, outputs=0, states=0) - - # Verify that we got a warning - self.assertEqual(len(warnval), 1) - self.assertTrue(issubclass(warnval[-1].category, UserWarning)) - self.assertTrue("Duplicate name" in str(warnval[-1].message)) + iosys_siso = ct.LinearIOSystem(tsys.siso_linsys) + nlios1 = ios.NonlinearIOSystem(None, + lambda t, x, u, params: u * u, + inputs=1, outputs=1, name="sys", dt=0) + nlios2 = ios.NonlinearIOSystem(None, + lambda t, x, u, params: u * u, + inputs=1, outputs=1, name="sys", dt=0) + + with pytest.warns(UserWarning, match="Duplicate name"): + ct.InterconnectedSystem((nlios1, iosys_siso, nlios2), + inputs=0, outputs=0, states=0) # Same system, different names => everything should be OK - nlios1 = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u*u, inputs=1, outputs=1, name="nlios1") - nlios2 = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u*u, inputs=1, outputs=1, name="nlios2") - with warnings.catch_warnings(record=True) as warnval: - iosys = ct.InterconnectedSystem( - (nlios1, iosys_siso, nlios2), inputs=0, outputs=0, states=0) - self.assertEqual(len(warnval), 0) + nlios1 = ios.NonlinearIOSystem(None, + lambda t, x, u, params: u * u, + inputs=1, outputs=1, name="nlios1", dt=0) + nlios2 = ios.NonlinearIOSystem(None, + lambda t, x, u, params: u * u, + inputs=1, outputs=1, name="nlios2", dt=0) + with pytest.warns(None) as record: + ct.InterconnectedSystem((nlios1, iosys_siso, nlios2), + inputs=0, outputs=0, states=0) + if record: + pytest.fail("Warning not expected: " + record[0].message) -# Predator prey dynamics def predprey(t, x, u, params={}): + """Predator prey dynamics""" r = params.get('r', 2) d = params.get('d', 0.7) b = params.get('b', 0.3) @@ -1096,8 +1072,8 @@ def predprey(t, x, u, params={}): return np.array([dx0, dx1]) -# Reduced planar vertical takeoff and landing dynamics def pvtol(t, x, u, params={}): + """Reduced planar vertical takeoff and landing dynamics""" from math import sin, cos m = params.get('m', 4.) # kg, system mass J = params.get('J', 0.0475) # kg m^2, system inertia @@ -1112,6 +1088,7 @@ def pvtol(t, x, u, params={}): -l/J * sin(x[0]) + r/J * u[0] ]) + def pvtol_full(t, x, u, params={}): from math import sin, cos m = params.get('m', 4.) # kg, system mass @@ -1128,8 +1105,9 @@ def pvtol_full(t, x, u, params={}): ]) -# Second order system dynamics + def secord_update(t, x, u, params={}): + """Second order system dynamics""" omega0 = params.get('omega0', 1.) zeta = params.get('zeta', 0.5) u = np.array(u, ndmin=1) @@ -1137,9 +1115,8 @@ def secord_update(t, x, u, params={}): x[1], -2 * zeta * omega0 * x[1] - omega0*omega0 * x[0] + u[0] ]) -def secord_output(t, x, u, params={}): - return np.array([x[0]]) -if __name__ == '__main__': - unittest.main() +def secord_output(t, x, u, params={}): + """Second order system dynamics output""" + return np.array([x[0]]) diff --git a/control/tests/lti_test.py b/control/tests/lti_test.py index ed832fb05..762e1435a 100644 --- a/control/tests/lti_test.py +++ b/control/tests/lti_test.py @@ -1,14 +1,16 @@ -#!/usr/bin/env python +"""lti_test.py""" -import unittest import numpy as np -from control.lti import * -from control.xferfcn import tf -from control import c2d -from control.matlab import tf2ss -from control.exception import slycot_check +import pytest + +from control import c2d, tf, tf2ss, NonlinearIOSystem +from control.lti import (LTI, damp, dcgain, isctime, isdtime, + issiso, pole, timebaseEqual, zero) +from control.tests.conftest import slycotonly + + +class TestLTI: -class TestUtils(unittest.TestCase): def test_pole(self): sys = tf(126, [-1, 42]) np.testing.assert_equal(sys.pole(), 42) @@ -20,31 +22,32 @@ def test_zero(self): np.testing.assert_equal(zero(sys), 42) def test_issiso(self): - self.assertEqual(issiso(1), True) - self.assertRaises(ValueError, issiso, 1, strict=True) + assert issiso(1) + with pytest.raises(ValueError): + issiso(1, strict=True) # SISO transfer function sys = tf([-1, 42], [1, 10]) - self.assertEqual(issiso(sys), True) - self.assertEqual(issiso(sys, strict=True), True) + assert issiso(sys) + assert issiso(sys, strict=True) # SISO state space system sys = tf2ss(sys) - self.assertEqual(issiso(sys), True) - self.assertEqual(issiso(sys, strict=True), True) + assert issiso(sys) + assert issiso(sys, strict=True) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_issiso_mimo(self): # MIMO transfer function sys = tf([[[-1, 41], [1]], [[1, 2], [3, 4]]], [[[1, 10], [1, 20]], [[1, 30], [1, 40]]]); - self.assertEqual(issiso(sys), False) - self.assertEqual(issiso(sys, strict=True), False) + assert not issiso(sys) + assert not issiso(sys, strict=True) # MIMO state space system sys = tf2ss(sys) - self.assertEqual(issiso(sys), False) - self.assertEqual(issiso(sys, strict=True), False) + assert not issiso(sys) + assert not issiso(sys, strict=True) def test_damp(self): # Test the continuous time case. @@ -69,7 +72,3 @@ def test_dcgain(self): sys = tf(84, [1, 2]) np.testing.assert_equal(sys.dcgain(), 42) np.testing.assert_equal(dcgain(sys), 42) - - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py old mode 100755 new mode 100644 diff --git a/control/tests/mateqn_test.py b/control/tests/mateqn_test.py index 29f31c853..facb1ce08 100644 --- a/control/tests/mateqn_test.py +++ b/control/tests/mateqn_test.py @@ -1,15 +1,6 @@ -#!/usr/bin/env python -from __future__ import print_function -# -# mateqn_test.py - test wuit for matrix equation solvers -# -#! Currently uses numpy.testing framework; will dump you out of unittest -#! if an error occurs. Should figure out the right way to fix this. +"""mateqn_test.py - test suite for matrix equation solvers -""" Test cases for lyap, dlyap, care and dare functions in the file -pyctrl_lin_alg.py. """ - -"""Copyright (c) 2011, All rights reserved. +Copyright (c) 2020, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions @@ -42,18 +33,18 @@ Author: Bjorn Olofsson """ -import unittest -from numpy import array -from numpy.testing import assert_array_almost_equal, assert_array_less, \ - assert_raises -# need scipy version of eigvals for generalized eigenvalue problem +from numpy import array, zeros +from numpy.testing import assert_array_almost_equal, assert_array_less +import pytest from scipy.linalg import eigvals, solve -from scipy import zeros,dot -from control.mateqn import lyap,dlyap,care,dare -from control.exception import slycot_check, ControlArgument -@unittest.skipIf(not slycot_check(), "slycot not installed") -class TestMatrixEquations(unittest.TestCase): +from control.mateqn import lyap, dlyap, care, dare +from control.exception import ControlArgument +from control.tests.conftest import slycotonly + + +@slycotonly +class TestMatrixEquations: """These are tests for the matrix equation solvers in mateqn.py""" def test_lyap(self): @@ -90,7 +81,8 @@ def test_lyap_g(self): E = array([[1,2],[2,1]]) X = lyap(A,Q,None,E) # print("The solution obtained is ", X) - assert_array_almost_equal(A.dot(X).dot(E.T) + E.dot(X).dot(A.T) + Q, zeros((2,2))) + assert_array_almost_equal(A.dot(X).dot(E.T) + E.dot(X).dot(A.T) + Q, + zeros((2,2))) def test_dlyap(self): A = array([[-0.6, 0],[-0.1, -0.4]]) @@ -111,7 +103,8 @@ def test_dlyap_g(self): E = array([[1, 1],[2, 1]]) X = dlyap(A,Q,None,E) # print("The solution obtained is ", X) - assert_array_almost_equal(A.dot(X).dot(A.T) - E.dot(X).dot(E.T) + Q, zeros((2,2))) + assert_array_almost_equal(A.dot(X).dot(A.T) - E.dot(X).dot(E.T) + Q, + zeros((2,2))) def test_dlyap_sylvester(self): A = 5 @@ -135,7 +128,8 @@ def test_care(self): X,L,G = care(A,B,Q) # print("The solution obtained is", X) - assert_array_almost_equal(A.T.dot(X) + X.dot(A) - X.dot(B).dot(B.T).dot(X) + Q, + M = A.T.dot(X) + X.dot(A) - X.dot(B).dot(B.T).dot(X) + Q + assert_array_almost_equal(M, zeros((2,2))) assert_array_almost_equal(B.T.dot(X), G) @@ -156,6 +150,7 @@ def test_care_g(self): - (E.T.dot(X).dot(B) + S).dot(Gref) + Q, zeros((2,2))) + def test_care_g2(self): A = array([[-2, -1],[-1, -1]]) Q = array([[0, 0],[0, 1]]) B = array([[1],[0]]) @@ -183,9 +178,7 @@ def test_dare(self): Gref = solve(B.T.dot(X).dot(B) + R, B.T.dot(X).dot(A)) assert_array_almost_equal(Gref, G) assert_array_almost_equal( - A.T.dot(X).dot(A) - X - - A.T.dot(X).dot(B).dot(Gref) + Q, - zeros((2,2))) + X, A.T.dot(X).dot(A) - A.T.dot(X).dot(B).dot(Gref) + Q) # check for stable closed loop lam = eigvals(A - B.dot(G)) assert_array_less(abs(lam), 1.0) @@ -197,10 +190,13 @@ def test_dare(self): X,L,G = dare(A,B,Q,R) # print("The solution obtained is", X) + AtXA = A.T.dot(X).dot(A) + AtXB = A.T.dot(X).dot(B) + BtXA = B.T.dot(X).dot(A) + BtXB = B.T.dot(X).dot(B) assert_array_almost_equal( - A.T.dot(X).dot(A) - X - - A.T.dot(X).dot(B) * solve(B.T.dot(X).dot(B) + R, B.T.dot(X).dot(A)) + Q, zeros((2,2))) - assert_array_almost_equal(B.T.dot(X).dot(A) / (B.T.dot(X).dot(B) + R), G) + X, AtXA - AtXB.dot(solve(BtXB + R, BtXA)) + Q) + assert_array_almost_equal(BtXA / (BtXB + R), G) # check for stable closed loop lam = eigvals(A - B.dot(G)) assert_array_less(abs(lam), 1.0) @@ -216,29 +212,32 @@ def test_dare_g(self): X,L,G = dare(A,B,Q,R,S,E) # print("The solution obtained is", X) Gref = solve(B.T.dot(X).dot(B) + R, B.T.dot(X).dot(A) + S.T) - assert_array_almost_equal(Gref,G) + assert_array_almost_equal(Gref, G) assert_array_almost_equal( - A.T.dot(X).dot(A) - E.T.dot(X).dot(E) - - (A.T.dot(X).dot(B) + S).dot(Gref) + Q, - zeros((2,2)) ) + E.T.dot(X).dot(E), + A.T.dot(X).dot(A) - (A.T.dot(X).dot(B) + S).dot(Gref) + Q) # check for stable closed loop lam = eigvals(A - B.dot(G), E) assert_array_less(abs(lam), 1.0) - A = array([[-0.6, 0],[-0.1, -0.4]]) - Q = array([[2, 1],[1, 3]]) - B = array([[1],[2]]) + def test_dare_g2(self): + A = array([[-0.6, 0], [-0.1, -0.4]]) + Q = array([[2, 1], [1, 3]]) + B = array([[1], [2]]) R = 1 - S = array([[1],[2]]) - E = array([[2, 1],[1, 2]]) + S = array([[1], [2]]) + E = array([[2, 1], [1, 2]]) - X,L,G = dare(A,B,Q,R,S,E) + X, L, G = dare(A, B, Q, R, S, E) # print("The solution obtained is", X) + AtXA = A.T.dot(X).dot(A) + AtXB = A.T.dot(X).dot(B) + BtXA = B.T.dot(X).dot(A) + BtXB = B.T.dot(X).dot(B) + EtXE = E.T.dot(X).dot(E) assert_array_almost_equal( - A.T.dot(X).dot(A) - E.T.dot(X).dot(E) - - (A.T.dot(X).dot(B) + S).dot(solve(B.T.dot(X).dot(B) + R, B.T.dot(X).dot(A) + S.T)) + Q, - zeros((2,2)) ) - assert_array_almost_equal((B.T.dot(X).dot(A) + S.T) / (B.T.dot(X).dot(B) + R), G) + EtXE, AtXA - (AtXB + S).dot(solve(BtXB + R, BtXA + S.T)) + Q) + assert_array_almost_equal((BtXA + S.T) / (BtXB + R), G) # check for stable closed loop lam = eigvals(A - B.dot(G), E) assert_array_less(abs(lam), 1.0) @@ -260,16 +259,26 @@ def test_raise(self): Efq = array([[2, 1, 0], [1, 2, 0]]) for cdlyap in [lyap, dlyap]: - assert_raises(ControlArgument, cdlyap, Afq, Q) - assert_raises(ControlArgument, cdlyap, A, Qfq) - assert_raises(ControlArgument, cdlyap, A, Qfs) - assert_raises(ControlArgument, cdlyap, Afq, Q, C) - assert_raises(ControlArgument, cdlyap, A, Qfq, C) - assert_raises(ControlArgument, cdlyap, A, Q, Cfd) - assert_raises(ControlArgument, cdlyap, A, Qfq, None, E) - assert_raises(ControlArgument, cdlyap, A, Q, None, Efq) - assert_raises(ControlArgument, cdlyap, A, Qfs, None, E) - assert_raises(ControlArgument, cdlyap, A, Q, C, E) + with pytest.raises(ControlArgument): + cdlyap(Afq, Q) + with pytest.raises(ControlArgument): + cdlyap(A, Qfq) + with pytest.raises(ControlArgument): + cdlyap(A, Qfs) + with pytest.raises(ControlArgument): + cdlyap(Afq, Q, C) + with pytest.raises(ControlArgument): + cdlyap(A, Qfq, C) + with pytest.raises(ControlArgument): + cdlyap(A, Q, Cfd) + with pytest.raises(ControlArgument): + cdlyap(A, Qfq, None, E) + with pytest.raises(ControlArgument): + cdlyap(A, Q, None, Efq) + with pytest.raises(ControlArgument): + cdlyap(A, Qfs, None, E) + with pytest.raises(ControlArgument): + cdlyap(A, Q, C, E) B = array([[1, 0], [0, 1]]) Bf = array([[1, 0], [0, 1], [1, 1]]) @@ -281,23 +290,34 @@ def test_raise(self): E = array([[2, 1], [1, 2]]) Ef = array([[2, 1], [1, 2], [1, 2]]) - assert_raises(ControlArgument, care, Afq, B, Q) - assert_raises(ControlArgument, care, A, B, Qfq) - assert_raises(ControlArgument, care, A, Bf, Q) - assert_raises(ControlArgument, care, 1, B, 1) - assert_raises(ControlArgument, care, A, B, Qfs) - assert_raises(ValueError, dare, A, B, Q, Rfs) + with pytest.raises(ControlArgument): + care(Afq, B, Q) + with pytest.raises(ControlArgument): + care(A, B, Qfq) + with pytest.raises(ControlArgument): + care(A, Bf, Q) + with pytest.raises(ControlArgument): + care(1, B, 1) + with pytest.raises(ControlArgument): + care(A, B, Qfs) + with pytest.raises(ValueError): + dare(A, B, Q, Rfs) for cdare in [care, dare]: - assert_raises(ControlArgument, cdare, Afq, B, Q, R, S, E) - assert_raises(ControlArgument, cdare, A, B, Qfq, R, S, E) - assert_raises(ControlArgument, cdare, A, Bf, Q, R, S, E) - assert_raises(ControlArgument, cdare, A, B, Q, R, S, Ef) - assert_raises(ControlArgument, cdare, A, B, Q, Rfq, S, E) - assert_raises(ControlArgument, cdare, A, B, Q, R, Sf, E) - assert_raises(ControlArgument, cdare, A, B, Qfs, R, S, E) - assert_raises(ControlArgument, cdare, A, B, Q, Rfs, S, E) - assert_raises(ControlArgument, cdare, A, B, Q, R, S) - - -if __name__ == "__main__": - unittest.main() + with pytest.raises(ControlArgument): + cdare(Afq, B, Q, R, S, E) + with pytest.raises(ControlArgument): + cdare(A, B, Qfq, R, S, E) + with pytest.raises(ControlArgument): + cdare(A, Bf, Q, R, S, E) + with pytest.raises(ControlArgument): + cdare(A, B, Q, R, S, Ef) + with pytest.raises(ControlArgument): + cdare(A, B, Q, Rfq, S, E) + with pytest.raises(ControlArgument): + cdare(A, B, Q, R, Sf, E) + with pytest.raises(ControlArgument): + cdare(A, B, Qfs, R, S, E) + with pytest.raises(ControlArgument): + cdare(A, B, Q, Rfs, S, E) + with pytest.raises(ControlArgument): + cdare(A, B, Q, R, S) diff --git a/control/tests/test_control_matlab.py b/control/tests/matlab2_test.py similarity index 81% rename from control/tests/test_control_matlab.py rename to control/tests/matlab2_test.py index aa8633e7c..5db4156df 100644 --- a/control/tests/test_control_matlab.py +++ b/control/tests/matlab2_test.py @@ -1,30 +1,30 @@ -''' -Copyright (C) 2011 by Eike Welk. +"""matlab2_test.py Test the control.matlab toolbox. -''' -import unittest +Copyright (C) 2011 by Eike Welk. +""" + +from matplotlib.pyplot import figure, plot, legend, subplot2grid import numpy as np -import scipy.signal +from numpy import array, matrix, zeros, linspace, r_ from numpy.testing import assert_array_almost_equal -from numpy import array, asarray, matrix, asmatrix, zeros, ones, linspace,\ - all, hstack, vstack, c_, r_ -from matplotlib.pyplot import show, figure, plot, legend, subplot2grid -from control.matlab import ss, step, impulse, initial, lsim, dcgain, \ - ss2tf + +import pytest +import scipy.signal + +from control.matlab import ss, step, impulse, initial, lsim, dcgain, ss2tf from control.statesp import _mimo2siso from control.timeresp import _check_convert_array -from control.exception import slycot_check -import warnings +from control.tests.conftest import slycotonly -class TestControlMatlab(unittest.TestCase): - def setUp(self): - pass +class TestControlMatlab: + """Test the control.matlab toolbox.""" - def make_SISO_mats(self): + @pytest.fixture + def SISO_mats(self): """Return matrices for a SISO system""" A = array([[-81.82, -45.45], [ 10., -1. ]]) @@ -34,7 +34,8 @@ def make_SISO_mats(self): D = zeros((1, 1)) return A, B, C, D - def make_MIMO_mats(self): + @pytest.fixture + def MIMO_mats(self): """Return matrices for a MIMO system""" A = array([[-81.82, -45.45, 0, 0 ], [ 10, -1, 0, 0 ], @@ -49,39 +50,40 @@ def make_MIMO_mats(self): D = zeros((2, 2)) return A, B, C, D - def test_dcgain(self): - """Test function dcgain with different systems""" - if slycot_check(): - #Test MIMO systems - A, B, C, D = self.make_MIMO_mats() - - gain1 = dcgain(ss(A, B, C, D)) - gain2 = dcgain(A, B, C, D) - sys_tf = ss2tf(A, B, C, D) - gain3 = dcgain(sys_tf) - gain4 = dcgain(sys_tf.num, sys_tf.den) - #print("gain1:", gain1) - - assert_array_almost_equal(gain1, - array([[0.0269, 0. ], - [0. , 0.0269]]), - decimal=4) - assert_array_almost_equal(gain1, gain2) - assert_array_almost_equal(gain3, gain4) - assert_array_almost_equal(gain1, gain4) - - #Test SISO systems - A, B, C, D = self.make_SISO_mats() + @slycotonly + def test_dcgain_mimo(self, MIMO_mats): + """Test function dcgain with MIMO systems""" + #Test MIMO systems + A, B, C, D = MIMO_mats + + gain1 = dcgain(ss(A, B, C, D)) + gain2 = dcgain(A, B, C, D) + sys_tf = ss2tf(A, B, C, D) + gain3 = dcgain(sys_tf) + gain4 = dcgain(sys_tf.num, sys_tf.den) + #print("gain1:", gain1) + + assert_array_almost_equal(gain1, + array([[0.0269, 0. ], + [0. , 0.0269]]), + decimal=4) + assert_array_almost_equal(gain1, gain2) + assert_array_almost_equal(gain3, gain4) + assert_array_almost_equal(gain1, gain4) + + def test_dcgain_siso(self, SISO_mats): + """Test function dcgain with SISO systems""" + A, B, C, D = SISO_mats gain1 = dcgain(ss(A, B, C, D)) assert_array_almost_equal(gain1, array([[0.0269]]), decimal=4) - def test_dcgain_2(self): + def test_dcgain_2(self, SISO_mats): """Test function dcgain with different systems""" #Create different forms of a SISO system - A, B, C, D = self.make_SISO_mats() + A, B, C, D = SISO_mats num, den = scipy.signal.ss2tf(A, B, C, D) # numerator is only a constant here; pick it out to avoid numpy warning Z, P, k = scipy.signal.tf2zpk(num[0][-1], den) @@ -108,12 +110,12 @@ def test_dcgain_2(self): 0.026948], decimal=6) - def test_step(self): + def test_step(self, SISO_mats, MIMO_mats, mplcleanup): """Test function ``step``.""" figure(); plot_shape = (1, 3) #Test SISO system - A, B, C, D = self.make_SISO_mats() + A, B, C, D = SISO_mats sys = ss(A, B, C, D) #print(sys) #print("gain:", dcgain(sys)) @@ -132,15 +134,15 @@ def test_step(self): t, y, x = step(sys, return_x=True) #Test MIMO system - A, B, C, D = self.make_MIMO_mats() + A, B, C, D = MIMO_mats sys = ss(A, B, C, D) subplot2grid(plot_shape, (0, 2)) t, y = step(sys) plot(t, y) - def test_impulse(self): - A, B, C, D = self.make_SISO_mats() + def test_impulse(self, SISO_mats, mplcleanup): + A, B, C, D = SISO_mats sys = ss(A, B, C, D) figure() @@ -158,14 +160,14 @@ def test_impulse(self): #Test system with direct feed-though, the function should print a warning. D = [[0.5]] sys_ft = ss(A, B, C, D) - with warnings.catch_warnings(): - warnings.simplefilter("ignore") + with pytest.warns(UserWarning, match="has direct feedthrough"): t, y = impulse(sys_ft) plot(t, y, label='Direct feedthrough D=[[0.5]]') + def test_impulse_mimo(self, MIMO_mats, mplcleanup): #Test MIMO system - A, B, C, D = self.make_MIMO_mats() - sys = ss(A, B, C, D) + A, B, C, D = MIMO_mats + sys = ss(A, B, C, D) t, y = impulse(sys) plot(t, y, label='MIMO System') @@ -173,8 +175,8 @@ def test_impulse(self): #show() - def test_initial(self): - A, B, C, D = self.make_SISO_mats() + def test_initial(self, SISO_mats, MIMO_mats, mplcleanup): + A, B, C, D = SISO_mats sys = ss(A, B, C, D) figure(); plot_shape = (1, 3) @@ -186,11 +188,10 @@ def test_initial(self): #X0=[1,1] : produces a spike subplot2grid(plot_shape, (0, 1)) - t, y = initial(sys, X0=array(matrix("1; 1"))) + t, y = initial(sys, X0=array([[1], [1]])) plot(t, y) - #Test MIMO system - A, B, C, D = self.make_MIMO_mats() + A, B, C, D = MIMO_mats sys = ss(A, B, C, D) #X0=[1,1] : produces same spike as above spike subplot2grid(plot_shape, (0, 2)) @@ -200,7 +201,8 @@ def test_initial(self): #show() #! Old test; no longer functional?? (RMM, 3 Nov 2012) - @unittest.skip("skipping test_check_convert_shape, need to update test") + @pytest.mark.skip( + reason="skipping test_check_convert_shape, need to update test") def test_check_convert_shape(self): #TODO: check if shape is correct everywhere. #Correct input --------------------------------------------- @@ -270,9 +272,9 @@ def test_check_convert_shape(self): self.assertRaises(ValueError, _check_convert_array(array([1., 2, 3, 4]), [(3,), (1,3)], 'Test: ')) - @unittest.skip("skipping test_lsim, need to update test") - def test_lsim(self): - A, B, C, D = self.make_SISO_mats() + @pytest.mark.skip(reason="need to update test") + def test_lsim(self, SISO_mats, MIMO_mats): + A, B, C, D = SISO_mats sys = ss(A, B, C, D) figure(); plot_shape = (2, 2) @@ -304,7 +306,7 @@ def test_lsim(self): #Test with MIMO system subplot2grid(plot_shape, (1, 1)) - A, B, C, D = self.make_MIMO_mats() + A, B, C, D = MIMO_mats sys = ss(A, B, C, D) t = array(linspace(0, 1, 100)) u = array([r_[1:1:50j, 0:0:50j], @@ -350,14 +352,14 @@ def assert_systems_behave_equal(self, sys1, sys2): y2, t2 = step(sys2, t1) assert_array_almost_equal(y1, y2) - def test_convert_MIMO_to_SISO(self): + def test_convert_MIMO_to_SISO(self, SISO_mats, MIMO_mats): '''Convert mimo to siso systems''' #Test with our usual systems -------------------------------------------- #SISO PT2 system - As, Bs, Cs, Ds = self.make_SISO_mats() + As, Bs, Cs, Ds = SISO_mats sys_siso = ss(As, Bs, Cs, Ds) #MIMO system that contains two independent copies of the SISO system above - Am, Bm, Cm, Dm = self.make_MIMO_mats() + Am, Bm, Cm, Dm = MIMO_mats sys_mimo = ss(Am, Bm, Cm, Dm) # t, y = step(sys_siso) # plot(t, y, label='sys_siso d=0') @@ -420,24 +422,3 @@ def test_convert_MIMO_to_SISO(self): self.assert_systems_behave_equal(sys_siso, sys_siso_01) self.assert_systems_behave_equal(sys_siso, sys_siso_10) - def debug_nasty_import_problem(): - ''' - ``*.egg`` files have precedence over ``PYTHONPATH``. Therefore packages - that were installed with ``easy_install``, can not be easily developed with - Eclipse. - - See also: - http://bugs.python.org/setuptools/issue53 - - Use this function to debug the issue. - ''' - #print the directories where python searches for modules and packages. - import sys - print('sys.path: -----------------------------------') - for name in sys.path: - print(name) - - -if __name__ == '__main__': - unittest.main() -# vi:ts=4:sw=4:expandtab diff --git a/control/tests/matlab_test.py b/control/tests/matlab_test.py index 7d81288e4..6c7f6f14f 100644 --- a/control/tests/matlab_test.py +++ b/control/tests/matlab_test.py @@ -1,22 +1,36 @@ -#!/usr/bin/env python -# -# matlab_test.py - test MATLAB compatibility -# RMM, 30 Mar 2011 (based on TestMatlab from v0.4a) -# -# This test suite just goes through and calls all of the MATLAB -# functions using different systems and arguments to make sure that -# nothing crashes. It doesn't test actual functionality; the module -# specific unit tests will do that. - -from __future__ import print_function -import unittest +"""matlab_test.py - test MATLAB compatibility + +RMM, 30 Mar 2011 (based on TestMatlab from v0.4a) + +This test suite just goes through and calls all of the MATLAB +functions using different systems and arguments to make sure that +nothing crashes. Many test don't test actual functionality; the module +specific unit tests will do that. +""" + import numpy as np -from scipy.linalg import eigvals +import pytest import scipy as sp -from control.matlab import * +from scipy.linalg import eigvals + +from control.matlab import ss, ss2tf, ssdata, tf, tf2ss, tfdata, rss, drss, frd +from control.matlab import parallel, series, feedback +from control.matlab import pole, zero, damp +from control.matlab import step, stepinfo, impulse, initial, lsim +from control.matlab import margin, dcgain +from control.matlab import linspace, logspace +from control.matlab import bode, rlocus, nyquist, nichols, ngrid, pzmap +from control.matlab import freqresp, evalfr +from control.matlab import hsvd, balred, modred, minreal +from control.matlab import place, place_varga, acker +from control.matlab import lqr, ctrb, obsv, gram +from control.matlab import pade +from control.matlab import unwrap, c2d, isctime, isdtime +from control.matlab import connect, append + + from control.frdata import FRD -from control.exception import slycot_check -import warnings +from control.tests.conftest import slycotonly # for running these through Matlab or Octave ''' @@ -55,96 +69,124 @@ ''' -class TestMatlab(unittest.TestCase): - def setUp(self): + +@pytest.fixture(scope="class") +def fixedseed(): + """Get consistent test results""" + np.random.seed(0) + + +class tsystems: + """struct for test systems""" + + pass + + +@pytest.mark.usefixtures("fixedseed") +class TestMatlab: + """Test matlab style functions""" + + @pytest.fixture + def siso(self): """Set up some systems for testing out MATLAB functions""" - A = np.matrix("1. -2.; 3. -4.") - B = np.matrix("5.; 7.") - C = np.matrix("6. 8.") - D = np.matrix("9.") - self.siso_ss1 = ss(A,B,C,D) + s = tsystems() + + A = np.array([[1., -2.], [3., -4.]]) + B = np.array([[5.], [7.]]) + C = np.array([[6., 8.]]) + D = np.array([[9.]]) + s.ss1 = ss(A, B, C, D) # Create some transfer functions - self.siso_tf1 = tf([1], [1, 2, 1]); - self.siso_tf2 = tf([1, 1], [1, 2, 3, 1]); + s.tf1 = tf([1], [1, 2, 1]) + s.tf2 = tf([1, 1], [1, 2, 3, 1]) # Conversions - self.siso_tf3 = tf(self.siso_ss1); - self.siso_ss2 = ss(self.siso_tf2); - self.siso_ss3 = tf2ss(self.siso_tf3); - self.siso_tf4 = ss2tf(self.siso_ss2); - - #Create MIMO system, contains ``siso_ss1`` twice - A = np.matrix("1. -2. 0. 0.;" - "3. -4. 0. 0.;" - "0. 0. 1. -2.;" - "0. 0. 3. -4. ") - B = np.matrix("5. 0.;" - "7. 0.;" - "0. 5.;" - "0. 7. ") - C = np.matrix("6. 8. 0. 0.;" - "0. 0. 6. 8. ") - D = np.matrix("9. 0.;" - "0. 9. ") - self.mimo_ss1 = ss(A, B, C, D) - - # get consistent test results - np.random.seed(0) - - def testParallel(self): - sys1 = parallel(self.siso_ss1, self.siso_ss2) - sys1 = parallel(self.siso_ss1, self.siso_tf2) - sys1 = parallel(self.siso_tf1, self.siso_ss2) - sys1 = parallel(1, self.siso_ss2) - sys1 = parallel(1, self.siso_tf2) - sys1 = parallel(self.siso_ss1, 1) - sys1 = parallel(self.siso_tf1, 1) - - def testSeries(self): - sys1 = series(self.siso_ss1, self.siso_ss2) - sys1 = series(self.siso_ss1, self.siso_tf2) - sys1 = series(self.siso_tf1, self.siso_ss2) - sys1 = series(1, self.siso_ss2) - sys1 = series(1, self.siso_tf2) - sys1 = series(self.siso_ss1, 1) - sys1 = series(self.siso_tf1, 1) - - def testFeedback(self): - sys1 = feedback(self.siso_ss1, self.siso_ss2) - sys1 = feedback(self.siso_ss1, self.siso_tf2) - sys1 = feedback(self.siso_tf1, self.siso_ss2) - sys1 = feedback(1, self.siso_ss2) - sys1 = feedback(1, self.siso_tf2) - sys1 = feedback(self.siso_ss1, 1) - sys1 = feedback(self.siso_tf1, 1) - - def testPoleZero(self): - pole(self.siso_ss1); - pole(self.siso_tf1); - pole(self.siso_tf2); - zero(self.siso_ss1); - zero(self.siso_tf1); - zero(self.siso_tf2); - - def testPZmap(self): - # pzmap(self.siso_ss1); not implemented - # pzmap(self.siso_ss2); not implemented - pzmap(self.siso_tf1); - pzmap(self.siso_tf2); - pzmap(self.siso_tf2, plot=False); - - def testStep(self): + s.tf3 = tf(s.ss1) + s.ss2 = ss(s.tf2) + s.ss3 = tf2ss(s.tf3) + s.tf4 = ss2tf(s.ss2) + return s + + @pytest.fixture + def mimo(self): + """Create MIMO system, contains ``siso_ss1`` twice""" + m = tsystems() + A = np.array([[1., -2., 0., 0.], + [3., -4., 0., 0.], + [0., 0., 1., -2.], + [0., 0., 3., -4.]]) + B = np.array([[5., 0.], + [7., 0.], + [0., 5.], + [0., 7.]]) + C = np.array([[6., 8., 0., 0.], + [0., 0., 6., 8.]]) + D = np.array([[9., 0.], + [0., 9.]]) + m.ss1 = ss(A, B, C, D) + return m + + def testParallel(self, siso): + """Call parallel()""" + sys1 = parallel(siso.ss1, siso.ss2) + sys1 = parallel(siso.ss1, siso.tf2) + sys1 = parallel(siso.tf1, siso.ss2) + sys1 = parallel(1, siso.ss2) + sys1 = parallel(1, siso.tf2) + sys1 = parallel(siso.ss1, 1) + sys1 = parallel(siso.tf1, 1) + + def testSeries(self, siso): + """Call series()""" + sys1 = series(siso.ss1, siso.ss2) + sys1 = series(siso.ss1, siso.tf2) + sys1 = series(siso.tf1, siso.ss2) + sys1 = series(1, siso.ss2) + sys1 = series(1, siso.tf2) + sys1 = series(siso.ss1, 1) + sys1 = series(siso.tf1, 1) + + def testFeedback(self, siso): + """Call feedback()""" + sys1 = feedback(siso.ss1, siso.ss2) + sys1 = feedback(siso.ss1, siso.tf2) + sys1 = feedback(siso.tf1, siso.ss2) + sys1 = feedback(1, siso.ss2) + sys1 = feedback(1, siso.tf2) + sys1 = feedback(siso.ss1, 1) + sys1 = feedback(siso.tf1, 1) + + def testPoleZero(self, siso): + """Call pole() and zero()""" + pole(siso.ss1) + pole(siso.tf1) + pole(siso.tf2) + zero(siso.ss1) + zero(siso.tf1) + zero(siso.tf2) + + @pytest.mark.parametrize( + "subsys", ["tf1", "tf2"]) + def testPZmap(self, siso, subsys, mplcleanup): + """Call pzmap()""" + # pzmap(siso.ss1); not implemented + # pzmap(siso.ss2); not implemented + pzmap(getattr(siso, subsys)) + pzmap(getattr(siso, subsys), plot=False) + + def testStep(self, siso): + """Test step()""" t = np.linspace(0, 1, 10) # Test transfer function - yout, tout = step(self.siso_tf1, T=t) + yout, tout = step(siso.tf1, T=t) youttrue = np.array([0, 0.0057, 0.0213, 0.0446, 0.0739, 0.1075, 0.1443, 0.1832, 0.2235, 0.2642]) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) # Test SISO system with direct feedthrough - sys = self.siso_ss1 + sys = siso.ss1 youttrue = np.array([9., 17.6457, 24.7072, 30.4855, 35.2234, 39.1165, 42.3227, 44.9694, 47.1599, 48.9776]) @@ -157,7 +199,7 @@ def testStep(self): np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) - X0 = np.array([0, 0]); + X0 = np.array([0, 0]) yout, tout = step(sys, T=t, X0=X0) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) @@ -166,63 +208,85 @@ def testStep(self): np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) - if slycot_check(): - # Test MIMO system, which contains ``siso_ss1`` twice - sys = self.mimo_ss1 - y_00, _t = step(sys, T=t, input=0, output=0) - y_11, _t = step(sys, T=t, input=1, output=1) - np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) - np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) + @slycotonly + def testStep_mimo(self, mimo): + """Test step for MIMO system""" + sys = mimo.ss1 + t = np.linspace(0, 1, 10) + youttrue = np.array([9., 17.6457, 24.7072, 30.4855, 35.2234, 39.1165, + 42.3227, 44.9694, 47.1599, 48.9776]) + + y_00, _t = step(sys, T=t, input=0, output=0) + y_11, _t = step(sys, T=t, input=1, output=1) + np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) + np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) + + def testStepinfo(self, siso): + """Test the stepinfo function (no return value check)""" + infodict = stepinfo(siso.ss1) + assert isinstance(infodict, dict) + assert len(infodict) == 9 - def testImpulse(self): + def testImpulse(self, siso): + """Test impulse()""" t = np.linspace(0, 1, 10) # test transfer function - yout, tout = impulse(self.siso_tf1, T=t) + yout, tout = impulse(siso.tf1, T=t) youttrue = np.array([0., 0.0994, 0.1779, 0.2388, 0.2850, 0.3188, 0.3423, 0.3573, 0.3654, 0.3679]) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) + sys = siso.ss1 + youttrue = np.array([86., 70.1808, 57.3753, 46.9975, 38.5766, 31.7344, + 26.1668, 21.6292, 17.9245, 14.8945]) # produce a warning for a system with direct feedthrough - with warnings.catch_warnings(): - warnings.simplefilter("ignore") - #Test SISO system - sys = self.siso_ss1 - youttrue = np.array([86., 70.1808, 57.3753, 46.9975, 38.5766, 31.7344, - 26.1668, 21.6292, 17.9245, 14.8945]) + with pytest.warns(UserWarning, match="System has direct feedthrough"): + # Test SISO system yout, tout = impulse(sys, T=t) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) + # produce a warning for a system with direct feedthrough + with pytest.warns(UserWarning, match="System has direct feedthrough"): # Play with arguments yout, tout = impulse(sys, T=t, X0=0) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) - X0 = np.array([0, 0]); + # produce a warning for a system with direct feedthrough + with pytest.warns(UserWarning, match="System has direct feedthrough"): + X0 = np.array([0, 0]) yout, tout = impulse(sys, T=t, X0=X0) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) + # produce a warning for a system with direct feedthrough + with pytest.warns(UserWarning, match="System has direct feedthrough"): yout, tout, xout = impulse(sys, T=t, X0=0, return_x=True) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) - if slycot_check(): - #Test MIMO system, which contains ``siso_ss1`` twice - sys = self.mimo_ss1 - y_00, _t = impulse(sys, T=t, input=0, output=0) - y_11, _t = impulse(sys, T=t, input=1, output=1) - np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) - np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) - - def testInitial(self): - #Test SISO system - sys = self.siso_ss1 + @slycotonly + def testImpulse_mimo(self, mimo): + """Test impulse() for MIMO system""" t = np.linspace(0, 1, 10) - x0 = np.matrix(".5; 1.") + youttrue = np.array([86., 70.1808, 57.3753, 46.9975, 38.5766, 31.7344, + 26.1668, 21.6292, 17.9245, 14.8945]) + sys = mimo.ss1 + with pytest.warns(UserWarning, match="System has direct feedthrough"): + y_00, _t = impulse(sys, T=t, input=0, output=0) + y_11, _t = impulse(sys, T=t, input=1, output=1) + np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) + np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) + + def testInitial(self, siso): + """Test initial() for SISO system""" + t = np.linspace(0, 1, 10) + x0 = np.array([[.5], [1.]]) youttrue = np.array([11., 8.1494, 5.9361, 4.2258, 2.9118, 1.9092, 1.1508, 0.5833, 0.1645, -0.1391]) + sys = siso.ss1 yout, tout = initial(sys, T=t, X0=x0) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) @@ -232,70 +296,81 @@ def testInitial(self): np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) - if slycot_check(): - #Test MIMO system, which contains ``siso_ss1`` twice - sys = self.mimo_ss1 - x0 = np.matrix(".5; 1.; .5; 1.") - y_00, _t = initial(sys, T=t, X0=x0, input=0, output=0) - y_11, _t = initial(sys, T=t, X0=x0, input=1, output=1) - np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) - np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) - - def testLsim(self): + @slycotonly + def testInitial_mimo(self, mimo): + """Test initial() for MIMO system""" + t = np.linspace(0, 1, 10) + x0 = np.array([[.5], [1.], [.5], [1.]]) + youttrue = np.array([11., 8.1494, 5.9361, 4.2258, 2.9118, 1.9092, + 1.1508, 0.5833, 0.1645, -0.1391]) + sys = mimo.ss1 + y_00, _t = initial(sys, T=t, X0=x0, input=0, output=0) + y_11, _t = initial(sys, T=t, X0=x0, input=1, output=1) + np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) + np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) + + def testLsim(self, siso): + """Test lsim() for SISO system""" t = np.linspace(0, 1, 10) - #compute step response - test with state space, and transfer function - #objects + # compute step response - test with state space, and transfer function + # objects u = np.array([1., 1, 1, 1, 1, 1, 1, 1, 1, 1]) youttrue = np.array([9., 17.6457, 24.7072, 30.4855, 35.2234, 39.1165, 42.3227, 44.9694, 47.1599, 48.9776]) - yout, tout, _xout = lsim(self.siso_ss1, u, t) + yout, tout, _xout = lsim(siso.ss1, u, t) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) - yout, _t, _xout = lsim(self.siso_tf3, u, t) + yout, _t, _xout = lsim(siso.tf3, u, t) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - #test with initial value and special algorithm for ``U=0`` - u=0 - x0 = np.matrix(".5; 1.") + # test with initial value and special algorithm for ``U=0`` + u = 0 + x0 = np.array([[.5], [1.]]) youttrue = np.array([11., 8.1494, 5.9361, 4.2258, 2.9118, 1.9092, 1.1508, 0.5833, 0.1645, -0.1391]) - yout, _t, _xout = lsim(self.siso_ss1, u, t, x0) + yout, _t, _xout = lsim(siso.ss1, u, t, x0) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - if slycot_check(): - #Test MIMO system, which contains ``siso_ss1`` twice - #first system: initial value, second system: step response - u = np.array([[0., 1.], [0, 1], [0, 1], [0, 1], [0, 1], - [0, 1], [0, 1], [0, 1], [0, 1], [0, 1]]) - x0 = np.matrix(".5; 1; 0; 0") - youttrue = np.array([[11., 9.], [8.1494, 17.6457], - [5.9361, 24.7072], [4.2258, 30.4855], - [2.9118, 35.2234], [1.9092, 39.1165], - [1.1508, 42.3227], [0.5833, 44.9694], - [0.1645, 47.1599], [-0.1391, 48.9776]]) - yout, _t, _xout = lsim(self.mimo_ss1, u, t, x0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) + @slycotonly + def testLsim_mimo(self, mimo): + """Test lsim() for MIMO system. - def testMargin(self): + first system: initial value, second system: step response + """ + t = np.linspace(0, 1, 10) + + u = np.array([[0., 1.], [0, 1], [0, 1], [0, 1], [0, 1], + [0, 1], [0, 1], [0, 1], [0, 1], [0, 1]]) + x0 = np.array([[.5], [1], [0], [0]]) + youttrue = np.array([[11., 9.], [8.1494, 17.6457], + [5.9361, 24.7072], [4.2258, 30.4855], + [2.9118, 35.2234], [1.9092, 39.1165], + [1.1508, 42.3227], [0.5833, 44.9694], + [0.1645, 47.1599], [-0.1391, 48.9776]]) + yout, _t, _xout = lsim(mimo.ss1, u, t, x0) + np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) + + def testMargin(self, siso): + """Test margin()""" #! TODO: check results to make sure they are OK - gm, pm, wg, wp = margin(self.siso_tf1); - gm, pm, wg, wp = margin(self.siso_tf2); - gm, pm, wg, wp = margin(self.siso_ss1); - gm, pm, wg, wp = margin(self.siso_ss2); - gm, pm, wg, wp = margin(self.siso_ss2*self.siso_ss2*2); + gm, pm, wg, wp = margin(siso.tf1) + gm, pm, wg, wp = margin(siso.tf2) + gm, pm, wg, wp = margin(siso.ss1) + gm, pm, wg, wp = margin(siso.ss2) + gm, pm, wg, wp = margin(siso.ss2 * siso.ss2 * 2) np.testing.assert_array_almost_equal( [gm, pm, wg, wp], [1.5451, 75.9933, 1.2720, 0.6559], decimal=3) - def testDcgain(self): - #Create different forms of a SISO system - A, B, C, D = self.siso_ss1.A, self.siso_ss1.B, self.siso_ss1.C, \ - self.siso_ss1.D + def testDcgain(self, siso): + """Test dcgain() for SISO system""" + # Create different forms of a SISO system using scipy.signal + A, B, C, D = siso.ss1.A, siso.ss1.B, siso.ss1.C, siso.ss1.D Z, P, k = sp.signal.ss2zpk(A, B, C, D) num, den = sp.signal.ss2tf(A, B, C, D) - sys_ss = self.siso_ss1 + sys_ss = siso.ss1 - #Compute the gain with ``dcgain`` + # Compute the gain with ``dcgain`` gain_abcd = dcgain(A, B, C, D) gain_zpk = dcgain(Z, P, k) gain_numden = dcgain(np.squeeze(num), den) @@ -303,282 +378,327 @@ def testDcgain(self): # print('\ngain_abcd:', gain_abcd, 'gain_zpk:', gain_zpk) # print('gain_numden:', gain_numden, 'gain_sys_ss:', gain_sys_ss) - #Compute the gain with a long simulation + # Compute the gain with a long simulation t = linspace(0, 1000, 1000) y, _t = step(sys_ss, t) gain_sim = y[-1] # print('gain_sim:', gain_sim) - #All gain values must be approximately equal to the known gain + # All gain values must be approximately equal to the known gain np.testing.assert_array_almost_equal( - [gain_abcd, gain_zpk, gain_numden, gain_sys_ss, - gain_sim], + [gain_abcd, gain_zpk, gain_numden, gain_sys_ss, gain_sim], [59, 59, 59, 59, 59]) - if slycot_check(): - # Test with MIMO system, which contains ``siso_ss1`` twice - gain_mimo = dcgain(self.mimo_ss1) - # print('gain_mimo: \n', gain_mimo) - np.testing.assert_array_almost_equal(gain_mimo, [[59., 0 ], - [0, 59.]]) - - def testBode(self): - bode(self.siso_ss1) - bode(self.siso_tf1) - bode(self.siso_tf2) - (mag, phase, freq) = bode(self.siso_tf2, plot=False) - bode(self.siso_tf1, self.siso_tf2) - w = logspace(-3, 3); - bode(self.siso_ss1, w) - bode(self.siso_ss1, self.siso_tf2, w) -# Not yet implemented -# bode(self.siso_ss1, '-', self.siso_tf1, 'b--', self.siso_tf2, 'k.') - - def testRlocus(self): - rlocus(self.siso_ss1) - rlocus(self.siso_tf1) - rlocus(self.siso_tf2) + def testDcgain_mimo(self, mimo): + """Test dcgain() for MIMO system""" + gain_mimo = dcgain(mimo.ss1) + # print('gain_mimo: \n', gain_mimo) + np.testing.assert_array_almost_equal(gain_mimo, [[59., 0], + [0, 59.]]) + + def testBode(self, siso, mplcleanup): + """Call bode()""" + bode(siso.ss1) + bode(siso.tf1) + bode(siso.tf2) + (mag, phase, freq) = bode(siso.tf2, plot=False) + bode(siso.tf1, siso.tf2) + w = logspace(-3, 3) + bode(siso.ss1, w) + bode(siso.ss1, siso.tf2, w) + # Not yet implemented + # bode(siso.ss1, '-', siso.tf1, 'b--', siso.tf2, 'k.') + + @pytest.mark.parametrize("subsys", ["ss1", "tf1", "tf2"]) + def testRlocus(self, siso, subsys, mplcleanup): + """Call rlocus()""" + rlocus(getattr(siso, subsys)) + + def testRlocus_list(self, siso, mplcleanup): + """Test rlocus() with list""" klist = [1, 10, 100] - rlist, klist_out = rlocus(self.siso_tf2, klist, plot=False) + rlist, klist_out = rlocus(siso.tf2, klist, plot=False) np.testing.assert_equal(len(rlist), len(klist)) np.testing.assert_array_equal(klist, klist_out) - def testNyquist(self): - nyquist(self.siso_ss1) - nyquist(self.siso_tf1) - nyquist(self.siso_tf2) - w = logspace(-3, 3); - nyquist(self.siso_tf2, w) - (real, imag, freq) = nyquist(self.siso_tf2, w, plot=False) - - def testNichols(self): - nichols(self.siso_ss1) - nichols(self.siso_tf1) - nichols(self.siso_tf2) - w = logspace(-3, 3); - nichols(self.siso_tf2, w) - nichols(self.siso_tf2, grid=False) - - def testFreqresp(self): + def testNyquist(self, siso): + """Call nyquist()""" + nyquist(siso.ss1) + nyquist(siso.tf1) + nyquist(siso.tf2) w = logspace(-3, 3) - freqresp(self.siso_ss1, w) - freqresp(self.siso_ss2, w) - freqresp(self.siso_ss3, w) - freqresp(self.siso_tf1, w) - freqresp(self.siso_tf2, w) - freqresp(self.siso_tf3, w) - - def testEvalfr(self): + nyquist(siso.tf2, w) + (real, imag, freq) = nyquist(siso.tf2, w, plot=False) + + @pytest.mark.parametrize("subsys", ["ss1", "tf1", "tf2"]) + def testNichols(self, siso, subsys, mplcleanup): + """Call nichols()""" + nichols(getattr(siso, subsys)) + + def testNichols_logspace(self, siso, mplcleanup): + """Call nichols() with logspace w""" + w = logspace(-3, 3) + nichols(siso.tf2, w) + + def testNichols_ngrid(self, siso, mplcleanup): + """Call nichols() and ngrid()""" + nichols(siso.tf2, grid=False) + ngrid() + + def testFreqresp(self, siso): + """Call freqresp()""" + w = logspace(-3, 3) + freqresp(siso.ss1, w) + freqresp(siso.ss2, w) + freqresp(siso.ss3, w) + freqresp(siso.tf1, w) + freqresp(siso.tf2, w) + freqresp(siso.tf3, w) + + def testEvalfr(self, siso): + """Call evalfr()""" w = 1j - np.testing.assert_almost_equal(evalfr(self.siso_ss1, w), 44.8-21.4j) - evalfr(self.siso_ss2, w) - evalfr(self.siso_ss3, w) - evalfr(self.siso_tf1, w) - evalfr(self.siso_tf2, w) - evalfr(self.siso_tf3, w) - if slycot_check(): - np.testing.assert_array_almost_equal( - evalfr(self.mimo_ss1, w), - np.array( [[44.8-21.4j, 0.], [0., 44.8-21.4j]])) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testHsvd(self): - hsvd(self.siso_ss1) - hsvd(self.siso_ss2) - hsvd(self.siso_ss3) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testBalred(self): - balred(self.siso_ss1, 1) - balred(self.siso_ss2, 2) - balred(self.siso_ss3, [2, 2]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testModred(self): - modred(self.siso_ss1, [1]) - modred(self.siso_ss2 * self.siso_ss1, [0, 1]) - modred(self.siso_ss1, [1], 'matchdc') - modred(self.siso_ss1, [1], 'truncate') - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga(self): - place_varga(self.siso_ss1.A, self.siso_ss1.B, [-2, -2]) - - def testPlace(self): - place(self.siso_ss1.A, self.siso_ss1.B, [-2, -2.5]) - - def testAcker(self): - acker(self.siso_ss1.A, self.siso_ss1.B, [-2, -2.5]) - - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testLQR(self): - (K, S, E) = lqr(self.siso_ss1.A, self.siso_ss1.B, np.eye(2), np.eye(1)) + np.testing.assert_almost_equal(evalfr(siso.ss1, w), 44.8 - 21.4j) + evalfr(siso.ss2, w) + evalfr(siso.ss3, w) + evalfr(siso.tf1, w) + evalfr(siso.tf2, w) + evalfr(siso.tf3, w) + + def testEvalfr_mimo(self, mimo): + """Test evalfr() MIMO""" + fr = evalfr(mimo.ss1, 1j) + ref = np.array([[44.8 - 21.4j, 0.], [0., 44.8 - 21.4j]]) + np.testing.assert_array_almost_equal(fr, ref) + + @slycotonly + def testHsvd(self, siso): + """Call hsvd()""" + hsvd(siso.ss1) + hsvd(siso.ss2) + hsvd(siso.ss3) + + @slycotonly + def testBalred(self, siso): + """Call balred()""" + balred(siso.ss1, 1) + balred(siso.ss2, 2) + balred(siso.ss3, [2, 2]) + + @slycotonly + def testModred(self, siso): + """Call modred()""" + modred(siso.ss1, [1]) + modred(siso.ss2 * siso.ss1, [0, 1]) + modred(siso.ss1, [1], 'matchdc') + modred(siso.ss1, [1], 'truncate') + + @slycotonly + def testPlace_varga(self, siso): + """Call place_varga()""" + place_varga(siso.ss1.A, siso.ss1.B, [-2, -2]) + + def testPlace(self, siso): + """Call place()""" + place(siso.ss1.A, siso.ss1.B, [-2, -2.5]) + + def testAcker(self, siso): + """Call acker()""" + acker(siso.ss1.A, siso.ss1.B, [-2, -2.5]) + + @slycotonly + def testLQR(self, siso): + """Call lqr()""" + (K, S, E) = lqr(siso.ss1.A, siso.ss1.B, np.eye(2), np.eye(1)) # Should work if [Q N;N' R] is positive semi-definite - (K, S, E) = lqr(self.siso_ss2.A, self.siso_ss2.B, 10*np.eye(3), \ - np.eye(1), [[1], [1], [2]]) - - @unittest.skip("check not yet implemented") - def testLQR_checks(self): - # Make sure we get a warning if [Q N;N' R] is not positive semi-definite - (K, S, E) = lqr(self.siso_ss2.A, self.siso_ss2.B, np.eye(3), \ - np.eye(1), [[1], [1], [2]]) + (K, S, E) = lqr(siso.ss2.A, siso.ss2.B, 10 * np.eye(3), np.eye(1), + [[1], [1], [2]]) def testRss(self): + """Call rss()""" rss(1) rss(2) rss(2, 1, 3) def testDrss(self): + """Call drss()""" drss(1) drss(2) drss(2, 1, 3) - def testCtrb(self): - ctrb(self.siso_ss1.A, self.siso_ss1.B) - ctrb(self.siso_ss2.A, self.siso_ss2.B) + def testCtrb(self, siso): + """Call ctrb()""" + ctrb(siso.ss1.A, siso.ss1.B) + ctrb(siso.ss2.A, siso.ss2.B) - def testObsv(self): - obsv(self.siso_ss1.A, self.siso_ss1.C) - obsv(self.siso_ss2.A, self.siso_ss2.C) + def testObsv(self, siso): + """Call obsv()""" + obsv(siso.ss1.A, siso.ss1.C) + obsv(siso.ss2.A, siso.ss2.C) - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGram(self): - gram(self.siso_ss1, 'c') - gram(self.siso_ss2, 'c') - gram(self.siso_ss1, 'o') - gram(self.siso_ss2, 'o') + @slycotonly + def testGram(self, siso): + """Call gram()""" + gram(siso.ss1, 'c') + gram(siso.ss2, 'c') + gram(siso.ss1, 'o') + gram(siso.ss2, 'o') def testPade(self): + """Call pade()""" pade(1, 1) pade(1, 2) pade(5, 4) - def testOpers(self): - self.siso_ss1 + self.siso_ss2 - self.siso_tf1 + self.siso_tf2 - self.siso_ss1 + self.siso_tf2 - self.siso_tf1 + self.siso_ss2 - self.siso_ss1 * self.siso_ss2 - self.siso_tf1 * self.siso_tf2 - self.siso_ss1 * self.siso_tf2 - self.siso_tf1 * self.siso_ss2 - # self.siso_ss1 / self.siso_ss2 not implemented yet - # self.siso_tf1 / self.siso_tf2 - # self.siso_ss1 / self.siso_tf2 - # self.siso_tf1 / self.siso_ss2 + def testOpers(self, siso): + """Use arithmetic operators""" + siso.ss1 + siso.ss2 + siso.tf1 + siso.tf2 + siso.ss1 + siso.tf2 + siso.tf1 + siso.ss2 + siso.ss1 * siso.ss2 + siso.tf1 * siso.tf2 + siso.ss1 * siso.tf2 + siso.tf1 * siso.ss2 + # siso.ss1 / siso.ss2 not implemented yet + # siso.tf1 / siso.tf2 + # siso.ss1 / siso.tf2 + # siso.tf1 / siso.ss2 def testUnwrap(self): - phase = np.array(range(1, 100)) / 10.; + """Call unwrap()""" + phase = np.array(range(1, 100)) / 10. wrapped = phase % (2 * np.pi) unwrapped = unwrap(wrapped) - def testSISOssdata(self): - ssdata_1 = ssdata(self.siso_ss2); - ssdata_2 = ssdata(self.siso_tf2); + def testSISOssdata(self, siso): + """Call ssdata() + + At least test for consistency between ss and tf + """ + ssdata_1 = ssdata(siso.ss2) + ssdata_2 = ssdata(siso.tf2) for i in range(len(ssdata_1)): np.testing.assert_array_almost_equal(ssdata_1[i], ssdata_2[i]) - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testMIMOssdata(self): - m = (self.mimo_ss1.A, self.mimo_ss1.B, self.mimo_ss1.C, self.mimo_ss1.D) - ssdata_1 = ssdata(self.mimo_ss1); + @slycotonly + def testMIMOssdata(self, mimo): + """Test ssdata() MIMO""" + m = (mimo.ss1.A, mimo.ss1.B, mimo.ss1.C, mimo.ss1.D) + ssdata_1 = ssdata(mimo.ss1) for i in range(len(ssdata_1)): np.testing.assert_array_almost_equal(ssdata_1[i], m[i]) - def testSISOtfdata(self): - tfdata_1 = tfdata(self.siso_tf2); - tfdata_2 = tfdata(self.siso_tf2); + def testSISOtfdata(self, siso): + """Call tfdata()""" + tfdata_1 = tfdata(siso.tf2) + tfdata_2 = tfdata(siso.tf2) for i in range(len(tfdata_1)): np.testing.assert_array_almost_equal(tfdata_1[i], tfdata_2[i]) def testDamp(self): - A = np.mat('''-0.2 0.06 0 -1; - 0 0 1 0; - -17 0 -3.8 1; - 9.4 0 -0.4 -0.6''') - B = np.mat('''-0.01 0.06; - 0 0; - -32 5.4; - 2.6 -7''') + """Test damp()""" + A = np.array([[-0.2, 0.06, 0, -1], + [0, 0, 1, 0], + [-17, 0, -3.8, 1], + [9.4, 0, -0.4, -0.6]]) + B = np.array([[-0.01, 0.06], + [0, 0], + [-32, 5.4], + [2.6, -7]]) C = np.eye(4) - D = np.zeros((4,2)) + D = np.zeros((4, 2)) sys = ss(A, B, C, D) wn, Z, p = damp(sys, False) # print (wn) np.testing.assert_array_almost_equal( - wn, np.array([4.07381994, 3.28874827, 3.28874827, + wn, np.array([4.07381994, 3.28874827, 3.28874827, 1.08937685e-03])) np.testing.assert_array_almost_equal( - Z, np.array([1.0, 0.07983139, 0.07983139, 1.0])) + Z, np.array([1.0, 0.07983139, 0.07983139, 1.0])) def testConnect(self): - sys1 = ss("1. -2; 3. -4", "5.; 7", "6, 8", "9.") - sys2 = ss("-1.", "1.", "1.", "0.") + """Test append() and connect()""" + sys1 = ss([[1., -2], + [3., -4]], + [[5.], + [7]], + [[6, 8]], + [[9.]]) + sys2 = ss(-1., 1., 1., 0.) sys = append(sys1, sys2) - Q= np.mat([ [ 1, 2], [2, -1] ]) # basically feedback, output 2 in 1 + Q = np.array([[1, 2], # basically feedback, output 2 in 1 + [2, -1]]) sysc = connect(sys, Q, [2], [1, 2]) # print(sysc) np.testing.assert_array_almost_equal( - sysc.A, np.mat('1 -2 5; 3 -4 7; -6 -8 -10')) + sysc.A, np.array([[1, -2, 5], [3, -4, 7], [-6, -8, -10]])) np.testing.assert_array_almost_equal( - sysc.B, np.mat('0; 0; 1')) + sysc.B, np.array([[0], [0], [1]])) np.testing.assert_array_almost_equal( - sysc.C, np.mat('6 8 9; 0 0 1')) + sysc.C, np.array([[6, 8, 9], [0, 0, 1]])) np.testing.assert_array_almost_equal( - sysc.D, np.mat('0; 0')) + sysc.D, np.array([[0], [0]])) def testConnect2(self): - sys = append(ss([[-5, -2.25], [4, 0]], [[2], [0]], - [[0, 1.125]], [[0]]), - ss([[-1.6667, 0], [1, 0]], [[2], [0]], - [[0, 3.3333]], [[0]]), - 1) - Q = [ [ 1, 3], [2, 1], [3, -2]] + """Test append and connect() case 2""" + sys = append(ss([[-5, -2.25], + [4, 0]], + [[2], + [0]], + [[0, 1.125]], + [[0]]), + ss([[-1.6667, 0], + [1, 0]], + [[2], [0]], + [[0, 3.3333]], [[0]]), + 1) + Q = [[1, 3], + [2, 1], + [3, -2]] sysc = connect(sys, Q, [3], [3, 1, 2]) np.testing.assert_array_almost_equal( - sysc.A, np.mat([[-5, -2.25, 0, -6.6666], - [4, 0, 0, 0], - [0, 2.25, -1.6667, 0], - [0, 0, 1, 0]])) + sysc.A, np.array([[-5, -2.25, 0, -6.6666], + [4, 0, 0, 0], + [0, 2.25, -1.6667, 0], + [0, 0, 1, 0]])) np.testing.assert_array_almost_equal( - sysc.B, np.mat([[2], [0], [0], [0]])) + sysc.B, np.array([[2], [0], [0], [0]])) np.testing.assert_array_almost_equal( - sysc.C, np.mat([[0, 0, 0, -3.3333], - [0, 1.125, 0, 0], - [0, 0, 0, 3.3333]])) + sysc.C, np.array([[0, 0, 0, -3.3333], + [0, 1.125, 0, 0], + [0, 0, 0, 3.3333]])) np.testing.assert_array_almost_equal( - sysc.D, np.mat([[1], [0], [0]])) - - + sysc.D, np.array([[1], [0], [0]])) def testFRD(self): + """Test frd()""" h = tf([1], [1, 2, 2]) omega = np.logspace(-1, 2, 10) frd1 = frd(h, omega) assert isinstance(frd1, FRD) - frd2 = frd(frd1.fresp[0,0,:], omega) + frd2 = frd(frd1.fresp[0, 0, :], omega) assert isinstance(frd2, FRD) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMinreal(self, verbose=False): """Test a minreal model reduction""" - #A = [-2, 0.5, 0; 0.5, -0.3, 0; 0, 0, -0.1] + # A = [-2, 0.5, 0; 0.5, -0.3, 0; 0, 0, -0.1] A = [[-2, 0.5, 0], [0.5, -0.3, 0], [0, 0, -0.1]] - #B = [0.3, -1.3; 0.1, 0; 1, 0] + # B = [0.3, -1.3; 0.1, 0; 1, 0] B = [[0.3, -1.3], [0.1, 0.], [1.0, 0.0]] - #C = [0, 0.1, 0; -0.3, -0.2, 0] + # C = [0, 0.1, 0; -0.3, -0.2, 0] C = [[0., 0.1, 0.0], [-0.3, -0.2, 0.0]] - #D = [0 -0.8; -0.3 0] + # D = [0 -0.8; -0.3 0] D = [[0., -0.8], [-0.3, 0.]] # sys = ss(A, B, C, D) sys = ss(A, B, C, D) sysr = minreal(sys, verbose=verbose) - self.assertEqual(sysr.states, 2) - self.assertEqual(sysr.inputs, sys.inputs) - self.assertEqual(sysr.outputs, sys.outputs) + assert sysr.states == 2 + assert sysr.inputs == sys.inputs + assert sysr.outputs == sys.outputs np.testing.assert_array_almost_equal( eigvals(sysr.A), [-2.136154, -0.1638459]) @@ -590,28 +710,31 @@ def testMinreal(self, verbose=False): np.testing.assert_array_almost_equal(hm.den[0][0], hr.den[0][0]) def testSS2cont(self): + """Test c2d()""" sys = ss( - np.mat("-3 4 2; -1 -3 0; 2 5 3"), - np.mat("1 4 ; -3 -3; -2 1"), - np.mat("4 2 -3; 1 4 3"), - np.mat("-2 4; 0 1")) + np.array([[-3, 4, 2], [-1, -3, 0], [2, 5, 3]]), + np.array([[1, 4], [-3, -3], [-2, 1]]), + np.array([[4, 2, -3], [1, 4, 3]]), + np.array([[-2, 4], [0, 1]])) sysd = c2d(sys, 0.1) np.testing.assert_array_almost_equal( - np.mat( - """0.742840837331905 0.342242024293711 0.203124211149560; - -0.074130792143890 0.724553295044645 -0.009143771143630; - 0.180264783290485 0.544385612448419 1.370501013067845"""), + np.array( + [[ 0.742840837331905, 0.342242024293711, 0.203124211149560], + [-0.074130792143890, 0.724553295044645, -0.009143771143630], + [ 0.180264783290485, 0.544385612448419, 1.370501013067845]]), sysd.A) np.testing.assert_array_almost_equal( - np.mat(""" 0.012362066084719 0.301932197918268; - -0.260952977031384 -0.274201791021713; - -0.304617775734327 0.075182622718853"""), sysd.B) + np.array([[ 0.012362066084719, 0.301932197918268], + [-0.260952977031384, -0.274201791021713], + [-0.304617775734327, 0.075182622718853]]), + sysd.B) def testCombi01(self): - # test from a "real" case, combines tf, ss, connect and margin - # this is a type 2 system, with phase starting at -180. The - # margin command should remove the solution for w = nearly zero + """Test from a "real" case, combines tf, ss, connect and margin. + This is a type 2 system, with phase starting at -180. The + margin command should remove the solution for w = nearly zero. + """ # Example is a concocted two-body satellite with flexible link Jb = 400; Jp = 1000; @@ -659,35 +782,30 @@ def testCombi01(self): gm, pm, wg, wp = margin(Hol) # print("%f %f %f %f" % (gm, pm, wg, wp)) - self.assertAlmostEqual(gm, 3.32065569155) - self.assertAlmostEqual(pm, 46.9740430224) - self.assertAlmostEqual(wg, 0.176469728448) - self.assertAlmostEqual(wp, 0.0616288455466) + np.testing.assert_allclose(gm, 3.32065569155) + np.testing.assert_allclose(pm, 46.9740430224) + np.testing.assert_allclose(wg, 0.176469728448) + np.testing.assert_allclose(wp, 0.0616288455466) def test_tf_string_args(self): - # Make sure that the 's' variable is defined properly + """Make sure s and z are defined properly""" s = tf('s') G = (s + 1)/(s**2 + 2*s + 1) np.testing.assert_array_almost_equal(G.num, [[[1, 1]]]) np.testing.assert_array_almost_equal(G.den, [[[1, 2, 1]]]) - self.assertTrue(isctime(G, strict=True)) + assert isctime(G, strict=True) - # Make sure that the 'z' variable is defined properly z = tf('z') G = (z + 1)/(z**2 + 2*z + 1) np.testing.assert_array_almost_equal(G.num, [[[1, 1]]]) np.testing.assert_array_almost_equal(G.den, [[[1, 2, 1]]]) - self.assertTrue(isdtime(G, strict=True)) + assert isdtime(G, strict=True) #! TODO: not yet implemented # def testMIMOtfdata(self): -# sisotf = ss2tf(self.siso_ss1) +# sisotf = ss2tf(siso.ss1) # tfdata_1 = tfdata(sisotf) -# tfdata_2 = tfdata(self.mimo_ss1, input=0, output=0) +# tfdata_2 = tfdata(mimo.ss1, input=0, output=0) # for i in range(len(tfdata)): # np.testing.assert_array_almost_equal(tfdata_1[i], tfdata_2[i]) - - -if __name__ == '__main__': - unittest.main() diff --git a/control/tests/minreal_test.py b/control/tests/minreal_test.py index 595bb08b0..b2d166d5a 100644 --- a/control/tests/minreal_test.py +++ b/control/tests/minreal_test.py @@ -1,27 +1,28 @@ -#!/usr/bin/env python -# -# minreal_test.py - test state space class -# Rvp, 13 Jun 2013 +"""minreal_test.py - test state space class + +Rvp, 13 Jun 2013 +""" -import unittest import numpy as np from scipy.linalg import eigvals -from control import matlab +import pytest + +from control import rss, ss, zero from control.statesp import StateSpace from control.xferfcn import TransferFunction from itertools import permutations -from control.exception import slycot_check +from control.tests.conftest import slycotonly -@unittest.skipIf(not slycot_check(), "slycot not installed") -class TestMinreal(unittest.TestCase): - """Tests for the StateSpace class.""" - def setUp(self): - np.random.seed(5) - # depending on the seed and minreal performance, a number of - # reductions is produced. If random gen or minreal change, this - # will be likely to fail - self.nreductions = 0 +@pytest.fixture +def fixedseed(scope="class"): + np.random.seed(5) + + +@slycotonly +@pytest.mark.usefixtures("fixedseed") +class TestMinreal: + """Tests for the StateSpace class.""" def assert_numden_almost_equal(self, n1, n2, d1, d2): n1[np.abs(n1) < 1e-10] = 0. @@ -35,13 +36,18 @@ def assert_numden_almost_equal(self, n1, n2, d1, d2): np.testing.assert_array_almost_equal(n1, n2) np.testing.assert_array_almost_equal(d2, d2) - def testMinrealBrute(self): + + # depending on the seed and minreal performance, a number of + # reductions is produced. If random gen or minreal change, this + # will be likely to fail + nreductions = 0 + for n, m, p in permutations(range(1,6), 3): - s = matlab.rss(n, p, m) + s = rss(n, p, m) sr = s.minreal() if s.states > sr.states: - self.nreductions += 1 + nreductions += 1 else: # Check to make sure that poles and zeros match @@ -53,30 +59,30 @@ def testMinrealBrute(self): for i in range(m): for j in range(p): # Extract SISO dynamixs from input i to output j - s1 = matlab.ss(s.A, s.B[:,i], s.C[j,:], s.D[j,i]) - s2 = matlab.ss(sr.A, sr.B[:,i], sr.C[j,:], sr.D[j,i]) + s1 = ss(s.A, s.B[:,i], s.C[j,:], s.D[j,i]) + s2 = ss(sr.A, sr.B[:,i], sr.C[j,:], sr.D[j,i]) # Check that the zeros match # Note: sorting doesn't work => have to do the hard way - z1 = matlab.zero(s1) - z2 = matlab.zero(s2) + z1 = zero(s1) + z2 = zero(s2) # Start by making sure we have the same # of zeros - self.assertEqual(len(z1), len(z2)) + assert len(z1) == len(z2) # Make sure all zeros in s1 are in s2 - for zero in z1: - # Find the closest zero - self.assertAlmostEqual(min(abs(z2 - zero)), 0.) + for z in z1: + # Find the closest zero TODO: find proper bounds + assert min(abs(z2 - z)) <= 1e-7 # Make sure all zeros in s2 are in s1 - for zero in z2: + for z in z2: # Find the closest zero - self.assertAlmostEqual(min(abs(z1 - zero)), 0.) + assert min(abs(z1 - z)) <= 1e-7 # Make sure that the number of systems reduced is as expected # (Need to update this number if you change the seed at top of file) - self.assertEqual(self.nreductions, 2) + assert nreductions == 2 def testMinrealSS(self): """Test a minreal model reduction""" @@ -92,9 +98,9 @@ def testMinrealSS(self): sys = StateSpace(A, B, C, D) sysr = sys.minreal() - self.assertEqual(sysr.states, 2) - self.assertEqual(sysr.inputs, sys.inputs) - self.assertEqual(sysr.outputs, sys.outputs) + assert sysr.states == 2 + assert sysr.inputs == sys.inputs + assert sysr.outputs == sys.outputs np.testing.assert_array_almost_equal( eigvals(sysr.A), [-2.136154, -0.1638459]) @@ -108,6 +114,3 @@ def testMinrealtf(self): np.testing.assert_array_almost_equal(hm.num[0][0], hr.num[0][0]) np.testing.assert_array_almost_equal(hm.den[0][0], hr.den[0][0]) - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/modelsimp_array_test.py b/control/tests/modelsimp_array_test.py deleted file mode 100644 index dbd6a5796..000000000 --- a/control/tests/modelsimp_array_test.py +++ /dev/null @@ -1,251 +0,0 @@ -#!/usr/bin/env python -# -# modelsimp_test.py - test model reduction functions -# RMM, 30 Mar 2011 (based on TestModelSimp from v0.4a) - -import unittest -import numpy as np -import warnings -import control -from control.modelsimp import * -from control.matlab import * -from control.exception import slycot_check, ControlMIMONotImplemented - -class TestModelsimp(unittest.TestCase): - def setUp(self): - # Use array instead of matrix (and save old value to restore at end) - control.use_numpy_matrix(False) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testHSVD(self): - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5.], [7.]]) - C = np.array([[6., 8.]]) - D = np.array([[9.]]) - sys = ss(A,B,C,D) - hsv = hsvd(sys) - hsvtrue = np.array([24.42686, 0.5731395]) # from MATLAB - np.testing.assert_array_almost_equal(hsv, hsvtrue) - - # Make sure default type values are correct - self.assertTrue(isinstance(hsv, np.ndarray)) - self.assertFalse(isinstance(hsv, np.matrix)) - - # Check that using numpy.matrix does *not* affect answer - with warnings.catch_warnings(record=True) as w: - control.use_numpy_matrix(True) - self.assertTrue(issubclass(w[-1].category, UserWarning)) - - # Redefine the system (using np.matrix for storage) - sys = ss(A, B, C, D) - - # Compute the Hankel singular value decomposition - hsv = hsvd(sys) - - # Make sure that return type is correct - self.assertTrue(isinstance(hsv, np.ndarray)) - self.assertFalse(isinstance(hsv, np.matrix)) - - # Go back to using the normal np.array representation - control.use_numpy_matrix(False) - - def testMarkovSignature(self): - U = np.array([[1., 1., 1., 1., 1.]]) - Y = U - m = 3 - H = markov(Y, U, m, transpose=False) - Htrue = np.array([[1., 0., 0.]]) - np.testing.assert_array_almost_equal( H, Htrue ) - - # Make sure that transposed data also works - H = markov(np.transpose(Y), np.transpose(U), m, transpose=True) - np.testing.assert_array_almost_equal( H, np.transpose(Htrue) ) - - # Default (in v0.8.4 and below) should be transpose=True (w/ warning) - import warnings - warnings.simplefilter('always', UserWarning) # don't supress - with warnings.catch_warnings(record=True) as w: - # Set up warnings filter to only show warnings in control module - warnings.filterwarnings("ignore") - warnings.filterwarnings("always", module="control") - - # Generate Markov parameters without any arguments - H = markov(np.transpose(Y), np.transpose(U), m) - np.testing.assert_array_almost_equal( H, np.transpose(Htrue) ) - - # Make sure we got a warning - self.assertEqual(len(w), 1) - self.assertIn("assumed to be in rows", str(w[-1].message)) - self.assertIn("change in a future release", str(w[-1].message)) - - # Test example from docstring - T = np.linspace(0, 10, 100) - U = np.ones((1, 100)) - T, Y, _ = control.forced_response( - control.tf([1], [1, 0.5], True), T, U) - H = markov(Y, U, 3, transpose=False) - - # Test example from issue #395 - inp = np.array([1, 2]) - outp = np.array([2, 4]) - mrk = markov(outp, inp, 1, transpose=False) - - # Make sure MIMO generates an error - U = np.ones((2, 100)) # 2 inputs (Y unchanged, with 1 output) - np.testing.assert_raises(ControlMIMONotImplemented, markov, Y, U, m) - - # Make sure markov() returns the right answer - def testMarkovResults(self): - # - # Test over a range of parameters - # - # k = order of the system - # m = number of Markov parameters - # n = size of the data vector - # - # Values should match exactly for n = m, otherewise you get a - # close match but errors due to the assumption that C A^k B = - # 0 for k > m-2 (see modelsimp.py). - # - for k, m, n in \ - ((2, 2, 2), (2, 5, 5), (5, 2, 2), (5, 5, 5), (5, 10, 10)): - - # Generate stable continuous time system - Hc = control.rss(k, 1, 1) - - # Choose sampling time based on fastest time constant / 10 - w, _ = np.linalg.eig(Hc.A) - Ts = np.min(-np.real(w)) / 10. - - # Convert to a discrete time system via sampling - Hd = control.c2d(Hc, Ts, 'zoh') - - # Compute the Markov parameters from state space - Mtrue = np.hstack([Hd.D] + [np.dot( - Hd.C, np.dot(np.linalg.matrix_power(Hd.A, i), - Hd.B)) for i in range(m-1)]) - - # Generate input/output data - T = np.array(range(n)) * Ts - U = np.cos(T) + np.sin(T/np.pi) - _, Y, _ = control.forced_response(Hd, T, U, squeeze=True) - Mcomp = markov(Y, U, m, transpose=False) - - # Compare to results from markov() - np.testing.assert_array_almost_equal(Mtrue, Mcomp) - - def testModredMatchDC(self): - #balanced realization computed in matlab for the transfer function: - # num = [1 11 45 32], den = [1 15 60 200 60] - A = np.array( - [[-1.958, -1.194, 1.824, -1.464], - [-1.194, -0.8344, 2.563, -1.351], - [-1.824, -2.563, -1.124, 2.704], - [-1.464, -1.351, -2.704, -11.08]]) - B = np.array([[-0.9057], [-0.4068], [-0.3263], [-0.3474]]) - C = np.array([[-0.9057, -0.4068, 0.3263, -0.3474]]) - D = np.array([[0.]]) - sys = ss(A,B,C,D) - rsys = modred(sys,[2, 3],'matchdc') - Artrue = np.array([[-4.431, -4.552], [-4.552, -5.361]]) - Brtrue = np.array([[-1.362], [-1.031]]) - Crtrue = np.array([[-1.362, -1.031]]) - Drtrue = np.array([[-0.08384]]) - np.testing.assert_array_almost_equal(rsys.A, Artrue,decimal=3) - np.testing.assert_array_almost_equal(rsys.B, Brtrue,decimal=3) - np.testing.assert_array_almost_equal(rsys.C, Crtrue,decimal=3) - np.testing.assert_array_almost_equal(rsys.D, Drtrue,decimal=2) - - def testModredUnstable(self): - # Check if an error is thrown when an unstable system is given - A = np.array( - [[4.5418, 3.3999, 5.0342, 4.3808], - [0.3890, 0.3599, 0.4195, 0.1760], - [-4.2117, -3.2395, -4.6760, -4.2180], - [0.0052, 0.0429, 0.0155, 0.2743]]) - B = np.array([[1.0, 1.0], [2.0, 2.0], [3.0, 3.0], [4.0, 4.0]]) - C = np.array([[1.0, 2.0, 3.0, 4.0], [1.0, 2.0, 3.0, 4.0]]) - D = np.array([[0.0, 0.0], [0.0, 0.0]]) - sys = ss(A,B,C,D) - np.testing.assert_raises(ValueError, modred, sys, [2, 3]) - - def testModredTruncate(self): - #balanced realization computed in matlab for the transfer function: - # num = [1 11 45 32], den = [1 15 60 200 60] - A = np.array( - [[-1.958, -1.194, 1.824, -1.464], - [-1.194, -0.8344, 2.563, -1.351], - [-1.824, -2.563, -1.124, 2.704], - [-1.464, -1.351, -2.704, -11.08]]) - B = np.array([[-0.9057], [-0.4068], [-0.3263], [-0.3474]]) - C = np.array([[-0.9057, -0.4068, 0.3263, -0.3474]]) - D = np.array([[0.]]) - sys = ss(A,B,C,D) - rsys = modred(sys,[2, 3],'truncate') - Artrue = np.array([[-1.958, -1.194], [-1.194, -0.8344]]) - Brtrue = np.array([[-0.9057], [-0.4068]]) - Crtrue = np.array([[-0.9057, -0.4068]]) - Drtrue = np.array([[0.]]) - np.testing.assert_array_almost_equal(rsys.A, Artrue) - np.testing.assert_array_almost_equal(rsys.B, Brtrue) - np.testing.assert_array_almost_equal(rsys.C, Crtrue) - np.testing.assert_array_almost_equal(rsys.D, Drtrue) - - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testBalredTruncate(self): - #controlable canonical realization computed in matlab for the transfer function: - # num = [1 11 45 32], den = [1 15 60 200 60] - A = np.array( - [[-15., -7.5, -6.25, -1.875], - [8., 0., 0., 0.], - [0., 4., 0., 0.], - [0., 0., 1., 0.]]) - B = np.array([[2.], [0.], [0.], [0.]]) - C = np.array([[0.5, 0.6875, 0.7031, 0.5]]) - D = np.array([[0.]]) - sys = ss(A,B,C,D) - orders = 2 - rsys = balred(sys,orders,method='truncate') - Artrue = np.array([[-1.958, -1.194], [-1.194, -0.8344]]) - Brtrue = np.array([[0.9057], [0.4068]]) - Crtrue = np.array([[0.9057, 0.4068]]) - Drtrue = np.array([[0.]]) - np.testing.assert_array_almost_equal(rsys.A, Artrue,decimal=2) - np.testing.assert_array_almost_equal(rsys.B, Brtrue,decimal=4) - np.testing.assert_array_almost_equal(rsys.C, Crtrue,decimal=4) - np.testing.assert_array_almost_equal(rsys.D, Drtrue,decimal=4) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testBalredMatchDC(self): - #controlable canonical realization computed in matlab for the transfer function: - # num = [1 11 45 32], den = [1 15 60 200 60] - A = np.array( - [[-15., -7.5, -6.25, -1.875], - [8., 0., 0., 0.], - [0., 4., 0., 0.], - [0., 0., 1., 0.]]) - B = np.array([[2.], [0.], [0.], [0.]]) - C = np.array([[0.5, 0.6875, 0.7031, 0.5]]) - D = np.array([[0.]]) - sys = ss(A,B,C,D) - orders = 2 - rsys = balred(sys,orders,method='matchdc') - Artrue = np.array( - [[-4.43094773, -4.55232904], - [-4.55232904, -5.36195206]]) - Brtrue = np.array([[1.36235673], [1.03114388]]) - Crtrue = np.array([[1.36235673, 1.03114388]]) - Drtrue = np.array([[-0.08383902]]) - np.testing.assert_array_almost_equal(rsys.A, Artrue,decimal=2) - np.testing.assert_array_almost_equal(rsys.B, Brtrue,decimal=4) - np.testing.assert_array_almost_equal(rsys.C, Crtrue,decimal=4) - np.testing.assert_array_almost_equal(rsys.D, Drtrue,decimal=4) - - def tearDown(self): - # Reset configuration variables to their original settings - control.config.reset_defaults() - - -if __name__ == '__main__': - unittest.main() diff --git a/control/tests/modelsimp_matrix_test.py b/control/tests/modelsimp_matrix_test.py deleted file mode 100644 index c0ba72a3b..000000000 --- a/control/tests/modelsimp_matrix_test.py +++ /dev/null @@ -1,135 +0,0 @@ -#!/usr/bin/env python -# -# modelsimp_test.py - test model reduction functions -# RMM, 30 Mar 2011 (based on TestModelSimp from v0.4a) - -import unittest -import numpy as np -from control.modelsimp import * -from control.matlab import * -from control.exception import slycot_check - -class TestModelsimp(unittest.TestCase): - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testHSVD(self): - A = np.matrix("1. -2.; 3. -4.") - B = np.matrix("5.; 7.") - C = np.matrix("6. 8.") - D = np.matrix("9.") - sys = ss(A,B,C,D) - hsv = hsvd(sys) - hsvtrue = [24.42686, 0.5731395] # from MATLAB - np.testing.assert_array_almost_equal(hsv, hsvtrue) - - def testMarkov(self): - U = np.matrix("1.; 1.; 1.; 1.; 1.") - Y = U - M = 3 - H = markov(Y, U, M) - Htrue = np.matrix("1.; 0.; 0.") - np.testing.assert_array_almost_equal( H, Htrue ) - - def testModredMatchDC(self): - #balanced realization computed in matlab for the transfer function: - # num = [1 11 45 32], den = [1 15 60 200 60] - A = np.matrix('-1.958, -1.194, 1.824, -1.464; \ - -1.194, -0.8344, 2.563, -1.351; \ - -1.824, -2.563, -1.124, 2.704; \ - -1.464, -1.351, -2.704, -11.08') - B = np.matrix('-0.9057; -0.4068; -0.3263; -0.3474') - C = np.matrix('-0.9057, -0.4068, 0.3263, -0.3474') - D = np.matrix('0.') - sys = ss(A,B,C,D) - rsys = modred(sys,[2, 3],'matchdc') - Artrue = np.matrix('-4.431, -4.552; -4.552, -5.361') - Brtrue = np.matrix('-1.362; -1.031') - Crtrue = np.matrix('-1.362, -1.031') - Drtrue = np.matrix('-0.08384') - np.testing.assert_array_almost_equal(rsys.A, Artrue,decimal=3) - np.testing.assert_array_almost_equal(rsys.B, Brtrue,decimal=3) - np.testing.assert_array_almost_equal(rsys.C, Crtrue,decimal=3) - np.testing.assert_array_almost_equal(rsys.D, Drtrue,decimal=2) - - def testModredUnstable(self): - # Check if an error is thrown when an unstable system is given - A = np.matrix('4.5418, 3.3999, 5.0342, 4.3808; \ - 0.3890, 0.3599, 0.4195, 0.1760; \ - -4.2117, -3.2395, -4.6760, -4.2180; \ - 0.0052, 0.0429, 0.0155, 0.2743') - B = np.matrix('1.0, 1.0; 2.0, 2.0; 3.0, 3.0; 4.0, 4.0') - C = np.matrix('1.0, 2.0, 3.0, 4.0; 1.0, 2.0, 3.0, 4.0') - D = np.matrix('0.0, 0.0; 0.0, 0.0') - sys = ss(A,B,C,D) - np.testing.assert_raises(ValueError, modred, sys, [2, 3]) - - def testModredTruncate(self): - #balanced realization computed in matlab for the transfer function: - # num = [1 11 45 32], den = [1 15 60 200 60] - A = np.matrix('-1.958, -1.194, 1.824, -1.464; \ - -1.194, -0.8344, 2.563, -1.351; \ - -1.824, -2.563, -1.124, 2.704; \ - -1.464, -1.351, -2.704, -11.08') - B = np.matrix('-0.9057; -0.4068; -0.3263; -0.3474') - C = np.matrix('-0.9057, -0.4068, 0.3263, -0.3474') - D = np.matrix('0.') - sys = ss(A,B,C,D) - rsys = modred(sys,[2, 3],'truncate') - Artrue = np.matrix('-1.958, -1.194; -1.194, -0.8344') - Brtrue = np.matrix('-0.9057; -0.4068') - Crtrue = np.matrix('-0.9057, -0.4068') - Drtrue = np.matrix('0.') - np.testing.assert_array_almost_equal(rsys.A, Artrue) - np.testing.assert_array_almost_equal(rsys.B, Brtrue) - np.testing.assert_array_almost_equal(rsys.C, Crtrue) - np.testing.assert_array_almost_equal(rsys.D, Drtrue) - - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testBalredTruncate(self): - #controlable canonical realization computed in matlab for the transfer function: - # num = [1 11 45 32], den = [1 15 60 200 60] - A = np.matrix('-15., -7.5, -6.25, -1.875; \ - 8., 0., 0., 0.; \ - 0., 4., 0., 0.; \ - 0., 0., 1., 0.') - B = np.matrix('2.; 0.; 0.; 0.') - C = np.matrix('0.5, 0.6875, 0.7031, 0.5') - D = np.matrix('0.') - sys = ss(A,B,C,D) - orders = 2 - rsys = balred(sys,orders,method='truncate') - Artrue = np.matrix('-1.958, -1.194; -1.194, -0.8344') - Brtrue = np.matrix('0.9057; 0.4068') - Crtrue = np.matrix('0.9057, 0.4068') - Drtrue = np.matrix('0.') - np.testing.assert_array_almost_equal(rsys.A, Artrue,decimal=2) - np.testing.assert_array_almost_equal(rsys.B, Brtrue,decimal=4) - np.testing.assert_array_almost_equal(rsys.C, Crtrue,decimal=4) - np.testing.assert_array_almost_equal(rsys.D, Drtrue,decimal=4) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testBalredMatchDC(self): - #controlable canonical realization computed in matlab for the transfer function: - # num = [1 11 45 32], den = [1 15 60 200 60] - A = np.matrix('-15., -7.5, -6.25, -1.875; \ - 8., 0., 0., 0.; \ - 0., 4., 0., 0.; \ - 0., 0., 1., 0.') - B = np.matrix('2.; 0.; 0.; 0.') - C = np.matrix('0.5, 0.6875, 0.7031, 0.5') - D = np.matrix('0.') - sys = ss(A,B,C,D) - orders = 2 - rsys = balred(sys,orders,method='matchdc') - Artrue = np.matrix('-4.43094773, -4.55232904; -4.55232904, -5.36195206') - Brtrue = np.matrix('1.36235673; 1.03114388') - Crtrue = np.matrix('1.36235673, 1.03114388') - Drtrue = np.matrix('-0.08383902') - np.testing.assert_array_almost_equal(rsys.A, Artrue,decimal=2) - np.testing.assert_array_almost_equal(rsys.B, Brtrue,decimal=4) - np.testing.assert_array_almost_equal(rsys.C, Crtrue,decimal=4) - np.testing.assert_array_almost_equal(rsys.D, Drtrue,decimal=4) - - -if __name__ == '__main__': - unittest.main() diff --git a/control/tests/modelsimp_test.py b/control/tests/modelsimp_test.py new file mode 100644 index 000000000..1e06cb4b7 --- /dev/null +++ b/control/tests/modelsimp_test.py @@ -0,0 +1,225 @@ +"""modelsimp_array_test.py - test model reduction functions + +RMM, 30 Mar 2011 (based on TestModelSimp from v0.4a) +""" + +import numpy as np +import pytest + + +from control import StateSpace, forced_response, tf, rss, c2d +from control.exception import ControlMIMONotImplemented +from control.tests.conftest import slycotonly, matarrayin +from control.modelsimp import balred, hsvd, markov, modred + + +class TestModelsimp: + """Test model reduction functions""" + + @slycotonly + def testHSVD(self, matarrayout, matarrayin): + A = matarrayin([[1., -2.], [3., -4.]]) + B = matarrayin([[5.], [7.]]) + C = matarrayin([[6., 8.]]) + D = matarrayin([[9.]]) + sys = StateSpace(A, B, C, D) + hsv = hsvd(sys) + hsvtrue = np.array([24.42686, 0.5731395]) # from MATLAB + np.testing.assert_array_almost_equal(hsv, hsvtrue) + + # test for correct return type: ALWAYS return ndarray, even when + # use_numpy_matrix(True) was used + assert isinstance(hsv, np.ndarray) + assert not isinstance(hsv, np.matrix) + + def testMarkovSignature(self, matarrayout, matarrayin): + U = matarrayin([[1., 1., 1., 1., 1.]]) + Y = U + m = 3 + H = markov(Y, U, m, transpose=False) + Htrue = np.array([[1., 0., 0.]]) + np.testing.assert_array_almost_equal(H, Htrue) + + # Make sure that transposed data also works + H = markov(np.transpose(Y), np.transpose(U), m, transpose=True) + np.testing.assert_array_almost_equal(H, np.transpose(Htrue)) + + # Default (in v0.8.4 and below) should be transpose=True (w/ warning) + with pytest.warns(UserWarning, match="assumed to be in rows.*" + "change in a future release"): + # Generate Markov parameters without any arguments + H = markov(np.transpose(Y), np.transpose(U), m) + np.testing.assert_array_almost_equal(H, np.transpose(Htrue)) + + + # Test example from docstring + T = np.linspace(0, 10, 100) + U = np.ones((1, 100)) + T, Y, _ = forced_response(tf([1], [1, 0.5], True), T, U) + H = markov(Y, U, 3, transpose=False) + + # Test example from issue #395 + inp = np.array([1, 2]) + outp = np.array([2, 4]) + mrk = markov(outp, inp, 1, transpose=False) + + # Make sure MIMO generates an error + U = np.ones((2, 100)) # 2 inputs (Y unchanged, with 1 output) + with pytest.warns(UserWarning): + with pytest.raises(ControlMIMONotImplemented): + markov(Y, U, m) + + # Make sure markov() returns the right answer + @pytest.mark.parametrize("k, m, n", + [(2, 2, 2), + (2, 5, 5), + (5, 2, 2), + (5, 5, 5), + (5, 10, 10)]) + def testMarkovResults(self, k, m, n): + # + # Test over a range of parameters + # + # k = order of the system + # m = number of Markov parameters + # n = size of the data vector + # + # Values should match exactly for n = m, otherewise you get a + # close match but errors due to the assumption that C A^k B = + # 0 for k > m-2 (see modelsimp.py). + # + + # Generate stable continuous time system + Hc = rss(k, 1, 1) + + # Choose sampling time based on fastest time constant / 10 + w, _ = np.linalg.eig(Hc.A) + Ts = np.min(-np.real(w)) / 10. + + # Convert to a discrete time system via sampling + Hd = c2d(Hc, Ts, 'zoh') + + # Compute the Markov parameters from state space + Mtrue = np.hstack([Hd.D] + [np.dot( + Hd.C, np.dot(np.linalg.matrix_power(Hd.A, i), + Hd.B)) for i in range(m-1)]) + + # Generate input/output data + T = np.array(range(n)) * Ts + U = np.cos(T) + np.sin(T/np.pi) + _, Y, _ = forced_response(Hd, T, U, squeeze=True) + Mcomp = markov(Y, U, m, transpose=False) + + # Compare to results from markov() + np.testing.assert_array_almost_equal(Mtrue, Mcomp) + + def testModredMatchDC(self, matarrayin): + #balanced realization computed in matlab for the transfer function: + # num = [1 11 45 32], den = [1 15 60 200 60] + A = matarrayin( + [[-1.958, -1.194, 1.824, -1.464], + [-1.194, -0.8344, 2.563, -1.351], + [-1.824, -2.563, -1.124, 2.704], + [-1.464, -1.351, -2.704, -11.08]]) + B = matarrayin([[-0.9057], [-0.4068], [-0.3263], [-0.3474]]) + C = matarrayin([[-0.9057, -0.4068, 0.3263, -0.3474]]) + D = matarrayin([[0.]]) + sys = StateSpace(A, B, C, D) + rsys = modred(sys,[2, 3],'matchdc') + Artrue = np.array([[-4.431, -4.552], [-4.552, -5.361]]) + Brtrue = np.array([[-1.362], [-1.031]]) + Crtrue = np.array([[-1.362, -1.031]]) + Drtrue = np.array([[-0.08384]]) + np.testing.assert_array_almost_equal(rsys.A, Artrue, decimal=3) + np.testing.assert_array_almost_equal(rsys.B, Brtrue, decimal=3) + np.testing.assert_array_almost_equal(rsys.C, Crtrue, decimal=3) + np.testing.assert_array_almost_equal(rsys.D, Drtrue, decimal=2) + + def testModredUnstable(self, matarrayin): + """Check if an error is thrown when an unstable system is given""" + A = matarrayin( + [[4.5418, 3.3999, 5.0342, 4.3808], + [0.3890, 0.3599, 0.4195, 0.1760], + [-4.2117, -3.2395, -4.6760, -4.2180], + [0.0052, 0.0429, 0.0155, 0.2743]]) + B = matarrayin([[1.0, 1.0], [2.0, 2.0], [3.0, 3.0], [4.0, 4.0]]) + C = matarrayin([[1.0, 2.0, 3.0, 4.0], [1.0, 2.0, 3.0, 4.0]]) + D = matarrayin([[0.0, 0.0], [0.0, 0.0]]) + sys = StateSpace(A, B, C, D) + np.testing.assert_raises(ValueError, modred, sys, [2, 3]) + + def testModredTruncate(self, matarrayin): + #balanced realization computed in matlab for the transfer function: + # num = [1 11 45 32], den = [1 15 60 200 60] + A = matarrayin( + [[-1.958, -1.194, 1.824, -1.464], + [-1.194, -0.8344, 2.563, -1.351], + [-1.824, -2.563, -1.124, 2.704], + [-1.464, -1.351, -2.704, -11.08]]) + B = matarrayin([[-0.9057], [-0.4068], [-0.3263], [-0.3474]]) + C = matarrayin([[-0.9057, -0.4068, 0.3263, -0.3474]]) + D = matarrayin([[0.]]) + sys = StateSpace(A, B, C, D) + rsys = modred(sys,[2, 3],'truncate') + Artrue = np.array([[-1.958, -1.194], [-1.194, -0.8344]]) + Brtrue = np.array([[-0.9057], [-0.4068]]) + Crtrue = np.array([[-0.9057, -0.4068]]) + Drtrue = np.array([[0.]]) + np.testing.assert_array_almost_equal(rsys.A, Artrue) + np.testing.assert_array_almost_equal(rsys.B, Brtrue) + np.testing.assert_array_almost_equal(rsys.C, Crtrue) + np.testing.assert_array_almost_equal(rsys.D, Drtrue) + + + @slycotonly + def testBalredTruncate(self, matarrayin): + # controlable canonical realization computed in matlab for the transfer + # function: + # num = [1 11 45 32], den = [1 15 60 200 60] + A = matarrayin( + [[-15., -7.5, -6.25, -1.875], + [8., 0., 0., 0.], + [0., 4., 0., 0.], + [0., 0., 1., 0.]]) + B = matarrayin([[2.], [0.], [0.], [0.]]) + C = matarrayin([[0.5, 0.6875, 0.7031, 0.5]]) + D = matarrayin([[0.]]) + sys = StateSpace(A, B, C, D) + orders = 2 + rsys = balred(sys, orders, method='truncate') + Artrue = np.array([[-1.958, -1.194], [-1.194, -0.8344]]) + Brtrue = np.array([[0.9057], [0.4068]]) + Crtrue = np.array([[0.9057, 0.4068]]) + Drtrue = np.array([[0.]]) + np.testing.assert_array_almost_equal(rsys.A, Artrue, decimal=2) + np.testing.assert_array_almost_equal(rsys.B, Brtrue, decimal=4) + np.testing.assert_array_almost_equal(rsys.C, Crtrue, decimal=4) + np.testing.assert_array_almost_equal(rsys.D, Drtrue, decimal=4) + + @slycotonly + def testBalredMatchDC(self, matarrayin): + # controlable canonical realization computed in matlab for the transfer + # function: + # num = [1 11 45 32], den = [1 15 60 200 60] + A = matarrayin( + [[-15., -7.5, -6.25, -1.875], + [8., 0., 0., 0.], + [0., 4., 0., 0.], + [0., 0., 1., 0.]]) + B = matarrayin([[2.], [0.], [0.], [0.]]) + C = matarrayin([[0.5, 0.6875, 0.7031, 0.5]]) + D = matarrayin([[0.]]) + sys = StateSpace(A, B, C, D) + orders = 2 + rsys = balred(sys,orders,method='matchdc') + Artrue = np.array( + [[-4.43094773, -4.55232904], + [-4.55232904, -5.36195206]]) + Brtrue = np.array([[1.36235673], [1.03114388]]) + Crtrue = np.array([[1.36235673, 1.03114388]]) + Drtrue = np.array([[-0.08383902]]) + np.testing.assert_array_almost_equal(rsys.A, Artrue, decimal=2) + np.testing.assert_array_almost_equal(rsys.B, Brtrue, decimal=4) + np.testing.assert_array_almost_equal(rsys.C, Crtrue, decimal=4) + np.testing.assert_array_almost_equal(rsys.D, Drtrue, decimal=4) + diff --git a/control/tests/nichols_test.py b/control/tests/nichols_test.py index 9cf15ae44..4cdfcaa65 100644 --- a/control/tests/nichols_test.py +++ b/control/tests/nichols_test.py @@ -1,34 +1,28 @@ -#!/usr/bin/env python -# -# nichols_test.py - test Nichols plot -# RMM, 31 Mar 2011 +"""nichols_test.py - test Nichols plot -import unittest -import numpy as np -from control.matlab import * +RMM, 31 Mar 2011 +""" -class TestStateSpace(unittest.TestCase): - """Tests for the Nichols plots.""" +import pytest - def setUp(self): - """Set up a system to test operations on.""" +from control import StateSpace, nichols_plot, nichols - A = [[-3., 4., 2.], [-1., -3., 0.], [2., 5., 3.]] - B = [[1.], [-3.], [-2.]] - C = [[4., 2., -3.]] - D = [[0.]] - self.sys = StateSpace(A, B, C, D) +@pytest.fixture() +def tsys(): + """Set up a system to test operations on.""" + A = [[-3., 4., 2.], [-1., -3., 0.], [2., 5., 3.]] + B = [[1.], [-3.], [-2.]] + C = [[4., 2., -3.]] + D = [[0.]] + return StateSpace(A, B, C, D) - def testNicholsPlain(self): - """Generate a Nichols plot.""" - nichols(self.sys) - def testNgrid(self): - """Generate a Nichols plot.""" - nichols(self.sys, grid=False) - ngrid() +def test_nichols(tsys, mplcleanup): + """Generate a Nichols plot.""" + nichols_plot(tsys) -if __name__ == "__main__": - unittest.main() +def test_nichols_alias(tsys, mplcleanup): + """Test the control.nichols alias and the grid=False parameter""" + nichols(tsys, grid=False) diff --git a/control/tests/phaseplot_test.py b/control/tests/phaseplot_test.py index 5b41615d7..8336ae975 100644 --- a/control/tests/phaseplot_test.py +++ b/control/tests/phaseplot_test.py @@ -1,27 +1,28 @@ -#!/usr/bin/env python -# -# phaseplot_test.py - test phase plot functions -# RMM, 17 24 2011 (based on TestMatlab from v0.4c) -# -# This test suite calls various phaseplot functions. Since the plots -# themselves can't be verified, this is mainly here to make sure all -# of the function arguments are handled correctly. If you run an -# individual test by itself and then type show(), it should pop open -# the figures so that you can check them visually. - -import unittest -import numpy as np -import scipy as sp +"""phaseplot_test.py - test phase plot functions + +RMM, 17 24 2011 (based on TestMatlab from v0.4c) + +This test suite calls various phaseplot functions. Since the plots +themselves can't be verified, this is mainly here to make sure all +of the function arguments are handled correctly. If you run an +individual test by itself and then type show(), it should pop open +the figures so that you can check them visually. +""" + + import matplotlib.pyplot as mpl -from control import phase_plot +import numpy as np from numpy import pi +import pytest +from control import phase_plot + -class TestPhasePlot(unittest.TestCase): - def setUp(self): - pass + +@pytest.mark.usefixtures("mplcleanup") +class TestPhasePlot: def testInvPendNoSims(self): - phase_plot(self.invpend_ode, (-6,6,10), (-6,6,10)) + phase_plot(self.invpend_ode, (-6,6,10), (-6,6,10)); def testInvPendSims(self): phase_plot(self.invpend_ode, (-6,6,10), (-6,6,10), @@ -74,12 +75,8 @@ def d1(x1x2,t): # Sample dynamical systems - inverted pendulum def invpend_ode(self, x, t, m=1., l=1., b=0, g=9.8): import numpy as np - return (x[1], -b/m*x[1] + (g*l/m)*np.sin(x[0])) + return (x[1], -b/m*x[1] + (g*l/m) * np.sin(x[0])) # Sample dynamical systems - oscillator def oscillator_ode(self, x, t, m=1., b=1, k=1, extra=None): return (x[1], -k/m*x[0] - b/m*x[1]) - - -if __name__ == '__main__': - unittest.main() diff --git a/control/tests/pzmap_test.py b/control/tests/pzmap_test.py old mode 100755 new mode 100644 diff --git a/control/tests/rlocus_test.py b/control/tests/rlocus_test.py index d4c03307d..cf2b72cd3 100644 --- a/control/tests/rlocus_test.py +++ b/control/tests/rlocus_test.py @@ -1,12 +1,12 @@ -#!/usr/bin/env python -# -# rlocus_test.py - unit test for root locus diagrams -# RMM, 1 Jul 2011 +"""rlocus_test.py - unit test for root locus diagrams + +RMM, 1 Jul 2011 +""" -import unittest import matplotlib.pyplot as plt import numpy as np from numpy.testing import assert_array_almost_equal +import pytest from control.rlocus import root_locus, _RLClickDispatcher from control.xferfcn import TransferFunction @@ -14,17 +14,20 @@ from control.bdalg import feedback -class TestRootLocus(unittest.TestCase): +class TestRootLocus: """These are tests for the feedback function in rlocus.py.""" - def setUp(self): - """This contains some random LTI systems and scalars for testing.""" - - # Two random SISO systems. - sys1 = TransferFunction([1, 2], [1, 2, 3]) - sys2 = StateSpace([[1., 4.], [3., 2.]], [[1.], [-4.]], - [[1., 0.]], [[0.]]) - self.systems = (sys1, sys2) + @pytest.fixture(params=[(TransferFunction, ([1, 2], [1, 2, 3])), + (StateSpace, ([[1., 4.], [3., 2.]], + [[1.], [-4.]], + [[1., 0.]], [[0.]]))], + ids=["tf", "ss"]) + def sys(self, request): + """Return some simple LTI system for testing""" + # avoid construction during collection time: prevent unfiltered + # deprecation warning + sysfn, args = request.param + return sysfn(*args) def check_cl_poles(self, sys, pole_list, k_list): for k, poles in zip(k_list, pole_list): @@ -32,19 +35,18 @@ def check_cl_poles(self, sys, pole_list, k_list): poles = np.sort(poles) np.testing.assert_array_almost_equal(poles, poles_expected) - def testRootLocus(self): + def testRootLocus(self, sys): """Basic root locus plot""" klist = [-1, 0, 1] - for sys in self.systems: - roots, k_out = root_locus(sys, klist, plot=False) - np.testing.assert_equal(len(roots), len(klist)) - np.testing.assert_array_equal(klist, k_out) - self.check_cl_poles(sys, roots, klist) - def test_without_gains(self): - for sys in self.systems: - roots, kvect = root_locus(sys, plot=False) - self.check_cl_poles(sys, roots, kvect) + roots, k_out = root_locus(sys, klist, plot=False) + np.testing.assert_equal(len(roots), len(klist)) + np.testing.assert_array_equal(klist, k_out) + self.check_cl_poles(sys, roots, klist) + + def test_without_gains(self, sys): + roots, kvect = root_locus(sys, plot=False) + self.check_cl_poles(sys, roots, kvect) def test_root_locus_zoom(self): """Check the zooming functionality of the Root locus plot""" @@ -54,7 +56,9 @@ def test_root_locus_zoom(self): fig = plt.gcf() ax_rlocus = fig.axes[0] - event = type('test', (object,), {'xdata': 14.7607954359, 'ydata': -35.6171379864, 'inaxes': ax_rlocus.axes})() + event = type('test', (object,), {'xdata': 14.7607954359, + 'ydata': -35.6171379864, + 'inaxes': ax_rlocus.axes})() ax_rlocus.set_xlim((-10.813628105112421, 14.760795435937652)) ax_rlocus.set_ylim((-35.61713798641108, 33.879716621220311)) plt.get_current_fig_manager().toolbar.mode = 'zoom rect' @@ -64,12 +68,9 @@ def test_root_locus_zoom(self): zoom_y = ax_rlocus.lines[-2].get_data()[1][0:5] zoom_y = [abs(y) for y in zoom_y] - zoom_x_valid = [-5. ,- 4.61281263, - 4.16689986, - 4.04122642, - 3.90736502] - zoom_y_valid = [0. ,0., 0., 0., 0.] - - assert_array_almost_equal(zoom_x,zoom_x_valid) - assert_array_almost_equal(zoom_y,zoom_y_valid) - + zoom_x_valid = [ + -5., - 4.61281263, - 4.16689986, - 4.04122642, - 3.90736502] + zoom_y_valid = [0., 0., 0., 0., 0.] -if __name__ == "__main__": - unittest.main() + assert_array_almost_equal(zoom_x, zoom_x_valid) + assert_array_almost_equal(zoom_y, zoom_y_valid) diff --git a/control/tests/robust_array_test.py b/control/tests/robust_array_test.py deleted file mode 100644 index beb44d2de..000000000 --- a/control/tests/robust_array_test.py +++ /dev/null @@ -1,393 +0,0 @@ -import unittest -import numpy as np -import control -import control.robust -from control.exception import slycot_check - -class TestHinf(unittest.TestCase): - def setUp(self): - # Use array instead of matrix (and save old value to restore at end) - control.use_numpy_matrix(False) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testHinfsyn(self): - """Test hinfsyn""" - p = control.ss(-1, [[1, 1]], [[1], [1]], [[0, 1], [1, 0]]) - k, cl, gam, rcond = control.robust.hinfsyn(p, 1, 1) - # from Octave, which also uses SB10AD: - # a= -1; b1= 1; b2= 1; c1= 1; c2= 1; d11= 0; d12= 1; d21= 1; d22= 0; - # g = ss(a,[b1,b2],[c1;c2],[d11,d12;d21,d22]); - # [k,cl] = hinfsyn(g,1,1); - np.testing.assert_array_almost_equal(k.A, [[-3]]) - np.testing.assert_array_almost_equal(k.B, [[1]]) - np.testing.assert_array_almost_equal(k.C, [[-1]]) - np.testing.assert_array_almost_equal(k.D, [[0]]) - np.testing.assert_array_almost_equal(cl.A, [[-1, -1], [1, -3]]) - np.testing.assert_array_almost_equal(cl.B, [[1], [1]]) - np.testing.assert_array_almost_equal(cl.C, [[1, -1]]) - np.testing.assert_array_almost_equal(cl.D, [[0]]) - - # TODO: add more interesting examples - - def tearDown(self): - control.config.reset_defaults() - - -class TestH2(unittest.TestCase): - def setUp(self): - # Use array instead of matrix (and save old value to restore at end) - control.use_numpy_matrix(False) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testH2syn(self): - """Test h2syn""" - p = control.ss(-1, [[1, 1]], [[1], [1]], [[0, 1], [1, 0]]) - k = control.robust.h2syn(p, 1, 1) - # from Octave, which also uses SB10HD for H-2 synthesis: - # a= -1; b1= 1; b2= 1; c1= 1; c2= 1; d11= 0; d12= 1; d21= 1; d22= 0; - # g = ss(a,[b1,b2],[c1;c2],[d11,d12;d21,d22]); - # k = h2syn(g,1,1); - # the solution is the same as for the hinfsyn test - np.testing.assert_array_almost_equal(k.A, [[-3]]) - np.testing.assert_array_almost_equal(k.B, [[1]]) - np.testing.assert_array_almost_equal(k.C, [[-1]]) - np.testing.assert_array_almost_equal(k.D, [[0]]) - - def tearDown(self): - control.config.reset_defaults() - - -class TestAugw(unittest.TestCase): - """Test control.robust.augw""" - def setUp(self): - # Use array instead of matrix (and save old value to restore at end) - control.use_numpy_matrix(False) - - # tolerance for system equality - TOL = 1e-8 - - def siso_almost_equal(self, g, h): - """siso_almost_equal(g,h) -> None - Raises AssertionError if g and h, two SISO LTI objects, are not almost equal""" - from control import tf, minreal - gmh = tf(minreal(g - h, verbose=False)) - if not (gmh.num[0][0] < self.TOL).all(): - maxnum = max(abs(gmh.num[0][0])) - raise AssertionError( - 'systems not approx equal; max num. coeff is {}\nsys 1:\n{}\nsys 2:\n{}'.format( - maxnum, g, h)) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testSisoW1(self): - """SISO plant with S weighting""" - from control import augw, ss - g = ss([-1.], [1.], [1.], [1.]) - w1 = ss([-2], [2.], [1.], [2.]) - p = augw(g, w1) - self.assertEqual(2, p.outputs) - self.assertEqual(2, p.inputs) - # w->z1 should be w1 - self.siso_almost_equal(w1, p[0, 0]) - # w->v should be 1 - self.siso_almost_equal(ss([], [], [], [1]), p[1, 0]) - # u->z1 should be -w1*g - self.siso_almost_equal(-w1 * g, p[0, 1]) - # u->v should be -g - self.siso_almost_equal(-g, p[1, 1]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testSisoW2(self): - """SISO plant with KS weighting""" - from control import augw, ss - g = ss([-1.], [1.], [1.], [1.]) - w2 = ss([-2], [1.], [1.], [2.]) - p = augw(g, w2=w2) - self.assertEqual(2, p.outputs) - self.assertEqual(2, p.inputs) - # w->z2 should be 0 - self.siso_almost_equal(ss([], [], [], 0), p[0, 0]) - # w->v should be 1 - self.siso_almost_equal(ss([], [], [], [1]), p[1, 0]) - # u->z2 should be w2 - self.siso_almost_equal(w2, p[0, 1]) - # u->v should be -g - self.siso_almost_equal(-g, p[1, 1]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testSisoW3(self): - """SISO plant with T weighting""" - from control import augw, ss - g = ss([-1.], [1.], [1.], [1.]) - w3 = ss([-2], [1.], [1.], [2.]) - p = augw(g, w3=w3) - self.assertEqual(2, p.outputs) - self.assertEqual(2, p.inputs) - # w->z3 should be 0 - self.siso_almost_equal(ss([], [], [], 0), p[0, 0]) - # w->v should be 1 - self.siso_almost_equal(ss([], [], [], [1]), p[1, 0]) - # u->z3 should be w3*g - self.siso_almost_equal(w3 * g, p[0, 1]) - # u->v should be -g - self.siso_almost_equal(-g, p[1, 1]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testSisoW123(self): - """SISO plant with all weights""" - from control import augw, ss - g = ss([-1.], [1.], [1.], [1.]) - w1 = ss([-2.], [2.], [1.], [2.]) - w2 = ss([-3.], [3.], [1.], [3.]) - w3 = ss([-4.], [4.], [1.], [4.]) - p = augw(g, w1, w2, w3) - self.assertEqual(4, p.outputs) - self.assertEqual(2, p.inputs) - # w->z1 should be w1 - self.siso_almost_equal(w1, p[0, 0]) - # w->z2 should be 0 - self.siso_almost_equal(0, p[1, 0]) - # w->z3 should be 0 - self.siso_almost_equal(0, p[2, 0]) - # w->v should be 1 - self.siso_almost_equal(ss([], [], [], [1]), p[3, 0]) - # u->z1 should be -w1*g - self.siso_almost_equal(-w1 * g, p[0, 1]) - # u->z2 should be w2 - self.siso_almost_equal(w2, p[1, 1]) - # u->z3 should be w3*g - self.siso_almost_equal(w3 * g, p[2, 1]) - # u->v should be -g - self.siso_almost_equal(-g, p[3, 1]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testMimoW1(self): - """MIMO plant with S weighting""" - from control import augw, ss - g = ss([[-1., -2], [-3, -4]], - [[1., 0.], [0., 1.]], - [[1., 0.], [0., 1.]], - [[1., 0.], [0., 1.]]) - w1 = ss([-2], [2.], [1.], [2.]) - p = augw(g, w1) - self.assertEqual(4, p.outputs) - self.assertEqual(4, p.inputs) - # w->z1 should be diag(w1,w1) - self.siso_almost_equal(w1, p[0, 0]) - self.siso_almost_equal(0, p[0, 1]) - self.siso_almost_equal(0, p[1, 0]) - self.siso_almost_equal(w1, p[1, 1]) - # w->v should be I - self.siso_almost_equal(1, p[2, 0]) - self.siso_almost_equal(0, p[2, 1]) - self.siso_almost_equal(0, p[3, 0]) - self.siso_almost_equal(1, p[3, 1]) - # u->z1 should be -w1*g - self.siso_almost_equal(-w1 * g[0, 0], p[0, 2]) - self.siso_almost_equal(-w1 * g[0, 1], p[0, 3]) - self.siso_almost_equal(-w1 * g[1, 0], p[1, 2]) - self.siso_almost_equal(-w1 * g[1, 1], p[1, 3]) - # # u->v should be -g - self.siso_almost_equal(-g[0, 0], p[2, 2]) - self.siso_almost_equal(-g[0, 1], p[2, 3]) - self.siso_almost_equal(-g[1, 0], p[3, 2]) - self.siso_almost_equal(-g[1, 1], p[3, 3]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testMimoW2(self): - """MIMO plant with KS weighting""" - from control import augw, ss - g = ss([[-1., -2], [-3, -4]], - [[1., 0.], [0., 1.]], - [[1., 0.], [0., 1.]], - [[1., 0.], [0., 1.]]) - w2 = ss([-2], [2.], [1.], [2.]) - p = augw(g, w2=w2) - self.assertEqual(4, p.outputs) - self.assertEqual(4, p.inputs) - # w->z2 should be 0 - self.siso_almost_equal(0, p[0, 0]) - self.siso_almost_equal(0, p[0, 1]) - self.siso_almost_equal(0, p[1, 0]) - self.siso_almost_equal(0, p[1, 1]) - # w->v should be I - self.siso_almost_equal(1, p[2, 0]) - self.siso_almost_equal(0, p[2, 1]) - self.siso_almost_equal(0, p[3, 0]) - self.siso_almost_equal(1, p[3, 1]) - # u->z2 should be w2 - self.siso_almost_equal(w2, p[0, 2]) - self.siso_almost_equal(0, p[0, 3]) - self.siso_almost_equal(0, p[1, 2]) - self.siso_almost_equal(w2, p[1, 3]) - # # u->v should be -g - self.siso_almost_equal(-g[0, 0], p[2, 2]) - self.siso_almost_equal(-g[0, 1], p[2, 3]) - self.siso_almost_equal(-g[1, 0], p[3, 2]) - self.siso_almost_equal(-g[1, 1], p[3, 3]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testMimoW3(self): - """MIMO plant with T weighting""" - from control import augw, ss - g = ss([[-1., -2], [-3, -4]], - [[1., 0.], [0., 1.]], - [[1., 0.], [0., 1.]], - [[1., 0.], [0., 1.]]) - w3 = ss([-2], [2.], [1.], [2.]) - p = augw(g, w3=w3) - self.assertEqual(4, p.outputs) - self.assertEqual(4, p.inputs) - # w->z3 should be 0 - self.siso_almost_equal(0, p[0, 0]) - self.siso_almost_equal(0, p[0, 1]) - self.siso_almost_equal(0, p[1, 0]) - self.siso_almost_equal(0, p[1, 1]) - # w->v should be I - self.siso_almost_equal(1, p[2, 0]) - self.siso_almost_equal(0, p[2, 1]) - self.siso_almost_equal(0, p[3, 0]) - self.siso_almost_equal(1, p[3, 1]) - # u->z3 should be w3*g - self.siso_almost_equal(w3 * g[0, 0], p[0, 2]) - self.siso_almost_equal(w3 * g[0, 1], p[0, 3]) - self.siso_almost_equal(w3 * g[1, 0], p[1, 2]) - self.siso_almost_equal(w3 * g[1, 1], p[1, 3]) - # # u->v should be -g - self.siso_almost_equal(-g[0, 0], p[2, 2]) - self.siso_almost_equal(-g[0, 1], p[2, 3]) - self.siso_almost_equal(-g[1, 0], p[3, 2]) - self.siso_almost_equal(-g[1, 1], p[3, 3]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testMimoW123(self): - """MIMO plant with all weights""" - from control import augw, ss, append, minreal - g = ss([[-1., -2], [-3, -4]], - [[1., 0.], [0., 1.]], - [[1., 0.], [0., 1.]], - [[1., 0.], [0., 1.]]) - # this should be expaned to w1*I - w1 = ss([-2.], [2.], [1.], [2.]) - # diagonal weighting - w2 = append(ss([-3.], [3.], [1.], [3.]), ss([-4.], [4.], [1.], [4.])) - # full weighting - w3 = ss([[-4., -5], [-6, -7]], - [[2., 3.], [5., 7.]], - [[11., 13.], [17., 19.]], - [[23., 29.], [31., 37.]]) - p = augw(g, w1, w2, w3) - self.assertEqual(8, p.outputs) - self.assertEqual(4, p.inputs) - # w->z1 should be w1 - self.siso_almost_equal(w1, p[0, 0]) - self.siso_almost_equal(0, p[0, 1]) - self.siso_almost_equal(0, p[1, 0]) - self.siso_almost_equal(w1, p[1, 1]) - # w->z2 should be 0 - self.siso_almost_equal(0, p[2, 0]) - self.siso_almost_equal(0, p[2, 1]) - self.siso_almost_equal(0, p[3, 0]) - self.siso_almost_equal(0, p[3, 1]) - # w->z3 should be 0 - self.siso_almost_equal(0, p[4, 0]) - self.siso_almost_equal(0, p[4, 1]) - self.siso_almost_equal(0, p[5, 0]) - self.siso_almost_equal(0, p[5, 1]) - # w->v should be I - self.siso_almost_equal(1, p[6, 0]) - self.siso_almost_equal(0, p[6, 1]) - self.siso_almost_equal(0, p[7, 0]) - self.siso_almost_equal(1, p[7, 1]) - - # u->z1 should be -w1*g - self.siso_almost_equal(-w1 * g[0, 0], p[0, 2]) - self.siso_almost_equal(-w1 * g[0, 1], p[0, 3]) - self.siso_almost_equal(-w1 * g[1, 0], p[1, 2]) - self.siso_almost_equal(-w1 * g[1, 1], p[1, 3]) - # u->z2 should be w2 - self.siso_almost_equal(w2[0, 0], p[2, 2]) - self.siso_almost_equal(w2[0, 1], p[2, 3]) - self.siso_almost_equal(w2[1, 0], p[3, 2]) - self.siso_almost_equal(w2[1, 1], p[3, 3]) - # u->z3 should be w3*g - w3g = w3 * g; - self.siso_almost_equal(w3g[0, 0], minreal(p[4, 2])) - self.siso_almost_equal(w3g[0, 1], minreal(p[4, 3])) - self.siso_almost_equal(w3g[1, 0], minreal(p[5, 2])) - self.siso_almost_equal(w3g[1, 1], minreal(p[5, 3])) - # u->v should be -g - self.siso_almost_equal(-g[0, 0], p[6, 2]) - self.siso_almost_equal(-g[0, 1], p[6, 3]) - self.siso_almost_equal(-g[1, 0], p[7, 2]) - self.siso_almost_equal(-g[1, 1], p[7, 3]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testErrors(self): - """Error cases handled""" - from control import augw, ss - # no weights - g1by1 = ss(-1, 1, 1, 0) - g2by2 = ss(-np.eye(2), np.eye(2), np.eye(2), np.zeros((2, 2))) - self.assertRaises(ValueError, augw, g1by1) - # mismatched size of weight and plant - self.assertRaises(ValueError, augw, g1by1, w1=g2by2) - self.assertRaises(ValueError, augw, g1by1, w2=g2by2) - self.assertRaises(ValueError, augw, g1by1, w3=g2by2) - - def tearDown(self): - control.config.reset_defaults() - - -class TestMixsyn(unittest.TestCase): - """Test control.robust.mixsyn""" - def setUp(self): - # Use array instead of matrix (and save old value to restore at end) - control.use_numpy_matrix(False) - - # it's a relatively simple wrapper; compare results with augw, hinfsyn - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testSiso(self): - """mixsyn with SISO system""" - from control import tf, augw, hinfsyn, mixsyn - from control import ss - # Skogestad+Postlethwaite, Multivariable Feedback Control, 1st Ed., Example 2.11 - s = tf([1, 0], 1) - # plant - g = 200 / (10 * s + 1) / (0.05 * s + 1) ** 2 - # sensitivity weighting - M = 1.5 - wb = 10 - A = 1e-4 - w1 = (s / M + wb) / (s + wb * A) - # KS weighting - w2 = tf(1, 1) - - p = augw(g, w1, w2) - kref, clref, gam, rcond = hinfsyn(p, 1, 1) - ktest, cltest, info = mixsyn(g, w1, w2) - # check similar to S+P's example - np.testing.assert_allclose(gam, 1.37, atol=1e-2) - - # mixsyn is a convenience wrapper around augw and hinfsyn, so - # results will be exactly the same. Given than, use the lazy - # but fragile testing option. - np.testing.assert_allclose(ktest.A, kref.A) - np.testing.assert_allclose(ktest.B, kref.B) - np.testing.assert_allclose(ktest.C, kref.C) - np.testing.assert_allclose(ktest.D, kref.D) - - np.testing.assert_allclose(cltest.A, clref.A) - np.testing.assert_allclose(cltest.B, clref.B) - np.testing.assert_allclose(cltest.C, clref.C) - np.testing.assert_allclose(cltest.D, clref.D) - - np.testing.assert_allclose(gam, info[0]) - - np.testing.assert_allclose(rcond, info[1]) - - def tearDown(self): - control.config.reset_defaults() - - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/robust_matrix_test.py b/control/tests/robust_test.py similarity index 80% rename from control/tests/robust_matrix_test.py rename to control/tests/robust_test.py index b23f06c52..2c1a03ef6 100644 --- a/control/tests/robust_matrix_test.py +++ b/control/tests/robust_test.py @@ -1,16 +1,20 @@ -import unittest +"""robust_array_test.py""" + import numpy as np -import control -import control.robust -from control.exception import slycot_check +import pytest + +from control import append, minreal, ss, tf +from control.robust import augw, h2syn, hinfsyn, mixsyn +from control.tests.conftest import slycotonly -class TestHinf(unittest.TestCase): - @unittest.skipIf(not slycot_check(), "slycot not installed") +class TestHinf: + + @slycotonly def testHinfsyn(self): """Test hinfsyn""" - p = control.ss(-1, [1, 1], [[1], [1]], [[0, 1], [1, 0]]) - k, cl, gam, rcond = control.robust.hinfsyn(p, 1, 1) + p = ss(-1, [[1, 1]], [[1], [1]], [[0, 1], [1, 0]]) + k, cl, gam, rcond = hinfsyn(p, 1, 1) # from Octave, which also uses SB10AD: # a= -1; b1= 1; b2= 1; c1= 1; c2= 1; d11= 0; d12= 1; d21= 1; d22= 0; # g = ss(a,[b1,b2],[c1;c2],[d11,d12;d21,d22]); @@ -26,13 +30,13 @@ def testHinfsyn(self): # TODO: add more interesting examples +class TestH2: -class TestH2(unittest.TestCase): - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testH2syn(self): """Test h2syn""" - p = control.ss(-1, [1, 1], [[1], [1]], [[0, 1], [1, 0]]) - k = control.robust.h2syn(p, 1, 1) + p = ss(-1, [[1, 1]], [[1], [1]], [[0, 1], [1, 0]]) + k = h2syn(p, 1, 1) # from Octave, which also uses SB10HD for H-2 synthesis: # a= -1; b1= 1; b2= 1; c1= 1; c2= 1; d11= 0; d12= 1; d21= 1; d22= 0; # g = ss(a,[b1,b2],[c1;c2],[d11,d12;d21,d22]); @@ -44,32 +48,36 @@ def testH2syn(self): np.testing.assert_array_almost_equal(k.D, [[0]]) -class TestAugw(unittest.TestCase): - """Test control.robust.augw""" +class TestAugw: # tolerance for system equality TOL = 1e-8 def siso_almost_equal(self, g, h): """siso_almost_equal(g,h) -> None - Raises AssertionError if g and h, two SISO LTI objects, are not almost equal""" - from control import tf, minreal + + Raises AssertionError if g and h, two SISO LTI objects, are not almost + equal + """ + # TODO: use pytest's assertion rewriting feature gmh = tf(minreal(g - h, verbose=False)) if not (gmh.num[0][0] < self.TOL).all(): maxnum = max(abs(gmh.num[0][0])) - raise AssertionError( - 'systems not approx equal; max num. coeff is {}\nsys 1:\n{}\nsys 2:\n{}'.format( - maxnum, g, h)) + raise AssertionError("systems not approx equal; " + "max num. coeff is {}\n" + "sys 1:\n" + "{}\n" + "sys 2:\n" + "{}".format(maxnum, g, h)) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testSisoW1(self): """SISO plant with S weighting""" - from control import augw, ss g = ss([-1.], [1.], [1.], [1.]) w1 = ss([-2], [2.], [1.], [2.]) p = augw(g, w1) - self.assertEqual(2, p.outputs) - self.assertEqual(2, p.inputs) + assert p.outputs == 2 + assert p.inputs == 2 # w->z1 should be w1 self.siso_almost_equal(w1, p[0, 0]) # w->v should be 1 @@ -79,15 +87,14 @@ def testSisoW1(self): # u->v should be -g self.siso_almost_equal(-g, p[1, 1]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testSisoW2(self): """SISO plant with KS weighting""" - from control import augw, ss g = ss([-1.], [1.], [1.], [1.]) w2 = ss([-2], [1.], [1.], [2.]) p = augw(g, w2=w2) - self.assertEqual(2, p.outputs) - self.assertEqual(2, p.inputs) + assert p.outputs == 2 + assert p.inputs == 2 # w->z2 should be 0 self.siso_almost_equal(ss([], [], [], 0), p[0, 0]) # w->v should be 1 @@ -97,15 +104,14 @@ def testSisoW2(self): # u->v should be -g self.siso_almost_equal(-g, p[1, 1]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testSisoW3(self): """SISO plant with T weighting""" - from control import augw, ss g = ss([-1.], [1.], [1.], [1.]) w3 = ss([-2], [1.], [1.], [2.]) p = augw(g, w3=w3) - self.assertEqual(2, p.outputs) - self.assertEqual(2, p.inputs) + assert p.outputs == 2 + assert p.inputs == 2 # w->z3 should be 0 self.siso_almost_equal(ss([], [], [], 0), p[0, 0]) # w->v should be 1 @@ -115,17 +121,16 @@ def testSisoW3(self): # u->v should be -g self.siso_almost_equal(-g, p[1, 1]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testSisoW123(self): """SISO plant with all weights""" - from control import augw, ss g = ss([-1.], [1.], [1.], [1.]) w1 = ss([-2.], [2.], [1.], [2.]) w2 = ss([-3.], [3.], [1.], [3.]) w3 = ss([-4.], [4.], [1.], [4.]) p = augw(g, w1, w2, w3) - self.assertEqual(4, p.outputs) - self.assertEqual(2, p.inputs) + assert p.outputs == 4 + assert p.inputs == 2 # w->z1 should be w1 self.siso_almost_equal(w1, p[0, 0]) # w->z2 should be 0 @@ -143,18 +148,17 @@ def testSisoW123(self): # u->v should be -g self.siso_almost_equal(-g, p[3, 1]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMimoW1(self): """MIMO plant with S weighting""" - from control import augw, ss g = ss([[-1., -2], [-3, -4]], [[1., 0.], [0., 1.]], [[1., 0.], [0., 1.]], [[1., 0.], [0., 1.]]) w1 = ss([-2], [2.], [1.], [2.]) p = augw(g, w1) - self.assertEqual(4, p.outputs) - self.assertEqual(4, p.inputs) + assert p.outputs == 4 + assert p.inputs == 4 # w->z1 should be diag(w1,w1) self.siso_almost_equal(w1, p[0, 0]) self.siso_almost_equal(0, p[0, 1]) @@ -176,18 +180,17 @@ def testMimoW1(self): self.siso_almost_equal(-g[1, 0], p[3, 2]) self.siso_almost_equal(-g[1, 1], p[3, 3]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMimoW2(self): """MIMO plant with KS weighting""" - from control import augw, ss g = ss([[-1., -2], [-3, -4]], [[1., 0.], [0., 1.]], [[1., 0.], [0., 1.]], [[1., 0.], [0., 1.]]) w2 = ss([-2], [2.], [1.], [2.]) p = augw(g, w2=w2) - self.assertEqual(4, p.outputs) - self.assertEqual(4, p.inputs) + assert p.outputs == 4 + assert p.inputs == 4 # w->z2 should be 0 self.siso_almost_equal(0, p[0, 0]) self.siso_almost_equal(0, p[0, 1]) @@ -209,18 +212,17 @@ def testMimoW2(self): self.siso_almost_equal(-g[1, 0], p[3, 2]) self.siso_almost_equal(-g[1, 1], p[3, 3]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMimoW3(self): """MIMO plant with T weighting""" - from control import augw, ss g = ss([[-1., -2], [-3, -4]], [[1., 0.], [0., 1.]], [[1., 0.], [0., 1.]], [[1., 0.], [0., 1.]]) w3 = ss([-2], [2.], [1.], [2.]) p = augw(g, w3=w3) - self.assertEqual(4, p.outputs) - self.assertEqual(4, p.inputs) + assert p.outputs == 4 + assert p.inputs == 4 # w->z3 should be 0 self.siso_almost_equal(0, p[0, 0]) self.siso_almost_equal(0, p[0, 1]) @@ -242,10 +244,9 @@ def testMimoW3(self): self.siso_almost_equal(-g[1, 0], p[3, 2]) self.siso_almost_equal(-g[1, 1], p[3, 3]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testMimoW123(self): """MIMO plant with all weights""" - from control import augw, ss, append, minreal g = ss([[-1., -2], [-3, -4]], [[1., 0.], [0., 1.]], [[1., 0.], [0., 1.]], @@ -260,8 +261,8 @@ def testMimoW123(self): [[11., 13.], [17., 19.]], [[23., 29.], [31., 37.]]) p = augw(g, w1, w2, w3) - self.assertEqual(8, p.outputs) - self.assertEqual(4, p.inputs) + assert p.outputs == 8 + assert p.inputs == 4 # w->z1 should be w1 self.siso_almost_equal(w1, p[0, 0]) self.siso_almost_equal(0, p[0, 1]) @@ -294,7 +295,7 @@ def testMimoW123(self): self.siso_almost_equal(w2[1, 0], p[3, 2]) self.siso_almost_equal(w2[1, 1], p[3, 3]) # u->z3 should be w3*g - w3g = w3 * g; + w3g = w3 * g self.siso_almost_equal(w3g[0, 0], minreal(p[4, 2])) self.siso_almost_equal(w3g[0, 1], minreal(p[4, 3])) self.siso_almost_equal(w3g[1, 0], minreal(p[5, 2])) @@ -305,29 +306,31 @@ def testMimoW123(self): self.siso_almost_equal(-g[1, 0], p[7, 2]) self.siso_almost_equal(-g[1, 1], p[7, 3]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testErrors(self): """Error cases handled""" from control import augw, ss # no weights g1by1 = ss(-1, 1, 1, 0) g2by2 = ss(-np.eye(2), np.eye(2), np.eye(2), np.zeros((2, 2))) - self.assertRaises(ValueError, augw, g1by1) + with pytest.raises(ValueError): + augw(g1by1) # mismatched size of weight and plant - self.assertRaises(ValueError, augw, g1by1, w1=g2by2) - self.assertRaises(ValueError, augw, g1by1, w2=g2by2) - self.assertRaises(ValueError, augw, g1by1, w3=g2by2) + with pytest.raises(ValueError): + augw(g1by1, w1=g2by2) + with pytest.raises(ValueError): + augw(g1by1, w2=g2by2) + with pytest.raises(ValueError): + augw(g1by1, w3=g2by2) -class TestMixsyn(unittest.TestCase): +class TestMixsyn: """Test control.robust.mixsyn""" # it's a relatively simple wrapper; compare results with augw, hinfsyn - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def testSiso(self): """mixsyn with SISO system""" - from control import tf, augw, hinfsyn, mixsyn - from control import ss # Skogestad+Postlethwaite, Multivariable Feedback Control, 1st Ed., Example 2.11 s = tf([1, 0], 1) # plant @@ -362,7 +365,3 @@ def testSiso(self): np.testing.assert_allclose(gam, info[0]) np.testing.assert_allclose(rcond, info[1]) - - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index 5b627c22d..65f87f28b 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -1,22 +1,26 @@ -import unittest +"""sisotool_test.py""" + import matplotlib.pyplot as plt import numpy as np from numpy.testing import assert_array_almost_equal +import pytest from control.sisotool import sisotool from control.rlocus import _RLClickDispatcher from control.xferfcn import TransferFunction -class TestSisotool(unittest.TestCase): +@pytest.mark.usefixtures("mplcleanup") +class TestSisotool: """These are tests for the sisotool in sisotool.py.""" - def setUp(self): - # One random SISO system. - self.system = TransferFunction([1000], [1, 25, 100, 0]) + @pytest.fixture + def sys(self): + """Return a generic SISO transfer function""" + return TransferFunction([1000], [1, 25, 100, 0]) - def test_sisotool(self): - sisotool(self.system, Hz=False) + def test_sisotool(self, sys): + sisotool(sys, Hz=False) fig = plt.gcf() ax_mag, ax_rlocus, ax_phase, ax_step = fig.axes[:4] @@ -57,7 +61,7 @@ def test_sisotool(self): event = type('test', (object,), {'xdata': 2.31206868287, 'ydata': 15.5983051046, 'inaxes': ax_rlocus.axes})() - _RLClickDispatcher(event=event, sys=self.system, fig=fig, + _RLClickDispatcher(event=event, sys=sys, fig=fig, ax_rlocus=ax_rlocus, sisotool=True, plotstr='-', bode_plot_params=bode_plot_params, tvect=None) @@ -82,13 +86,9 @@ def test_sisotool(self): # Check if the step response has changed # new array needed because change in compute step response default time step_response_moved = np.array( - [0. , 0.0072, 0.0516, 0.1554, 0.3281, 0.5681, 0.8646, 1.1987, - 1.5452, 1.875 ]) - #old: array([0., 0.0239, 0.161 , 0.4547, 0.8903, 1.407, - # 1.9121, 2.2989, 2.4686, 2.353]) + [0., 0.0072, 0.0516, 0.1554, 0.3281, 0.5681, 0.8646, 1.1987, + 1.5452, 1.875]) + # old: array([0., 0.0239, 0.161 , 0.4547, 0.8903, 1.407, + # 1.9121, 2.2989, 2.4686, 2.353]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_moved, 4) - - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/slycot_convert_test.py b/control/tests/slycot_convert_test.py index e13bcea8f..edd355b3b 100644 --- a/control/tests/slycot_convert_test.py +++ b/control/tests/slycot_convert_test.py @@ -1,197 +1,213 @@ -#!/usr/bin/env python -# -# slycot_convert_test.py - test SLICOT-based conversions -# RMM, 30 Mar 2011 (based on TestSlycot from v0.4a) +"""slycot_convert_test.py - test SLICOT-based conversions + +RMM, 30 Mar 2011 (based on TestSlycot from v0.4a) +""" -from __future__ import print_function -import unittest import numpy as np -from control import matlab -from control.exception import slycot_check - - -@unittest.skipIf(not slycot_check(), "slycot not installed") -class TestSlycot(unittest.TestCase): - """TestSlycot compares transfer function and state space conversions for - various numbers of inputs,outputs and states. - 1. Usually passes for SISO systems of any state dim, occasonally, - there will be a dimension mismatch if the original randomly - generated ss system is not minimal because td04ad returns a - minimal system. - - 2. For small systems with many inputs, n<5 and with 2 or more - outputs the conversion to statespace (td04ad) intermittently - results in an equivalent realization of higher order than the - original tf order. We think this has to do with minimu - realization tolerances in the Fortran. The algorithm doesn't - recognize that two denominators are identical and so it - creates a system with nearly duplicate eigenvalues and - double the state dimension. This should not be a problem in - the python-control usage because the common_den() method finds - repeated roots within a tolerance that we specify. - - Matlab: Matlab seems to force its statespace system output to - have order less than or equal to the order of denominators provided, - avoiding the problem of very large state dimension we describe in 3. - It does however, still have similar problems with pole/zero - cancellation such as we encounter in 2, where a statespace system - may have fewer states than the original order of transfer function. +import pytest + +from control import bode, rss, ss, tf +from control.tests.conftest import slycotonly + +numTests = 5 +maxStates = 10 +maxI = 1 +maxO = 1 + + +@pytest.fixture(scope="module") +def fixedseed(): + """Get consistent test results""" + np.random.seed(0) + + +@slycotonly +@pytest.mark.usefixtures("fixedseed") +class TestSlycot: + """Test Slycot system conversion + + TestSlycot compares transfer function and state space conversions for + various numbers of inputs,outputs and states. + 1. Usually passes for SISO systems of any state dim, occasonally, + there will be a dimension mismatch if the original randomly + generated ss system is not minimal because td04ad returns a + minimal system. + + 2. For small systems with many inputs, n<5 and with 2 or more + outputs the conversion to statespace (td04ad) intermittently + results in an equivalent realization of higher order than the + original tf order. We think this has to do with minimu + realization tolerances in the Fortran. The algorithm doesn't + recognize that two denominators are identical and so it + creates a system with nearly duplicate eigenvalues and + double the state dimension. This should not be a problem in + the python-control usage because the common_den() method finds + repeated roots within a tolerance that we specify. + + Matlab: Matlab seems to force its statespace system output to + have order less than or equal to the order of denominators provided, + avoiding the problem of very large state dimension we describe in 3. + It does however, still have similar problems with pole/zero + cancellation such as we encounter in 2, where a statespace system + may have fewer states than the original order of transfer function. """ - def setUp(self): - """Define some test parameters.""" - self.numTests = 5 - self.maxStates = 10 - self.maxI = 1 - self.maxO = 1 - - def testTF(self, verbose=False): - """ Directly tests the functions tb04ad and td04ad through direct - comparison of transfer function coefficients. - Similar to convert_test, but tests at a lower level. + + @pytest.fixture + def verbose(self): + """Set to True and switch off pytest stdout capture to print info""" + return False + + @pytest.mark.parametrize("testNum", np.arange(numTests) + 1) + @pytest.mark.parametrize("inputs", np.arange(maxI) + 1) + @pytest.mark.parametrize("outputs", np.arange(maxO) + 1) + @pytest.mark.parametrize("states", np.arange(maxStates) + 1) + def testTF(self, states, outputs, inputs, testNum, verbose): + """Test transfer function conversion. + + Directly tests the functions tb04ad and td04ad through direct + comparison of transfer function coefficients. + Similar to convert_test, but tests at a lower level. """ from slycot import tb04ad, td04ad - for states in range(1, self.maxStates): - for inputs in range(1, self.maxI+1): - for outputs in range(1, self.maxO+1): - for testNum in range(self.numTests): - ssOriginal = matlab.rss(states, outputs, inputs) - if (verbose): - print('====== Original SS ==========') - print(ssOriginal) - print('states=', states) - print('inputs=', inputs) - print('outputs=', outputs) - - tfOriginal_Actrb, tfOriginal_Bctrb, tfOriginal_Cctrb,\ - tfOrigingal_nctrb, tfOriginal_index,\ - tfOriginal_dcoeff, tfOriginal_ucoeff =\ - tb04ad(states, inputs, outputs, - ssOriginal.A, ssOriginal.B, - ssOriginal.C, ssOriginal.D, tol1=0.0) - - ssTransformed_nr, ssTransformed_A, ssTransformed_B,\ - ssTransformed_C, ssTransformed_D\ - = td04ad('R', inputs, outputs, tfOriginal_index, - tfOriginal_dcoeff, tfOriginal_ucoeff, - tol=0.0) - - tfTransformed_Actrb, tfTransformed_Bctrb,\ - tfTransformed_Cctrb, tfTransformed_nctrb,\ - tfTransformed_index, tfTransformed_dcoeff,\ - tfTransformed_ucoeff = tb04ad( - ssTransformed_nr, inputs, outputs, - ssTransformed_A, ssTransformed_B, - ssTransformed_C, ssTransformed_D, tol1=0.0) - # print('size(Trans_A)=',ssTransformed_A.shape) - if (verbose): - print('===== Transformed SS ==========') - print(matlab.ss(ssTransformed_A, ssTransformed_B, - ssTransformed_C, ssTransformed_D)) - # print('Trans_nr=',ssTransformed_nr - # print('tfOrig_index=',tfOriginal_index) - # print('tfOrig_ucoeff=',tfOriginal_ucoeff) - # print('tfOrig_dcoeff=',tfOriginal_dcoeff) - # print('tfTrans_index=',tfTransformed_index) - # print('tfTrans_ucoeff=',tfTransformed_ucoeff) - # print('tfTrans_dcoeff=',tfTransformed_dcoeff) - # Compare the TF directly, must match - # numerators - # TODO test failing! - # np.testing.assert_array_almost_equal( - # tfOriginal_ucoeff, tfTransformed_ucoeff, decimal=3) - # denominators - # np.testing.assert_array_almost_equal( - # tfOriginal_dcoeff, tfTransformed_dcoeff, decimal=3) - - def testFreqResp(self): - """Compare the bode reponses of the SS systems and TF systems to the original SS - They generally are different realizations but have same freq resp. - Currently this test may only be applied to SISO systems. + + ssOriginal = rss(states, outputs, inputs) + if (verbose): + print('====== Original SS ==========') + print(ssOriginal) + print('states=', states) + print('inputs=', inputs) + print('outputs=', outputs) + + tfOriginal_Actrb, tfOriginal_Bctrb, tfOriginal_Cctrb,\ + tfOrigingal_nctrb, tfOriginal_index,\ + tfOriginal_dcoeff, tfOriginal_ucoeff =\ + tb04ad(states, inputs, outputs, + ssOriginal.A, ssOriginal.B, + ssOriginal.C, ssOriginal.D, tol1=0.0) + + ssTransformed_nr, ssTransformed_A, ssTransformed_B,\ + ssTransformed_C, ssTransformed_D\ + = td04ad('R', inputs, outputs, tfOriginal_index, + tfOriginal_dcoeff, tfOriginal_ucoeff, + tol=0.0) + + tfTransformed_Actrb, tfTransformed_Bctrb,\ + tfTransformed_Cctrb, tfTransformed_nctrb,\ + tfTransformed_index, tfTransformed_dcoeff,\ + tfTransformed_ucoeff = tb04ad( + ssTransformed_nr, inputs, outputs, + ssTransformed_A, ssTransformed_B, + ssTransformed_C, ssTransformed_D, tol1=0.0) + # print('size(Trans_A)=',ssTransformed_A.shape) + if (verbose): + print('===== Transformed SS ==========') + print(ss(ssTransformed_A, ssTransformed_B, + ssTransformed_C, ssTransformed_D)) + # print('Trans_nr=',ssTransformed_nr + # print('tfOrig_index=',tfOriginal_index) + # print('tfOrig_ucoeff=',tfOriginal_ucoeff) + # print('tfOrig_dcoeff=',tfOriginal_dcoeff) + # print('tfTrans_index=',tfTransformed_index) + # print('tfTrans_ucoeff=',tfTransformed_ucoeff) + # print('tfTrans_dcoeff=',tfTransformed_dcoeff) + # Compare the TF directly, must match + # numerators + # TODO test failing! + # np.testing.assert_array_almost_equal( + # tfOriginal_ucoeff, tfTransformed_ucoeff, decimal=3) + # denominators + # np.testing.assert_array_almost_equal( + # tfOriginal_dcoeff, tfTransformed_dcoeff, decimal=3) + + @pytest.mark.parametrize("testNum", np.arange(numTests) + 1) + @pytest.mark.parametrize("inputs", np.arange(1) + 1) # SISO only + @pytest.mark.parametrize("outputs", np.arange(1) + 1) # SISO only + @pytest.mark.parametrize("states", np.arange(maxStates) + 1) + def testFreqResp(self, states, outputs, inputs, testNum, verbose): + """Compare bode responses. + + Compare the bode reponses of the SS systems and TF systems to the + original SS. They generally are different realizations but have same + freq resp. Currently this test may only be applied to SISO systems. """ from slycot import tb04ad, td04ad - for states in range(1, self.maxStates): - for testNum in range(self.numTests): - for inputs in range(1, 1): - for outputs in range(1, 1): - ssOriginal = matlab.rss(states, outputs, inputs) - - tfOriginal_Actrb, tfOriginal_Bctrb, tfOriginal_Cctrb,\ - tfOrigingal_nctrb, tfOriginal_index,\ - tfOriginal_dcoeff, tfOriginal_ucoeff = tb04ad( - states, inputs, outputs, ssOriginal.A, - ssOriginal.B, ssOriginal.C, ssOriginal.D, - tol1=0.0) - - ssTransformed_nr, ssTransformed_A, ssTransformed_B,\ - ssTransformed_C, ssTransformed_D\ - = td04ad('R', inputs, outputs, tfOriginal_index, - tfOriginal_dcoeff, tfOriginal_ucoeff, - tol=0.0) - - tfTransformed_Actrb, tfTransformed_Bctrb,\ - tfTransformed_Cctrb, tfTransformed_nctrb,\ - tfTransformed_index, tfTransformed_dcoeff,\ - tfTransformed_ucoeff = tb04ad( - ssTransformed_nr, inputs, outputs, - ssTransformed_A, ssTransformed_B, - ssTransformed_C, ssTransformed_D, - tol1=0.0) - - numTransformed = np.array(tfTransformed_ucoeff) - denTransformed = np.array(tfTransformed_dcoeff) - numOriginal = np.array(tfOriginal_ucoeff) - denOriginal = np.array(tfOriginal_dcoeff) - - ssTransformed = matlab.ss(ssTransformed_A, - ssTransformed_B, - ssTransformed_C, - ssTransformed_D) - for inputNum in range(inputs): - for outputNum in range(outputs): - [ssOriginalMag, ssOriginalPhase, freq] =\ - matlab.bode(ssOriginal, plot=False) - [tfOriginalMag, tfOriginalPhase, freq] =\ - matlab.bode(matlab.tf( - numOriginal[outputNum][inputNum], - denOriginal[outputNum]), plot=False) - [ssTransformedMag, ssTransformedPhase, freq] =\ - matlab.bode(ssTransformed, - freq, plot=False) - [tfTransformedMag, tfTransformedPhase, freq] =\ - matlab.bode(matlab.tf( - numTransformed[outputNum][inputNum], - denTransformed[outputNum]), - freq, plot=False) - # print('numOrig=', - # numOriginal[outputNum][inputNum]) - # print('denOrig=', - # denOriginal[outputNum]) - # print('numTrans=', - # numTransformed[outputNum][inputNum]) - # print('denTrans=', - # denTransformed[outputNum]) - np.testing.assert_array_almost_equal( - ssOriginalMag, tfOriginalMag, decimal=3) - np.testing.assert_array_almost_equal( - ssOriginalPhase, tfOriginalPhase, - decimal=3) - np.testing.assert_array_almost_equal( - ssOriginalMag, ssTransformedMag, decimal=3) - np.testing.assert_array_almost_equal( - ssOriginalPhase, ssTransformedPhase, - decimal=3) - np.testing.assert_array_almost_equal( - tfOriginalMag, tfTransformedMag, decimal=3) - np.testing.assert_array_almost_equal( - tfOriginalPhase, tfTransformedPhase, - decimal=2) - - -if __name__ == '__main__': - unittest.main() + + ssOriginal = rss(states, outputs, inputs) + + tfOriginal_Actrb, tfOriginal_Bctrb, tfOriginal_Cctrb,\ + tfOrigingal_nctrb, tfOriginal_index,\ + tfOriginal_dcoeff, tfOriginal_ucoeff = tb04ad( + states, inputs, outputs, ssOriginal.A, + ssOriginal.B, ssOriginal.C, ssOriginal.D, + tol1=0.0) + + ssTransformed_nr, ssTransformed_A, ssTransformed_B,\ + ssTransformed_C, ssTransformed_D\ + = td04ad('R', inputs, outputs, tfOriginal_index, + tfOriginal_dcoeff, tfOriginal_ucoeff, + tol=0.0) + + tfTransformed_Actrb, tfTransformed_Bctrb,\ + tfTransformed_Cctrb, tfTransformed_nctrb,\ + tfTransformed_index, tfTransformed_dcoeff,\ + tfTransformed_ucoeff = tb04ad( + ssTransformed_nr, inputs, outputs, + ssTransformed_A, ssTransformed_B, + ssTransformed_C, ssTransformed_D, + tol1=0.0) + + numTransformed = np.array(tfTransformed_ucoeff) + denTransformed = np.array(tfTransformed_dcoeff) + numOriginal = np.array(tfOriginal_ucoeff) + denOriginal = np.array(tfOriginal_dcoeff) + + ssTransformed = ss(ssTransformed_A, + ssTransformed_B, + ssTransformed_C, + ssTransformed_D) + for inputNum in range(inputs): + for outputNum in range(outputs): + [ssOriginalMag, ssOriginalPhase, freq] =\ + bode(ssOriginal, plot=False) + [tfOriginalMag, tfOriginalPhase, freq] =\ + bode(tf(numOriginal[outputNum][inputNum], + denOriginal[outputNum]), + plot=False) + [ssTransformedMag, ssTransformedPhase, freq] =\ + bode(ssTransformed, + freq, + plot=False) + [tfTransformedMag, tfTransformedPhase, freq] =\ + bode(tf(numTransformed[outputNum][inputNum], + denTransformed[outputNum]), + freq, + plot=False) + # print('numOrig=', + # numOriginal[outputNum][inputNum]) + # print('denOrig=', + # denOriginal[outputNum]) + # print('numTrans=', + # numTransformed[outputNum][inputNum]) + # print('denTrans=', + # denTransformed[outputNum]) + np.testing.assert_array_almost_equal( + ssOriginalMag, tfOriginalMag, decimal=3) + np.testing.assert_array_almost_equal( + ssOriginalPhase, tfOriginalPhase, + decimal=3) + np.testing.assert_array_almost_equal( + ssOriginalMag, ssTransformedMag, decimal=3) + np.testing.assert_array_almost_equal( + ssOriginalPhase, ssTransformedPhase, + decimal=3) + np.testing.assert_array_almost_equal( + tfOriginalMag, tfTransformedMag, decimal=3) + np.testing.assert_array_almost_equal( + tfOriginalPhase, tfTransformedPhase, + decimal=2) diff --git a/control/tests/statefbk_array_test.py b/control/tests/statefbk_array_test.py deleted file mode 100644 index 10f450186..000000000 --- a/control/tests/statefbk_array_test.py +++ /dev/null @@ -1,413 +0,0 @@ -#!/usr/bin/env python -# -# statefbk_test.py - test state feedback functions -# RMM, 30 Mar 2011 (based on TestStatefbk from v0.4a) - -from __future__ import print_function -import unittest -import sys as pysys -import numpy as np -import warnings -from control.statefbk import ctrb, obsv, place, place_varga, lqr, gram, acker -from control.matlab import * -from control.exception import slycot_check, ControlDimension -from control.mateqn import care, dare -from control.config import use_numpy_matrix, reset_defaults - -class TestStatefbk(unittest.TestCase): - """Test state feedback functions""" - - def setUp(self): - # Use array instead of matrix (and save old value to restore at end) - use_numpy_matrix(False) - - # Maximum number of states to test + 1 - self.maxStates = 5 - # Maximum number of inputs and outputs to test + 1 - self.maxTries = 4 - # Set to True to print systems to the output. - self.debug = False - # get consistent test results - np.random.seed(0) - - def testCtrbSISO(self): - A = np.array([[1., 2.], [3., 4.]]) - B = np.array([[5.], [7.]]) - Wctrue = np.array([[5., 19.], [7., 43.]]) - - Wc = ctrb(A, B) - np.testing.assert_array_almost_equal(Wc, Wctrue) - self.assertTrue(isinstance(Wc, np.ndarray)) - self.assertFalse(isinstance(Wc, np.matrix)) - - # This test only works in Python 3 due to a conflict with the same - # warning type in other test modules (frd_test.py). See - # https://bugs.python.org/issue4180 for more details - @unittest.skipIf(pysys.version_info < (3, 0), "test requires Python 3+") - def test_ctrb_siso_deprecated(self): - A = np.array([[1., 2.], [3., 4.]]) - B = np.array([[5.], [7.]]) - - # Check that default using np.matrix generates a warning - # TODO: remove this check with matrix type is deprecated - warnings.resetwarnings() - with warnings.catch_warnings(record=True) as w: - use_numpy_matrix(True) - self.assertTrue(issubclass(w[-1].category, UserWarning)) - - Wc = ctrb(A, B) - self.assertTrue(isinstance(Wc, np.matrix)) - self.assertTrue(issubclass(w[-1].category, - PendingDeprecationWarning)) - use_numpy_matrix(False) - - def testCtrbMIMO(self): - A = np.array([[1., 2.], [3., 4.]]) - B = np.array([[5., 6.], [7., 8.]]) - Wctrue = np.array([[5., 6., 19., 22.], [7., 8., 43., 50.]]) - Wc = ctrb(A, B) - np.testing.assert_array_almost_equal(Wc, Wctrue) - - # Make sure default type values are correct - self.assertTrue(isinstance(Wc, np.ndarray)) - - def testObsvSISO(self): - A = np.array([[1., 2.], [3., 4.]]) - C = np.array([[5., 7.]]) - Wotrue = np.array([[5., 7.], [26., 38.]]) - Wo = obsv(A, C) - np.testing.assert_array_almost_equal(Wo, Wotrue) - - # Make sure default type values are correct - self.assertTrue(isinstance(Wo, np.ndarray)) - - # This test only works in Python 3 due to a conflict with the same - # warning type in other test modules (frd_test.py). See - # https://bugs.python.org/issue4180 for more details - @unittest.skipIf(pysys.version_info < (3, 0), "test requires Python 3+") - def test_obsv_siso_deprecated(self): - A = np.array([[1., 2.], [3., 4.]]) - C = np.array([[5., 7.]]) - - # Check that default type generates a warning - # TODO: remove this check with matrix type is deprecated - with warnings.catch_warnings(record=True) as w: - use_numpy_matrix(True, warn=False) # warnings off - self.assertEqual(len(w), 0) - - Wo = obsv(A, C) - self.assertTrue(isinstance(Wo, np.matrix)) - use_numpy_matrix(False) - - def testObsvMIMO(self): - A = np.array([[1., 2.], [3., 4.]]) - C = np.array([[5., 6.], [7., 8.]]) - Wotrue = np.array([[5., 6.], [7., 8.], [23., 34.], [31., 46.]]) - Wo = obsv(A, C) - np.testing.assert_array_almost_equal(Wo, Wotrue) - - def testCtrbObsvDuality(self): - A = np.array([[1.2, -2.3], [3.4, -4.5]]) - B = np.array([[5.8, 6.9], [8., 9.1]]) - Wc = ctrb(A, B) - A = np.transpose(A) - C = np.transpose(B) - Wo = np.transpose(obsv(A, C)); - np.testing.assert_array_almost_equal(Wc,Wo) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramWc(self): - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5., 6.], [7., 8.]]) - C = np.array([[4., 5.], [6., 7.]]) - D = np.array([[13., 14.], [15., 16.]]) - sys = ss(A, B, C, D) - Wctrue = np.array([[18.5, 24.5], [24.5, 32.5]]) - Wc = gram(sys, 'c') - np.testing.assert_array_almost_equal(Wc, Wctrue) - - # This test only works in Python 3 due to a conflict with the same - # warning type in other test modules (frd_test.py). See - # https://bugs.python.org/issue4180 for more details - @unittest.skipIf(pysys.version_info < (3, 0) or not slycot_check(), - "test requires Python 3+ and slycot") - def test_gram_wc_deprecated(self): - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5., 6.], [7., 8.]]) - C = np.array([[4., 5.], [6., 7.]]) - D = np.array([[13., 14.], [15., 16.]]) - sys = ss(A, B, C, D) - - # Check that default type generates a warning - # TODO: remove this check with matrix type is deprecated - with warnings.catch_warnings(record=True) as w: - use_numpy_matrix(True) - self.assertTrue(issubclass(w[-1].category, UserWarning)) - - Wc = gram(sys, 'c') - self.assertTrue(isinstance(Wc, np.ndarray)) - use_numpy_matrix(False) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramRc(self): - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5., 6.], [7., 8.]]) - C = np.array([[4., 5.], [6., 7.]]) - D = np.array([[13., 14.], [15., 16.]]) - sys = ss(A, B, C, D) - Rctrue = np.array([[4.30116263, 5.6961343], [0., 0.23249528]]) - Rc = gram(sys, 'cf') - np.testing.assert_array_almost_equal(Rc, Rctrue) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramWo(self): - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5., 6.], [7., 8.]]) - C = np.array([[4., 5.], [6., 7.]]) - D = np.array([[13., 14.], [15., 16.]]) - sys = ss(A, B, C, D) - Wotrue = np.array([[257.5, -94.5], [-94.5, 56.5]]) - Wo = gram(sys, 'o') - np.testing.assert_array_almost_equal(Wo, Wotrue) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramWo2(self): - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5.], [7.]]) - C = np.array([[6., 8.]]) - D = np.array([[9.]]) - sys = ss(A,B,C,D) - Wotrue = np.array([[198., -72.], [-72., 44.]]) - Wo = gram(sys, 'o') - np.testing.assert_array_almost_equal(Wo, Wotrue) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramRo(self): - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5., 6.], [7., 8.]]) - C = np.array([[4., 5.], [6., 7.]]) - D = np.array([[13., 14.], [15., 16.]]) - sys = ss(A, B, C, D) - Rotrue = np.array([[16.04680654, -5.8890222], [0., 4.67112593]]) - Ro = gram(sys, 'of') - np.testing.assert_array_almost_equal(Ro, Rotrue) - - def testGramsys(self): - num =[1.] - den = [1., 1., 1.] - sys = tf(num,den) - self.assertRaises(ValueError, gram, sys, 'o') - self.assertRaises(ValueError, gram, sys, 'c') - - def testAcker(self): - for states in range(1, self.maxStates): - for i in range(self.maxTries): - # start with a random SS system and transform to TF then - # back to SS, check that the matrices are the same. - sys = rss(states, 1, 1) - if (self.debug): - print(sys) - - # Make sure the system is not degenerate - Cmat = ctrb(sys.A, sys.B) - if np.linalg.matrix_rank(Cmat) != states: - if (self.debug): - print(" skipping (not reachable or ill conditioned)") - continue - - # Place the poles at random locations - des = rss(states, 1, 1); - poles = pole(des) - - # Now place the poles using acker - K = acker(sys.A, sys.B, poles) - new = ss(sys.A - sys.B * K, sys.B, sys.C, sys.D) - placed = pole(new) - - # Debugging code - # diff = np.sort(poles) - np.sort(placed) - # if not all(diff < 0.001): - # print("Found a problem:") - # print(sys) - # print("desired = ", poles) - - np.testing.assert_array_almost_equal(np.sort(poles), - np.sort(placed), decimal=4) - - def testPlace(self): - # Matrices shamelessly stolen from scipy example code. - A = np.array([[1.380, -0.2077, 6.715, -5.676], - [-0.5814, -4.290, 0, 0.6750], - [1.067, 4.273, -6.654, 5.893], - [0.0480, 4.273, 1.343, -2.104]]) - - B = np.array([[0, 5.679], - [1.136, 1.136], - [0, 0,], - [-3.146, 0]]) - P = np.array([-0.5+1j, -0.5-1j, -5.0566, -8.6659]) - K = place(A, B, P) - P_placed = np.linalg.eigvals(A - B.dot(K)) - # No guarantee of the ordering, so sort them - P.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P, P_placed) - - # Test that the dimension checks work. - np.testing.assert_raises(ControlDimension, place, A[1:, :], B, P) - np.testing.assert_raises(ControlDimension, place, A, B[1:, :], P) - - # Check that we get an error if we ask for too many poles in the same - # location. Here, rank(B) = 2, so lets place three at the same spot. - P_repeated = np.array([-0.5, -0.5, -0.5, -8.6659]) - np.testing.assert_raises(ValueError, place, A, B, P_repeated) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga_continuous(self): - """ - Check that we can place eigenvalues for dtime=False - """ - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5.], [7.]]) - - P = np.array([-2., -2.]) - K = place_varga(A, B, P) - P_placed = np.linalg.eigvals(A - B.dot(K)) - # No guarantee of the ordering, so sort them - P.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P, P_placed) - - # Test that the dimension checks work. - np.testing.assert_raises(ControlDimension, place, A[1:, :], B, P) - np.testing.assert_raises(ControlDimension, place, A, B[1:, :], P) - - # Regression test against bug #177 - # https://github.com/python-control/python-control/issues/177 - A = np.array([[0, 1], [100, 0]]) - B = np.array([[0], [1]]) - P = np.array([-20 + 10*1j, -20 - 10*1j]) - K = place_varga(A, B, P) - P_placed = np.linalg.eigvals(A - B.dot(K)) - - # No guarantee of the ordering, so sort them - P.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P, P_placed) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga_continuous_partial_eigs(self): - """ - Check that we are able to use the alpha parameter to only place - a subset of the eigenvalues, for the continous time case. - """ - # A matrix has eigenvalues at s=-1, and s=-2. Choose alpha = -1.5 - # and check that eigenvalue at s=-2 stays put. - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5.], [7.]]) - - P = np.array([-3.]) - P_expected = np.array([-2.0, -3.0]) - alpha = -1.5 - K = place_varga(A, B, P, alpha=alpha) - - P_placed = np.linalg.eigvals(A - B.dot(K)) - # No guarantee of the ordering, so sort them - P_expected.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P_expected, P_placed) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga_discrete(self): - """ - Check that we can place poles using dtime=True (discrete time) - """ - A = np.array([[1., 0], [0, 0.5]]) - B = np.array([[5.], [7.]]) - - P = np.array([0.5, 0.5]) - K = place_varga(A, B, P, dtime=True) - P_placed = np.linalg.eigvals(A - B.dot(K)) - # No guarantee of the ordering, so sort them - P.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P, P_placed) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga_discrete_partial_eigs(self): - """" - Check that we can only assign a single eigenvalue in the discrete - time case. - """ - # A matrix has eigenvalues at 1.0 and 0.5. Set alpha = 0.51, and - # check that the eigenvalue at 0.5 is not moved. - A = np.array([[1., 0], [0, 0.5]]) - B = np.array([[5.], [7.]]) - P = np.array([0.2, 0.6]) - P_expected = np.array([0.5, 0.6]) - alpha = 0.51 - K = place_varga(A, B, P, dtime=True, alpha=alpha) - P_placed = np.linalg.eigvals(A - B.dot(K)) - P_expected.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P_expected, P_placed) - - - def check_LQR(self, K, S, poles, Q, R): - S_expected = np.array(np.sqrt(Q * R)) - K_expected = S_expected / R - poles_expected = np.array([-K_expected]) - np.testing.assert_array_almost_equal(S, S_expected) - np.testing.assert_array_almost_equal(K, K_expected) - np.testing.assert_array_almost_equal(poles, poles_expected) - - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_LQR_integrator(self): - A, B, Q, R = 0., 1., 10., 2. - K, S, poles = lqr(A, B, Q, R) - self.check_LQR(K, S, poles, Q, R) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_LQR_3args(self): - sys = ss(0., 1., 1., 0.) - Q, R = 10., 2. - K, S, poles = lqr(sys, Q, R) - self.check_LQR(K, S, poles, Q, R) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_care(self): - #unit test for stabilizing and anti-stabilizing feedbacks - #continuous-time - - A = np.diag([1,-1]) - B = np.identity(2) - Q = np.identity(2) - R = np.identity(2) - S = 0 * B - E = np.identity(2) - X, L , G = care(A, B, Q, R, S, E, stabilizing=True) - assert np.all(np.real(L) < 0) - X, L , G = care(A, B, Q, R, S, E, stabilizing=False) - assert np.all(np.real(L) > 0) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_dare(self): - #discrete-time - A = np.diag([0.5,2]) - B = np.identity(2) - Q = np.identity(2) - R = np.identity(2) - S = 0 * B - E = np.identity(2) - X, L , G = dare(A, B, Q, R, S, E, stabilizing=True) - assert np.all(np.abs(L) < 1) - X, L , G = dare(A, B, Q, R, S, E, stabilizing=False) - assert np.all(np.abs(L) > 1) - - def tearDown(self): - reset_defaults() - - -if __name__ == '__main__': - unittest.main() diff --git a/control/tests/statefbk_matrix_test.py b/control/tests/statefbk_matrix_test.py deleted file mode 100644 index 3be70d643..000000000 --- a/control/tests/statefbk_matrix_test.py +++ /dev/null @@ -1,348 +0,0 @@ -#!/usr/bin/env python -# -# statefbk_test.py - test state feedback functions -# RMM, 30 Mar 2011 (based on TestStatefbk from v0.4a) - -from __future__ import print_function -import unittest -import numpy as np -from control.statefbk import ctrb, obsv, place, place_varga, lqr, lqe, gram, acker -from control.matlab import * -from control.exception import slycot_check, ControlDimension -from control.mateqn import care, dare - -class TestStatefbk(unittest.TestCase): - """Test state feedback functions""" - - def setUp(self): - # Maximum number of states to test + 1 - self.maxStates = 5 - # Maximum number of inputs and outputs to test + 1 - self.maxTries = 4 - # Set to True to print systems to the output. - self.debug = False - # get consistent test results - np.random.seed(0) - - def testCtrbSISO(self): - A = np.matrix("1. 2.; 3. 4.") - B = np.matrix("5.; 7.") - Wctrue = np.matrix("5. 19.; 7. 43.") - Wc = ctrb(A,B) - np.testing.assert_array_almost_equal(Wc, Wctrue) - - def testCtrbMIMO(self): - A = np.matrix("1. 2.; 3. 4.") - B = np.matrix("5. 6.; 7. 8.") - Wctrue = np.matrix("5. 6. 19. 22.; 7. 8. 43. 50.") - Wc = ctrb(A,B) - np.testing.assert_array_almost_equal(Wc, Wctrue) - - def testObsvSISO(self): - A = np.matrix("1. 2.; 3. 4.") - C = np.matrix("5. 7.") - Wotrue = np.matrix("5. 7.; 26. 38.") - Wo = obsv(A,C) - np.testing.assert_array_almost_equal(Wo, Wotrue) - - def testObsvMIMO(self): - A = np.matrix("1. 2.; 3. 4.") - C = np.matrix("5. 6.; 7. 8.") - Wotrue = np.matrix("5. 6.; 7. 8.; 23. 34.; 31. 46.") - Wo = obsv(A,C) - np.testing.assert_array_almost_equal(Wo, Wotrue) - - def testCtrbObsvDuality(self): - A = np.matrix("1.2 -2.3; 3.4 -4.5") - B = np.matrix("5.8 6.9; 8. 9.1") - Wc = ctrb(A,B); - A = np.transpose(A) - C = np.transpose(B) - Wo = np.transpose(obsv(A,C)); - np.testing.assert_array_almost_equal(Wc,Wo) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramWc(self): - A = np.matrix("1. -2.; 3. -4.") - B = np.matrix("5. 6.; 7. 8.") - C = np.matrix("4. 5.; 6. 7.") - D = np.matrix("13. 14.; 15. 16.") - sys = ss(A, B, C, D) - Wctrue = np.matrix("18.5 24.5; 24.5 32.5") - Wc = gram(sys,'c') - np.testing.assert_array_almost_equal(Wc, Wctrue) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramRc(self): - A = np.matrix("1. -2.; 3. -4.") - B = np.matrix("5. 6.; 7. 8.") - C = np.matrix("4. 5.; 6. 7.") - D = np.matrix("13. 14.; 15. 16.") - sys = ss(A, B, C, D) - Rctrue = np.matrix("4.30116263 5.6961343; 0. 0.23249528") - Rc = gram(sys,'cf') - np.testing.assert_array_almost_equal(Rc, Rctrue) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramWo(self): - A = np.matrix("1. -2.; 3. -4.") - B = np.matrix("5. 6.; 7. 8.") - C = np.matrix("4. 5.; 6. 7.") - D = np.matrix("13. 14.; 15. 16.") - sys = ss(A, B, C, D) - Wotrue = np.matrix("257.5 -94.5; -94.5 56.5") - Wo = gram(sys,'o') - np.testing.assert_array_almost_equal(Wo, Wotrue) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramWo2(self): - A = np.matrix("1. -2.; 3. -4.") - B = np.matrix("5.; 7.") - C = np.matrix("6. 8.") - D = np.matrix("9.") - sys = ss(A,B,C,D) - Wotrue = np.matrix("198. -72.; -72. 44.") - Wo = gram(sys,'o') - np.testing.assert_array_almost_equal(Wo, Wotrue) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testGramRo(self): - A = np.matrix("1. -2.; 3. -4.") - B = np.matrix("5. 6.; 7. 8.") - C = np.matrix("4. 5.; 6. 7.") - D = np.matrix("13. 14.; 15. 16.") - sys = ss(A, B, C, D) - Rotrue = np.matrix("16.04680654 -5.8890222; 0. 4.67112593") - Ro = gram(sys,'of') - np.testing.assert_array_almost_equal(Ro, Rotrue) - - def testGramsys(self): - num =[1.] - den = [1., 1., 1.] - sys = tf(num,den) - self.assertRaises(ValueError, gram, sys, 'o') - self.assertRaises(ValueError, gram, sys, 'c') - - def testAcker(self): - for states in range(1, self.maxStates): - for i in range(self.maxTries): - # start with a random SS system and transform to TF then - # back to SS, check that the matrices are the same. - sys = rss(states, 1, 1) - if (self.debug): - print(sys) - - # Make sure the system is not degenerate - Cmat = ctrb(sys.A, sys.B) - if np.linalg.matrix_rank(Cmat) != states: - if (self.debug): - print(" skipping (not reachable or ill conditioned)") - continue - - # Place the poles at random locations - des = rss(states, 1, 1); - poles = pole(des) - - # Now place the poles using acker - K = acker(sys.A, sys.B, poles) - new = ss(sys.A - sys.B * K, sys.B, sys.C, sys.D) - placed = pole(new) - - # Debugging code - # diff = np.sort(poles) - np.sort(placed) - # if not all(diff < 0.001): - # print("Found a problem:") - # print(sys) - # print("desired = ", poles) - - np.testing.assert_array_almost_equal(np.sort(poles), - np.sort(placed), decimal=4) - - def testPlace(self): - # Matrices shamelessly stolen from scipy example code. - A = np.array([[1.380, -0.2077, 6.715, -5.676], - [-0.5814, -4.290, 0, 0.6750], - [1.067, 4.273, -6.654, 5.893], - [0.0480, 4.273, 1.343, -2.104]]) - - B = np.array([[0, 5.679], - [1.136, 1.136], - [0, 0,], - [-3.146, 0]]) - P = np.array([-0.5+1j, -0.5-1j, -5.0566, -8.6659]) - K = place(A, B, P) - P_placed = np.linalg.eigvals(A - B.dot(K)) - # No guarantee of the ordering, so sort them - P.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P, P_placed) - - # Test that the dimension checks work. - np.testing.assert_raises(ControlDimension, place, A[1:, :], B, P) - np.testing.assert_raises(ControlDimension, place, A, B[1:, :], P) - - # Check that we get an error if we ask for too many poles in the same - # location. Here, rank(B) = 2, so lets place three at the same spot. - P_repeated = np.array([-0.5, -0.5, -0.5, -8.6659]) - np.testing.assert_raises(ValueError, place, A, B, P_repeated) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga_continuous(self): - """ - Check that we can place eigenvalues for dtime=False - """ - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5.], [7.]]) - - P = np.array([-2., -2.]) - K = place_varga(A, B, P) - P_placed = np.linalg.eigvals(A - B.dot(K)) - # No guarantee of the ordering, so sort them - P.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P, P_placed) - - # Test that the dimension checks work. - np.testing.assert_raises(ControlDimension, place, A[1:, :], B, P) - np.testing.assert_raises(ControlDimension, place, A, B[1:, :], P) - - # Regression test against bug #177 - # https://github.com/python-control/python-control/issues/177 - A = np.array([[0, 1], [100, 0]]) - B = np.array([[0], [1]]) - P = np.array([-20 + 10*1j, -20 - 10*1j]) - K = place_varga(A, B, P) - P_placed = np.linalg.eigvals(A - B.dot(K)) - - # No guarantee of the ordering, so sort them - P.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P, P_placed) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga_continuous_partial_eigs(self): - """ - Check that we are able to use the alpha parameter to only place - a subset of the eigenvalues, for the continous time case. - """ - # A matrix has eigenvalues at s=-1, and s=-2. Choose alpha = -1.5 - # and check that eigenvalue at s=-2 stays put. - A = np.array([[1., -2.], [3., -4.]]) - B = np.array([[5.], [7.]]) - - P = np.array([-3.]) - P_expected = np.array([-2.0, -3.0]) - alpha = -1.5 - K = place_varga(A, B, P, alpha=alpha) - - P_placed = np.linalg.eigvals(A - B.dot(K)) - # No guarantee of the ordering, so sort them - P_expected.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P_expected, P_placed) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga_discrete(self): - """ - Check that we can place poles using dtime=True (discrete time) - """ - A = np.array([[1., 0], [0, 0.5]]) - B = np.array([[5.], [7.]]) - - P = np.array([0.5, 0.5]) - K = place_varga(A, B, P, dtime=True) - P_placed = np.linalg.eigvals(A - B.dot(K)) - # No guarantee of the ordering, so sort them - P.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P, P_placed) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def testPlace_varga_discrete_partial_eigs(self): - """" - Check that we can only assign a single eigenvalue in the discrete - time case. - """ - # A matrix has eigenvalues at 1.0 and 0.5. Set alpha = 0.51, and - # check that the eigenvalue at 0.5 is not moved. - A = np.array([[1., 0], [0, 0.5]]) - B = np.array([[5.], [7.]]) - P = np.array([0.2, 0.6]) - P_expected = np.array([0.5, 0.6]) - alpha = 0.51 - K = place_varga(A, B, P, dtime=True, alpha=alpha) - P_placed = np.linalg.eigvals(A - B.dot(K)) - P_expected.sort() - P_placed.sort() - np.testing.assert_array_almost_equal(P_expected, P_placed) - - - def check_LQR(self, K, S, poles, Q, R): - S_expected = np.array(np.sqrt(Q * R)) - K_expected = S_expected / R - poles_expected = np.array([-K_expected]) - np.testing.assert_array_almost_equal(S, S_expected) - np.testing.assert_array_almost_equal(K, K_expected) - np.testing.assert_array_almost_equal(poles, poles_expected) - - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_LQR_integrator(self): - A, B, Q, R = 0., 1., 10., 2. - K, S, poles = lqr(A, B, Q, R) - self.check_LQR(K, S, poles, Q, R) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_LQR_3args(self): - sys = ss(0., 1., 1., 0.) - Q, R = 10., 2. - K, S, poles = lqr(sys, Q, R) - self.check_LQR(K, S, poles, Q, R) - - def check_LQE(self, L, P, poles, G, QN, RN): - P_expected = np.array(np.sqrt(G*QN*G * RN)) - L_expected = P_expected / RN - poles_expected = np.array([-L_expected]) - np.testing.assert_array_almost_equal(P, P_expected) - np.testing.assert_array_almost_equal(L, L_expected) - np.testing.assert_array_almost_equal(poles, poles_expected) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_LQE(self): - A, G, C, QN, RN = 0., .1, 1., 10., 2. - L, P, poles = lqe(A, G, C, QN, RN) - self.check_LQE(L, P, poles, G, QN, RN) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_care(self): - #unit test for stabilizing and anti-stabilizing feedbacks - #continuous-time - - A = np.diag([1,-1]) - B = np.identity(2) - Q = np.identity(2) - R = np.identity(2) - S = 0 * B - E = np.identity(2) - X, L , G = care(A, B, Q, R, S, E, stabilizing=True) - assert np.all(np.real(L) < 0) - X, L , G = care(A, B, Q, R, S, E, stabilizing=False) - assert np.all(np.real(L) > 0) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_dare(self): - #discrete-time - A = np.diag([0.5,2]) - B = np.identity(2) - Q = np.identity(2) - R = np.identity(2) - S = 0 * B - E = np.identity(2) - X, L , G = dare(A, B, Q, R, S, E, stabilizing=True) - assert np.all(np.abs(L) < 1) - X, L , G = dare(A, B, Q, R, S, E, stabilizing=False) - assert np.all(np.abs(L) > 1) - - -if __name__ == '__main__': - unittest.main() diff --git a/control/tests/statefbk_test.py b/control/tests/statefbk_test.py new file mode 100644 index 000000000..1dca98659 --- /dev/null +++ b/control/tests/statefbk_test.py @@ -0,0 +1,381 @@ +"""statefbk_test.py - test state feedback functions + +RMM, 30 Mar 2011 (based on TestStatefbk from v0.4a) +""" + +import numpy as np +import pytest + +from control import lqe, pole, rss, ss, tf +from control.exception import ControlDimension +from control.mateqn import care, dare +from control.statefbk import ctrb, obsv, place, place_varga, lqr, gram, acker +from control.tests.conftest import (slycotonly, check_deprecated_matrix, + ismatarrayout, asmatarrayout) + + +@pytest.fixture +def fixedseed(): + """Get consistent test results""" + np.random.seed(0) + + +class TestStatefbk: + """Test state feedback functions""" + + # Maximum number of states to test + 1 + maxStates = 5 + # Maximum number of inputs and outputs to test + 1 + maxTries = 4 + # Set to True to print systems to the output. + debug = False + + def testCtrbSISO(self, matarrayin, matarrayout): + A = matarrayin([[1., 2.], [3., 4.]]) + B = matarrayin([[5.], [7.]]) + Wctrue = np.array([[5., 19.], [7., 43.]]) + + with check_deprecated_matrix(): + Wc = ctrb(A, B) + assert ismatarrayout(Wc) + + np.testing.assert_array_almost_equal(Wc, Wctrue) + + def testCtrbMIMO(self, matarrayin): + A = matarrayin([[1., 2.], [3., 4.]]) + B = matarrayin([[5., 6.], [7., 8.]]) + Wctrue = np.array([[5., 6., 19., 22.], [7., 8., 43., 50.]]) + Wc = ctrb(A, B) + np.testing.assert_array_almost_equal(Wc, Wctrue) + + # Make sure default type values are correct + assert ismatarrayout(Wc) + + def testObsvSISO(self, matarrayin): + A = matarrayin([[1., 2.], [3., 4.]]) + C = matarrayin([[5., 7.]]) + Wotrue = np.array([[5., 7.], [26., 38.]]) + Wo = obsv(A, C) + np.testing.assert_array_almost_equal(Wo, Wotrue) + + # Make sure default type values are correct + assert ismatarrayout(Wo) + + + def testObsvMIMO(self, matarrayin): + A = matarrayin([[1., 2.], [3., 4.]]) + C = matarrayin([[5., 6.], [7., 8.]]) + Wotrue = np.array([[5., 6.], [7., 8.], [23., 34.], [31., 46.]]) + Wo = obsv(A, C) + np.testing.assert_array_almost_equal(Wo, Wotrue) + + def testCtrbObsvDuality(self, matarrayin): + A = matarrayin([[1.2, -2.3], [3.4, -4.5]]) + B = matarrayin([[5.8, 6.9], [8., 9.1]]) + Wc = ctrb(A, B) + A = np.transpose(A) + C = np.transpose(B) + Wo = np.transpose(obsv(A, C)); + np.testing.assert_array_almost_equal(Wc,Wo) + + @slycotonly + def testGramWc(self, matarrayin, matarrayout): + A = matarrayin([[1., -2.], [3., -4.]]) + B = matarrayin([[5., 6.], [7., 8.]]) + C = matarrayin([[4., 5.], [6., 7.]]) + D = matarrayin([[13., 14.], [15., 16.]]) + sys = ss(A, B, C, D) + Wctrue = np.array([[18.5, 24.5], [24.5, 32.5]]) + + with check_deprecated_matrix(): + Wc = gram(sys, 'c') + + assert ismatarrayout(Wc) + np.testing.assert_array_almost_equal(Wc, Wctrue) + + @slycotonly + def testGramRc(self, matarrayin): + A = matarrayin([[1., -2.], [3., -4.]]) + B = matarrayin([[5., 6.], [7., 8.]]) + C = matarrayin([[4., 5.], [6., 7.]]) + D = matarrayin([[13., 14.], [15., 16.]]) + sys = ss(A, B, C, D) + Rctrue = np.array([[4.30116263, 5.6961343], [0., 0.23249528]]) + Rc = gram(sys, 'cf') + np.testing.assert_array_almost_equal(Rc, Rctrue) + + @slycotonly + def testGramWo(self, matarrayin): + A = matarrayin([[1., -2.], [3., -4.]]) + B = matarrayin([[5., 6.], [7., 8.]]) + C = matarrayin([[4., 5.], [6., 7.]]) + D = matarrayin([[13., 14.], [15., 16.]]) + sys = ss(A, B, C, D) + Wotrue = np.array([[257.5, -94.5], [-94.5, 56.5]]) + Wo = gram(sys, 'o') + np.testing.assert_array_almost_equal(Wo, Wotrue) + + @slycotonly + def testGramWo2(self, matarrayin): + A = matarrayin([[1., -2.], [3., -4.]]) + B = matarrayin([[5.], [7.]]) + C = matarrayin([[6., 8.]]) + D = matarrayin([[9.]]) + sys = ss(A,B,C,D) + Wotrue = np.array([[198., -72.], [-72., 44.]]) + Wo = gram(sys, 'o') + np.testing.assert_array_almost_equal(Wo, Wotrue) + + @slycotonly + def testGramRo(self, matarrayin): + A = matarrayin([[1., -2.], [3., -4.]]) + B = matarrayin([[5., 6.], [7., 8.]]) + C = matarrayin([[4., 5.], [6., 7.]]) + D = matarrayin([[13., 14.], [15., 16.]]) + sys = ss(A, B, C, D) + Rotrue = np.array([[16.04680654, -5.8890222], [0., 4.67112593]]) + Ro = gram(sys, 'of') + np.testing.assert_array_almost_equal(Ro, Rotrue) + + def testGramsys(self): + num =[1.] + den = [1., 1., 1.] + sys = tf(num,den) + with pytest.raises(ValueError): + gram(sys, 'o') + with pytest.raises(ValueError): + gram(sys, 'c') + + def testAcker(self, fixedseed): + for states in range(1, self.maxStates): + for i in range(self.maxTries): + # start with a random SS system and transform to TF then + # back to SS, check that the matrices are the same. + sys = rss(states, 1, 1) + if (self.debug): + print(sys) + + # Make sure the system is not degenerate + Cmat = ctrb(sys.A, sys.B) + if np.linalg.matrix_rank(Cmat) != states: + if (self.debug): + print(" skipping (not reachable or ill conditioned)") + continue + + # Place the poles at random locations + des = rss(states, 1, 1); + poles = pole(des) + + # Now place the poles using acker + K = acker(sys.A, sys.B, poles) + new = ss(sys.A - sys.B * K, sys.B, sys.C, sys.D) + placed = pole(new) + + # Debugging code + # diff = np.sort(poles) - np.sort(placed) + # if not all(diff < 0.001): + # print("Found a problem:") + # print(sys) + # print("desired = ", poles) + + np.testing.assert_array_almost_equal(np.sort(poles), + np.sort(placed), decimal=4) + + def checkPlaced(self, P_expected, P_placed): + """Check that placed poles are correct""" + # No guarantee of the ordering, so sort them + P_expected = np.squeeze(np.asarray(P_expected)) + P_expected.sort() + P_placed.sort() + np.testing.assert_array_almost_equal(P_expected, P_placed) + + def testPlace(self, matarrayin): + # Matrices shamelessly stolen from scipy example code. + A = matarrayin([[1.380, -0.2077, 6.715, -5.676], + [-0.5814, -4.290, 0, 0.6750], + [1.067, 4.273, -6.654, 5.893], + [0.0480, 4.273, 1.343, -2.104]]) + B = matarrayin([[0, 5.679], + [1.136, 1.136], + [0, 0], + [-3.146, 0]]) + P = matarrayin([-0.5 + 1j, -0.5 - 1j, -5.0566, -8.6659]) + K = place(A, B, P) + assert ismatarrayout(K) + P_placed = np.linalg.eigvals(A - B.dot(K)) + self.checkPlaced(P, P_placed) + + # Test that the dimension checks work. + with pytest.raises(ControlDimension): + place(A[1:, :], B, P) + with pytest.raises(ControlDimension): + place(A, B[1:, :], P) + + # Check that we get an error if we ask for too many poles in the same + # location. Here, rank(B) = 2, so lets place three at the same spot. + P_repeated = matarrayin([-0.5, -0.5, -0.5, -8.6659]) + with pytest.raises(ValueError): + place(A, B, P_repeated) + + @slycotonly + def testPlace_varga_continuous(self, matarrayin): + """ + Check that we can place eigenvalues for dtime=False + """ + A = matarrayin([[1., -2.], [3., -4.]]) + B = matarrayin([[5.], [7.]]) + + P = [-2., -2.] + K = place_varga(A, B, P) + P_placed = np.linalg.eigvals(A - B.dot(K)) + self.checkPlaced(P, P_placed) + + # Test that the dimension checks work. + np.testing.assert_raises(ControlDimension, place, A[1:, :], B, P) + np.testing.assert_raises(ControlDimension, place, A, B[1:, :], P) + + # Regression test against bug #177 + # https://github.com/python-control/python-control/issues/177 + A = matarrayin([[0, 1], [100, 0]]) + B = matarrayin([[0], [1]]) + P = matarrayin([-20 + 10*1j, -20 - 10*1j]) + K = place_varga(A, B, P) + P_placed = np.linalg.eigvals(A - B.dot(K)) + self.checkPlaced(P, P_placed) + + + @slycotonly + def testPlace_varga_continuous_partial_eigs(self, matarrayin): + """ + Check that we are able to use the alpha parameter to only place + a subset of the eigenvalues, for the continous time case. + """ + # A matrix has eigenvalues at s=-1, and s=-2. Choose alpha = -1.5 + # and check that eigenvalue at s=-2 stays put. + A = matarrayin([[1., -2.], [3., -4.]]) + B = matarrayin([[5.], [7.]]) + + P = matarrayin([-3.]) + P_expected = np.array([-2.0, -3.0]) + alpha = -1.5 + K = place_varga(A, B, P, alpha=alpha) + + P_placed = np.linalg.eigvals(A - B.dot(K)) + # No guarantee of the ordering, so sort them + self.checkPlaced(P_expected, P_placed) + + @slycotonly + def testPlace_varga_discrete(self, matarrayin): + """ + Check that we can place poles using dtime=True (discrete time) + """ + A = matarrayin([[1., 0], [0, 0.5]]) + B = matarrayin([[5.], [7.]]) + + P = matarrayin([0.5, 0.5]) + K = place_varga(A, B, P, dtime=True) + P_placed = np.linalg.eigvals(A - B.dot(K)) + # No guarantee of the ordering, so sort them + self.checkPlaced(P, P_placed) + + @slycotonly + def testPlace_varga_discrete_partial_eigs(self, matarrayin): + """" + Check that we can only assign a single eigenvalue in the discrete + time case. + """ + # A matrix has eigenvalues at 1.0 and 0.5. Set alpha = 0.51, and + # check that the eigenvalue at 0.5 is not moved. + A = matarrayin([[1., 0], [0, 0.5]]) + B = matarrayin([[5.], [7.]]) + P = matarrayin([0.2, 0.6]) + P_expected = np.array([0.5, 0.6]) + alpha = 0.51 + K = place_varga(A, B, P, dtime=True, alpha=alpha) + P_placed = np.linalg.eigvals(A - B.dot(K)) + self.checkPlaced(P_expected, P_placed) + + + def check_LQR(self, K, S, poles, Q, R): + S_expected = asmatarrayout(np.sqrt(Q.dot(R))) + K_expected = asmatarrayout(S_expected / R) + poles_expected = -np.squeeze(np.asarray(K_expected)) + np.testing.assert_array_almost_equal(S, S_expected) + np.testing.assert_array_almost_equal(K, K_expected) + np.testing.assert_array_almost_equal(poles, poles_expected) + + + @slycotonly + def test_LQR_integrator(self, matarrayin, matarrayout): + A, B, Q, R = (matarrayin([[X]]) for X in [0., 1., 10., 2.]) + K, S, poles = lqr(A, B, Q, R) + self.check_LQR(K, S, poles, Q, R) + + @slycotonly + def test_LQR_3args(self, matarrayin, matarrayout): + sys = ss(0., 1., 1., 0.) + Q, R = (matarrayin([[X]]) for X in [10., 2.]) + K, S, poles = lqr(sys, Q, R) + self.check_LQR(K, S, poles, Q, R) + + @slycotonly + @pytest.mark.xfail(reason="warning not implemented") + def testLQR_warning(self): + """Test lqr() + + Make sure we get a warning if [Q N;N' R] is not positive semi-definite + """ + # from matlab_test siso.ss2 (testLQR); probably not referenced before + # not yet implemented check + A = np.array([[-2, 3, 1], + [-1, 0, 0], + [0, 1, 0]]) + B = np.array([[-1, 0, 0]]).T + Q = np.eye(3) + R = np.eye(1) + N = np.array([[1, 1, 2]]).T + # assert any(np.linalg.eigvals(np.block([[Q, N], [N.T, R]])) < 0) + with pytest.warns(UserWarning): + (K, S, E) = lqr(A, B, Q, R, N) + + def check_LQE(self, L, P, poles, G, QN, RN): + P_expected = asmatarrayout(np.sqrt(G.dot(QN.dot(G).dot(RN)))) + L_expected = asmatarrayout(P_expected / RN) + poles_expected = -np.squeeze(np.asarray(L_expected)) + np.testing.assert_array_almost_equal(P, P_expected) + np.testing.assert_array_almost_equal(L, L_expected) + np.testing.assert_array_almost_equal(poles, poles_expected) + + @slycotonly + def test_LQE(self, matarrayin): + A, G, C, QN, RN = (matarrayin([[X]]) for X in [0., .1, 1., 10., 2.]) + L, P, poles = lqe(A, G, C, QN, RN) + self.check_LQE(L, P, poles, G, QN, RN) + + @slycotonly + def test_care(self, matarrayin): + """Test stabilizing and anti-stabilizing feedbacks, continuous""" + A = matarrayin(np.diag([1, -1])) + B = matarrayin(np.identity(2)) + Q = matarrayin(np.identity(2)) + R = matarrayin(np.identity(2)) + S = matarrayin(np.zeros((2, 2))) + E = matarrayin(np.identity(2)) + X, L, G = care(A, B, Q, R, S, E, stabilizing=True) + assert np.all(np.real(L) < 0) + X, L, G = care(A, B, Q, R, S, E, stabilizing=False) + assert np.all(np.real(L) > 0) + + @slycotonly + def test_dare(self, matarrayin): + """Test stabilizing and anti-stabilizing feedbacks, discrete""" + A = matarrayin(np.diag([0.5, 2])) + B = matarrayin(np.identity(2)) + Q = matarrayin(np.identity(2)) + R = matarrayin(np.identity(2)) + S = matarrayin(np.zeros((2, 2))) + E = matarrayin(np.identity(2)) + X, L, G = dare(A, B, Q, R, S, E, stabilizing=True) + assert np.all(np.abs(L) < 1) + X, L, G = dare(A, B, Q, R, S, E, stabilizing=False) + assert np.all(np.abs(L) > 1) diff --git a/control/tests/statesp_array_test.py b/control/tests/statesp_array_test.py deleted file mode 100644 index f0574cf24..000000000 --- a/control/tests/statesp_array_test.py +++ /dev/null @@ -1,639 +0,0 @@ -#!/usr/bin/env python -# -# statesp_test.py - test state space class with use_numpy_matrix(False) -# RMM, 14 Jun 2019 (coverted from statesp_test.py) - -import unittest -import numpy as np -from numpy.linalg import solve -from scipy.linalg import eigvals, block_diag -from control import matlab -from control.statesp import StateSpace, _convertToStateSpace, tf2ss -from control.xferfcn import TransferFunction, ss2tf -from control.lti import evalfr -from control.exception import slycot_check -from control.config import use_numpy_matrix, reset_defaults -from control.config import defaults - -class TestStateSpace(unittest.TestCase): - """Tests for the StateSpace class.""" - - def setUp(self): - """Set up a MIMO system to test operations on.""" - use_numpy_matrix(False) - - # sys1: 3-states square system (2 inputs x 2 outputs) - A322 = [[-3., 4., 2.], - [-1., -3., 0.], - [2., 5., 3.]] - B322 = [[1., 4.], - [-3., -3.], - [-2., 1.]] - C322 = [[4., 2., -3.], - [1., 4., 3.]] - D322 = [[-2., 4.], - [0., 1.]] - self.sys322 = StateSpace(A322, B322, C322, D322) - - # sys1: 2-states square system (2 inputs x 2 outputs) - A222 = [[4., 1.], - [2., -3]] - B222 = [[5., 2.], - [-3., -3.]] - C222 = [[2., -4], - [0., 1.]] - D222 = [[3., 2.], - [1., -1.]] - self.sys222 = StateSpace(A222, B222, C222, D222) - - # sys3: 6 states non square system (2 inputs x 3 outputs) - A623 = np.array([[1, 0, 0, 0, 0, 0], - [0, 1, 0, 0, 0, 0], - [0, 0, 3, 0, 0, 0], - [0, 0, 0, -4, 0, 0], - [0, 0, 0, 0, -1, 0], - [0, 0, 0, 0, 0, 3]]) - B623 = np.array([[0, -1], - [-1, 0], - [1, -1], - [0, 0], - [0, 1], - [-1, -1]]) - C623 = np.array([[1, 0, 0, 1, 0, 0], - [0, 1, 0, 1, 0, 1], - [0, 0, 1, 0, 0, 1]]) - D623 = np.zeros((3, 2)) - self.sys623 = StateSpace(A623, B623, C623, D623) - - def test_matlab_style_constructor(self): - # Use (deprecated?) matrix-style construction string (w/ warnings off) - import warnings - warnings.filterwarnings("ignore") # turn off warnings - sys = StateSpace("-1 1; 0 2", "0; 1", "1, 0", "0") - warnings.resetwarnings() # put things back to original state - self.assertEqual(sys.A.shape, (2, 2)) - self.assertEqual(sys.B.shape, (2, 1)) - self.assertEqual(sys.C.shape, (1, 2)) - self.assertEqual(sys.D.shape, (1, 1)) - if defaults['statesp.use_numpy_matrix']: - for X in [sys.A, sys.B, sys.C, sys.D]: - self.assertTrue(isinstance(X, np.matrix)) - else: - for X in [sys.A, sys.B, sys.C, sys.D]: - self.assertTrue(isinstance(X, np.ndarray)) - - def test_pole(self): - """Evaluate the poles of a MIMO system.""" - - p = np.sort(self.sys322.pole()) - true_p = np.sort([3.34747678408874, - -3.17373839204437 + 1.47492908003839j, - -3.17373839204437 - 1.47492908003839j]) - - np.testing.assert_array_almost_equal(p, true_p) - - def test_zero_empty(self): - """Test to make sure zero() works with no zeros in system.""" - sys = _convertToStateSpace(TransferFunction([1], [1, 2, 1])) - np.testing.assert_array_equal(sys.zero(), np.array([])) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_zero_siso(self): - """Evaluate the zeros of a SISO system.""" - # extract only first input / first output system of sys222. This system is denoted sys111 - # or tf111 - tf111 = ss2tf(self.sys222) - sys111 = tf2ss(tf111[0, 0]) - - # compute zeros as root of the characteristic polynomial at the numerator of tf111 - # this method is simple and assumed as valid in this test - true_z = np.sort(tf111[0, 0].zero()) - # Compute the zeros through ab08nd, which is tested here - z = np.sort(sys111.zero()) - - np.testing.assert_almost_equal(true_z, z) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_zero_mimo_sys322_square(self): - """Evaluate the zeros of a square MIMO system.""" - - z = np.sort(self.sys322.zero()) - true_z = np.sort([44.41465, -0.490252, -5.924398]) - np.testing.assert_array_almost_equal(z, true_z) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_zero_mimo_sys222_square(self): - """Evaluate the zeros of a square MIMO system.""" - - z = np.sort(self.sys222.zero()) - true_z = np.sort([-10.568501, 3.368501]) - np.testing.assert_array_almost_equal(z, true_z) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_zero_mimo_sys623_non_square(self): - """Evaluate the zeros of a non square MIMO system.""" - - z = np.sort(self.sys623.zero()) - true_z = np.sort([2., -1.]) - np.testing.assert_array_almost_equal(z, true_z) - - def test_add_ss(self): - """Add two MIMO systems.""" - - A = [[-3., 4., 2., 0., 0.], [-1., -3., 0., 0., 0.], - [2., 5., 3., 0., 0.], [0., 0., 0., 4., 1.], [0., 0., 0., 2., -3.]] - B = [[1., 4.], [-3., -3.], [-2., 1.], [5., 2.], [-3., -3.]] - C = [[4., 2., -3., 2., -4.], [1., 4., 3., 0., 1.]] - D = [[1., 6.], [1., 0.]] - - sys = self.sys322 + self.sys222 - - np.testing.assert_array_almost_equal(sys.A, A) - np.testing.assert_array_almost_equal(sys.B, B) - np.testing.assert_array_almost_equal(sys.C, C) - np.testing.assert_array_almost_equal(sys.D, D) - - def test_subtract_ss(self): - """Subtract two MIMO systems.""" - - A = [[-3., 4., 2., 0., 0.], [-1., -3., 0., 0., 0.], - [2., 5., 3., 0., 0.], [0., 0., 0., 4., 1.], [0., 0., 0., 2., -3.]] - B = [[1., 4.], [-3., -3.], [-2., 1.], [5., 2.], [-3., -3.]] - C = [[4., 2., -3., -2., 4.], [1., 4., 3., 0., -1.]] - D = [[-5., 2.], [-1., 2.]] - - sys = self.sys322 - self.sys222 - - np.testing.assert_array_almost_equal(sys.A, A) - np.testing.assert_array_almost_equal(sys.B, B) - np.testing.assert_array_almost_equal(sys.C, C) - np.testing.assert_array_almost_equal(sys.D, D) - - def test_multiply_ss(self): - """Multiply two MIMO systems.""" - - A = [[4., 1., 0., 0., 0.], [2., -3., 0., 0., 0.], [2., 0., -3., 4., 2.], - [-6., 9., -1., -3., 0.], [-4., 9., 2., 5., 3.]] - B = [[5., 2.], [-3., -3.], [7., -2.], [-12., -3.], [-5., -5.]] - C = [[-4., 12., 4., 2., -3.], [0., 1., 1., 4., 3.]] - D = [[-2., -8.], [1., -1.]] - - sys = self.sys322 * self.sys222 - - np.testing.assert_array_almost_equal(sys.A, A) - np.testing.assert_array_almost_equal(sys.B, B) - np.testing.assert_array_almost_equal(sys.C, C) - np.testing.assert_array_almost_equal(sys.D, D) - - def test_evalfr(self): - """Evaluate the frequency response at one frequency.""" - - A = [[-2, 0.5], [0.5, -0.3]] - B = [[0.3, -1.3], [0.1, 0.]] - C = [[0., 0.1], [-0.3, -0.2]] - D = [[0., -0.8], [-0.3, 0.]] - sys = StateSpace(A, B, C, D) - - resp = [[4.37636761487965e-05 - 0.0152297592997812j, - -0.792603938730853 + 0.0261706783369803j], - [-0.331544857768052 + 0.0576105032822757j, - 0.128919037199125 - 0.143824945295405j]] - - # Correct versions of the call - np.testing.assert_almost_equal(evalfr(sys, 1j), resp) - np.testing.assert_almost_equal(sys._evalfr(1.), resp) - - # Deprecated version of the call (should generate warning) - import warnings - with warnings.catch_warnings(record=True) as w: - # Set up warnings filter to only show warnings in control module - warnings.filterwarnings("ignore") - warnings.filterwarnings("always", module="control") - - # Make sure that we get a pending deprecation warning - sys.evalfr(1.) - assert len(w) == 1 - assert issubclass(w[-1].category, PendingDeprecationWarning) - - # Leave the warnings filter like we found it - warnings.resetwarnings() - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_freq_resp(self): - """Evaluate the frequency response at multiple frequencies.""" - - A = [[-2, 0.5], [0.5, -0.3]] - B = [[0.3, -1.3], [0.1, 0.]] - C = [[0., 0.1], [-0.3, -0.2]] - D = [[0., -0.8], [-0.3, 0.]] - sys = StateSpace(A, B, C, D) - - true_mag = [[[0.0852992637230322, 0.00103596611395218], - [0.935374692849736, 0.799380720864549]], - [[0.55656854563842, 0.301542699860857], - [0.609178071542849, 0.0382108097985257]]] - true_phase = [[[-0.566195599644593, -1.68063565332582], - [3.0465958317514, 3.14141384339534]], - [[2.90457947657161, 3.10601268291914], - [-0.438157380501337, -1.40720969147217]]] - true_omega = [0.1, 10.] - - mag, phase, omega = sys.freqresp(true_omega) - - np.testing.assert_almost_equal(mag, true_mag) - np.testing.assert_almost_equal(phase, true_phase) - np.testing.assert_equal(omega, true_omega) - - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_minreal(self): - """Test a minreal model reduction.""" - # A = [-2, 0.5, 0; 0.5, -0.3, 0; 0, 0, -0.1] - A = [[-2, 0.5, 0], [0.5, -0.3, 0], [0, 0, -0.1]] - # B = [0.3, -1.3; 0.1, 0; 1, 0] - B = [[0.3, -1.3], [0.1, 0.], [1.0, 0.0]] - # C = [0, 0.1, 0; -0.3, -0.2, 0] - C = [[0., 0.1, 0.0], [-0.3, -0.2, 0.0]] - # D = [0 -0.8; -0.3 0] - D = [[0., -0.8], [-0.3, 0.]] - # sys = ss(A, B, C, D) - - sys = StateSpace(A, B, C, D) - sysr = sys.minreal() - self.assertEqual(sysr.states, 2) - self.assertEqual(sysr.inputs, sys.inputs) - self.assertEqual(sysr.outputs, sys.outputs) - np.testing.assert_array_almost_equal( - eigvals(sysr.A), [-2.136154, -0.1638459]) - - def test_append_ss(self): - """Test appending two state-space systems.""" - A1 = [[-2, 0.5, 0], [0.5, -0.3, 0], [0, 0, -0.1]] - B1 = [[0.3, -1.3], [0.1, 0.], [1.0, 0.0]] - C1 = [[0., 0.1, 0.0], [-0.3, -0.2, 0.0]] - D1 = [[0., -0.8], [-0.3, 0.]] - A2 = [[-1.]] - B2 = [[1.2]] - C2 = [[0.5]] - D2 = [[0.4]] - A3 = [[-2, 0.5, 0, 0], [0.5, -0.3, 0, 0], [0, 0, -0.1, 0], - [0, 0, 0., -1.]] - B3 = [[0.3, -1.3, 0], [0.1, 0., 0], [1.0, 0.0, 0], [0., 0, 1.2]] - C3 = [[0., 0.1, 0.0, 0.0], [-0.3, -0.2, 0.0, 0.0], [0., 0., 0., 0.5]] - D3 = [[0., -0.8, 0.], [-0.3, 0., 0.], [0., 0., 0.4]] - sys1 = StateSpace(A1, B1, C1, D1) - sys2 = StateSpace(A2, B2, C2, D2) - sys3 = StateSpace(A3, B3, C3, D3) - sys3c = sys1.append(sys2) - np.testing.assert_array_almost_equal(sys3.A, sys3c.A) - np.testing.assert_array_almost_equal(sys3.B, sys3c.B) - np.testing.assert_array_almost_equal(sys3.C, sys3c.C) - np.testing.assert_array_almost_equal(sys3.D, sys3c.D) - - def test_append_tf(self): - """Test appending a state-space system with a tf""" - A1 = [[-2, 0.5, 0], [0.5, -0.3, 0], [0, 0, -0.1]] - B1 = [[0.3, -1.3], [0.1, 0.], [1.0, 0.0]] - C1 = [[0., 0.1, 0.0], [-0.3, -0.2, 0.0]] - D1 = [[0., -0.8], [-0.3, 0.]] - s = TransferFunction([1, 0], [1]) - h = 1 / (s + 1) / (s + 2) - sys1 = StateSpace(A1, B1, C1, D1) - sys2 = _convertToStateSpace(h) - sys3c = sys1.append(sys2) - np.testing.assert_array_almost_equal(sys1.A, sys3c.A[:3, :3]) - np.testing.assert_array_almost_equal(sys1.B, sys3c.B[:3, :2]) - np.testing.assert_array_almost_equal(sys1.C, sys3c.C[:2, :3]) - np.testing.assert_array_almost_equal(sys1.D, sys3c.D[:2, :2]) - np.testing.assert_array_almost_equal(sys2.A, sys3c.A[3:, 3:]) - np.testing.assert_array_almost_equal(sys2.B, sys3c.B[3:, 2:]) - np.testing.assert_array_almost_equal(sys2.C, sys3c.C[2:, 3:]) - np.testing.assert_array_almost_equal(sys2.D, sys3c.D[2:, 2:]) - np.testing.assert_array_almost_equal(sys3c.A[:3, 3:], np.zeros((3, 2))) - np.testing.assert_array_almost_equal(sys3c.A[3:, :3], np.zeros((2, 3))) - - def test_array_access_ss(self): - - sys1 = StateSpace([[1., 2.], [3., 4.]], - [[5., 6.], [6., 8.]], - [[9., 10.], [11., 12.]], - [[13., 14.], [15., 16.]], 1) - - sys1_11 = sys1[0, 1] - np.testing.assert_array_almost_equal(sys1_11.A, - sys1.A) - np.testing.assert_array_almost_equal(sys1_11.B, - sys1.B[:, [1]]) - np.testing.assert_array_almost_equal(sys1_11.C, - sys1.C[[0], :]) - np.testing.assert_array_almost_equal(sys1_11.D, sys1.D[0,1]) - - assert sys1.dt == sys1_11.dt - - def test_dc_gain_cont(self): - """Test DC gain for continuous-time state-space systems.""" - sys = StateSpace(-2., 6., 5., 0) - np.testing.assert_equal(sys.dcgain(), 15.) - - sys2 = StateSpace(-2, [[6., 4.]], [[5.], [7.], [11]], np.zeros((3, 2))) - expected = np.array([[15., 10.], [21., 14.], [33., 22.]]) - np.testing.assert_array_equal(sys2.dcgain(), expected) - - sys3 = StateSpace(0., 1., 1., 0.) - np.testing.assert_equal(sys3.dcgain(), np.nan) - - def test_dc_gain_discr(self): - """Test DC gain for discrete-time state-space systems.""" - # static gain - sys = StateSpace([], [], [], 2, True) - np.testing.assert_equal(sys.dcgain(), 2) - - # averaging filter - sys = StateSpace(0.5, 0.5, 1, 0, True) - np.testing.assert_almost_equal(sys.dcgain(), 1) - - # differencer - sys = StateSpace(0, 1, -1, 1, True) - np.testing.assert_equal(sys.dcgain(), 0) - - # summer - sys = StateSpace(1, 1, 1, 0, True) - np.testing.assert_equal(sys.dcgain(), np.nan) - - def test_dc_gain_integrator(self): - """DC gain when eigenvalue at DC returns appropriately sized array of nan.""" - # the SISO case is also tested in test_dc_gain_{cont,discr} - import itertools - # iterate over input and output sizes, and continuous (dt=None) and discrete (dt=True) time - for inputs, outputs, dt in itertools.product(range(1, 6), range(1, 6), [None, True]): - states = max(inputs, outputs) - - # a matrix that is singular at DC, and has no "useless" states as in - # _remove_useless_states - a = np.triu(np.tile(2, (states, states))) - # eigenvalues all +2, except for ... - a[0, 0] = 0 if dt is None else 1 - b = np.eye(max(inputs, states))[:states, :inputs] - c = np.eye(max(outputs, states))[:outputs, :states] - d = np.zeros((outputs, inputs)) - sys = StateSpace(a, b, c, d, dt) - dc = np.squeeze(np.tile(np.nan, (outputs, inputs))) - np.testing.assert_array_equal(dc, sys.dcgain()) - - def test_scalar_static_gain(self): - """Regression: can we create a scalar static gain?""" - g1 = StateSpace([], [], [], [2]) - g2 = StateSpace([], [], [], [3]) - - # make sure StateSpace internals, specifically ABC matrix - # sizes, are OK for LTI operations - g3 = g1 * g2 - self.assertEqual(6, g3.D[0, 0]) - g4 = g1 + g2 - self.assertEqual(5, g4.D[0, 0]) - g5 = g1.feedback(g2) - np.testing.assert_array_almost_equal(2. / 7, g5.D[0, 0]) - g6 = g1.append(g2) - np.testing.assert_array_equal(np.diag([2, 3]), g6.D) - - def test_matrix_static_gain(self): - """Regression: can we create matrix static gains?""" - d1 = np.array([[1, 2, 3], [4, 5, 6]]) - d2 = np.array([[7, 8], [9, 10], [11, 12]]) - g1 = StateSpace([], [], [], d1) - - # _remove_useless_states was making A = [[0]] - self.assertEqual((0, 0), g1.A.shape) - - g2 = StateSpace([], [], [], d2) - g3 = StateSpace([], [], [], d2.T) - - h1 = g1 * g2 - np.testing.assert_array_equal(np.dot(d1, d2), h1.D) - h2 = g1 + g3 - np.testing.assert_array_equal(d1 + d2.T, h2.D) - h3 = g1.feedback(g2) - np.testing.assert_array_almost_equal( - solve(np.eye(2) + np.dot(d1, d2), d1), h3.D) - h4 = g1.append(g2) - np.testing.assert_array_equal(block_diag(d1, d2), h4.D) - - def test_remove_useless_states(self): - """Regression: _remove_useless_states gives correct ABC sizes.""" - g1 = StateSpace(np.zeros((3, 3)), - np.zeros((3, 4)), - np.zeros((5, 3)), - np.zeros((5, 4))) - self.assertEqual((0, 0), g1.A.shape) - self.assertEqual((0, 4), g1.B.shape) - self.assertEqual((5, 0), g1.C.shape) - self.assertEqual((5, 4), g1.D.shape) - self.assertEqual(0, g1.states) - - def test_bad_empty_matrices(self): - """Mismatched ABCD matrices when some are empty.""" - self.assertRaises(ValueError, StateSpace, [1], [], [], [1]) - self.assertRaises(ValueError, StateSpace, [1], [1], [], [1]) - self.assertRaises(ValueError, StateSpace, [1], [], [1], [1]) - self.assertRaises(ValueError, StateSpace, [], [1], [], [1]) - self.assertRaises(ValueError, StateSpace, [], [1], [1], [1]) - self.assertRaises(ValueError, StateSpace, [], [], [1], [1]) - self.assertRaises(ValueError, StateSpace, [1], [1], [1], []) - - def test_minreal_static_gain(self): - """Regression: minreal on static gain was failing.""" - g1 = StateSpace([], [], [], [1]) - g2 = g1.minreal() - np.testing.assert_array_equal(g1.A, g2.A) - np.testing.assert_array_equal(g1.B, g2.B) - np.testing.assert_array_equal(g1.C, g2.C) - np.testing.assert_array_equal(g1.D, g2.D) - - def test_empty(self): - """Regression: can we create an empty StateSpace object?""" - g1 = StateSpace([], [], [], []) - self.assertEqual(0, g1.states) - self.assertEqual(0, g1.inputs) - self.assertEqual(0, g1.outputs) - - def test_matrix_to_state_space(self): - """_convertToStateSpace(matrix) gives ss([],[],[],D)""" - D = np.array([[1, 2, 3], [4, 5, 6]]) - g = _convertToStateSpace(D) - - def empty(shape): - m = np.array([]) - m.shape = shape - return m - np.testing.assert_array_equal(empty((0, 0)), g.A) - np.testing.assert_array_equal(empty((0, D.shape[1])), g.B) - np.testing.assert_array_equal(empty((D.shape[0], 0)), g.C) - np.testing.assert_array_equal(D, g.D) - - def test_lft(self): - """ test lft function with result obtained from matlab implementation""" - # test case - A = [[1, 2, 3], - [1, 4, 5], - [2, 3, 4]] - B = [[0, 2], - [5, 6], - [5, 2]] - C = [[1, 4, 5], - [2, 3, 0]] - D = [[0, 0], - [3, 0]] - P = StateSpace(A, B, C, D) - Ak = [[0, 2, 3], - [2, 3, 5], - [2, 1, 9]] - Bk = [[1, 1], - [2, 3], - [9, 4]] - Ck = [[1, 4, 5], - [2, 3, 6]] - Dk = [[0, 2], - [0, 0]] - K = StateSpace(Ak, Bk, Ck, Dk) - - # case 1 - pk = P.lft(K, 2, 1) - Amatlab = [1, 2, 3, 4, 6, 12, 1, 4, 5, 17, 38, 61, 2, 3, 4, 9, 26, 37, 2, 3, 0, 3, 14, 18, 4, 6, 0, 8, 27, 35, 18, 27, 0, 29, 109, 144] - Bmatlab = [0, 10, 10, 7, 15, 58] - Cmatlab = [1, 4, 5, 0, 0, 0] - Dmatlab = [0] - np.testing.assert_allclose(np.array(pk.A).reshape(-1), Amatlab) - np.testing.assert_allclose(np.array(pk.B).reshape(-1), Bmatlab) - np.testing.assert_allclose(np.array(pk.C).reshape(-1), Cmatlab) - np.testing.assert_allclose(np.array(pk.D).reshape(-1), Dmatlab) - - # case 2 - pk = P.lft(K) - Amatlab = [1, 2, 3, 4, 6, 12, -3, -2, 5, 11, 14, 31, -2, -3, 4, 3, 2, 7, 0.6, 3.4, 5, -0.6, -0.4, 0, 0.8, 6.2, 10, 0.2, -4.2, -4, 7.4, 33.6, 45, -0.4, -8.6, -3] - Bmatlab = [] - Cmatlab = [] - Dmatlab = [] - np.testing.assert_allclose(np.array(pk.A).reshape(-1), Amatlab) - np.testing.assert_allclose(np.array(pk.B).reshape(-1), Bmatlab) - np.testing.assert_allclose(np.array(pk.C).reshape(-1), Cmatlab) - np.testing.assert_allclose(np.array(pk.D).reshape(-1), Dmatlab) - - def test_horner(self): - """Test horner() function""" - # Make sure we can compute the transfer function at a complex value - self.sys322.horner(1.+1.j) - - # Make sure result agrees with frequency response - mag, phase, omega = self.sys322.freqresp([1]) - np.testing.assert_array_almost_equal( - self.sys322.horner(1.j), - mag[:,:,0] * np.exp(1.j * phase[:,:,0])) - - def tearDown(self): - reset_defaults() # reset configuration defaults - - -class TestRss(unittest.TestCase): - """These are tests for the proper functionality of statesp.rss.""" - - def setUp(self): - use_numpy_matrix(False) - - # Number of times to run each of the randomized tests. - self.numTests = 100 - # Maxmimum number of states to test + 1 - self.maxStates = 10 - # Maximum number of inputs and outputs to test + 1 - self.maxIO = 5 - - def test_shape(self): - """Test that rss outputs have the right state, input, and output size.""" - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - sys = matlab.rss(states, outputs, inputs) - self.assertEqual(sys.states, states) - self.assertEqual(sys.inputs, inputs) - self.assertEqual(sys.outputs, outputs) - - def test_pole(self): - """Test that the poles of rss outputs have a negative real part.""" - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - sys = matlab.rss(states, outputs, inputs) - p = sys.pole() - for z in p: - self.assertTrue(z.real < 0) - - def tearDown(self): - reset_defaults() # reset configuration defaults - - -class TestDrss(unittest.TestCase): - """These are tests for the proper functionality of statesp.drss.""" - - def setUp(self): - use_numpy_matrix(False) - - # Number of times to run each of the randomized tests. - self.numTests = 100 - # Maximum number of states to test + 1 - self.maxStates = 10 - # Maximum number of inputs and outputs to test + 1 - self.maxIO = 5 - - def test_shape(self): - """Test that drss outputs have the right state, input, and output size.""" - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - sys = matlab.drss(states, outputs, inputs) - self.assertEqual(sys.states, states) - self.assertEqual(sys.inputs, inputs) - self.assertEqual(sys.outputs, outputs) - - def test_pole(self): - """Test that the poles of drss outputs have less than unit magnitude.""" - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - sys = matlab.drss(states, outputs, inputs) - p = sys.pole() - for z in p: - self.assertTrue(abs(z) < 1) - - def test_pole_static(self): - """Regression: pole() of static gain is empty array.""" - np.testing.assert_array_equal(np.array([]), - StateSpace([], [], [], [[1]]).pole()) - - def test_copy_constructor(self): - # Create a set of matrices for a simple linear system - A = np.array([[-1]]) - B = np.array([[1]]) - C = np.array([[1]]) - D = np.array([[0]]) - - # Create the first linear system and a copy - linsys = StateSpace(A, B, C, D) - cpysys = StateSpace(linsys) - - # Change the original A matrix - A[0, 0] = -2 - np.testing.assert_array_equal(linsys.A, [[-1]]) # original value - np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value - - # Change the A matrix for the original system - linsys.A[0, 0] = -3 - np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value - - def tearDown(self): - reset_defaults() # reset configuration defaults - - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/statesp_matrix_test.py b/control/tests/statesp_test.py similarity index 57% rename from control/tests/statesp_matrix_test.py rename to control/tests/statesp_test.py index e7e91364a..c7b0a0aaf 100644 --- a/control/tests/statesp_matrix_test.py +++ b/control/tests/statesp_test.py @@ -1,27 +1,32 @@ -#!/usr/bin/env python -# -# statesp_test.py - test state space class -# RMM, 30 Mar 2011 (based on TestStateSp from v0.4a) +"""statesp_test.py - test state space class + +RMM, 30 Mar 2011 based on TestStateSp from v0.4a) +RMM, 14 Jun 2019 statesp_array_test.py coverted from statesp_test.py to test + with use_numpy_matrix(False) +BG, 26 Jul 2020 merge statesp_array_test.py differences into statesp_test.py + convert to pytest +""" -import unittest import numpy as np import pytest from numpy.linalg import solve -from scipy.linalg import eigvals, block_diag -from control import matlab -from control.statesp import StateSpace, _convertToStateSpace, tf2ss -from control.xferfcn import TransferFunction, ss2tf +from scipy.linalg import block_diag, eigvals + +from control.config import defaults +from control.dtime import sample_system from control.lti import evalfr -from control.exception import slycot_check +from control.statesp import (StateSpace, _convertToStateSpace, drss, rss, ss, + tf2ss) +from control.tests.conftest import ismatarrayout, slycotonly +from control.xferfcn import TransferFunction, ss2tf -class TestStateSpace(unittest.TestCase): +class TestStateSpace: """Tests for the StateSpace class.""" - def setUp(self): - """Set up a MIMO system to test operations on.""" - - # sys1: 3-states square system (2 inputs x 2 outputs) + @pytest.fixture + def sys322ABCD(self): + """Matrices for sys322""" A322 = [[-3., 4., 2.], [-1., -3., 0.], [2., 5., 3.]] @@ -32,9 +37,16 @@ def setUp(self): [1., 4., 3.]] D322 = [[-2., 4.], [0., 1.]] - self.sys322 = StateSpace(A322, B322, C322, D322) + return (A322, B322, C322, D322) + + @pytest.fixture + def sys322(self, sys322ABCD): + """3-states square system (2 inputs x 2 outputs)""" + return StateSpace(*sys322ABCD) - # sys1: 2-states square system (2 inputs x 2 outputs) + @pytest.fixture + def sys222(self): + """2-states square system (2 inputs x 2 outputs)""" A222 = [[4., 1.], [2., -3]] B222 = [[5., 2.], @@ -43,9 +55,11 @@ def setUp(self): [0., 1.]] D222 = [[3., 2.], [1., -1.]] - self.sys222 = StateSpace(A222, B222, C222, D222) + return StateSpace(A222, B222, C222, D222) - # sys3: 6 states non square system (2 inputs x 3 outputs) + @pytest.fixture + def sys623(self): + """sys3: 6 states non square system (2 inputs x 3 outputs)""" A623 = np.array([[1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0], [0, 0, 3, 0, 0, 0], @@ -62,16 +76,100 @@ def setUp(self): [0, 1, 0, 1, 0, 1], [0, 0, 1, 0, 0, 1]]) D623 = np.zeros((3, 2)) - self.sys623 = StateSpace(A623, B623, C623, D623) + return StateSpace(A623, B623, C623, D623) + + @pytest.mark.parametrize( + "dt", + [(None, ), (0, ), (1, ), (0.1, ), (True, )], + ids=lambda i: "dt " + ("unspec" if len(i) == 0 else str(i[0]))) + @pytest.mark.parametrize( + "argfun", + [pytest.param( + lambda ABCDdt: (ABCDdt, {}), + id="A, B, C, D[, dt]"), + pytest.param( + lambda ABCDdt: ((StateSpace(*ABCDdt), ), {}), + id="sys") + ]) + def test_constructor(self, sys322ABCD, dt, argfun): + """Test different ways to call the StateSpace() constructor""" + args, kwargs = argfun(sys322ABCD + dt) + sys = StateSpace(*args, **kwargs) + + dtref = defaults['control.default_dt'] if len(dt) == 0 else dt[0] + np.testing.assert_almost_equal(sys.A, sys322ABCD[0]) + np.testing.assert_almost_equal(sys.B, sys322ABCD[1]) + np.testing.assert_almost_equal(sys.C, sys322ABCD[2]) + np.testing.assert_almost_equal(sys.D, sys322ABCD[3]) + assert sys.dt == dtref + + @pytest.mark.parametrize("args, exc, errmsg", + [((True, ), TypeError, + "(can only take in|sys must be) a StateSpace"), + ((1, 2), ValueError, "1 or 4 arguments"), + ((np.ones((3, 2)), np.ones((3, 2)), + np.ones((2, 2)), np.ones((2, 2))), + ValueError, "A must be square"), + ((np.ones((3, 3)), np.ones((2, 2)), + np.ones((2, 3)), np.ones((2, 2))), + ValueError, "A and B"), + ((np.ones((3, 3)), np.ones((3, 2)), + np.ones((2, 2)), np.ones((2, 2))), + ValueError, "A and C"), + ((np.ones((3, 3)), np.ones((3, 2)), + np.ones((2, 3)), np.ones((2, 3))), + ValueError, "B and D"), + ((np.ones((3, 3)), np.ones((3, 2)), + np.ones((2, 3)), np.ones((3, 2))), + ValueError, "C and D"), + ]) + def test_constructor_invalid(self, args, exc, errmsg): + """Test invalid input to StateSpace() constructor""" + with pytest.raises(exc, match=errmsg): + StateSpace(*args) + with pytest.raises(exc, match=errmsg): + ss(*args) + + def test_copy_constructor(self): + """Test the copy constructor""" + # Create a set of matrices for a simple linear system + A = np.array([[-1]]) + B = np.array([[1]]) + C = np.array([[1]]) + D = np.array([[0]]) + + # Create the first linear system and a copy + linsys = StateSpace(A, B, C, D) + cpysys = StateSpace(linsys) - def test_D_broadcast(self): + # Change the original A matrix + A[0, 0] = -2 + np.testing.assert_array_equal(linsys.A, [[-1]]) # original value + np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value + + # Change the A matrix for the original system + linsys.A[0, 0] = -3 + np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value + + def test_matlab_style_constructor(self): + """Use (deprecated) matrix-style construction string""" + with pytest.deprecated_call(): + sys = StateSpace("-1 1; 0 2", "0; 1", "1, 0", "0") + assert sys.A.shape == (2, 2) + assert sys.B.shape == (2, 1) + assert sys.C.shape == (1, 2) + assert sys.D.shape == (1, 1) + for X in [sys.A, sys.B, sys.C, sys.D]: + assert ismatarrayout(X) + + def test_D_broadcast(self, sys623): """Test broadcast of D=0 to the right shape""" # Giving D as a scalar 0 should broadcast to the right shape - sys = StateSpace(self.sys623.A, self.sys623.B, self.sys623.C, 0) - np.testing.assert_array_equal(self.sys623.D, sys.D) + sys = StateSpace(sys623.A, sys623.B, sys623.C, 0) + np.testing.assert_array_equal(sys623.D, sys.D) # Giving D as a matrix of the wrong size should generate an error - with self.assertRaises(ValueError): + with pytest.raises(ValueError): sys = StateSpace(sys.A, sys.B, sys.C, np.array([[0]])) # Make sure that empty systems still work @@ -87,10 +185,10 @@ def test_D_broadcast(self): sys = StateSpace([], [], [], 0) np.testing.assert_array_equal(sys.D, [[0]]) - def test_pole(self): + def test_pole(self, sys322): """Evaluate the poles of a MIMO system.""" - p = np.sort(self.sys322.pole()) + p = np.sort(sys322.pole()) true_p = np.sort([3.34747678408874, -3.17373839204437 + 1.47492908003839j, -3.17373839204437 - 1.47492908003839j]) @@ -102,12 +200,12 @@ def test_zero_empty(self): sys = _convertToStateSpace(TransferFunction([1], [1, 2, 1])) np.testing.assert_array_equal(sys.zero(), np.array([])) - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_zero_siso(self): + @slycotonly + def test_zero_siso(self, sys222): """Evaluate the zeros of a SISO system.""" # extract only first input / first output system of sys222. This system is denoted sys111 # or tf111 - tf111 = ss2tf(self.sys222) + tf111 = ss2tf(sys222) sys111 = tf2ss(tf111[0, 0]) # compute zeros as root of the characteristic polynomial at the numerator of tf111 @@ -118,31 +216,31 @@ def test_zero_siso(self): np.testing.assert_almost_equal(true_z, z) - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_zero_mimo_sys322_square(self): + @slycotonly + def test_zero_mimo_sys322_square(self, sys322): """Evaluate the zeros of a square MIMO system.""" - z = np.sort(self.sys322.zero()) + z = np.sort(sys322.zero()) true_z = np.sort([44.41465, -0.490252, -5.924398]) np.testing.assert_array_almost_equal(z, true_z) - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_zero_mimo_sys222_square(self): + @slycotonly + def test_zero_mimo_sys222_square(self, sys222): """Evaluate the zeros of a square MIMO system.""" - z = np.sort(self.sys222.zero()) + z = np.sort(sys222.zero()) true_z = np.sort([-10.568501, 3.368501]) np.testing.assert_array_almost_equal(z, true_z) - @unittest.skipIf(not slycot_check(), "slycot not installed") - def test_zero_mimo_sys623_non_square(self): + @slycotonly + def test_zero_mimo_sys623_non_square(self, sys623): """Evaluate the zeros of a non square MIMO system.""" - z = np.sort(self.sys623.zero()) + z = np.sort(sys623.zero()) true_z = np.sort([2., -1.]) np.testing.assert_array_almost_equal(z, true_z) - def test_add_ss(self): + def test_add_ss(self, sys222, sys322): """Add two MIMO systems.""" A = [[-3., 4., 2., 0., 0.], [-1., -3., 0., 0., 0.], @@ -151,14 +249,14 @@ def test_add_ss(self): C = [[4., 2., -3., 2., -4.], [1., 4., 3., 0., 1.]] D = [[1., 6.], [1., 0.]] - sys = self.sys322 + self.sys222 + sys = sys322 + sys222 np.testing.assert_array_almost_equal(sys.A, A) np.testing.assert_array_almost_equal(sys.B, B) np.testing.assert_array_almost_equal(sys.C, C) np.testing.assert_array_almost_equal(sys.D, D) - def test_subtract_ss(self): + def test_subtract_ss(self, sys222, sys322): """Subtract two MIMO systems.""" A = [[-3., 4., 2., 0., 0.], [-1., -3., 0., 0., 0.], @@ -167,14 +265,14 @@ def test_subtract_ss(self): C = [[4., 2., -3., -2., 4.], [1., 4., 3., 0., -1.]] D = [[-5., 2.], [-1., 2.]] - sys = self.sys322 - self.sys222 + sys = sys322 - sys222 np.testing.assert_array_almost_equal(sys.A, A) np.testing.assert_array_almost_equal(sys.B, B) np.testing.assert_array_almost_equal(sys.C, C) np.testing.assert_array_almost_equal(sys.D, D) - def test_multiply_ss(self): + def test_multiply_ss(self, sys222, sys322): """Multiply two MIMO systems.""" A = [[4., 1., 0., 0., 0.], [2., -3., 0., 0., 0.], [2., 0., -3., 4., 2.], @@ -183,44 +281,53 @@ def test_multiply_ss(self): C = [[-4., 12., 4., 2., -3.], [0., 1., 1., 4., 3.]] D = [[-2., -8.], [1., -1.]] - sys = self.sys322 * self.sys222 + sys = sys322 * sys222 np.testing.assert_array_almost_equal(sys.A, A) np.testing.assert_array_almost_equal(sys.B, B) np.testing.assert_array_almost_equal(sys.C, C) np.testing.assert_array_almost_equal(sys.D, D) - def test_evalfr(self): - """Evaluate the frequency response at one frequency.""" - + @pytest.mark.parametrize("omega, resp", + [(1., + np.array([[ 4.37636761e-05-0.01522976j, + -7.92603939e-01+0.02617068j], + [-3.31544858e-01+0.0576105j, + 1.28919037e-01-0.14382495j]])), + (32, + np.array([[-1.16548243e-05-3.13444825e-04j, + -7.99936828e-01+4.54201816e-06j], + [-3.00137118e-01+3.42881660e-03j, + 6.32015038e-04-1.21462255e-02j]]))]) + @pytest.mark.parametrize("dt", [None, 0, 1e-3]) + def test_evalfr(self, dt, omega, resp): + """Evaluate the frequency response at single frequencies""" A = [[-2, 0.5], [0.5, -0.3]] B = [[0.3, -1.3], [0.1, 0.]] C = [[0., 0.1], [-0.3, -0.2]] D = [[0., -0.8], [-0.3, 0.]] sys = StateSpace(A, B, C, D) - resp = [[4.37636761487965e-05 - 0.0152297592997812j, - -0.792603938730853 + 0.0261706783369803j], - [-0.331544857768052 + 0.0576105032822757j, - 0.128919037199125 - 0.143824945295405j]] - - # Correct versions of the call - np.testing.assert_almost_equal(evalfr(sys, 1j), resp) - np.testing.assert_almost_equal(sys._evalfr(1.), resp) + if dt: + sys = sample_system(sys, dt) + s = np.exp(omega * 1j * dt) + else: + s = omega * 1j + # Correct version of the call + np.testing.assert_allclose(evalfr(sys, s), resp, atol=1e-3) # Deprecated version of the call (should generate warning) - import warnings - with warnings.catch_warnings(record=True) as w: - # Set up warnings filter to only show warnings in control module - warnings.filterwarnings("ignore") - warnings.filterwarnings("always", module="control") - - # Make sure that we get a pending deprecation warning - sys.evalfr(1.) - assert len(w) == 1 - assert issubclass(w[-1].category, PendingDeprecationWarning) - - @unittest.skipIf(not slycot_check(), "slycot not installed") + with pytest.deprecated_call(): + np.testing.assert_allclose(sys.evalfr(omega), resp, atol=1e-3) + + # call above nyquist frequency + if dt: + with pytest.warns(UserWarning): + np.testing.assert_allclose(sys._evalfr(omega + 2 * np.pi / dt), + resp, + atol=1e-3) + + @slycotonly def test_freq_resp(self): """Evaluate the frequency response at multiple frequencies.""" @@ -246,7 +353,29 @@ def test_freq_resp(self): np.testing.assert_almost_equal(phase, true_phase) np.testing.assert_equal(omega, true_omega) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @pytest.mark.skip("is_static_gain is introduced in gh-431") + def test_is_static_gain(self): + A0 = np.zeros((2,2)) + A1 = A0.copy() + A1[0,1] = 1.1 + B0 = np.zeros((2,1)) + B1 = B0.copy() + B1[0,0] = 1.3 + C0 = A0 + C1 = np.eye(2) + D0 = 0 + D1 = np.ones((2,1)) + assert StateSpace(A0, B0, C1, D1).is_static_gain() + # TODO: fix this once remove_useless_states is false by default + # should be False when remove_useless is false + # print(StateSpace(A1, B0, C1, D1).is_static_gain()) + assert not StateSpace(A0, B1, C1, D1).is_static_gain() + assert not StateSpace(A1, B1, C1, D1).is_static_gain() + assert StateSpace(A0, B0, C0, D0).is_static_gain() + assert StateSpace(A0, B0, C0, D1).is_static_gain() + assert StateSpace(A0, B0, C1, D0).is_static_gain() + + @slycotonly def test_minreal(self): """Test a minreal model reduction.""" # A = [-2, 0.5, 0; 0.5, -0.3, 0; 0, 0, -0.1] @@ -261,9 +390,9 @@ def test_minreal(self): sys = StateSpace(A, B, C, D) sysr = sys.minreal() - self.assertEqual(sysr.states, 2) - self.assertEqual(sysr.inputs, sys.inputs) - self.assertEqual(sysr.outputs, sys.outputs) + assert sysr.states == 2 + assert sysr.inputs == sys.inputs + assert sysr.outputs == sys.outputs np.testing.assert_array_almost_equal( eigvals(sysr.A), [-2.136154, -0.1638459]) @@ -335,11 +464,11 @@ def test_array_access_ss(self): def test_dc_gain_cont(self): """Test DC gain for continuous-time state-space systems.""" sys = StateSpace(-2., 6., 5., 0) - np.testing.assert_equal(sys.dcgain(), 15.) + np.testing.assert_allclose(sys.dcgain(), 15.) sys2 = StateSpace(-2, [6., 4.], [[5.], [7.], [11]], np.zeros((3, 2))) expected = np.array([[15., 10.], [21., 14.], [33., 22.]]) - np.testing.assert_array_equal(sys2.dcgain(), expected) + np.testing.assert_allclose(sys2.dcgain(), expected) sys3 = StateSpace(0., 1., 1., 0.) np.testing.assert_equal(sys3.dcgain(), np.nan) @@ -352,7 +481,7 @@ def test_dc_gain_discr(self): # averaging filter sys = StateSpace(0.5, 0.5, 1, 0, True) - np.testing.assert_almost_equal(sys.dcgain(), 1) + np.testing.assert_allclose(sys.dcgain(), 1) # differencer sys = StateSpace(0, 1, -1, 1, True) @@ -362,61 +491,67 @@ def test_dc_gain_discr(self): sys = StateSpace(1, 1, 1, 0, True) np.testing.assert_equal(sys.dcgain(), np.nan) - def test_dc_gain_integrator(self): - """DC gain when eigenvalue at DC returns appropriately sized array of nan.""" - # the SISO case is also tested in test_dc_gain_{cont,discr} - import itertools - # iterate over input and output sizes, and continuous (dt=None) and discrete (dt=True) time - for inputs, outputs, dt in itertools.product(range(1, 6), range(1, 6), [None, True]): - states = max(inputs, outputs) - - # a matrix that is singular at DC, and has no "useless" states as in - # _remove_useless_states - a = np.triu(np.tile(2, (states, states))) - # eigenvalues all +2, except for ... - a[0, 0] = 0 if dt is None else 1 - b = np.eye(max(inputs, states))[:states, :inputs] - c = np.eye(max(outputs, states))[:outputs, :states] - d = np.zeros((outputs, inputs)) - sys = StateSpace(a, b, c, d, dt) - dc = np.squeeze(np.tile(np.nan, (outputs, inputs))) - np.testing.assert_array_equal(dc, sys.dcgain()) + @pytest.mark.parametrize("outputs", range(1, 6)) + @pytest.mark.parametrize("inputs", range(1, 6)) + @pytest.mark.parametrize("dt", [None, 0, 1, True], + ids=["dtNone", "c", "dt1", "dtTrue"]) + def test_dc_gain_integrator(self, outputs, inputs, dt): + """DC gain when eigenvalue at DC returns appropriately sized array of nan. + + the SISO case is also tested in test_dc_gain_{cont,discr} + time systems (dt=0) + """ + states = max(inputs, outputs) + + # a matrix that is singular at DC, and has no "useless" states as in + # _remove_useless_states + a = np.triu(np.tile(2, (states, states))) + # eigenvalues all +2, except for ... + a[0, 0] = 0 if dt in [0, None] else 1 + b = np.eye(max(inputs, states))[:states, :inputs] + c = np.eye(max(outputs, states))[:outputs, :states] + d = np.zeros((outputs, inputs)) + sys = StateSpace(a, b, c, d, dt) + dc = np.squeeze(np.full_like(d, np.nan)) + np.testing.assert_array_equal(dc, sys.dcgain()) def test_scalar_static_gain(self): - """Regression: can we create a scalar static gain?""" + """Regression: can we create a scalar static gain? + + make sure StateSpace internals, specifically ABC matrix + sizes, are OK for LTI operations + """ g1 = StateSpace([], [], [], [2]) g2 = StateSpace([], [], [], [3]) - # make sure StateSpace internals, specifically ABC matrix - # sizes, are OK for LTI operations g3 = g1 * g2 - self.assertEqual(6, g3.D[0, 0]) + assert 6 == g3.D[0, 0] g4 = g1 + g2 - self.assertEqual(5, g4.D[0, 0]) + assert 5 == g4.D[0, 0] g5 = g1.feedback(g2) - self.assertAlmostEqual(2. / 7, g5.D[0, 0]) + np.testing.assert_allclose(2. / 7, g5.D[0, 0]) g6 = g1.append(g2) - np.testing.assert_array_equal(np.diag([2, 3]), g6.D) + np.testing.assert_allclose(np.diag([2, 3]), g6.D) def test_matrix_static_gain(self): """Regression: can we create matrix static gains?""" - d1 = np.matrix([[1, 2, 3], [4, 5, 6]]) - d2 = np.matrix([[7, 8], [9, 10], [11, 12]]) + d1 = np.array([[1, 2, 3], [4, 5, 6]]) + d2 = np.array([[7, 8], [9, 10], [11, 12]]) g1 = StateSpace([], [], [], d1) # _remove_useless_states was making A = [[0]] - self.assertEqual((0, 0), g1.A.shape) + assert (0, 0) == g1.A.shape g2 = StateSpace([], [], [], d2) g3 = StateSpace([], [], [], d2.T) h1 = g1 * g2 - np.testing.assert_array_equal(d1 * d2, h1.D) + np.testing.assert_array_equal(np.dot(d1, d2), h1.D) h2 = g1 + g3 np.testing.assert_array_equal(d1 + d2.T, h2.D) h3 = g1.feedback(g2) np.testing.assert_array_almost_equal( - solve(np.eye(2) + d1 * d2, d1), h3.D) + solve(np.eye(2) + np.dot(d1, d2), d1), h3.D) h4 = g1.append(g2) np.testing.assert_array_equal(block_diag(d1, d2), h4.D) @@ -426,21 +561,25 @@ def test_remove_useless_states(self): np.zeros((3, 4)), np.zeros((5, 3)), np.zeros((5, 4))) - self.assertEqual((0, 0), g1.A.shape) - self.assertEqual((0, 4), g1.B.shape) - self.assertEqual((5, 0), g1.C.shape) - self.assertEqual((5, 4), g1.D.shape) - self.assertEqual(0, g1.states) - - def test_bad_empty_matrices(self): + assert (0, 0) == g1.A.shape + assert (0, 4) == g1.B.shape + assert (5, 0) == g1.C.shape + assert (5, 4) == g1.D.shape + assert 0 == g1.states + + @pytest.mark.parametrize("A, B, C, D", + [([1], [], [], [1]), + ([1], [1], [], [1]), + ([1], [], [1], [1]), + ([], [1], [], [1]), + ([], [1], [1], [1]), + ([], [], [1], [1]), + ([1], [1], [1], [])]) + def test_bad_empty_matrices(self, A, B, C, D): """Mismatched ABCD matrices when some are empty.""" - self.assertRaises(ValueError, StateSpace, [1], [], [], [1]) - self.assertRaises(ValueError, StateSpace, [1], [1], [], [1]) - self.assertRaises(ValueError, StateSpace, [1], [], [1], [1]) - self.assertRaises(ValueError, StateSpace, [], [1], [], [1]) - self.assertRaises(ValueError, StateSpace, [], [1], [1], [1]) - self.assertRaises(ValueError, StateSpace, [], [], [1], [1]) - self.assertRaises(ValueError, StateSpace, [1], [1], [1], []) + with pytest.raises(ValueError): + StateSpace(A, B, C, D) + def test_minreal_static_gain(self): """Regression: minreal on static gain was failing.""" @@ -454,22 +593,19 @@ def test_minreal_static_gain(self): def test_empty(self): """Regression: can we create an empty StateSpace object?""" g1 = StateSpace([], [], [], []) - self.assertEqual(0, g1.states) - self.assertEqual(0, g1.inputs) - self.assertEqual(0, g1.outputs) + assert 0 == g1.states + assert 0 == g1.inputs + assert 0 == g1.outputs def test_matrix_to_state_space(self): """_convertToStateSpace(matrix) gives ss([],[],[],D)""" - D = np.matrix([[1, 2, 3], [4, 5, 6]]) + with pytest.deprecated_call(): + D = np.matrix([[1, 2, 3], [4, 5, 6]]) g = _convertToStateSpace(D) - def empty(shape): - m = np.matrix([]) - m.shape = shape - return m - np.testing.assert_array_equal(empty((0, 0)), g.A) - np.testing.assert_array_equal(empty((0, D.shape[1])), g.B) - np.testing.assert_array_equal(empty((D.shape[0], 0)), g.C) + np.testing.assert_array_equal(np.empty((0, 0)), g.A) + np.testing.assert_array_equal(np.empty((0, D.shape[1])), g.B) + np.testing.assert_array_equal(np.empty((D.shape[0], 0)), g.C) np.testing.assert_array_equal(D, g.D) def test_lft(self): @@ -500,7 +636,9 @@ def test_lft(self): # case 1 pk = P.lft(K, 2, 1) - Amatlab = [1, 2, 3, 4, 6, 12, 1, 4, 5, 17, 38, 61, 2, 3, 4, 9, 26, 37, 2, 3, 0, 3, 14, 18, 4, 6, 0, 8, 27, 35, 18, 27, 0, 29, 109, 144] + Amatlab = [1, 2, 3, 4, 6, 12, 1, 4, 5, 17, 38, 61, 2, 3, 4, 9, 26, 37, + 2, 3, 0, 3, 14, 18, 4, 6, 0, 8, 27, 35, 18, 27, 0, 29, 109, + 144] Bmatlab = [0, 10, 10, 7, 15, 58] Cmatlab = [1, 4, 5, 0, 0, 0] Dmatlab = [0] @@ -511,7 +649,9 @@ def test_lft(self): # case 2 pk = P.lft(K) - Amatlab = [1, 2, 3, 4, 6, 12, -3, -2, 5, 11, 14, 31, -2, -3, 4, 3, 2, 7, 0.6, 3.4, 5, -0.6, -0.4, 0, 0.8, 6.2, 10, 0.2, -4.2, -4, 7.4, 33.6, 45, -0.4, -8.6, -3] + Amatlab = [1, 2, 3, 4, 6, 12, -3, -2, 5, 11, 14, 31, -2, -3, 4, 3, 2, + 7, 0.6, 3.4, 5, -0.6, -0.4, 0, 0.8, 6.2, 10, 0.2, -4.2, + -4, 7.4, 33.6, 45, -0.4, -8.6, -3] Bmatlab = [] Cmatlab = [] Dmatlab = [] @@ -520,28 +660,29 @@ def test_lft(self): np.testing.assert_allclose(np.array(pk.C).reshape(-1), Cmatlab) np.testing.assert_allclose(np.array(pk.D).reshape(-1), Dmatlab) - def test_repr(self): - ref322 = """StateSpace(array([[-3., 4., 2.], - [-1., -3., 0.], - [ 2., 5., 3.]]), array([[ 1., 4.], - [-3., -3.], - [-2., 1.]]), array([[ 4., 2., -3.], - [ 1., 4., 3.]]), array([[-2., 4.], - [ 0., 1.]]){dt})""" - self.assertEqual(repr(self.sys322), ref322.format(dt='')) - sysd = StateSpace(self.sys322.A, self.sys322.B, - self.sys322.C, self.sys322.D, 0.4) - self.assertEqual(repr(sysd), ref322.format(dt=", 0.4")) - array = np.array + def test_repr(self, sys322): + """Test string representation""" + ref322 = "\n".join(["StateSpace(array([[-3., 4., 2.],", + " [-1., -3., 0.],", + " [ 2., 5., 3.]]), array([[ 1., 4.],", + " [-3., -3.],", + " [-2., 1.]]), array([[ 4., 2., -3.],", + " [ 1., 4., 3.]]), array([[-2., 4.],", + " [ 0., 1.]]){dt})"]) + assert repr(sys322) == ref322.format(dt='') + sysd = StateSpace(sys322.A, sys322.B, + sys322.C, sys322.D, 0.4) + assert repr(sysd), ref322.format(dt=" == 0.4") + array = np.array # noqa sysd2 = eval(repr(sysd)) np.testing.assert_allclose(sysd.A, sysd2.A) np.testing.assert_allclose(sysd.B, sysd2.B) np.testing.assert_allclose(sysd.C, sysd2.C) np.testing.assert_allclose(sysd.D, sysd2.D) - def test_str(self): + def test_str(self, sys322): """Test that printing the system works""" - tsys = self.sys322 + tsys = sys322 tref = ("A = [[-3. 4. 2.]\n" " [-1. -3. 0.]\n" " [ 2. 5. 3.]]\n" @@ -561,117 +702,78 @@ def test_str(self): sysdt1 = StateSpace(tsys.A, tsys.B, tsys.C, tsys.D, 1.) assert str(sysdt1) == tref + "\ndt = 1.0\n" + def test_pole_static(self): + """Regression: pole() of static gain is empty array.""" + np.testing.assert_array_equal(np.array([]), + StateSpace([], [], [], [[1]]).pole()) + + def test_horner(self, sys322): + """Test horner() function""" + # Make sure we can compute the transfer function at a complex value + sys322.horner(1. + 1.j) -class TestRss(unittest.TestCase): + # Make sure result agrees with frequency response + mag, phase, omega = sys322.freqresp([1]) + np.testing.assert_array_almost_equal( + sys322.horner(1.j), + mag[:, :, 0] * np.exp(1.j * phase[:, :, 0])) + +class TestRss: """These are tests for the proper functionality of statesp.rss.""" - def setUp(self): - # Number of times to run each of the randomized tests. - self.numTests = 100 - # Maxmimum number of states to test + 1 - self.maxStates = 10 - # Maximum number of inputs and outputs to test + 1 - self.maxIO = 5 + # Maxmimum number of states to test + 1 + maxStates = 10 + # Maximum number of inputs and outputs to test + 1 + maxIO = 5 - def test_shape(self): + @pytest.mark.parametrize('states', range(1, maxStates)) + @pytest.mark.parametrize('outputs', range(1, maxIO)) + @pytest.mark.parametrize('inputs', range(1, maxIO)) + def test_shape(self, states, outputs, inputs): """Test that rss outputs have the right state, input, and output size.""" - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - sys = matlab.rss(states, outputs, inputs) - self.assertEqual(sys.states, states) - self.assertEqual(sys.inputs, inputs) - self.assertEqual(sys.outputs, outputs) - - def test_pole(self): + sys = rss(states, outputs, inputs) + assert sys.states == states + assert sys.inputs == inputs + assert sys.outputs == outputs + + @pytest.mark.parametrize('states', range(1, maxStates)) + @pytest.mark.parametrize('outputs', range(1, maxIO)) + @pytest.mark.parametrize('inputs', range(1, maxIO)) + def test_pole(self, states, outputs, inputs): """Test that the poles of rss outputs have a negative real part.""" - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - sys = matlab.rss(states, outputs, inputs) - p = sys.pole() - for z in p: - self.assertTrue(z.real < 0) + sys = rss(states, outputs, inputs) + p = sys.pole() + for z in p: + assert z.real < 0 -class TestDrss(unittest.TestCase): +class TestDrss: """These are tests for the proper functionality of statesp.drss.""" - def setUp(self): - # Number of times to run each of the randomized tests. - self.numTests = 100 - # Maximum number of states to test + 1 - self.maxStates = 10 - # Maximum number of inputs and outputs to test + 1 - self.maxIO = 5 + # Maximum number of states to test + 1 + maxStates = 10 + # Maximum number of inputs and outputs to test + 1 + maxIO = 5 - def test_shape(self): + @pytest.mark.parametrize('states', range(1, maxStates)) + @pytest.mark.parametrize('outputs', range(1, maxIO)) + @pytest.mark.parametrize('inputs', range(1, maxIO)) + def test_shape(self, states, outputs, inputs): """Test that drss outputs have the right state, input, and output size.""" - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - sys = matlab.drss(states, outputs, inputs) - self.assertEqual(sys.states, states) - self.assertEqual(sys.inputs, inputs) - self.assertEqual(sys.outputs, outputs) - - def test_pole(self): + sys = drss(states, outputs, inputs) + assert sys.states == states + assert sys.inputs == inputs + assert sys.outputs == outputs + + @pytest.mark.parametrize('states', range(1, maxStates)) + @pytest.mark.parametrize('outputs', range(1, maxIO)) + @pytest.mark.parametrize('inputs', range(1, maxIO)) + def test_pole(self, states, outputs, inputs): """Test that the poles of drss outputs have less than unit magnitude.""" - - for states in range(1, self.maxStates): - for inputs in range(1, self.maxIO): - for outputs in range(1, self.maxIO): - sys = matlab.drss(states, outputs, inputs) - p = sys.pole() - for z in p: - self.assertTrue(abs(z) < 1) - - def test_pole_static(self): - """Regression: pole() of static gain is empty array.""" - np.testing.assert_array_equal(np.array([]), - StateSpace([], [], [], [[1]]).pole()) - - def test_copy_constructor(self): - # Create a set of matrices for a simple linear system - A = np.array([[-1]]) - B = np.array([[1]]) - C = np.array([[1]]) - D = np.array([[0]]) - - # Create the first linear system and a copy - linsys = StateSpace(A, B, C, D) - cpysys = StateSpace(linsys) - - # Change the original A matrix - A[0, 0] = -2 - np.testing.assert_array_equal(linsys.A, [[-1]]) # original value - np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value - - # Change the A matrix for the original system - linsys.A[0, 0] = -3 - np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value - - def test_sample_system_prewarping(self): - """test that prewarping works when converting from cont to discrete time system""" - A = np.array([ - [ 0.00000000e+00, 1.00000000e+00, 0.00000000e+00, 0.00000000e+00], - [-3.81097561e+01, -1.12500000e+00, 0.00000000e+00, 0.00000000e+00], - [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 1.00000000e+00], - [ 0.00000000e+00, 0.00000000e+00, -1.66356135e+04, -1.34748470e+01]]) - B = np.array([ - [ 0. ], [ 38.1097561 ],[ 0. ],[16635.61352143]]) - C = np.array([[0.90909091, 0. , 0.09090909, 0. ],]) - wwarp = 50 - Ts = 0.025 - plant = StateSpace(A,B,C,0) - plant_d_warped = plant.sample(Ts, 'bilinear', prewarp_frequency=wwarp) - np.testing.assert_array_almost_equal( - evalfr(plant, wwarp*1j), - evalfr(plant_d_warped, np.exp(wwarp*1j*Ts)), - decimal=4) + sys = drss(states, outputs, inputs) + p = sys.pole() + for z in p: + assert abs(z) < 1 class TestLTIConverter: @@ -724,6 +826,3 @@ def test_returnScipySignalLTI_error(self, mimoss): with pytest.raises(ValueError): mimoss.returnScipySignalLTI(strict=True) - -if __name__ == "__main__": - unittest.main() diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 8020d8078..6977973ff 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -1,121 +1,273 @@ -#!/usr/bin/env python -# -# timeresp_test.py - test time response functions -# RMM, 17 Jun 2011 (based on TestMatlab from v0.4c) -# -# This test suite just goes through and calls all of the MATLAB -# functions using different systems and arguments to make sure that -# nothing crashes. It doesn't test actual functionality; the module -# specific unit tests will do that. - -import unittest +"""timeresp_test.py - test time response functions + +RMM, 17 Jun 2011 (based on TestMatlab from v0.4c) + +This test suite just goes through and calls all of the MATLAB +functions using different systems and arguments to make sure that +nothing crashes. It doesn't test actual functionality; the module +specific unit tests will do that. +""" + +from copy import copy from distutils.version import StrictVersion import numpy as np import pytest import scipy as sp -from control.timeresp import * -from control.timeresp import _ideal_tfinal_and_dt, _default_time_vector -from control.statesp import * -from control.xferfcn import TransferFunction, _convert_to_transfer_function -from control.dtime import c2d -from control.exception import slycot_check - -class TestTimeresp(unittest.TestCase): - def setUp(self): - """Set up some systems for testing out MATLAB functions""" - A = np.matrix("1. -2.; 3. -4.") - B = np.matrix("5.; 7.") - C = np.matrix("6. 8.") - D = np.matrix("9.") - self.siso_ss1 = StateSpace(A, B, C, D) - # Create some transfer functions - self.siso_tf1 = TransferFunction([1], [1, 2, 1]) - self.siso_tf2 = _convert_to_transfer_function(self.siso_ss1) +from control import (StateSpace, TransferFunction, c2d, isctime, isdtime, + ss2tf, tf2ss) +from control.timeresp import (_default_time_vector, _ideal_tfinal_and_dt, + forced_response, impulse_response, + initial_response, step_info, step_response) +from control.tests.conftest import slycotonly - # tests for pole cancellation - self.pole_cancellation = TransferFunction([1.067e+05, 5.791e+04], - [10.67, 1.067e+05, 5.791e+04]) - self.no_pole_cancellation = TransferFunction([1.881e+06], - [188.1, 1.881e+06]) - # Create MIMO system, contains ``siso_ss1`` twice - A = np.matrix("1. -2. 0. 0.;" - "3. -4. 0. 0.;" - "0. 0. 1. -2.;" - "0. 0. 3. -4. ") - B = np.matrix("5. 0.;" - "7. 0.;" - "0. 5.;" - "0. 7. ") - C = np.matrix("6. 8. 0. 0.;" - "0. 0. 6. 8. ") - D = np.matrix("9. 0.;" - "0. 9. ") - self.mimo_ss1 = StateSpace(A, B, C, D) - - # Create discrete time systems - self.siso_dtf1 = TransferFunction([1], [1, 1, 0.25], True) - self.siso_dtf2 = TransferFunction([1], [1, 1, 0.25], 0.2) - self.siso_dss1 = tf2ss(self.siso_dtf1) - self.siso_dss2 = tf2ss(self.siso_dtf2) - self.mimo_dss1 = StateSpace(A, B, C, D, True) - self.mimo_dss2 = c2d(self.mimo_ss1, 0.2) - - def test_step_response(self): - # Test SISO system - sys = self.siso_ss1 - t = np.linspace(0, 1, 10) - youttrue = np.array([9., 17.6457, 24.7072, 30.4855, 35.2234, 39.1165, - 42.3227, 44.9694, 47.1599, 48.9776]) +class TSys: + """Struct of test system""" + def __init__(self, sys=None): + self.sys = sys - # SISO call - tout, yout = step_response(sys, T=t) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - np.testing.assert_array_almost_equal(tout, t) + def __repr__(self): + """Show system when debugging""" + return self.sys.__repr__() - # Play with arguments - tout, yout = step_response(sys, T=t, X0=0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - np.testing.assert_array_almost_equal(tout, t) - X0 = np.array([0, 0]) - tout, yout = step_response(sys, T=t, X0=X0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - np.testing.assert_array_almost_equal(tout, t) +class TestTimeresp: + + @pytest.fixture + def siso_ss1(self): + + A = np.array([[1., -2.], [3., -4.]]) + B = np.array([[5.], [7.]]) + C = np.array([[6., 8.]]) + D = np.array([[9.]]) + T = TSys(StateSpace(A, B, C, D, 0)) + + T.t = np.linspace(0, 1, 10) + T.ystep = np.array([9., 17.6457, 24.7072, 30.4855, 35.2234, + 39.1165, 42.3227, 44.9694, 47.1599, 48.9776]) + + T.yinitial = np.array([11., 8.1494, 5.9361, 4.2258, 2.9118, + 1.9092, 1.1508, 0.5833, 0.1645, -0.1391]) + + return T + + @pytest.fixture + def siso_ss2(self, siso_ss1): + """System siso_ss2 with D=0""" + ss1 = siso_ss1.sys + T = TSys(StateSpace(ss1.A, ss1.B, ss1.C, 0, 0)) + T.t = siso_ss1.t + T.ystep = siso_ss1.ystep - 9 + T.initial = siso_ss1.yinitial - 9 + T.yimpulse = np.array([86., 70.1808, 57.3753, 46.9975, 38.5766, + 31.7344, 26.1668, 21.6292, 17.9245, 14.8945]) + return T + - tout, yout, xout = step_response(sys, T=t, X0=0, return_x=True) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) + @pytest.fixture + def siso_tf1(self): + # Create some transfer functions + return TSys(TransferFunction([1], [1, 2, 1], 0)) + + @pytest.fixture + def siso_tf2(self, siso_ss1): + T = copy(siso_ss1) + T.sys = ss2tf(siso_ss1.sys) + return T + + @pytest.fixture + def mimo_ss1(self, siso_ss1): + # Create MIMO system, contains ``siso_ss1`` twice + A = np.zeros((4, 4)) + A[:2, :2] = siso_ss1.sys.A + A[2:, 2:] = siso_ss1.sys.A + B = np.zeros((4, 2)) + B[:2, :1] = siso_ss1.sys.B + B[2:, 1:] = siso_ss1.sys.B + C = np.zeros((2, 4)) + C[:1, :2] = siso_ss1.sys.C + C[1:, 2:] = siso_ss1.sys.C + D = np.zeros((2, 2)) + D[:1, :1] = siso_ss1.sys.D + D[1:, 1:] = siso_ss1.sys.D + T = copy(siso_ss1) + T.sys = StateSpace(A, B, C, D) + return T + + @pytest.fixture + def mimo_ss2(self, siso_ss2): + # Create MIMO system, contains ``siso_ss2`` twice + A = np.zeros((4, 4)) + A[:2, :2] = siso_ss2.sys.A + A[2:, 2:] = siso_ss2.sys.A + B = np.zeros((4, 2)) + B[:2, :1] = siso_ss2.sys.B + B[2:, 1:] = siso_ss2.sys.B + C = np.zeros((2, 4)) + C[:1, :2] = siso_ss2.sys.C + C[1:, 2:] = siso_ss2.sys.C + D = np.zeros((2, 2)) + T = copy(siso_ss2) + T.sys = StateSpace(A, B, C, D, 0) + return T + + # Create discrete time systems + + @pytest.fixture + def siso_dtf0(self): + T = TSys(TransferFunction([1.], [1., 0.], 1.)) + T.t = np.arange(4) + T.yimpulse = [0., 1., 0., 0.] + return T + + @pytest.fixture + def siso_dtf1(self): + T = TSys(TransferFunction([1], [1, 1, 0.25], True)) + T.t = np.arange(0, 5, 1) + return T + + @pytest.fixture + def siso_dtf2(self): + T = TSys(TransferFunction([1], [1, 1, 0.25], 0.2)) + T.t = np.arange(0, 5, 0.2) + return T + + @pytest.fixture + def siso_dss1(self, siso_dtf1): + T = copy(siso_dtf1) + T.sys = tf2ss(siso_dtf1.sys) + return T + + @pytest.fixture + def siso_dss2(self, siso_dtf2): + T = copy(siso_dtf2) + T.sys = tf2ss(siso_dtf2.sys) + return T + + @pytest.fixture + def mimo_dss1(self, mimo_ss1): + ss1 = mimo_ss1.sys + T = TSys( + StateSpace(ss1.A, ss1.B, ss1.C, ss1.D, True)) + T.t = np.arange(0, 5, 0.2) + return T + + @pytest.fixture + def mimo_dss2(self, mimo_ss1): + T = copy(mimo_ss1) + T.sys = c2d(mimo_ss1.sys, T.t[1]-T.t[0]) + return T + + @pytest.fixture + def mimo_tf2(self, siso_ss2, mimo_ss2): + T = copy(mimo_ss2) + # construct from siso to avoid slycot during fixture setup + tf_ = ss2tf(siso_ss2.sys) + T.sys = TransferFunction([[tf_.num[0][0], [0]], [[0], tf_.num[0][0]]], + [[tf_.den[0][0], [1]], [[1], tf_.den[0][0]]], + 0) + return T + + @pytest.fixture + def mimo_dtf1(self, siso_dtf1): + T = copy(siso_dtf1) + # construct from siso to avoid slycot during fixture setup + tf_ = siso_dtf1.sys + T.sys = TransferFunction([[tf_.num[0][0], [0]], [[0], tf_.num[0][0]]], + [[tf_.den[0][0], [1]], [[1], tf_.den[0][0]]], + True) + return T + + @pytest.fixture + def pole_cancellation(self): + # for pole cancellation tests + return TransferFunction([1.067e+05, 5.791e+04], + [10.67, 1.067e+05, 5.791e+04]) + + @pytest.fixture + def no_pole_cancellation(self): + return TransferFunction([1.881e+06], + [188.1, 1.881e+06]) + + @pytest.fixture + def tsystem(self, + request, + siso_ss1, siso_ss2, siso_tf1, siso_tf2, + mimo_ss1, mimo_ss2, mimo_tf2, + siso_dtf0, siso_dtf1, siso_dtf2, + siso_dss1, siso_dss2, + mimo_dss1, mimo_dss2, mimo_dtf1, + pole_cancellation, no_pole_cancellation): + systems = {"siso_ss1": siso_ss1, + "siso_ss2": siso_ss2, + "siso_tf1": siso_tf1, + "siso_tf2": siso_tf2, + "mimo_ss1": mimo_ss1, + "mimo_ss2": mimo_ss2, + "mimo_tf2": mimo_tf2, + "siso_dtf0": siso_dtf0, + "siso_dtf1": siso_dtf1, + "siso_dtf2": siso_dtf2, + "siso_dss1": siso_dss1, + "siso_dss2": siso_dss2, + "mimo_dss1": mimo_dss1, + "mimo_dss2": mimo_dss2, + "mimo_dtf1": mimo_dtf1, + "pole_cancellation": pole_cancellation, + "no_pole_cancellation": no_pole_cancellation, + } + return systems[request.param] + + @pytest.mark.parametrize( + "kwargs", + [{}, + {'X0': 0}, + {'X0': np.array([0, 0])}, + {'X0': 0, 'return_x': True}, + ]) + def test_step_response_siso(self, siso_ss1, kwargs): + """Test SISO system step response""" + sys = siso_ss1.sys + t = siso_ss1.t + yref = siso_ss1.ystep + # SISO call + out = step_response(sys, T=t, **kwargs) + tout, yout = out[:2] + assert len(out) == 3 if ('return_x', True) in kwargs.items() else 2 np.testing.assert_array_almost_equal(tout, t) + np.testing.assert_array_almost_equal(yout, yref, decimal=4) - # Test MIMO system, which contains ``siso_ss1`` twice - sys = self.mimo_ss1 + def test_step_response_mimo(self, mimo_ss1): + """Test MIMO system, which contains ``siso_ss1`` twice""" + sys = mimo_ss1.sys + t = mimo_ss1.t + yref = mimo_ss1.ystep _t, y_00 = step_response(sys, T=t, input=0, output=0) _t, y_11 = step_response(sys, T=t, input=1, output=1) - np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) - np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) - - # Make sure continuous and discrete time use same return conventions - sysc = self.mimo_ss1 - sysd = c2d(sysc, 1) # discrete time system - Tvec = np.linspace(0, 10, 11) # make sure to use integer times 0..10 + np.testing.assert_array_almost_equal(y_00, yref, decimal=4) + np.testing.assert_array_almost_equal(y_11, yref, decimal=4) + + def test_step_response_return(self, mimo_ss1): + """Verify continuous and discrete time use same return conventions""" + sysc = mimo_ss1.sys + sysd = c2d(sysc, 1) # discrete time system + Tvec = np.linspace(0, 10, 11) # make sure to use integer times 0..10 Tc, youtc = step_response(sysc, Tvec, input=0) Td, youtd = step_response(sysd, Tvec, input=0) np.testing.assert_array_equal(Tc.shape, Td.shape) np.testing.assert_array_equal(youtc.shape, youtd.shape) - # Recreate issue #374 ("Bug in step_response()") - def test_step_nostates(self): - # Continuous time, constant system - sys = TransferFunction([1], [1]) - t, y = step_response(sys) - np.testing.assert_array_equal(y, np.ones(len(t))) + @pytest.mark.parametrize("dt", [0, 1], ids=["continuous", "discrete"]) + def test_step_nostates(self, dt): + """Constant system, continuous and discrete time - # Discrete time, constant system - sys = TransferFunction([1], [1], 1) + gh-374 "Bug in step_response()" + """ + sys = TransferFunction([1], [1], dt) t, y = step_response(sys) np.testing.assert_array_equal(y, np.ones(len(t))) @@ -130,549 +282,421 @@ def test_step_info(self): 'Overshoot': 7.4915, 'Undershoot': 0, 'Peak': 2.6873, - 'PeakTime': 8.0530 + 'PeakTime': 8.0530, + 'SteadyStateValue': 2.50 } S = step_info(sys) + Sk = sorted(S.keys()) + Sktrue = sorted(Strue.keys()) + assert Sk == Sktrue # Very arbitrary tolerance because I don't know if the # response from the MATLAB is really that accurate. # maybe it is a good idea to change the Strue to match # but I didn't do it because I don't know if it is # accurate either... rtol = 2e-2 - np.testing.assert_allclose( - S.get('RiseTime'), - Strue.get('RiseTime'), - rtol=rtol) - np.testing.assert_allclose( - S.get('SettlingTime'), - Strue.get('SettlingTime'), - rtol=rtol) - np.testing.assert_allclose( - S.get('SettlingMin'), - Strue.get('SettlingMin'), - rtol=rtol) - np.testing.assert_allclose( - S.get('SettlingMax'), - Strue.get('SettlingMax'), - rtol=rtol) - np.testing.assert_allclose( - S.get('Overshoot'), - Strue.get('Overshoot'), - rtol=rtol) - np.testing.assert_allclose( - S.get('Undershoot'), - Strue.get('Undershoot'), - rtol=rtol) - np.testing.assert_allclose( - S.get('Peak'), - Strue.get('Peak'), - rtol=rtol) - np.testing.assert_allclose( - S.get('PeakTime'), - Strue.get('PeakTime'), - rtol=rtol) - np.testing.assert_allclose( - S.get('SteadyStateValue'), - 2.50, - rtol=rtol) + np.testing.assert_allclose([S[k] for k in Sk], + [Strue[k] for k in Sktrue], + rtol=rtol) + def test_step_pole_cancellation(self, pole_cancellation, + no_pole_cancellation): # confirm that pole-zero cancellation doesn't perturb results # https://github.com/python-control/python-control/issues/440 - step_info_no_cancellation = step_info(self.no_pole_cancellation) - step_info_cancellation = step_info(self.pole_cancellation) + step_info_no_cancellation = step_info(no_pole_cancellation) + step_info_cancellation = step_info(pole_cancellation) for key in step_info_no_cancellation: np.testing.assert_allclose(step_info_no_cancellation[key], step_info_cancellation[key], rtol=1e-4) - def test_impulse_response(self): - # Test SISO system - sys = self.siso_ss1 - t = np.linspace(0, 1, 10) - youttrue = np.array([86., 70.1808, 57.3753, 46.9975, 38.5766, 31.7344, - 26.1668, 21.6292, 17.9245, 14.8945]) - tout, yout = impulse_response(sys, T=t) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - np.testing.assert_array_almost_equal(tout, t) - - # Play with arguments - tout, yout = impulse_response(sys, T=t, X0=0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - np.testing.assert_array_almost_equal(tout, t) - - X0 = np.array([0, 0]) - tout, yout = impulse_response(sys, T=t, X0=X0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) + @pytest.mark.parametrize( + "tsystem, kwargs", + [("siso_ss2", {}), + ("siso_ss2", {'X0': 0}), + ("siso_ss2", {'X0': np.array([0, 0])}), + ("siso_ss2", {'X0': 0, 'return_x': True}), + ("siso_dtf0", {})], + indirect=["tsystem"]) + def test_impulse_response_siso(self, tsystem, kwargs): + """Test impulse response of SISO systems""" + sys = tsystem.sys + t = tsystem.t + yref = tsystem.yimpulse + + out = impulse_response(sys, T=t, **kwargs) + tout, yout = out[:2] + assert len(out) == 3 if ('return_x', True) in kwargs.items() else 2 np.testing.assert_array_almost_equal(tout, t) + np.testing.assert_array_almost_equal(yout, yref, decimal=4) - tout, yout, xout = impulse_response(sys, T=t, X0=0, return_x=True) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - np.testing.assert_array_almost_equal(tout, t) + def test_impulse_response_mimo(self, mimo_ss2): + """"Test impulse response of MIMO systems""" + sys = mimo_ss2.sys + t = mimo_ss2.t - # Test MIMO system, which contains ``siso_ss1`` twice - sys = self.mimo_ss1 + yref = mimo_ss2.yimpulse _t, y_00 = impulse_response(sys, T=t, input=0, output=0) + np.testing.assert_array_almost_equal(y_00, yref, decimal=4) _t, y_11 = impulse_response(sys, T=t, input=1, output=1) - np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) - np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) + np.testing.assert_array_almost_equal(y_11, yref, decimal=4) - # Test MIMO system, as mimo, and don't trim outputs - sys = self.mimo_ss1 + yref_notrim = np.zeros((2, len(t))) + yref_notrim[:1, :] = yref _t, yy = impulse_response(sys, T=t, input=0) - np.testing.assert_array_almost_equal( - yy, np.vstack((youttrue, np.zeros_like(youttrue))), decimal=4) + np.testing.assert_array_almost_equal(yy, yref_notrim, decimal=4) - @pytest.mark.skipif(StrictVersion(sp.__version__) < "1.3.0", - reason="requires SciPy 1.3.0 or greater") - def test_discrete_time_impulse(self): + @pytest.mark.skipif(StrictVersion(sp.__version__) < "1.3", + reason="requires SciPy 1.3 or greater") + def test_discrete_time_impulse(self, siso_tf1): # discrete time impulse sampled version should match cont time dt = 0.1 t = np.arange(0, 3, dt) - sys = self.siso_tf1 + sys = siso_tf1.sys sysdt = sys.sample(dt, 'impulse') np.testing.assert_array_almost_equal(impulse_response(sys, t)[1], impulse_response(sysdt, t)[1]) - def test_initial_response(self): - # Test SISO system - sys = self.siso_ss1 - t = np.linspace(0, 1, 10) - x0 = np.array([[0.5], [1]]) - youttrue = np.array([11., 8.1494, 5.9361, 4.2258, 2.9118, 1.9092, - 1.1508, 0.5833, 0.1645, -0.1391]) - tout, yout = initial_response(sys, T=t, X0=x0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) + def test_impulse_response_warnD(self, siso_ss1): + """Test warning about direct feedthrough""" + with pytest.warns(UserWarning, match="System has direct feedthrough"): + _ = impulse_response(siso_ss1.sys, siso_ss1.t) + + @pytest.mark.parametrize( + "kwargs", + [{}, + {'X0': 0}, + {'X0': np.array([0.5, 1])}, + {'X0': np.array([[0.5], [1]])}, + {'X0': np.array([0.5, 1]), 'return_x': True}, + ]) + def test_initial_response(self, siso_ss1, kwargs): + """Test initial response of SISO system""" + sys = siso_ss1.sys + t = siso_ss1.t + x0 = kwargs.get('X0', 0) + yref = siso_ss1.yinitial if np.any(x0) else np.zeros_like(t) + + out = initial_response(sys, T=t, **kwargs) + tout, yout = out[:2] + assert len(out) == 3 if ('return_x', True) in kwargs.items() else 2 np.testing.assert_array_almost_equal(tout, t) + np.testing.assert_array_almost_equal(yout, yref, decimal=4) - # Play with arguments - tout, yout, xout = initial_response(sys, T=t, X0=x0, return_x=True) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - np.testing.assert_array_almost_equal(tout, t) + def test_initial_response_mimo(self, mimo_ss1): + """Test initial response of MIMO system""" + sys = mimo_ss1.sys + t = mimo_ss1.t + x0 = np.array([[.5], [1.], [.5], [1.]]) + yref = mimo_ss1.yinitial + yref_notrim = np.broadcast_to(yref, (2, len(t))) - # Test MIMO system, which contains ``siso_ss1`` twice - sys = self.mimo_ss1 - x0 = np.matrix(".5; 1.; .5; 1.") _t, y_00 = initial_response(sys, T=t, X0=x0, input=0, output=0) - _t, y_11 = initial_response(sys, T=t, X0=x0, input=1, output=1) - np.testing.assert_array_almost_equal(y_00, youttrue, decimal=4) - np.testing.assert_array_almost_equal(y_11, youttrue, decimal=4) - - def test_initial_response_no_trim(self): - # test MIMO system without trimming - t = np.linspace(0, 1, 10) - x0 = np.matrix(".5; 1.; .5; 1.") - youttrue = np.array([11., 8.1494, 5.9361, 4.2258, 2.9118, 1.9092, - 1.1508, 0.5833, 0.1645, -0.1391]) - sys = self.mimo_ss1 + np.testing.assert_array_almost_equal(y_00, yref, decimal=4) + _t, y_11 = initial_response(sys, T=t, X0=x0, input=0, output=1) + np.testing.assert_array_almost_equal(y_11, yref, decimal=4) _t, yy = initial_response(sys, T=t, X0=x0) - np.testing.assert_array_almost_equal( - yy, np.vstack((youttrue, youttrue)), - decimal=4) - - def test_forced_response(self): - t = np.linspace(0, 1, 10) - - # compute step response - test with state space, and transfer function - # objects - u = np.array([1., 1, 1, 1, 1, 1, 1, 1, 1, 1]) - youttrue = np.array([9., 17.6457, 24.7072, 30.4855, 35.2234, 39.1165, - 42.3227, 44.9694, 47.1599, 48.9776]) - tout, yout, _xout = forced_response(self.siso_ss1, t, u) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) + np.testing.assert_array_almost_equal(yy, yref_notrim, decimal=4) + + @pytest.mark.parametrize("tsystem", + ["siso_ss1", "siso_tf2"], + indirect=True) + def test_forced_response_step(self, tsystem): + """Test forced response of SISO systems as step response""" + sys = tsystem.sys + t = tsystem.t + u = np.ones_like(t, dtype=np.float) + yref = tsystem.ystep + + tout, yout, _xout = forced_response(sys, t, u) + np.testing.assert_array_almost_equal(tout, t) + np.testing.assert_array_almost_equal(yout, yref, decimal=4) + + @pytest.mark.parametrize("u", + [np.zeros((10,), dtype=np.float), + 0] # special algorithm + ) + def test_forced_response_initial(self, siso_ss1, u): + """Test forced response of SISO system as intitial response""" + sys = siso_ss1.sys + t = siso_ss1.t + x0 = np.array([[.5], [1.]]) + yref = siso_ss1.yinitial + + tout, yout, _xout = forced_response(sys, t, u, X0=x0) np.testing.assert_array_almost_equal(tout, t) - _t, yout, _xout = forced_response(self.siso_tf2, t, u) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - - # test with initial value and special algorithm for ``U=0`` - u = 0 - x0 = np.matrix(".5; 1.") - youttrue = np.array([11., 8.1494, 5.9361, 4.2258, 2.9118, 1.9092, - 1.1508, 0.5833, 0.1645, -0.1391]) - _t, yout, _xout = forced_response(self.siso_ss1, t, u, x0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - - # Test MIMO system, which contains ``siso_ss1`` twice + np.testing.assert_array_almost_equal(yout, yref, decimal=4) + + @pytest.mark.parametrize("tsystem, useT", + [("mimo_ss1", True), + ("mimo_dss2", True), + ("mimo_dss2", False)], + indirect=["tsystem"]) + def test_forced_response_mimo(self, tsystem, useT): + """Test forced response of MIMO system""" # first system: initial value, second system: step response + sys = tsystem.sys + t = tsystem.t u = np.array([[0., 0, 0, 0, 0, 0, 0, 0, 0, 0], [1., 1, 1, 1, 1, 1, 1, 1, 1, 1]]) x0 = np.array([[.5], [1], [0], [0]]) - youttrue = np.array([[11., 8.1494, 5.9361, 4.2258, 2.9118, 1.9092, - 1.1508, 0.5833, 0.1645, -0.1391], - [9., 17.6457, 24.7072, 30.4855, 35.2234, 39.1165, - 42.3227, 44.9694, 47.1599, 48.9776]]) - _t, yout, _xout = forced_response(self.mimo_ss1, t, u, x0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - - # Test discrete MIMO system to use correct convention for input - sysc = self.mimo_ss1 - dt=t[1]-t[0] - sysd = c2d(sysc, dt) # discrete time system - Tc, youtc, _xoutc = forced_response(sysc, t, u, x0) - Td, youtd, _xoutd = forced_response(sysd, t, u, x0) - np.testing.assert_array_equal(Tc.shape, Td.shape) - np.testing.assert_array_equal(youtc.shape, youtd.shape) - np.testing.assert_array_almost_equal(youtc, youtd, decimal=4) - - # Test discrete MIMO system without default T argument - u = np.array([[0., 0, 0, 0, 0, 0, 0, 0, 0, 0], - [1., 1, 1, 1, 1, 1, 1, 1, 1, 1]]) - x0 = np.array([[.5], [1], [0], [0]]) - youttrue = np.array([[11., 8.1494, 5.9361, 4.2258, 2.9118, 1.9092, - 1.1508, 0.5833, 0.1645, -0.1391], - [9., 17.6457, 24.7072, 30.4855, 35.2234, 39.1165, - 42.3227, 44.9694, 47.1599, 48.9776]]) - _t, yout, _xout = forced_response(sysd, U=u, X0=x0) - np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) - - def test_lsim_double_integrator(self): + yref = np.vstack([tsystem.yinitial, tsystem.ystep]) + + if useT: + _t, yout, _xout = forced_response(sys, t, u, x0) + else: + _t, yout, _xout = forced_response(sys, U=u, X0=x0) + np.testing.assert_array_almost_equal(yout, yref, decimal=4) + + @pytest.mark.parametrize("u, x0, xtrue", + [(np.zeros((10,)), + np.array([2., 3.]), + np.vstack([np.linspace(2, 5, 10), + np.full((10,), 3)])), + (np.ones((10,)), + np.array([0., 0.]), + np.vstack([0.5 * np.linspace(0, 1, 10)**2, + np.linspace(0, 1, 10)])), + (np.linspace(0, 1, 10), + np.array([0., 0.]), + np.vstack([np.linspace(0, 1, 10)**3 / 6., + np.linspace(0, 1, 10)**2 / 2.]))], + ids=["zeros", "ones", "linear"]) + def test_lsim_double_integrator(self, u, x0, xtrue): + """Test forced response of double integrator""" # Note: scipy.signal.lsim fails if A is not invertible - A = np.mat("0. 1.;0. 0.") - B = np.mat("0.; 1.") - C = np.mat("1. 0.") + A = np.array([[0., 1.], + [0., 0.]]) + B = np.array([[0.], + [1.]]) + C = np.array([[1., 0.]]) D = 0. sys = StateSpace(A, B, C, D) + t = np.linspace(0, 1, 10) + + _t, yout, xout = forced_response(sys, t, u, x0) + np.testing.assert_array_almost_equal(xout, xtrue, decimal=6) + ytrue = np.squeeze(np.asarray(C.dot(xtrue))) + np.testing.assert_array_almost_equal(yout, ytrue, decimal=6) - def check(u, x0, xtrue): - _t, yout, xout = forced_response(sys, t, u, x0) - np.testing.assert_array_almost_equal(xout, xtrue, decimal=6) - ytrue = np.squeeze(np.asarray(C.dot(xtrue))) - np.testing.assert_array_almost_equal(yout, ytrue, decimal=6) - - # test with zero input - npts = 10 - t = np.linspace(0, 1, npts) - u = np.zeros_like(t) - x0 = np.array([2., 3.]) - xtrue = np.zeros((2, npts)) - xtrue[0, :] = x0[0] + t * x0[1] - xtrue[1, :] = x0[1] - check(u, x0, xtrue) - - # test with step input - u = np.ones_like(t) - xtrue = np.array([0.5 * t**2, t]) - x0 = np.array([0., 0.]) - check(u, x0, xtrue) - - # test with linear input - u = t - xtrue = np.array([1./6. * t**3, 0.5 * t**2]) - check(u, x0, xtrue) - - def test_discrete_initial(self): - h1 = TransferFunction([1.], [1., 0.], 1.) - t, yout = impulse_response(h1, np.arange(4)) - np.testing.assert_array_equal(yout, [0., 1., 0., 0.]) - - @unittest.skipIf(not slycot_check(), "slycot not installed") + + @slycotonly def test_step_robustness(self): - "Unit test: https://github.com/python-control/python-control/issues/240" + "Test robustness os step_response against denomiantors: gh-240" # Create 2 input, 2 output system - num = [ [[0], [1]], [[1], [0]] ] + num = [[[0], [1]], [[1], [0]]] - den1 = [ [[1], [1,1]], [[1,4], [1]] ] + den1 = [[[1], [1,1]], [[1, 4], [1]]] sys1 = TransferFunction(num, den1) - den2 = [ [[1], [1e-10, 1, 1]], [[1,4], [1]] ] # slight perturbation + den2 = [[[1], [1e-10, 1, 1]], [[1, 4], [1]]] # slight perturbation sys2 = TransferFunction(num, den2) - # Compute step response from input 1 to output 1, 2 t1, y1 = step_response(sys1, input=0, T=2, T_num=100) t2, y2 = step_response(sys2, input=0, T=2, T_num=100) np.testing.assert_array_almost_equal(y1, y2) - def test_auto_generated_time_vector(self): - # confirm a TF with a pole at p simulates for ratio/p seconds - p = 0.5 - ratio = 9.21034*p # taken from code - ratio2 = 25*p - np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, .5]))[0], - (ratio/p)) - np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, .5]).sample(.1))[0], - (ratio2/p)) - # confirm a TF with poles at 0 and p simulates for ratio/p seconds - np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, .5, 0]))[0], - (ratio2/p)) - - # confirm a TF with a natural frequency of wn rad/s gets a - # dt of 1/(ratio*wn) - wn = 10 - ratio_dt = 1/(0.025133 * ratio * wn) - np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 0, wn**2]))[1], - 1/(ratio_dt*ratio*wn)) + + @pytest.mark.parametrize( + "tfsys, tfinal", + [(TransferFunction(1, [1, .5]), 9.21034), # pole at 0.5 + (TransferFunction(1, [1, .5]).sample(.1), 25), # discrete pole at 0.5 + (TransferFunction(1, [1, .5, 0]), 25)]) # poles at 0.5 and 0 + def test_auto_generated_time_vector_tfinal(self, tfsys, tfinal): + """Confirm a TF with a pole at p simulates for tfinal seconds""" + np.testing.assert_almost_equal( + _ideal_tfinal_and_dt(tfsys)[0], tfinal, decimal=4) + + @pytest.mark.parametrize("wn, zeta", [(10, 0), (100, 0), (100, .1)]) + def test_auto_generated_time_vector_dt_cont(self, wn, zeta): + """Confirm a TF with a natural frequency of wn rad/s gets a + dt of 1/(ratio*wn)""" + + dtref = 0.25133 / wn + + tfsys = TransferFunction(1, [1, 2*zeta*wn, wn**2]) + np.testing.assert_almost_equal(_ideal_tfinal_and_dt(tfsys)[1], dtref) + + def test_auto_generated_time_vector_dt_cont(self): + """A sampled tf keeps its dt""" wn = 100 - np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 0, wn**2]))[1], - 1/(ratio_dt*ratio*wn)) zeta = .1 - np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]))[1], - 1/(ratio_dt*ratio*wn)) - # but a smapled one keeps its dt - np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]).sample(.1))[1], - .1) - np.testing.assert_array_almost_equal( - np.diff(initial_response(TransferFunction(1, [1, 2*zeta*wn, wn**2]).sample(.1))[0][0:2]), - .1) - np.testing.assert_array_almost_equal( - _ideal_tfinal_and_dt(TransferFunction(1, [1, 2*zeta*wn, wn**2]))[1], - 1/(ratio_dt*ratio*wn)) - - - # TF with fast oscillations simulates only 5000 time steps even with long tfinal - self.assertEqual(5000, - len(_default_time_vector(TransferFunction(1, [1, 0, wn**2]),tfinal=100))) + tfsys = TransferFunction(1, [1, 2*zeta*wn, wn**2]).sample(.1) + tfinal, dt = _ideal_tfinal_and_dt(tfsys) + np.testing.assert_almost_equal(dt, .1) + T, _ = initial_response(tfsys) + np.testing.assert_almost_equal(np.diff(T[:2]), [.1]) + + def test_default_timevector_long(self): + """Test long time vector""" + + # TF with fast oscillations simulates only 5000 time steps + # even with long tfinal + wn = 100 + tfsys = TransferFunction(1, [1, 0, wn**2]) + tout = _default_time_vector(tfsys, tfinal=100) + assert len(tout) == 5000 + + @pytest.mark.parametrize("fun", [step_response, + impulse_response, + initial_response]) + def test_default_timevector_functions_c(self, fun): + """Test that functions can calculate the time vector automatically""" sys = TransferFunction(1, [1, .5, 0]) - sysdt = TransferFunction(1, [1, .5, 0], .1) + # test impose number of time steps - self.assertEqual(10, len(step_response(sys, T_num=10)[0])) - # test that discrete ignores T_num - self.assertNotEqual(15, len(step_response(sysdt, T_num=15)[0])) + tout, _ = fun(sys, T_num=10) + assert len(tout) == 10 + + # test impose final time + tout, _ = fun(sys, 100) + np.testing.assert_allclose(tout[-1], 100., atol=0.5) + + @pytest.mark.parametrize("fun", [step_response, + impulse_response, + initial_response]) + def test_default_timevector_functions_d(self, fun): + """Test that functions can calculate the time vector automatically""" + sys = TransferFunction(1, [1, .5, 0], 0.1) + + # test impose number of time steps is ignored with dt given + tout, _ = fun(sys, T_num=15) + assert len(tout) != 15 + # test impose final time - np.testing.assert_array_almost_equal( - 100, - np.ceil(step_response(sys, 100)[0][-1])) - np.testing.assert_array_almost_equal( - 100, - np.ceil(step_response(sysdt, 100)[0][-1])) - np.testing.assert_array_almost_equal( - 100, - np.ceil(impulse_response(sys, 100)[0][-1])) - np.testing.assert_array_almost_equal( - 100, - np.ceil(initial_response(sys, 100)[0][-1])) - - - def test_time_vector(self): - "Unit test: https://github.com/python-control/python-control/issues/239" - # Discrete time simulations with specified time vectors - Tin1 = np.arange(0, 5, 1) # matches dtf1, dss1; multiple of 0.2 - Tin2 = np.arange(0, 5, 0.2) # matches dtf2, dss2 - Tin3 = np.arange(0, 5, 0.5) # incompatible with 0.2 - - # Initial conditions to use for the different systems - siso_x0 = [1, 2] - mimo_x0 = [1, 2, 3, 4] - - # - # Easy cases: make sure that output sample time matches input - # - # No timebase in system => output should match input - # - # Initial response - tout, yout = initial_response(self.siso_dtf1, Tin2, siso_x0, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Impulse response - tout, yout = impulse_response(self.siso_dtf1, Tin2, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Step response - tout, yout = step_response(self.siso_dtf1, Tin2, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Forced response with specified time vector - tout, yout, xout = forced_response(self.siso_dtf1, Tin2, np.sin(Tin2), - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Forced response with no time vector, no sample time (should use 1) - tout, yout, xout = forced_response(self.siso_dtf1, None, np.sin(Tin1), - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin1) - - # MIMO forced response - tout, yout, xout = forced_response(self.mimo_dss1, Tin1, - (np.sin(Tin1), np.cos(Tin1)), - mimo_x0) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - self.assertEqual(np.shape(tout), np.shape(yout[1,:])) - np.testing.assert_array_equal(tout, Tin1) - - # Matching timebase in system => output should match input - # - # Initial response - tout, yout = initial_response(self.siso_dtf2, Tin2, siso_x0, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Impulse response - tout, yout = impulse_response(self.siso_dtf2, Tin2, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Step response - tout, yout = step_response(self.siso_dtf2, Tin2, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Forced response - tout, yout, xout = forced_response(self.siso_dtf2, Tin2, np.sin(Tin2), - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Forced response with no time vector, use sample time - tout, yout, xout = forced_response(self.siso_dtf2, None, np.sin(Tin2), - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin2) - - # Compatible timebase in system => output should match input - # - # Initial response - tout, yout = initial_response(self.siso_dtf2, Tin1, siso_x0, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin1) - - # Impulse response - tout, yout = impulse_response(self.siso_dtf2, Tin1, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin1) - - # Step response - tout, yout = step_response(self.siso_dtf2, Tin1, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin1) - - # Forced response - tout, yout, xout = forced_response(self.siso_dtf2, Tin1, np.sin(Tin1), - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - np.testing.assert_array_equal(tout, Tin1) - - # - # Interpolation of the input (to match scipy.signal.dlsim) - # - # Initial response - tout, yout, xout = forced_response(self.siso_dtf2, Tin1, - np.sin(Tin1), interpolate=True, - squeeze=False) - self.assertEqual(np.shape(tout), np.shape(yout[0,:])) - self.assertTrue(np.allclose(tout[1:] - tout[:-1], self.siso_dtf2.dt)) - - # - # Incompatible cases: make sure an error is thrown - # - # System timebase and given time vector are incompatible - # - # Initial response - with self.assertRaises(Exception) as context: - tout, yout = initial_response(self.siso_dtf2, Tin3, siso_x0, - squeeze=False) - self.assertTrue(isinstance(context.exception, ValueError)) - - def test_discrete_time_steps(self): - """Make sure rounding errors in sample time are handled properly""" - # See https://github.com/python-control/python-control/issues/332) - # - # These tests play around with the input time vector to make sure that - # small rounding errors don't generate spurious errors. - - # Discrete time system to use for simulation - # self.siso_dtf2 = TransferFunction([1], [1, 1, 0.25], 0.2) + tout, _ = fun(sys, 100) + np.testing.assert_allclose(tout[-1], 100., atol=0.5) + + + @pytest.mark.parametrize("tsystem", + ["siso_ss2", # continuous + "siso_tf1", + "siso_dss1", # no timebase + "siso_dtf1", + "siso_dss2", # matching timebase + "siso_dtf2", + "mimo_ss2", # MIMO + pytest.param("mimo_tf2", marks=slycotonly), + "mimo_dss1", + pytest.param("mimo_dtf1", marks=slycotonly), + ], + indirect=True) + @pytest.mark.parametrize("fun", [step_response, + impulse_response, + initial_response, + forced_response]) + @pytest.mark.parametrize("squeeze", [None, True, False]) + def test_time_vector(self, tsystem, fun, squeeze, matarrayout): + """Test time vector handling and correct output convention + + gh-239, gh-295 + """ + sys = tsystem.sys + + kw = {} + if hasattr(tsystem, "t"): + t = tsystem.t + kw['T'] = t + if fun == forced_response: + kw['U'] = np.vstack([np.sin(t) for i in range(sys.inputs)]) + elif fun == forced_response and isctime(sys): + pytest.skip("No continuous forced_response without time vector.") + if hasattr(tsystem.sys, "states"): + kw['X0'] = np.arange(sys.states) + 1 + if sys.inputs > 1 and fun in [step_response, impulse_response]: + kw['input'] = 1 + if squeeze is not None: + kw['squeeze'] = squeeze + + out = fun(sys, **kw) + tout, yout = out[:2] + + assert tout.ndim == 1 + if hasattr(tsystem, 't'): + # tout should always match t, which has shape (n, ) + np.testing.assert_allclose(tout, tsystem.t) + if squeeze is False or sys.outputs > 1: + assert yout.shape[0] == sys.outputs + assert yout.shape[1] == tout.shape[0] + else: + assert yout.shape == tout.shape + + if sys.dt > 0 and sys.dt is not True and not np.isclose(sys.dt, 0.5): + kw['T'] = np.arange(0, 5, 0.5) # incompatible timebase + with pytest.raises(ValueError): + fun(sys, **kw) + + @pytest.mark.parametrize("squeeze", [None, True, False]) + def test_time_vector_interpolation(self, siso_dtf2, squeeze): + """Test time vector handling in case of interpolation + + Interpolation of the input (to match scipy.signal.dlsim) + + gh-239, gh-295 + """ + sys = siso_dtf2.sys + t = np.arange(0, 10, 1.) + u = np.sin(t) + x0 = 0 + + squeezekw = {} if squeeze is None else {"squeeze": squeeze} + + tout, yout, xout = forced_response(sys, t, u, x0, + interpolate=True, **squeezekw) + if squeeze is False or sys.outputs > 1: + assert yout.shape[0] == sys.outputs + assert yout.shape[1] == tout.shape[0] + else: + assert yout.shape == tout.shape + assert np.allclose(tout[1:] - tout[:-1], sys.dt) + + def test_discrete_time_steps(self, siso_dtf2): + """Make sure rounding errors in sample time are handled properly + + These tests play around with the input time vector to make sure that + small rounding errors don't generate spurious errors. + + gh-332 + """ + sys = siso_dtf2.sys # Set up a time range and simulate T = np.arange(0, 100, 0.2) - tout1, yout1 = step_response(self.siso_dtf2, T) + tout1, yout1 = step_response(sys, T) # Simulate every other time step T = np.arange(0, 100, 0.4) - tout2, yout2 = step_response(self.siso_dtf2, T) + tout2, yout2 = step_response(sys, T) np.testing.assert_array_almost_equal(tout1[::2], tout2) np.testing.assert_array_almost_equal(yout1[::2], yout2) # Add a small error into some of the time steps T = np.arange(0, 100, 0.2) T[1:-2:2] -= 1e-12 # tweak second value and a few others - tout3, yout3 = step_response(self.siso_dtf2, T) + tout3, yout3 = step_response(sys, T) np.testing.assert_array_almost_equal(tout1, tout3) np.testing.assert_array_almost_equal(yout1, yout3) # Add a small error into some of the time steps (w/ skipping) T = np.arange(0, 100, 0.4) T[1:-2:2] -= 1e-12 # tweak second value and a few others - tout4, yout4 = step_response(self.siso_dtf2, T) + tout4, yout4 = step_response(sys, T) np.testing.assert_array_almost_equal(tout2, tout4) np.testing.assert_array_almost_equal(yout2, yout4) # Make sure larger errors *do* generate an error T = np.arange(0, 100, 0.2) T[1:-2:2] -= 1e-3 # change second value and a few others - self.assertRaises(ValueError, step_response, self.siso_dtf2, T) - - def test_time_series_data_convention(self): - """Make sure time series data matches documentation conventions""" - # SISO continuous time - t, y = step_response(self.siso_ss1) - self.assertTrue(isinstance(t, np.ndarray) - and not isinstance(t, np.matrix)) - self.assertTrue(len(t.shape) == 1) - self.assertTrue(len(y.shape) == 1) # SISO returns "scalar" output - self.assertTrue(len(t) == len(y)) # Allows direct plotting of output - - # SISO discrete time - t, y = step_response(self.siso_dss1) - self.assertTrue(isinstance(t, np.ndarray) - and not isinstance(t, np.matrix)) - self.assertTrue(len(t.shape) == 1) - self.assertTrue(len(y.shape) == 1) # SISO returns "scalar" output - self.assertTrue(len(t) == len(y)) # Allows direct plotting of output - - # MIMO continuous time - tin = np.linspace(0, 10, 100) - uin = [np.sin(tin), np.cos(tin)] - t, y, x = forced_response(self.mimo_ss1, tin, uin) - self.assertTrue(isinstance(t, np.ndarray) - and not isinstance(t, np.matrix)) - self.assertTrue(len(t.shape) == 1) - self.assertTrue(len(y[0].shape) == 1) - self.assertTrue(len(y[1].shape) == 1) - self.assertTrue(len(t) == len(y[0])) - self.assertTrue(len(t) == len(y[1])) - - # MIMO discrete time - tin = np.linspace(0, 10, 100) - uin = [np.sin(tin), np.cos(tin)] - t, y, x = forced_response(self.mimo_dss1, tin, uin) - self.assertTrue(isinstance(t, np.ndarray) - and not isinstance(t, np.matrix)) - self.assertTrue(len(t.shape) == 1) - self.assertTrue(len(y[0].shape) == 1) - self.assertTrue(len(y[1].shape) == 1) - self.assertTrue(len(t) == len(y[0])) - self.assertTrue(len(t) == len(y[1])) - - # Allow input time as 2D array (output should be 1D) - tin = np.array(np.linspace(0, 10, 100), ndmin=2) - t, y = step_response(self.siso_ss1, tin) - self.assertTrue(isinstance(t, np.ndarray) - and not isinstance(t, np.matrix)) - self.assertTrue(len(t.shape) == 1) - self.assertTrue(len(y.shape) == 1) # SISO returns "scalar" output - self.assertTrue(len(t) == len(y)) # Allows direct plotting of output + with pytest.raises(ValueError): + step_response(sys, T) - -if __name__ == '__main__': - unittest.main() + def test_time_series_data_convention_2D(self, siso_ss1): + """Allow input time as 2D array (output should be 1D)""" + tin = np.array(np.linspace(0, 10, 100), ndmin=2) + t, y = step_response(siso_ss1.sys, tin) + assert isinstance(t, np.ndarray) and not isinstance(t, np.matrix) + assert t.ndim == 1 + assert y.ndim == 1 # SISO returns "scalar" output + assert t.shape == y.shape # Allows direct plotting of output diff --git a/control/tests/xferfcn_input_test.py b/control/tests/xferfcn_input_test.py index 52fb85c29..995f6ac03 100644 --- a/control/tests/xferfcn_input_test.py +++ b/control/tests/xferfcn_input_test.py @@ -1,259 +1,79 @@ -#!/usr/bin/env python -# -# xferfcn_input_test.py - test inputs to TransferFunction class -# jed-frey, 18 Feb 2017 (based on xferfcn_test.py) +"""xferfcn_input_test.py - test inputs to TransferFunction class -import unittest -import numpy as np +jed-frey, 18 Feb 2017 (based on xferfcn_test.py) +BG, 31 Jul 2020 convert to pytest and parametrize into single function +""" -from numpy import int, int8, int16, int32, int64 -from numpy import float, float16, float32, float64, longdouble -from numpy import all, ndarray, array +import numpy as np +import pytest from control.xferfcn import _clean_part - -class TestXferFcnInput(unittest.TestCase): - """These are tests for functionality of cleaning and validating XferFcnInput.""" - - # Tests for raising exceptions. - def test_clean_part_bad_input_type(self): - """Give the part cleaner invalid input type.""" - - self.assertRaises(TypeError, _clean_part, [[0., 1.], [2., 3.]]) - - def test_clean_part_bad_input_type2(self): - """Give the part cleaner another invalid input type.""" - self.assertRaises(TypeError, _clean_part, [1, "a"]) - - def test_clean_part_scalar(self): - """Test single scalar value.""" - num = 1 - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_list_scalar(self): - """Test single scalar value in list.""" - num = [1] - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_tuple_scalar(self): - """Test single scalar value in tuple.""" - num = (1) - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_list(self): - """Test multiple values in a list.""" - num = [1, 2] - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 2.0], dtype=float)) - - def test_clean_part_tuple(self): - """Test multiple values in tuple.""" - num = (1, 2) - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 2.0], dtype=float)) - - def test_clean_part_all_scalar_types(self): - """Test single scalar value for all valid data types.""" - for dtype in [int, int8, int16, int32, int64, float, float16, float32, float64, longdouble]: - num = dtype(1) - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_np_array(self): - """Test multiple values in numpy array.""" - num = np.array([1, 2]) - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 2.0], dtype=float)) - - def test_clean_part_all_np_array_types(self): - """Test scalar value in numpy array of ndim=0 for all data types.""" - for dtype in [int, int8, int16, int32, int64, float, float16, float32, float64, longdouble]: - num = np.array(1, dtype=dtype) - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_all_np_array_types2(self): - """Test numpy array for all types.""" - for dtype in [int, int8, int16, int32, int64, float, float16, float32, float64, longdouble]: - num = np.array([1, 2], dtype=dtype) - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 2.0], dtype=float)) - - def test_clean_part_list_all_types(self): - """Test list of a single value for all data types.""" - for dtype in [int, int8, int16, int32, int64, float, float16, float32, float64, longdouble]: - num = [dtype(1)] - num_ = _clean_part(num) - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_list_all_types2(self): - """List of list of numbers of all data types.""" - for dtype in [int, int8, int16, int32, int64, float, float16, float32, float64, longdouble]: - num = [dtype(1), dtype(2)] - num_ = _clean_part(num) - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 2.0], dtype=float)) - - def test_clean_part_tuple_all_types(self): - """Test tuple of a single value for all data types.""" - for dtype in [int, int8, int16, int32, int64, float, float16, float32, float64, longdouble]: - num = (dtype(1),) - num_ = _clean_part(num) - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_tuple_all_types2(self): - """Test tuple of a single value for all data types.""" - for dtype in [int, int8, int16, int32, int64, float, float16, float32, float64, longdouble]: - num = (dtype(1), dtype(2)) - num_ = _clean_part(num) - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1, 2], dtype=float)) - - def test_clean_part_list_list_list_int(self): - """ Test an int in a list of a list of a list.""" - num = [[[1]]] - num_ = _clean_part(num) - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_list_list_list_float(self): - """ Test a float in a list of a list of a list.""" - num = [[[1.0]]] - num_ = _clean_part(num) - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0], dtype=float)) - - def test_clean_part_list_list_list_ints(self): - """Test 2 lists of ints in a list in a list.""" - num = [[[1, 1], [2, 2]]] - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 1.0], dtype=float)) - np.testing.assert_array_equal(num_[0][1], array([2.0, 2.0], dtype=float)) - - def test_clean_part_list_list_list_floats(self): - """Test 2 lists of ints in a list in a list.""" - num = [[[1.0, 1.0], [2.0, 2.0]]] - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 1.0], dtype=float)) - np.testing.assert_array_equal(num_[0][1], array([2.0, 2.0], dtype=float)) - - def test_clean_part_list_list_array(self): - """List of list of numpy arrays for all valid types.""" - for dtype in int, int8, int16, int32, int64, float, float16, float32, float64, longdouble: - num = [[array([1, 1], dtype=dtype), array([2, 2], dtype=dtype)]] - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 1.0], dtype=float)) - np.testing.assert_array_equal(num_[0][1], array([2.0, 2.0], dtype=float)) - - def test_clean_part_tuple_list_array(self): - """Tuple of list of numpy arrays for all valid types.""" - for dtype in int, int8, int16, int32, int64, float, float16, float32, float64, longdouble: - num = ([array([1, 1], dtype=dtype), array([2, 2], dtype=dtype)],) - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 1.0], dtype=float)) - np.testing.assert_array_equal(num_[0][1], array([2.0, 2.0], dtype=float)) - - def test_clean_part_list_tuple_array(self): - """List of tuple of numpy array for all valid types.""" - for dtype in int, int8, int16, int32, int64, float, float16, float32, float64, longdouble: - num = [(array([1, 1], dtype=dtype), array([2, 2], dtype=dtype))] - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 1.0], dtype=float)) - np.testing.assert_array_equal(num_[0][1], array([2.0, 2.0], dtype=float)) - - def test_clean_part_tuple_tuples_arrays(self): - """Tuple of tuples of numpy arrays for all valid types.""" - for dtype in int, int8, int16, int32, int64, float, float16, float32, float64, longdouble: - num = ((array([1, 1], dtype=dtype), array([2, 2], dtype=dtype)), - (array([3, 4], dtype=dtype), array([4, 4], dtype=dtype))) - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 1.0], dtype=float)) - np.testing.assert_array_equal(num_[0][1], array([2.0, 2.0], dtype=float)) - - def test_clean_part_list_tuples_arrays(self): - """List of tuples of numpy arrays for all valid types.""" - for dtype in int, int8, int16, int32, int64, float, float16, float32, float64, longdouble: - num = [(array([1, 1], dtype=dtype), array([2, 2], dtype=dtype)), - (array([3, 4], dtype=dtype), array([4, 4], dtype=dtype))] - num_ = _clean_part(num) - - assert isinstance(num_, list) - assert np.all([isinstance(part, list) for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 1.0], dtype=float)) - np.testing.assert_array_equal(num_[0][1], array([2.0, 2.0], dtype=float)) - - def test_clean_part_list_list_arrays(self): - """List of list of numpy arrays for all valid types.""" - for dtype in int, int8, int16, int32, int64, float, float16, float32, float64, longdouble: - num = [[array([1, 1], dtype=dtype), array([2, 2], dtype=dtype)], - [array([3, 3], dtype=dtype), array([4, 4], dtype=dtype)]] - num_ = _clean_part(num) - - assert len(num_) == 2 - assert np.all([isinstance(part, list) for part in num_]) - assert np.all([len(part) == 2 for part in num_]) - np.testing.assert_array_equal(num_[0][0], array([1.0, 1.0], dtype=float)) - np.testing.assert_array_equal(num_[0][1], array([2.0, 2.0], dtype=float)) - np.testing.assert_array_equal(num_[1][0], array([3.0, 3.0], dtype=float)) - np.testing.assert_array_equal(num_[1][1], array([4.0, 4.0], dtype=float)) - - -if __name__ == "__main__": - unittest.main() +cases = { + "scalar": + (1, lambda dtype, v: dtype(v)), + "scalar in 0d array": + (1, lambda dtype, v: np.array(v, dtype=dtype)), + "numpy array": + ([1, 2], lambda dtype, v: np.array(v, dtype=dtype)), + "list of scalar": + (1, lambda dtype, v: [dtype(v)]), + "list of scalars": + ([1, 2], lambda dtype, v: [dtype(vi) for vi in v]), + "list of list of list of scalar": + (1, lambda dtype, v: [[[dtype(v)]]]), + "list of list of list of scalars": + ([[1, 1], [2, 2]], + lambda dtype, v: [[[dtype(vi) for vi in vr] for vr in v]]), + "tuple of scalar": + (1, lambda dtype, v: (dtype(v),)), + "tuple of scalars": + ([1, 2], lambda dtype, v: tuple(dtype(vi) for vi in v)), + "list of list of numpy arrays": + ([[1, 1], [2, 2]], + lambda dtype, v: [[np.array(vr, dtype=dtype) for vr in v]]), + "tuple of list of numpy arrays": + ([[1, 1], [2, 2]], + lambda dtype, v: ([np.array(vr, dtype=dtype) for vr in v],)), + "list of tuple of numpy arrays": + ([[1, 1], [2, 2]], + lambda dtype, v: [tuple(np.array(vr, dtype=dtype) for vr in v)]), + "tuple of tuples of numpy arrays": + ([[[1, 1], [2, 2]], [[3, 3], [4, 4]]], + lambda dtype, v: tuple(tuple(np.array(vr, dtype=dtype) for vr in vp) + for vp in v)), + "list of tuples of numpy arrays": + ([[[1, 1], [2, 2]], [[3, 3], [4, 4]]], + lambda dtype, v: [tuple(np.array(vr, dtype=dtype) for vr in vp) + for vp in v]), + "list of lists of numpy arrays": + ([[[1, 1], [2, 2]], [[3, 3], [4, 4]]], + lambda dtype, v: [[np.array(vr, dtype=dtype) for vr in vp] + for vp in v]), +} + + +@pytest.mark.parametrize("dtype", + [np.int, np.int8, np.int16, np.int32, np.int64, + np.float, np.float16, np.float32, np.float64, + np.longdouble]) +@pytest.mark.parametrize("num, fun", cases.values(), ids=cases.keys()) +def test_clean_part(num, fun, dtype): + """Test clean part for various inputs""" + numa = fun(dtype, num) + num_ = _clean_part(numa) + ref_ = np.array(num, dtype=np.float, ndmin=3) + + assert isinstance(num_, list) + assert np.all([isinstance(part, list) for part in num_]) + for i, numi in enumerate(num_): + assert len(numi) == ref_.shape[1] + for j, numj in enumerate(numi): + np.testing.assert_array_equal(numj, ref_[i, j, ...]) + + +@pytest.mark.parametrize("badinput", [[[0., 1.], [2., 3.]], "a"]) +def test_clean_part_bad_input(badinput): + """Give the part cleaner invalid input type.""" + with pytest.raises(TypeError): + _clean_part(badinput) diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 17e602090..62c4bfb23 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -1,117 +1,123 @@ -#!/usr/bin/env python -# -# xferfcn_test.py - test TransferFunction class -# RMM, 30 Mar 2011 (based on TestXferFcn from v0.4a) +"""xferfcn_test.py - test TransferFunction class -import unittest -import pytest +RMM, 30 Mar 2011 (based on TestXferFcn from v0.4a) +""" -import sys as pysys import numpy as np +import pytest + from control.statesp import StateSpace, _convertToStateSpace, rss from control.xferfcn import TransferFunction, _convert_to_transfer_function, \ ss2tf from control.lti import evalfr -from control.exception import slycot_check +from control.tests.conftest import slycotonly, nopython2, matrixfilter from control.lti import isctime, isdtime from control.dtime import sample_system -class TestXferFcn(unittest.TestCase): - """These are tests for functionality and correct reporting of the transfer - function class. Throughout these tests, we will give different input +class TestXferFcn: + """Test functionality and correct reporting of the transfer function class. + + Throughout these tests, we will give different input formats to the xTranferFunction constructor, to try to break it. These - tests have been verified in MATLAB.""" + tests have been verified in MATLAB. + """ # Tests for raising exceptions. def test_constructor_bad_input_type(self): """Give the constructor invalid input types.""" - # MIMO requires lists of lists of vectors (not lists of vectors) - self.assertRaises( - TypeError, - TransferFunction, [[0., 1.], [2., 3.]], [[5., 2.], [3., 0.]]) - TransferFunction([[ [0., 1.], [2., 3.] ]], [[ [5., 2.], [3., 0.] ]]) + with pytest.raises(TypeError): + TransferFunction([[0., 1.], [2., 3.]], [[5., 2.], [3., 0.]]) + # good input + TransferFunction([[[0., 1.], [2., 3.]]], + [[[5., 2.], [3., 0.]]]) # Single argument of the wrong type - self.assertRaises(TypeError, TransferFunction, [1]) + with pytest.raises(TypeError): + TransferFunction([1]) # Too many arguments - self.assertRaises(ValueError, TransferFunction, 1, 2, 3, 4) + with pytest.raises(ValueError): + TransferFunction(1, 2, 3, 4) # Different numbers of elements in numerator rows - self.assertRaises( - ValueError, - TransferFunction, [ [[0, 1], [2, 3]], - [[4, 5]] ], - [ [[6, 7], [4, 5]], - [[2, 3], [0, 1]] ]) - self.assertRaises( - ValueError, - TransferFunction, [ [[0, 1], [2, 3]], - [[4, 5], [6, 7]] ], - [ [[6, 7], [4, 5]], - [[2, 3]] ]) - TransferFunction( # This version is OK - [ [[0, 1], [2, 3]], [[4, 5], [6, 7]] ], - [ [[6, 7], [4, 5]], [[2, 3], [0, 1]] ]) + with pytest.raises(ValueError): + TransferFunction([[[0, 1], [2, 3]], + [[4, 5]]], + [[[6, 7], [4, 5]], + [[2, 3], [0, 1]]]) + with pytest.raises(ValueError): + TransferFunction([[[0, 1], [2, 3]], + [[4, 5], [6, 7]]], + [[[6, 7], [4, 5]], + [[2, 3]]]) + # good input + TransferFunction([[[0, 1], [2, 3]], + [[4, 5], [6, 7]]], + [[[6, 7], [4, 5]], + [[2, 3], [0, 1]]]) def test_constructor_inconsistent_dimension(self): """Give constructor numerators, denominators of different sizes.""" - - self.assertRaises(ValueError, TransferFunction, - [[[1.]]], [[[1.], [2., 3.]]]) - self.assertRaises(ValueError, TransferFunction, - [[[1.]]], [[[1.]], [[2., 3.]]]) - self.assertRaises(ValueError, TransferFunction, - [[[1.]]], [[[1.], [1., 2.]], [[5., 2.], [2., 3.]]]) + with pytest.raises(ValueError): + TransferFunction([[[1.]]], [[[1.], [2., 3.]]]) + with pytest.raises(ValueError): + TransferFunction([[[1.]]], [[[1.]], [[2., 3.]]]) + with pytest.raises(ValueError): + TransferFunction([[[1.]]], + [[[1.], [1., 2.]], [[5., 2.], [2., 3.]]]) def test_constructor_inconsistent_columns(self): """Give the constructor inputs that do not have the same number of columns in each row.""" - - self.assertRaises(ValueError, TransferFunction, - 1., [[[1.]], [[2.], [3.]]]) - self.assertRaises(ValueError, TransferFunction, - [[[1.]], [[2.], [3.]]], 1.) + with pytest.raises(ValueError): + TransferFunction(1., [[[1.]], [[2.], [3.]]]) + with pytest.raises(ValueError): + TransferFunction([[[1.]], [[2.], [3.]]], 1.) def test_constructor_zero_denominator(self): """Give the constructor a transfer function with a zero denominator.""" - - self.assertRaises(ValueError, TransferFunction, 1., 0.) - self.assertRaises(ValueError, TransferFunction, - [[[1.], [2., 3.]], [[-1., 4.], [3., 2.]]], - [[[1., 0.], [0.]], [[0., 0.], [2.]]]) + with pytest.raises(ValueError): + TransferFunction(1., 0.) + with pytest.raises(ValueError): + TransferFunction([[[1.], [2., 3.]], [[-1., 4.], [3., 2.]]], + [[[1., 0.], [0.]], [[0., 0.], [2.]]]) def test_add_inconsistent_dimension(self): """Add two transfer function matrices of different sizes.""" - sys1 = TransferFunction([[[1., 2.]]], [[[4., 5.]]]) sys2 = TransferFunction([[[4., 3.]], [[1., 2.]]], [[[1., 6.]], [[2., 4.]]]) - self.assertRaises(ValueError, sys1.__add__, sys2) - self.assertRaises(ValueError, sys1.__sub__, sys2) - self.assertRaises(ValueError, sys1.__radd__, sys2) - self.assertRaises(ValueError, sys1.__rsub__, sys2) + with pytest.raises(ValueError): + sys1.__add__(sys2) + with pytest.raises(ValueError): + sys1.__sub__(sys2) + with pytest.raises(ValueError): + sys1.__radd__(sys2) + with pytest.raises(ValueError): + sys1.__rsub__(sys2) def test_mul_inconsistent_dimension(self): """Multiply two transfer function matrices of incompatible sizes.""" - sys1 = TransferFunction([[[1., 2.], [4., 5.]], [[2., 5.], [4., 3.]]], [[[6., 2.], [4., 1.]], [[6., 7.], [2., 4.]]]) sys2 = TransferFunction([[[1.]], [[2.]], [[3.]]], [[[4.]], [[5.]], [[6.]]]) - self.assertRaises(ValueError, sys1.__mul__, sys2) - self.assertRaises(ValueError, sys2.__mul__, sys1) - self.assertRaises(ValueError, sys1.__rmul__, sys2) - self.assertRaises(ValueError, sys2.__rmul__, sys1) + with pytest.raises(ValueError): + sys1.__mul__(sys2) + with pytest.raises(ValueError): + sys2.__mul__(sys1) + with pytest.raises(ValueError): + sys1.__rmul__(sys2) + with pytest.raises(ValueError): + sys2.__rmul__(sys1) # Tests for TransferFunction._truncatecoeff def test_truncate_coefficients_non_null_numerator(self): """Remove extraneous zeros in polynomial representations.""" - sys1 = TransferFunction([0., 0., 1., 2.], [[[0., 0., 0., 3., 2., 1.]]]) np.testing.assert_array_equal(sys1.num, [[[1., 2.]]]) @@ -119,7 +125,6 @@ def test_truncate_coefficients_non_null_numerator(self): def test_truncate_coefficients_null_numerator(self): """Remove extraneous zeros in polynomial representations.""" - sys1 = TransferFunction([0., 0., 0.], 1.) np.testing.assert_array_equal(sys1.num, [[[0.]]]) @@ -129,7 +134,6 @@ def test_truncate_coefficients_null_numerator(self): def test_reverse_sign_scalar(self): """Negate a direct feedthrough system.""" - sys1 = TransferFunction(2., np.array([-3.])) sys2 = - sys1 @@ -138,17 +142,15 @@ def test_reverse_sign_scalar(self): def test_reverse_sign_siso(self): """Negate a SISO system.""" - sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1.]) sys2 = - sys1 np.testing.assert_array_equal(sys2.num, [[[-1., -3., -5.]]]) np.testing.assert_array_equal(sys2.den, [[[1., 6., 2., -1.]]]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_reverse_sign_mimo(self): """Negate a MIMO system.""" - num1 = [[[1., 2.], [0., 3.], [2., -1.]], [[1.], [4., 0.], [1., -4., 3.]]] num3 = [[[-1., -2.], [0., -3.], [-2., 1.]], @@ -169,7 +171,6 @@ def test_reverse_sign_mimo(self): def test_add_scalar(self): """Add two direct feedthrough systems.""" - sys1 = TransferFunction(1., [[[1.]]]) sys2 = TransferFunction(np.array([2.]), [1.]) sys3 = sys1 + sys2 @@ -179,7 +180,6 @@ def test_add_scalar(self): def test_add_siso(self): """Add two SISO systems.""" - sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1]) sys2 = TransferFunction([[np.array([-1., 3.])]], [[[1., 0., -1.]]]) sys3 = sys1 + sys2 @@ -188,10 +188,9 @@ def test_add_siso(self): np.testing.assert_array_equal(sys3.num, [[[20., 4., -8]]]) np.testing.assert_array_equal(sys3.den, [[[1., 6., 1., -7., -2., 1.]]]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_add_mimo(self): """Add two MIMO systems.""" - num1 = [[[1., 2.], [0., 3.], [2., -1.]], [[1.], [4., 0.], [1., -4., 3.]]] den1 = [[[-3., 2., 4.], [1., 0., 0.], [2., -1.]], @@ -218,7 +217,6 @@ def test_add_mimo(self): def test_subtract_scalar(self): """Subtract two direct feedthrough systems.""" - sys1 = TransferFunction(1., [[[1.]]]) sys2 = TransferFunction(np.array([2.]), [1.]) sys3 = sys1 - sys2 @@ -228,7 +226,6 @@ def test_subtract_scalar(self): def test_subtract_siso(self): """Subtract two SISO systems.""" - sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1]) sys2 = TransferFunction([[np.array([-1., 3.])]], [[[1., 0., -1.]]]) sys3 = sys1 - sys2 @@ -239,10 +236,9 @@ def test_subtract_siso(self): np.testing.assert_array_equal(sys4.num, [[[-2., -6., 12., 10., 2.]]]) np.testing.assert_array_equal(sys4.den, [[[1., 6., 1., -7., -2., 1.]]]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_subtract_mimo(self): """Subtract two MIMO systems.""" - num1 = [[[1., 2.], [0., 3.], [2., -1.]], [[1.], [4., 0.], [1., -4., 3.]]] den1 = [[[-3., 2., 4.], [1., 0., 0.], [2., -1.]], @@ -269,7 +265,6 @@ def test_subtract_mimo(self): def test_multiply_scalar(self): """Multiply two direct feedthrough systems.""" - sys1 = TransferFunction(2., [1.]) sys2 = TransferFunction(1., 4.) sys3 = sys1 * sys2 @@ -282,7 +277,6 @@ def test_multiply_scalar(self): def test_multiply_siso(self): """Multiply two SISO systems.""" - sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1]) sys2 = TransferFunction([[[-1., 3.]]], [[[1., 0., -1.]]]) sys3 = sys1 * sys2 @@ -293,10 +287,9 @@ def test_multiply_siso(self): np.testing.assert_array_equal(sys3.num, sys4.num) np.testing.assert_array_equal(sys3.den, sys4.den) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_multiply_mimo(self): """Multiply two MIMO systems.""" - num1 = [[[1., 2.], [0., 3.], [2., -1.]], [[1.], [4., 0.], [1., -4., 3.]]] den1 = [[[-3., 2., 4.], [1., 0., 0.], [2., -1.]], @@ -328,7 +321,6 @@ def test_multiply_mimo(self): def test_divide_scalar(self): """Divide two direct feedthrough systems.""" - sys1 = TransferFunction(np.array([3.]), -4.) sys2 = TransferFunction(5., 2.) sys3 = sys1 / sys2 @@ -338,7 +330,6 @@ def test_divide_scalar(self): def test_divide_siso(self): """Divide two SISO systems.""" - sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1]) sys2 = TransferFunction([[[-1., 3.]]], [[[1., 0., -1.]]]) sys3 = sys1 / sys2 @@ -351,91 +342,100 @@ def test_divide_siso(self): def test_div(self): # Make sure that sampling times work correctly - sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1]) + sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1], None) sys2 = TransferFunction([[[-1., 3.]]], [[[1., 0., -1.]]], True) sys3 = sys1 / sys2 - self.assertEqual(sys3.dt, True) + assert sys3.dt is True sys2 = TransferFunction([[[-1., 3.]]], [[[1., 0., -1.]]], 0.5) sys3 = sys1 / sys2 - self.assertEqual(sys3.dt, 0.5) + assert sys3.dt == 0.5 sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1], 0.1) - self.assertRaises(ValueError, TransferFunction.__truediv__, sys1, sys2) + with pytest.raises(ValueError): + TransferFunction.__truediv__(sys1, sys2) sys1 = sample_system(rss(4, 1, 1), 0.5) sys3 = TransferFunction.__rtruediv__(sys2, sys1) - self.assertEqual(sys3.dt, 0.5) + assert sys3.dt == 0.5 def test_pow(self): sys1 = TransferFunction([1., 3., 5], [1., 6., 2., -1]) - self.assertRaises(ValueError, TransferFunction.__pow__, sys1, 0.5) + with pytest.raises(ValueError): + TransferFunction.__pow__(sys1, 0.5) def test_slice(self): sys = TransferFunction( [ [ [1], [2], [3]], [ [3], [4], [5]] ], [ [[1, 2], [1, 3], [1, 4]], [[1, 4], [1, 5], [1, 6]] ]) sys1 = sys[1:, 1:] - self.assertEqual((sys1.inputs, sys1.outputs), (2, 1)) + assert (sys1.inputs, sys1.outputs) == (2, 1) sys2 = sys[:2, :2] - self.assertEqual((sys2.inputs, sys2.outputs), (2, 2)) + assert (sys2.inputs, sys2.outputs) == (2, 2) sys = TransferFunction( [ [ [1], [2], [3]], [ [3], [4], [5]] ], [ [[1, 2], [1, 3], [1, 4]], [[1, 4], [1, 5], [1, 6]] ], 0.5) sys1 = sys[1:, 1:] - self.assertEqual((sys1.inputs, sys1.outputs), (2, 1)) - self.assertEqual(sys1.dt, 0.5) - - def test_evalfr_siso(self): - """Evaluate the frequency response of a SISO system at one frequency.""" - + assert (sys1.inputs, sys1.outputs) == (2, 1) + assert sys1.dt == 0.5 + + @pytest.mark.parametrize("omega, resp", + [(1, np.array([[-0.5 - 0.5j]])), + (32, np.array([[0.002819593 - 0.03062847j]]))]) + @pytest.mark.parametrize("dt", [None, 0, 1e-3]) + def test_evalfr_siso(self, dt, omega, resp): + """Evaluate the frequency response at single frequencies""" sys = TransferFunction([1., 3., 5], [1., 6., 2., -1]) - np.testing.assert_array_almost_equal(evalfr(sys, 1j), - np.array([[-0.5 - 0.5j]])) - np.testing.assert_array_almost_equal( - evalfr(sys, 32j), - np.array([[0.00281959302585077 - 0.030628473607392j]])) - - # Test call version as well - np.testing.assert_almost_equal(sys(1.j), -0.5 - 0.5j) - np.testing.assert_almost_equal( - sys(32.j), 0.00281959302585077 - 0.030628473607392j) - - # Test internal version (with real argument) - np.testing.assert_array_almost_equal( - sys._evalfr(1.), np.array([[-0.5 - 0.5j]])) - np.testing.assert_array_almost_equal( - sys._evalfr(32.), - np.array([[0.00281959302585077 - 0.030628473607392j]])) - - # This test only works in Python 3 due to a conflict with the same - # warning type in other test modules (frd_test.py). See - # https://bugs.python.org/issue4180 for more details - @unittest.skipIf(pysys.version_info < (3, 0), "test requires Python 3+") - def test_evalfr_deprecated(self): - sys = TransferFunction([1., 3., 5], [1., 6., 2., -1]) + if dt: + sys = sample_system(sys, dt) + s = np.exp(omega * 1j * dt) + else: + s = omega * 1j + # Correct versions of the call + np.testing.assert_allclose(evalfr(sys, s), resp, atol=1e-3) + np.testing.assert_allclose(sys(s), resp, atol=1e-3) # Deprecated version of the call (should generate warning) - import warnings - with warnings.catch_warnings(): - # Make warnings generate an exception - warnings.simplefilter('error') - - # Make sure that we get a pending deprecation warning - self.assertRaises(PendingDeprecationWarning, sys.evalfr, 1.) - - @unittest.skipIf(pysys.version_info < (3, 0), "test requires Python 3+") - def test_evalfr_dtime(self): - sys = TransferFunction([1., 3., 5], [1., 6., 2., -1], 0.1) - np.testing.assert_array_almost_equal(sys(1j), -0.5 - 0.5j) - - @unittest.skipIf(not slycot_check(), "slycot not installed") + with pytest.deprecated_call(): + np.testing.assert_allclose(sys.evalfr(omega), resp, atol=1e-3) + + # call above nyquist frequency + if dt: + with pytest.warns(UserWarning): + np.testing.assert_allclose(sys._evalfr(omega + 2 * np.pi / dt), + resp, + atol=1e-3) + + @pytest.mark.skip("is_static_gain is introduced in gh-431") + def test_is_static_gain(self): + numstatic = 1.1 + denstatic = 1.2 + numdynamic = [1, 1] + dendynamic = [2, 1] + numstaticmimo = [[[1.1,], [1.2,]], [[1.2,], [0.8,]]] + denstaticmimo = [[[1.9,], [1.2,]], [[1.2,], [0.8,]]] + numdynamicmimo = [[[1.1, 0.9], [1.2]], [[1.2], [0.8]]] + dendynamicmimo = [[[1.1, 0.7], [0.2]], [[1.2], [0.8]]] + assert TransferFunction(numstatic, denstatic).is_static_gain() + assert TransferFunction(numstaticmimo, denstaticmimo).is_static_gain() + + assert not TransferFunction(numstatic, dendynamic).is_static_gain() + assert not TransferFunction(numdynamic, dendynamic).is_static_gain() + assert not TransferFunction(numdynamic, denstatic).is_static_gain() + assert not TransferFunction(numstatic, dendynamic).is_static_gain() + + assert not TransferFunction(numstaticmimo, + dendynamicmimo).is_static_gain() + assert not TransferFunction(numdynamicmimo, + denstaticmimo).is_static_gain() + + + @slycotonly def test_evalfr_mimo(self): - """Evaluate the frequency response of a MIMO system at one frequency.""" - + """Evaluate the frequency response of a MIMO system at a freq""" num = [[[1., 2.], [0., 3.], [2., -1.]], [[1.], [4., 0.], [1., -4., 3.]]] den = [[[-3., 2., 4.], [1., 0., 0.], [2., -1.]], @@ -451,9 +451,7 @@ def test_evalfr_mimo(self): np.testing.assert_array_almost_equal(sys(2.j), resp) def test_freqresp_siso(self): - """Evaluate the magnitude and phase of a SISO system at - multiple frequencies.""" - + """Evaluate the SISO magnitude and phase at multiple frequencies""" sys = TransferFunction([1., 3., 5], [1., 6., 2., -1]) truemag = [[[4.63507337473906, 0.707106781186548, 0.0866592803995351]]] @@ -467,11 +465,9 @@ def test_freqresp_siso(self): np.testing.assert_array_almost_equal(phase, truephase) np.testing.assert_array_almost_equal(omega, trueomega) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_freqresp_mimo(self): - """Evaluate the magnitude and phase of a MIMO system at - multiple frequencies.""" - + """Evaluate the MIMO magnitude and phase at multiple frequencies.""" num = [[[1., 2.], [0., 3.], [2., -1.]], [[1.], [4., 0.], [1., -4., 3.]]] den = [[[-3., 2., 4.], [1., 0., 0.], [2., -1.]], @@ -500,7 +496,6 @@ def test_freqresp_mimo(self): # Tests for TransferFunction.pole and TransferFunction.zero. def test_common_den(self): """ Test the helper function to compute common denomitators.""" - # _common_den() computes the common denominator per input/column. # The testing columns are: # 0: no common poles @@ -550,7 +545,6 @@ def test_common_den(self): def test_common_den_nonproper(self): """ Test _common_den with order(num)>order(den) """ - tf1 = TransferFunction( [[[1., 2., 3.]], [[1., 2.]]], [[[1., -2.]], [[1., -3.]]]) @@ -568,10 +562,9 @@ def test_common_den_nonproper(self): _, den2, _ = tf2._common_den(allow_nonproper=True) np.testing.assert_array_almost_equal(den2, common_den_ref) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_pole_mimo(self): """Test for correct MIMO poles.""" - sys = TransferFunction( [[[1.], [1.]], [[1.], [1.]]], [[[1., 2.], [1., 3.]], [[1., 4., 4.], [1., 9., 14.]]]) @@ -596,7 +589,6 @@ def test_double_cancelling_poles_siso(self): # Tests for TransferFunction.feedback def test_feedback_siso(self): """Test for correct SISO transfer function feedback.""" - sys1 = TransferFunction([-1., 4.], [1., 3., 5.]) sys2 = TransferFunction([2., 3., 0.], [1., -3., 4., 0]) @@ -608,10 +600,9 @@ def test_feedback_siso(self): np.testing.assert_array_equal(sys4.num, [[[-1., 7., -16., 16., 0.]]]) np.testing.assert_array_equal(sys4.den, [[[1., 0., 2., -8., 8., 0.]]]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_convert_to_transfer_function(self): """Test for correct state space to transfer function conversion.""" - A = [[1., -2.], [-3., 4.]] B = [[6., 5.], [4., 3.]] C = [[1., -2.], [3., -4.], [5., -6.]] @@ -628,8 +619,10 @@ def test_convert_to_transfer_function(self): for i in range(sys.outputs): for j in range(sys.inputs): - np.testing.assert_array_almost_equal(tfsys.num[i][j], num[i][j]) - np.testing.assert_array_almost_equal(tfsys.den[i][j], den[i][j]) + np.testing.assert_array_almost_equal(tfsys.num[i][j], + num[i][j]) + np.testing.assert_array_almost_equal(tfsys.den[i][j], + den[i][j]) def test_minreal(self): """Try the minreal function, and also test easy entry by creation @@ -661,7 +654,6 @@ def test_minreal_3(self): g = TransferFunction([1,1],[1,1]).minreal() np.testing.assert_array_almost_equal(1.0, g.num[0][0]) np.testing.assert_array_almost_equal(1.0, g.den[0][0]) - np.testing.assert_equal(None, g.dt) def test_minreal_4(self): """Check minreal on discrete TFs.""" @@ -673,7 +665,7 @@ def test_minreal_4(self): np.testing.assert_array_almost_equal(hm.num[0][0], hr.num[0][0]) np.testing.assert_equal(hr.dt, hm.dt) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_state_space_conversion_mimo(self): """Test conversion of a single input, two-output state-space system against the same TF""" @@ -695,8 +687,9 @@ def test_state_space_conversion_mimo(self): np.testing.assert_array_almost_equal(H.num[1][0], H2.num[1][0]) np.testing.assert_array_almost_equal(H.den[1][0], H2.den[1][0]) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_indexing(self): + """Test TF scalar indexing and slice""" tm = ss2tf(rss(5, 3, 3)) # scalar indexing @@ -715,26 +708,64 @@ def test_indexing(self): np.testing.assert_array_almost_equal(sys.num[1][1], tm.num[1][2]) np.testing.assert_array_almost_equal(sys.den[1][1], tm.den[1][2]) - def test_matrix_multiply(self): - """MIMO transfer functions should be multiplyable by constant - matrices""" - s = TransferFunction([1, 0], [1]) - b0 = 0.2 - b1 = 0.1 - b2 = 0.5 - a0 = 2.3 - a1 = 6.3 - a2 = 3.6 - a3 = 1.0 - h = (b0 + b1*s + b2*s**2)/(a0 + a1*s + a2*s**2 + a3*s**3) - H = TransferFunction([[h.num[0][0]], [(h*s).num[0][0]]], - [[h.den[0][0]], [h.den[0][0]]]) - H1 = (np.matrix([[1.0, 0]])*H).minreal() - H2 = (np.matrix([[0, 1.0]])*H).minreal() - np.testing.assert_array_almost_equal(H.num[0][0], H1.num[0][0]) - np.testing.assert_array_almost_equal(H.den[0][0], H1.den[0][0]) - np.testing.assert_array_almost_equal(H.num[1][0], H2.num[0][0]) - np.testing.assert_array_almost_equal(H.den[1][0], H2.den[0][0]) + @pytest.mark.parametrize( + "matarrayin", + [pytest.param(np.array, + id="arrayin", + marks=[nopython2, + pytest.mark.skip(".__matmul__ not implemented")]), + pytest.param(np.matrix, + id="matrixin", + marks=matrixfilter)], + indirect=True) + @pytest.mark.parametrize("X_, ij", + [([[2., 0., ]], 0), + ([[0., 2., ]], 1)]) + def test_matrix_array_multiply(self, matarrayin, X_, ij): + """Test mulitplication of MIMO TF with matrix and matmul with array""" + # 2 inputs, 2 outputs with prime zeros so they do not cancel + n = 2 + p = [3, 5, 7, 11, 13, 17, 19, 23] + H = TransferFunction( + [[np.poly(p[2 * i + j:2 * i + j + 1]) for j in range(n)] + for i in range(n)], + [[[1, -1]] * n] * n) + + X = matarrayin(X_) + + if matarrayin is np.matrix: + XH = X * H + else: + # XH = X @ H + XH = np.matmul(X, H) + XH = XH.minreal() + assert XH.inputs == n + assert XH.outputs == X.shape[0] + assert len(XH.num) == XH.outputs + assert len(XH.den) == XH.outputs + assert len(XH.num[0]) == n + assert len(XH.den[0]) == n + np.testing.assert_allclose(2. * H.num[ij][0], XH.num[0][0], rtol=1e-4) + np.testing.assert_allclose( H.den[ij][0], XH.den[0][0], rtol=1e-4) + np.testing.assert_allclose(2. * H.num[ij][1], XH.num[0][1], rtol=1e-4) + np.testing.assert_allclose( H.den[ij][1], XH.den[0][1], rtol=1e-4) + + if matarrayin is np.matrix: + HXt = H * X.T + else: + # HXt = H @ X.T + HXt = np.matmul(H, X.T) + HXt = HXt.minreal() + assert HXt.inputs == X.T.shape[1] + assert HXt.outputs == n + assert len(HXt.num) == n + assert len(HXt.den) == n + assert len(HXt.num[0]) == HXt.inputs + assert len(HXt.den[0]) == HXt.inputs + np.testing.assert_allclose(2. * H.num[0][ij], HXt.num[0][0], rtol=1e-4) + np.testing.assert_allclose( H.den[0][ij], HXt.den[0][0], rtol=1e-4) + np.testing.assert_allclose(2. * H.num[1][ij], HXt.num[1][0], rtol=1e-4) + np.testing.assert_allclose( H.den[1][ij], HXt.den[1][0], rtol=1e-4) def test_dcgain_cont(self): """Test DC gain for continuous-time transfer functions""" @@ -765,14 +796,15 @@ def test_dcgain_discr(self): # differencer sys = TransferFunction(1, [1, -1], True) - np.testing.assert_equal(sys.dcgain(), np.inf) + with pytest.warns(RuntimeWarning, match="divide by zero"): + np.testing.assert_equal(sys.dcgain(), np.inf) # summer - # causes a RuntimeWarning due to the divide by zero sys = TransferFunction([1, -1], [1], True) np.testing.assert_equal(sys.dcgain(), 0) def test_ss2tf(self): + """Test SISO ss2tf""" A = np.array([[-4, -1], [-1, -4]]) B = np.array([[1], [3]]) C = np.array([[3, 1]]) @@ -782,79 +814,90 @@ def test_ss2tf(self): np.testing.assert_almost_equal(sys.num, true_sys.num) np.testing.assert_almost_equal(sys.den, true_sys.den) - def test_class_constants(self): - # Make sure that the 's' variable is defined properly + def test_class_constants_s(self): + """Make sure that the 's' variable is defined properly""" s = TransferFunction.s G = (s + 1)/(s**2 + 2*s + 1) np.testing.assert_array_almost_equal(G.num, [[[1, 1]]]) np.testing.assert_array_almost_equal(G.den, [[[1, 2, 1]]]) - self.assertTrue(isctime(G, strict=True)) + assert isctime(G, strict=True) - # Make sure that the 'z' variable is defined properly + def test_class_constants_z(self): + """Make sure that the 'z' variable is defined properly""" z = TransferFunction.z G = (z + 1)/(z**2 + 2*z + 1) np.testing.assert_array_almost_equal(G.num, [[[1, 1]]]) np.testing.assert_array_almost_equal(G.den, [[[1, 2, 1]]]) - self.assertTrue(isdtime(G, strict=True)) + assert isdtime(G, strict=True) def test_printing(self): - # SISO, continuous time + """Print SISO""" sys = ss2tf(rss(4, 1, 1)) - self.assertTrue(isinstance(str(sys), str)) - self.assertTrue(isinstance(sys._repr_latex_(), str)) + assert isinstance(str(sys), str) + assert isinstance(sys._repr_latex_(), str) # SISO, discrete time sys = sample_system(sys, 1) - self.assertTrue(isinstance(str(sys), str)) - self.assertTrue(isinstance(sys._repr_latex_(), str)) - - def test_printing_polynomial(self): - """Cover all _tf_polynomial_to_string code branches""" - # Note: the assertions below use plain assert statements instead of - # unittest methods so that debugging with pytest is easier - - assert str(TransferFunction([0], [1])) == "\n0\n-\n1\n" - assert str(TransferFunction([1.0001], [-1.1111])) == \ - "\n 1\n------\n-1.111\n" - assert str(TransferFunction([0, 1], [0, 1.])) == "\n1\n-\n1\n" - for var, dt, dtstring in zip(["s", "z", "z"], - [None, True, 1], - ['', '', '\ndt = 1\n']): - assert str(TransferFunction([1, 0], [2, 1], dt)) == \ - "\n {var}\n-------\n2 {var} + 1\n{dtstring}".format( - var=var, dtstring=dtstring) - assert str(TransferFunction([2, 0, -1], [1, 0, 0, 1.2], dt)) == \ - "\n2 {var}^2 - 1\n---------\n{var}^3 + 1.2\n{dtstring}".format( - var=var, dtstring=dtstring) - - @unittest.skipIf(not slycot_check(), "slycot not installed") + assert isinstance(str(sys), str) + assert isinstance(sys._repr_latex_(), str) + + @pytest.mark.parametrize( + "args, output", + [(([0], [1]), "\n0\n-\n1\n"), + (([1.0001], [-1.1111]), "\n 1\n------\n-1.111\n"), + (([0, 1], [0, 1.]), "\n1\n-\n1\n"), + ]) + def test_printing_polynomial_const(self, args, output): + """Test _tf_polynomial_to_string for constant systems""" + assert str(TransferFunction(*args)) == output + + @pytest.mark.parametrize( + "args, outputfmt", + [(([1, 0], [2, 1]), + "\n {var}\n-------\n2 {var} + 1\n{dtstring}"), + (([2, 0, -1], [1, 0, 0, 1.2]), + "\n2 {var}^2 - 1\n---------\n{var}^3 + 1.2\n{dtstring}")]) + @pytest.mark.parametrize("var, dt, dtstring", + [("s", None, ''), + ("z", True, ''), + ("z", 1, '\ndt = 1\n')]) + def test_printing_polynomial(self, args, outputfmt, var, dt, dtstring): + """Test _tf_polynomial_to_string for all other code branches""" + assert str(TransferFunction(*(args + (dt,)))) == \ + outputfmt.format(var=var, dtstring=dtstring) + + @slycotonly def test_printing_mimo(self): - # MIMO, continuous time + """Print MIMO, continuous time""" sys = ss2tf(rss(4, 2, 3)) - self.assertTrue(isinstance(str(sys), str)) - self.assertTrue(isinstance(sys._repr_latex_(), str)) + assert isinstance(str(sys), str) + assert isinstance(sys._repr_latex_(), str) - @unittest.skipIf(not slycot_check(), "slycot not installed") + @slycotonly def test_size_mismatch(self): + """Test size mismacht""" sys1 = ss2tf(rss(2, 2, 2)) # Different number of inputs sys2 = ss2tf(rss(3, 1, 2)) - self.assertRaises(ValueError, TransferFunction.__add__, sys1, sys2) + with pytest.raises(ValueError): + TransferFunction.__add__(sys1, sys2) # Different number of outputs sys2 = ss2tf(rss(3, 2, 1)) - self.assertRaises(ValueError, TransferFunction.__add__, sys1, sys2) + with pytest.raises(ValueError): + TransferFunction.__add__(sys1, sys2) # Inputs and outputs don't match - self.assertRaises(ValueError, TransferFunction.__mul__, sys2, sys1) + with pytest.raises(ValueError): + TransferFunction.__mul__(sys2, sys1) # Feedback mismatch (MIMO not implemented) - self.assertRaises(NotImplementedError, - TransferFunction.feedback, sys2, sys1) + with pytest.raises(NotImplementedError): + TransferFunction.feedback(sys2, sys1) def test_latex_repr(self): - """ Test latex printout for TransferFunction """ + """Test latex printout for TransferFunction""" Hc = TransferFunction([1e-5, 2e5, 3e-4], [1.2e34, 2.3e-4, 2.3e-45]) Hd = TransferFunction([1e-5, 2e5, 3e-4], @@ -873,67 +916,44 @@ def test_latex_repr(self): r'+ 0.00023 ' + var + ' ' r'+ 2.3 ' + expmul + ' 10^{-45}' r'}' + suffix + '$$') - self.assertEqual(H._repr_latex_(), ref) - - def test_repr(self): + assert H._repr_latex_() == ref + + @pytest.mark.parametrize( + "Hargs, ref", + [(([-1., 4.], [1., 3., 5.]), + "TransferFunction(array([-1., 4.]), array([1., 3., 5.]))"), + (([2., 3., 0.], [1., -3., 4., 0], 2.0), + "TransferFunction(array([2., 3., 0.])," + " array([ 1., -3., 4., 0.]), 2.0)"), + + (([[[0, 1], [2, 3]], [[4, 5], [6, 7]]], + [[[6, 7], [4, 5]], [[2, 3], [0, 1]]]), + "TransferFunction([[array([1]), array([2, 3])]," + " [array([4, 5]), array([6, 7])]]," + " [[array([6, 7]), array([4, 5])]," + " [array([2, 3]), array([1])]])"), + (([[[0, 1], [2, 3]], [[4, 5], [6, 7]]], + [[[6, 7], [4, 5]], [[2, 3], [0, 1]]], + 0.5), + "TransferFunction([[array([1]), array([2, 3])]," + " [array([4, 5]), array([6, 7])]]," + " [[array([6, 7]), array([4, 5])]," + " [array([2, 3]), array([1])]], 0.5)") + ]) + def test_repr(self, Hargs, ref): """Test __repr__ printout.""" - Hc = TransferFunction([-1., 4.], [1., 3., 5.]) - Hd = TransferFunction([2., 3., 0.], [1., -3., 4., 0], 2.0) - Hcm = TransferFunction( - [ [[0, 1], [2, 3]], [[4, 5], [6, 7]] ], - [ [[6, 7], [4, 5]], [[2, 3], [0, 1]] ]) - Hdm = TransferFunction( - [ [[0, 1], [2, 3]], [[4, 5], [6, 7]] ], - [ [[6, 7], [4, 5]], [[2, 3], [0, 1]] ], 0.5) - - refs = [ - "TransferFunction(array([-1., 4.]), array([1., 3., 5.]))", - "TransferFunction(array([2., 3., 0.])," - " array([ 1., -3., 4., 0.]), 2.0)", - "TransferFunction([[array([1]), array([2, 3])]," - " [array([4, 5]), array([6, 7])]]," - " [[array([6, 7]), array([4, 5])]," - " [array([2, 3]), array([1])]])", - "TransferFunction([[array([1]), array([2, 3])]," - " [array([4, 5]), array([6, 7])]]," - " [[array([6, 7]), array([4, 5])]," - " [array([2, 3]), array([1])]], 0.5)" ] - self.assertEqual(repr(Hc), refs[0]) - self.assertEqual(repr(Hd), refs[1]) - self.assertEqual(repr(Hcm), refs[2]) - self.assertEqual(repr(Hdm), refs[3]) + H = TransferFunction(*Hargs) + + assert repr(H) == ref # and reading back - array = np.array - for H in (Hc, Hd, Hcm, Hdm): - H2 = eval(H.__repr__()) - for p in range(len(H.num)): - for m in range(len(H.num[0])): - np.testing.assert_array_almost_equal( - H.num[p][m], H2.num[p][m]) - np.testing.assert_array_almost_equal( - H.den[p][m], H2.den[p][m]) - self.assertEqual(H.dt, H2.dt) - - def test_sample_system_prewarping(self): - """test that prewarping works when converting from cont to discrete time system""" - A = np.array([ - [ 0.00000000e+00, 1.00000000e+00, 0.00000000e+00, 0.00000000e+00], - [-3.81097561e+01, -1.12500000e+00, 0.00000000e+00, 0.00000000e+00], - [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 1.00000000e+00], - [ 0.00000000e+00, 0.00000000e+00, -1.66356135e+04, -1.34748470e+01]]) - B = np.array([ - [ 0. ], [ 38.1097561 ],[ 0. ],[16635.61352143]]) - C = np.array([[0.90909091, 0. , 0.09090909, 0. ],]) - wwarp = 50 - Ts = 0.025 - plant = StateSpace(A,B,C,0) - plant = ss2tf(plant) - plant_d_warped = plant.sample(Ts, 'bilinear', prewarp_frequency=wwarp) - np.testing.assert_array_almost_equal( - evalfr(plant, wwarp*1j), - evalfr(plant_d_warped, np.exp(wwarp*1j*Ts)), - decimal=4) + array = np.array # noqa + H2 = eval(H.__repr__()) + for p in range(len(H.num)): + for m in range(len(H.num[0])): + np.testing.assert_array_almost_equal(H.num[p][m], H2.num[p][m]) + np.testing.assert_array_almost_equal(H.den[p][m], H2.den[p][m]) + assert H.dt == H2.dt class TestLTIConverter: @@ -973,7 +993,3 @@ def test_returnScipySignalLTI_error(self, mimotf): mimotf.returnScipySignalLTI() with pytest.raises(ValueError): mimotf.returnScipySignalLTI(strict=True) - - -if __name__ == "__main__": - unittest.main() diff --git a/setup.cfg b/setup.cfg index ac4f92c75..38ca3b912 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,5 +4,4 @@ universal=1 [tool:pytest] filterwarnings = ignore:.*matrix subclass:PendingDeprecationWarning - ignore:.*scipy:DeprecationWarning diff --git a/setup.py b/setup.py index ec16d7135..fcf2d740b 100644 --- a/setup.py +++ b/setup.py @@ -19,10 +19,10 @@ Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 -Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 +Programming Language :: Python :: 3.9 Topic :: Software Development Topic :: Scientific/Engineering Operating System :: Microsoft :: Windows From ec42737aabc0faca517e609fa4c637224ce918ff Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 30 Dec 2020 22:08:28 +0100 Subject: [PATCH 032/260] deprecate np.matrix usage (#486) * deprecate np.matrix usage * print pytest summary for all except passing --- control/config.py | 10 +++++----- setup.cfg | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/control/config.py b/control/config.py index ad9ffb235..800fe7f26 100644 --- a/control/config.py +++ b/control/config.py @@ -144,7 +144,7 @@ def use_numpy_matrix(flag=True, warn=True): Parameters ---------- flag : bool - If flag is `True` (default), use the Numpy (soon to be deprecated) + If flag is `True` (default), use the deprecated Numpy `matrix` class to represent matrices in the `~control.StateSpace` class and functions. If flat is `False`, then matrices are represented by a 2D `ndarray` object. @@ -161,8 +161,8 @@ class and functions. If flat is `False`, then matrices are space operations is a 2D array. """ if flag and warn: - warnings.warn("Return type numpy.matrix is soon to be deprecated.", - stacklevel=2) + warnings.warn("Return type numpy.matrix is deprecated.", + stacklevel=2, category=DeprecationWarning) set_defaults('statesp', use_numpy_matrix=flag) def use_legacy_defaults(version): @@ -171,7 +171,7 @@ def use_legacy_defaults(version): Parameters ---------- version : string - Version number of the defaults desired. Ranges from '0.1' to '0.8.4'. + Version number of the defaults desired. Ranges from '0.1' to '0.8.4'. """ import re (major, minor, patch) = (None, None, None) # default values @@ -189,7 +189,7 @@ def use_legacy_defaults(version): match = re.match("[vV]?0.([3-6])([a-d])", version) if match: (major, minor, patch) = \ (0, int(match.group(1)), ord(match.group(2)) - ord('a') + 1) - + # Abbreviated version format: vM.N or M.N match = re.match("([vV]?[0-9]).([0-9])", version) if match: (major, minor, patch) = \ diff --git a/setup.cfg b/setup.cfg index 38ca3b912..227b2b97d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,6 +2,5 @@ universal=1 [tool:pytest] -filterwarnings = - ignore:.*matrix subclass:PendingDeprecationWarning +addopts = -ra From d66f4e4ed1924255cb2b1153593e1ce3f32234ae Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 30 Dec 2020 13:29:39 -0800 Subject: [PATCH 033/260] reduce Python 3 testing to speed up CI (#487) --- .travis.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3e700c485..8d8c76262 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,10 +12,9 @@ cache: - $HOME/.cache/pip - $HOME/.local +# Test against earliest supported (Python 3) release and latest stable release python: - "3.9" - - "3.8" - - "3.7" - "3.6" env: @@ -25,9 +24,6 @@ env: # Add optional builds that test against latest version of slycot, python jobs: include: - - name: "Python 3.8, slycot=source" - python: "3.8" - env: SCIPY=scipy SLYCOT=source - name: "Python 3.9, slycot=source, array and matrix" python: "3.9" env: SCIPY=scipy SLYCOT=source PYTHON_CONTROL_ARRAY_AND_MATRIX=1 From abf1565a8d18baefe47290f4e0cb9f246c8c94ef Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 31 Dec 2020 00:25:23 +0100 Subject: [PATCH 034/260] Fix loading of defaults during pytest fixture setup Also make matarrayout and matarrayin function scoped fixtures so that they can set the warnings filters individually as needed for each test. --- control/tests/config_test.py | 2 +- control/tests/conftest.py | 21 ++++++++++++++++++--- control/tests/statesp_test.py | 16 +++++++++++++++- 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/control/tests/config_test.py b/control/tests/config_test.py index 3979ffca5..3b2a11f12 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -37,7 +37,7 @@ def test_get_param(self): assert ct.config._get_param('config', 'test1', None) == 1 assert ct.config._get_param('config', 'test1', None, 1) == 1 - ct.config.defaults['config.test3'] is None + ct.config.defaults['config.test3'] = None assert ct.config._get_param('config', 'test3') is None assert ct.config._get_param('config', 'test3', 1) == 1 assert ct.config._get_param('config', 'test3', None, 1) is None diff --git a/control/tests/conftest.py b/control/tests/conftest.py index 7204c8f14..b67ef3674 100644 --- a/control/tests/conftest.py +++ b/control/tests/conftest.py @@ -28,7 +28,22 @@ "PendingDeprecationWarning") -@pytest.fixture(scope="session", autouse=TEST_MATRIX_AND_ARRAY, +@pytest.fixture(scope="session", autouse=True) +def control_defaults(): + """Make sure the testing session always starts with the defaults. + + This should be the first fixture initialized, + so that all other fixtures see the general defaults (unless they set them + themselves) even before importing control/__init__. Enforce this by adding + it as an argument to all other session scoped fixtures. + """ + control.reset_defaults() + the_defaults = control.config.defaults.copy() + yield + # assert that nothing changed it without reverting + assert control.config.defaults == the_defaults + +@pytest.fixture(scope="function", autouse=TEST_MATRIX_AND_ARRAY, params=[pytest.param("arrayout", marks=matrixerrorfilter), pytest.param("matrixout", marks=matrixfilter)]) def matarrayout(request): @@ -70,7 +85,7 @@ def check_deprecated_matrix(): yield -@pytest.fixture(scope="session", +@pytest.fixture(scope="function", params=[p for p, usebydefault in [(pytest.param(np.array, id="arrayin"), @@ -90,7 +105,7 @@ def editsdefaults(): """Make sure any changes to the defaults only last during a test""" restore = control.config.defaults.copy() yield - control.config.defaults.update(restore) + control.config.defaults = restore.copy() @pytest.fixture(scope="function") diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index c7b0a0aaf..23ccab555 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -16,7 +16,7 @@ from control.dtime import sample_system from control.lti import evalfr from control.statesp import (StateSpace, _convertToStateSpace, drss, rss, ss, - tf2ss) + tf2ss, _statesp_defaults) from control.tests.conftest import ismatarrayout, slycotonly from control.xferfcn import TransferFunction, ss2tf @@ -826,3 +826,17 @@ def test_returnScipySignalLTI_error(self, mimoss): with pytest.raises(ValueError): mimoss.returnScipySignalLTI(strict=True) + +class TestStateSpaceConfig: + """Test the configuration of the StateSpace module""" + + @pytest.fixture + def matarrayout(self): + """Override autoused global fixture within this class""" + pass + + def test_statespace_defaults(self, matarrayout): + """Make sure the tests are run with the configured defaults""" + for k, v in _statesp_defaults.items(): + assert defaults[k] == v, \ + "{} is {} but expected {}".format(k, defaults[k], v) From 578cfa667d80f1c4ec0373d7ac97b80dc631c3e0 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 31 Dec 2020 00:34:13 +0100 Subject: [PATCH 035/260] Revert "make tests work with pre #431 source code state" from #438 This reverts commit 2b98769c9e51ca45291b39c6e5fa53f27a6357d9. --- control/tests/config_test.py | 1 - control/tests/discrete_test.py | 75 +++++++++++++++++++++--------- control/tests/iosys_test.py | 30 ++++++------ control/tests/lti_test.py | 83 +++++++++++++++++++++++++++++++++- control/tests/statesp_test.py | 34 ++++++++++++-- control/tests/xferfcn_test.py | 1 - 6 files changed, 181 insertions(+), 43 deletions(-) diff --git a/control/tests/config_test.py b/control/tests/config_test.py index 3979ffca5..ede683fe1 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -244,7 +244,6 @@ def test_change_default_dt(self, dt): # lambda t, x, u: x, inputs=1, outputs=1) # assert nlsys.dt == dt - @pytest.mark.skip("implemented in gh-431") def test_change_default_dt_static(self): """Test that static gain systems always have dt=None""" ct.set_defaults('control', default_dt=0) diff --git a/control/tests/discrete_test.py b/control/tests/discrete_test.py index 7aee216d4..ffdd1aeb4 100644 --- a/control/tests/discrete_test.py +++ b/control/tests/discrete_test.py @@ -6,9 +6,10 @@ import numpy as np import pytest -from control import StateSpace, TransferFunction, feedback, step_response, \ - isdtime, timebase, isctime, sample_system, bode, impulse_response, \ - evalfr, timebaseEqual, forced_response, rss +from control import (StateSpace, TransferFunction, bode, common_timebase, + evalfr, feedback, forced_response, impulse_response, + isctime, isdtime, rss, sample_system, step_response, + timebase) class TestDiscrete: @@ -51,13 +52,21 @@ class Tsys: return T - def testTimebaseEqual(self, tsys): - """Test for equal timebases and not so equal ones""" - assert timebaseEqual(tsys.siso_ss1, tsys.siso_tf1) - assert timebaseEqual(tsys.siso_ss1, tsys.siso_ss1c) - assert not timebaseEqual(tsys.siso_ss1d, tsys.siso_ss1c) - assert not timebaseEqual(tsys.siso_ss1d, tsys.siso_ss2d) - assert not timebaseEqual(tsys.siso_ss1d, tsys.siso_ss3d) + def testCompatibleTimebases(self, tsys): + """test that compatible timebases don't throw errors and vice versa""" + common_timebase(tsys.siso_ss1.dt, tsys.siso_tf1.dt) + common_timebase(tsys.siso_ss1.dt, tsys.siso_ss1c.dt) + common_timebase(tsys.siso_ss1d.dt, tsys.siso_ss1.dt) + common_timebase(tsys.siso_ss1.dt, tsys.siso_ss1d.dt) + common_timebase(tsys.siso_ss1.dt, tsys.siso_ss1d.dt) + common_timebase(tsys.siso_ss1d.dt, tsys.siso_ss3d.dt) + common_timebase(tsys.siso_ss3d.dt, tsys.siso_ss1d.dt) + with pytest.raises(ValueError): + # cont + discrete + common_timebase(tsys.siso_ss1d.dt, tsys.siso_ss1c.dt) + with pytest.raises(ValueError): + # incompatible discrete + common_timebase(tsys.siso_ss1d.dt, tsys.siso_ss2d.dt) def testSystemInitialization(self, tsys): # Check to make sure systems are discrete time with proper variables @@ -75,6 +84,18 @@ def testSystemInitialization(self, tsys): assert tsys.siso_tf2d.dt == 0.2 assert tsys.siso_tf3d.dt is True + # keyword argument check + # dynamic systems + assert TransferFunction(1, [1, 1], dt=0.1).dt == 0.1 + assert TransferFunction(1, [1, 1], 0.1).dt == 0.1 + assert StateSpace(1,1,1,1, dt=0.1).dt == 0.1 + assert StateSpace(1,1,1,1, 0.1).dt == 0.1 + # static gain system, dt argument should still override default dt + assert TransferFunction(1, [1,], dt=0.1).dt == 0.1 + assert TransferFunction(1, [1,], 0.1).dt == 0.1 + assert StateSpace(0,0,1,1, dt=0.1).dt == 0.1 + assert StateSpace(0,0,1,1, 0.1).dt == 0.1 + def testCopyConstructor(self, tsys): for sys in (tsys.siso_ss1, tsys.siso_ss1c, tsys.siso_ss1d): newsys = StateSpace(sys) @@ -114,6 +135,7 @@ def test_timebase_conversions(self, tsys): assert timebase(tf1*tf2) == timebase(tf2) assert timebase(tf1*tf3) == timebase(tf3) assert timebase(tf1*tf4) == timebase(tf4) + assert timebase(tf3*tf4) == timebase(tf4) assert timebase(tf2*tf1) == timebase(tf2) assert timebase(tf3*tf1) == timebase(tf3) assert timebase(tf4*tf1) == timebase(tf4) @@ -128,33 +150,36 @@ def test_timebase_conversions(self, tsys): # Make sure discrete time without sampling is converted correctly assert timebase(tf3*tf3) == timebase(tf3) + assert timebase(tf3*tf4) == timebase(tf4) assert timebase(tf3+tf3) == timebase(tf3) + assert timebase(tf3+tf4) == timebase(tf4) assert timebase(feedback(tf3, tf3)) == timebase(tf3) + assert timebase(feedback(tf3, tf4)) == timebase(tf4) # Make sure all other combinations are errors - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): tf2 * tf3 - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): tf3 * tf2 - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): tf2 * tf4 - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): tf4 * tf2 - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): tf2 + tf3 - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): tf3 + tf2 - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): tf2 + tf4 - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): tf4 + tf2 - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): feedback(tf2, tf3) - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): feedback(tf3, tf2) - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): feedback(tf2, tf4) - with pytest.raises(ValueError, match="different sampling times"): + with pytest.raises(ValueError, match="incompatible timebases"): feedback(tf4, tf2) def testisdtime(self, tsys): @@ -212,6 +237,7 @@ def testAddition(self, tsys): sys = tsys.siso_ss1c + tsys.siso_ss1c sys = tsys.siso_ss1d + tsys.siso_ss1d sys = tsys.siso_ss3d + tsys.siso_ss3d + sys = tsys.siso_ss1d + tsys.siso_ss3d with pytest.raises(ValueError): StateSpace.__add__(tsys.mimo_ss1c, tsys.mimo_ss1d) @@ -228,6 +254,7 @@ def testAddition(self, tsys): sys = tsys.siso_tf1c + tsys.siso_tf1c sys = tsys.siso_tf1d + tsys.siso_tf1d sys = tsys.siso_tf2d + tsys.siso_tf2d + sys = tsys.siso_tf1d + tsys.siso_tf3d with pytest.raises(ValueError): TransferFunction.__add__(tsys.siso_tf1c, tsys.siso_tf1d) @@ -252,6 +279,7 @@ def testMultiplication(self, tsys): sys = tsys.siso_ss1d * tsys.siso_ss1 sys = tsys.siso_ss1c * tsys.siso_ss1c sys = tsys.siso_ss1d * tsys.siso_ss1d + sys = tsys.siso_ss1d * tsys.siso_ss3d with pytest.raises(ValueError): StateSpace.__mul__(tsys.mimo_ss1c, tsys.mimo_ss1d) @@ -267,6 +295,7 @@ def testMultiplication(self, tsys): sys = tsys.siso_tf1d * tsys.siso_tf1 sys = tsys.siso_tf1c * tsys.siso_tf1c sys = tsys.siso_tf1d * tsys.siso_tf1d + sys = tsys.siso_tf1d * tsys.siso_tf3d with pytest.raises(ValueError): TransferFunction.__mul__(tsys.siso_tf1c, tsys.siso_tf1d) @@ -293,6 +322,7 @@ def testFeedback(self, tsys): sys = feedback(tsys.siso_ss1d, tsys.siso_ss1) sys = feedback(tsys.siso_ss1c, tsys.siso_ss1c) sys = feedback(tsys.siso_ss1d, tsys.siso_ss1d) + sys = feedback(tsys.siso_ss1d, tsys.siso_ss3d) with pytest.raises(ValueError): feedback(tsys.mimo_ss1c, tsys.mimo_ss1d) @@ -308,6 +338,7 @@ def testFeedback(self, tsys): sys = feedback(tsys.siso_tf1d, tsys.siso_tf1) sys = feedback(tsys.siso_tf1c, tsys.siso_tf1c) sys = feedback(tsys.siso_tf1d, tsys.siso_tf1d) + sys = feedback(tsys.siso_tf1d, tsys.siso_tf3d) with pytest.raises(ValueError): feedback(tsys.siso_tf1c, tsys.siso_tf1d) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 740416507..2bb6f066c 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -29,17 +29,17 @@ class TSys: """Return some test systems""" # Create a single input/single output linear system T.siso_linsys = ct.StateSpace( - [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[0]], 0) + [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[0]]) # Create a multi input/multi output linear system T.mimo_linsys1 = ct.StateSpace( [[-1, 1], [0, -2]], [[1, 0], [0, 1]], - [[1, 0], [0, 1]], np.zeros((2, 2)), 0) + [[1, 0], [0, 1]], np.zeros((2, 2))) # Create a multi input/multi output linear system T.mimo_linsys2 = ct.StateSpace( [[-1, 1], [0, -2]], [[0, 1], [1, 0]], - [[1, 0], [0, 1]], np.zeros((2, 2)), 0) + [[1, 0], [0, 1]], np.zeros((2, 2))) # Create simulation parameters T.T = np.linspace(0, 10, 100) @@ -281,7 +281,7 @@ def test_algebraic_loop(self, tsys): linsys = tsys.siso_linsys lnios = ios.LinearIOSystem(linsys) nlios = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u*u, inputs=1, outputs=1, dt=0) + lambda t, x, u, params: u*u, inputs=1, outputs=1) nlios1 = nlios.copy() nlios2 = nlios.copy() @@ -310,7 +310,7 @@ def test_algebraic_loop(self, tsys): iosys = ios.InterconnectedSystem( (lnios, nlios), # linear system w/ nonlinear feedback ((1,), # feedback interconnection (sig to 0) - (0, (1, 0, -1))), + (0, (1, 0, -1))), 0, # input to linear system 0 # output from linear system ) @@ -331,7 +331,7 @@ def test_algebraic_loop(self, tsys): # Algebraic loop due to feedthrough term linsys = ct.StateSpace( - [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[1]], 0) + [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[1]]) lnios = ios.LinearIOSystem(linsys) iosys = ios.InterconnectedSystem( (nlios, lnios), # linear system w/ nonlinear feedback @@ -374,7 +374,7 @@ def test_rmul(self, tsys): # Also creates a nested interconnected system ioslin = ios.LinearIOSystem(tsys.siso_linsys) nlios = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u*u, inputs=1, outputs=1, dt=0) + lambda t, x, u, params: u*u, inputs=1, outputs=1) sys1 = nlios * ioslin sys2 = ios.InputOutputSystem.__rmul__(nlios, sys1) @@ -414,7 +414,7 @@ def test_feedback(self, tsys): # Linear system with constant feedback (via "nonlinear" mapping) ioslin = ios.LinearIOSystem(tsys.siso_linsys) nlios = ios.NonlinearIOSystem(None, \ - lambda t, x, u, params: u, inputs=1, outputs=1, dt=0) + lambda t, x, u, params: u, inputs=1, outputs=1) iosys = ct.feedback(ioslin, nlios) linsys = ct.feedback(tsys.siso_linsys, 1) @@ -740,7 +740,7 @@ def test_named_signals(self, tsys): inputs = ('u[0]', 'u[1]'), outputs = ('y[0]', 'y[1]'), states = tsys.mimo_linsys1.states, - name = 'sys1', dt=0) + name = 'sys1') sys2 = ios.LinearIOSystem(tsys.mimo_linsys2, inputs = ('u[0]', 'u[1]'), outputs = ('y[0]', 'y[1]'), @@ -1015,7 +1015,7 @@ def test_duplicates(self, tsys): nlios = ios.NonlinearIOSystem(lambda t, x, u, params: x, lambda t, x, u, params: u * u, inputs=1, outputs=1, states=1, - name="sys", dt=0) + name="sys") # Duplicate objects with pytest.warns(UserWarning, match="Duplicate object"): @@ -1024,7 +1024,7 @@ def test_duplicates(self, tsys): # Nonduplicate objects nlios1 = nlios.copy() nlios2 = nlios.copy() - with pytest.warns(UserWarning, match="Duplicate name"): + with pytest.warns(UserWarning, match="copy of sys") as record: ios_series = nlios1 * nlios2 assert "copy of sys_1.x[0]" in ios_series.state_index.keys() assert "copy of sys.x[0]" in ios_series.state_index.keys() @@ -1033,10 +1033,10 @@ def test_duplicates(self, tsys): iosys_siso = ct.LinearIOSystem(tsys.siso_linsys) nlios1 = ios.NonlinearIOSystem(None, lambda t, x, u, params: u * u, - inputs=1, outputs=1, name="sys", dt=0) + inputs=1, outputs=1, name="sys") nlios2 = ios.NonlinearIOSystem(None, lambda t, x, u, params: u * u, - inputs=1, outputs=1, name="sys", dt=0) + inputs=1, outputs=1, name="sys") with pytest.warns(UserWarning, match="Duplicate name"): ct.InterconnectedSystem((nlios1, iosys_siso, nlios2), @@ -1045,10 +1045,10 @@ def test_duplicates(self, tsys): # Same system, different names => everything should be OK nlios1 = ios.NonlinearIOSystem(None, lambda t, x, u, params: u * u, - inputs=1, outputs=1, name="nlios1", dt=0) + inputs=1, outputs=1, name="nlios1") nlios2 = ios.NonlinearIOSystem(None, lambda t, x, u, params: u * u, - inputs=1, outputs=1, name="nlios2", dt=0) + inputs=1, outputs=1, name="nlios2") with pytest.warns(None) as record: ct.InterconnectedSystem((nlios1, iosys_siso, nlios2), inputs=0, outputs=0, states=0) diff --git a/control/tests/lti_test.py b/control/tests/lti_test.py index 762e1435a..ee9d95a09 100644 --- a/control/tests/lti_test.py +++ b/control/tests/lti_test.py @@ -4,7 +4,7 @@ import pytest from control import c2d, tf, tf2ss, NonlinearIOSystem -from control.lti import (LTI, damp, dcgain, isctime, isdtime, +from control.lti import (LTI, common_timebase, damp, dcgain, isctime, isdtime, issiso, pole, timebaseEqual, zero) from control.tests.conftest import slycotonly @@ -72,3 +72,84 @@ def test_dcgain(self): sys = tf(84, [1, 2]) np.testing.assert_equal(sys.dcgain(), 42) np.testing.assert_equal(dcgain(sys), 42) + + @pytest.mark.parametrize("dt1, dt2, expected", + [(None, None, True), + (None, 0, True), + (None, 1, True), + pytest.param(None, True, True, + marks=pytest.mark.xfail( + reason="returns false")), + (0, 0, True), + (0, 1, False), + (0, True, False), + (1, 1, True), + (1, 2, False), + (1, True, False), + (True, True, True)]) + def test_timebaseEqual_deprecated(self, dt1, dt2, expected): + """Test that timbaseEqual throws a warning and returns as documented""" + sys1 = tf([1], [1, 2, 3], dt1) + sys2 = tf([1], [1, 4, 5], dt2) + + print(sys1.dt) + print(sys2.dt) + + with pytest.deprecated_call(): + assert timebaseEqual(sys1, sys2) is expected + # Make sure behaviour is symmetric + with pytest.deprecated_call(): + assert timebaseEqual(sys2, sys1) is expected + + @pytest.mark.parametrize("dt1, dt2, expected", + [(None, None, None), + (None, 0, 0), + (None, 1, 1), + (None, True, True), + (True, True, True), + (True, 1, 1), + (1, 1, 1), + (0, 0, 0), + ]) + @pytest.mark.parametrize("sys1", [True, False]) + @pytest.mark.parametrize("sys2", [True, False]) + def test_common_timebase(self, dt1, dt2, expected, sys1, sys2): + """Test that common_timbase adheres to :ref:`conventions-ref`""" + i1 = tf([1], [1, 2, 3], dt1) if sys1 else dt1 + i2 = tf([1], [1, 4, 5], dt2) if sys2 else dt2 + assert common_timebase(i1, i2) == expected + # Make sure behaviour is symmetric + assert common_timebase(i2, i1) == expected + + @pytest.mark.parametrize("i1, i2", + [(True, 0), + (0, 1), + (1, 2)]) + def test_common_timebase_errors(self, i1, i2): + """Test that common_timbase throws errors on invalid combinations""" + with pytest.raises(ValueError): + common_timebase(i1, i2) + # Make sure behaviour is symmetric + with pytest.raises(ValueError): + common_timebase(i2, i1) + + @pytest.mark.parametrize("dt, ref, strictref", + [(None, True, False), + (0, False, False), + (1, True, True), + (True, True, True)]) + @pytest.mark.parametrize("objfun, arg", + [(LTI, ()), + (NonlinearIOSystem, (lambda x: x, ))]) + def test_isdtime(self, objfun, arg, dt, ref, strictref): + """Test isdtime and isctime functions to follow convention""" + obj = objfun(*arg, dt=dt) + + assert isdtime(obj) == ref + assert isdtime(obj, strict=True) == strictref + + if dt is not None: + ref = not ref + strictref = not strictref + assert isctime(obj) == ref + assert isctime(obj, strict=True) == strictref diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index c7b0a0aaf..9dbb6da94 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -80,13 +80,16 @@ def sys623(self): @pytest.mark.parametrize( "dt", - [(None, ), (0, ), (1, ), (0.1, ), (True, )], + [(), (None, ), (0, ), (1, ), (0.1, ), (True, )], ids=lambda i: "dt " + ("unspec" if len(i) == 0 else str(i[0]))) @pytest.mark.parametrize( "argfun", [pytest.param( lambda ABCDdt: (ABCDdt, {}), id="A, B, C, D[, dt]"), + pytest.param( + lambda ABCDdt: (ABCDdt[:4], {'dt': dt_ for dt_ in ABCDdt[4:]}), + id="A, B, C, D[, dt=dt]"), pytest.param( lambda ABCDdt: ((StateSpace(*ABCDdt), ), {}), id="sys") @@ -106,7 +109,7 @@ def test_constructor(self, sys322ABCD, dt, argfun): @pytest.mark.parametrize("args, exc, errmsg", [((True, ), TypeError, "(can only take in|sys must be) a StateSpace"), - ((1, 2), ValueError, "1 or 4 arguments"), + ((1, 2), ValueError, "1, 4, or 5 arguments"), ((np.ones((3, 2)), np.ones((3, 2)), np.ones((2, 2)), np.ones((2, 2))), ValueError, "A must be square"), @@ -130,6 +133,16 @@ def test_constructor_invalid(self, args, exc, errmsg): with pytest.raises(exc, match=errmsg): ss(*args) + def test_constructor_warns(self, sys322ABCD): + """Test ambiguos input to StateSpace() constructor""" + with pytest.warns(UserWarning, match="received multiple dt"): + sys = StateSpace(*(sys322ABCD + (0.1, )), dt=0.2) + np.testing.assert_almost_equal(sys.A, sys322ABCD[0]) + np.testing.assert_almost_equal(sys.B, sys322ABCD[1]) + np.testing.assert_almost_equal(sys.C, sys322ABCD[2]) + np.testing.assert_almost_equal(sys.D, sys322ABCD[3]) + assert sys.dt == 0.1 + def test_copy_constructor(self): """Test the copy constructor""" # Create a set of matrices for a simple linear system @@ -151,6 +164,22 @@ def test_copy_constructor(self): linsys.A[0, 0] = -3 np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value + def test_copy_constructor_nodt(self, sys322): + """Test the copy constructor when an object without dt is passed + + FIXME: may be obsolete in case gh-431 is updated + """ + sysin = sample_system(sys322, 1.) + del sysin.dt + sys = StateSpace(sysin) + assert sys.dt == defaults['control.default_dt'] + + # test for static gain + sysin = StateSpace([], [], [], [[1, 2], [3, 4]], 1.) + del sysin.dt + sys = StateSpace(sysin) + assert sys.dt is None + def test_matlab_style_constructor(self): """Use (deprecated) matrix-style construction string""" with pytest.deprecated_call(): @@ -353,7 +382,6 @@ def test_freq_resp(self): np.testing.assert_almost_equal(phase, true_phase) np.testing.assert_equal(omega, true_omega) - @pytest.mark.skip("is_static_gain is introduced in gh-431") def test_is_static_gain(self): A0 = np.zeros((2,2)) A1 = A0.copy() diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 62c4bfb23..b0673de1e 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -409,7 +409,6 @@ def test_evalfr_siso(self, dt, omega, resp): resp, atol=1e-3) - @pytest.mark.skip("is_static_gain is introduced in gh-431") def test_is_static_gain(self): numstatic = 1.1 denstatic = 1.2 From 86401d66e0f3b42e0c88f4544f23556280d0dab5 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 16 Jul 2020 21:01:58 -0700 Subject: [PATCH 036/260] set default dt to be 0 instead of None. --- control/statesp.py | 6 +++--- control/xferfcn.py | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index d23fbd7be..acefe3e1e 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -72,9 +72,9 @@ # Define module default parameter values _statesp_defaults = { 'statesp.use_numpy_matrix': False, # False is default in 0.9.0 and above - 'statesp.default_dt': None, + 'statesp.default_dt': 0, 'statesp.remove_useless_states': True, - } +} def _ssmatrix(data, axis=1): @@ -974,7 +974,7 @@ def dcgain(self): return np.squeeze(gain) def is_static_gain(self): - """True if and only if the system has no dynamics, that is, + """True if and only if the system has no dynamics, that is, if A and B are zero. """ return not np.any(self.A) and not np.any(self.B) diff --git a/control/xferfcn.py b/control/xferfcn.py index 4077080e3..0c5e1fdcb 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -71,7 +71,7 @@ # Define module default parameter values _xferfcn_defaults = { - 'xferfcn.default_dt': None} + 'xferfcn.default_dt': 0} class TransferFunction(LTI): @@ -1597,6 +1597,20 @@ def _clean_part(data): return data +def _isstaticgain(num, den): + """returns true if and only if all of the numerator and denominator + polynomials of the (possibly MIMO) transfer funnction are zeroth order, + that is, if the system has no dynamics. """ + num, den = _clean_part(num), _clean_part(den) + for m in range(len(num)): + for n in range(len(num[m])): + if len(num[m][n]) > 1: + return False + for m in range(len(den)): + for n in range(len(den[m])): + if len(den[m][n]) > 1: + return False + return True # Define constants to represent differentiation, unit delay TransferFunction.s = TransferFunction([1, 0], [1], 0) From 1ed9ee272d631206ea762b4ac5dc33dad32800cd Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 17 Jul 2020 15:40:45 -0700 Subject: [PATCH 037/260] changes so that a default dt=0 passes unit tests. fixed code everywhere that combines systems with different timebases --- control/config.py | 10 ++++- control/iosys.py | 31 ++++++------- control/lti.py | 71 +++++++++++------------------ control/statesp.py | 71 +++++++++++------------------ control/tests/config_test.py | 3 +- control/tests/matlab_test.py | 26 +++++------ control/xferfcn.py | 86 +++++++++++------------------------- 7 files changed, 116 insertions(+), 182 deletions(-) diff --git a/control/config.py b/control/config.py index 800fe7f26..7d0d6907f 100644 --- a/control/config.py +++ b/control/config.py @@ -59,6 +59,9 @@ def reset_defaults(): from .statesp import _statesp_defaults defaults.update(_statesp_defaults) + from .iosys import _iosys_defaults + defaults.update(_iosys_defaults) + def _get_param(module, param, argval=None, defval=None, pop=False): """Return the default value for a configuration option. @@ -208,8 +211,13 @@ def use_legacy_defaults(version): # Go backwards through releases and reset defaults # - # Version 0.9.0: switched to 'array' as default for state space objects + # Version 0.9.0: if major == 0 and minor < 9: + # switched to 'array' as default for state space objects set_defaults('statesp', use_numpy_matrix=True) + # switched to 0 (=continuous) as default timestep + set_defaults('statesp', default_dt=None) + set_defaults('xferfcn', default_dt=None) + set_defaults('iosys', default_dt=None) return (major, minor, patch) diff --git a/control/iosys.py b/control/iosys.py index a90b5193c..720767289 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -38,12 +38,16 @@ from .statesp import StateSpace, tf2ss from .timeresp import _check_convert_array -from .lti import isctime, isdtime, _find_timebase +from .lti import isctime, isdtime, common_timebase +from . import config __all__ = ['InputOutputSystem', 'LinearIOSystem', 'NonlinearIOSystem', 'InterconnectedSystem', 'input_output_response', 'find_eqpt', 'linearize', 'ss2io', 'tf2io'] +# Define module default parameter values +_iosys_defaults = { + 'iosys.default_dt': 0} class InputOutputSystem(object): """A class for representing input/output systems. @@ -118,7 +122,7 @@ def name_or_default(self, name=None): return name def __init__(self, inputs=None, outputs=None, states=None, params={}, - dt=None, name=None): + name=None, **kwargs): """Create an input/output system. The InputOutputSystem contructor is used to create an input/output @@ -163,7 +167,7 @@ def __init__(self, inputs=None, outputs=None, states=None, params={}, """ # Store the input arguments self.params = params.copy() # default parameters - self.dt = dt # timebase + self.dt = kwargs.get('dt', config.defaults['iosys.default_dt']) # timebase self.name = self.name_or_default(name) # system name # Parse and store the number of inputs, outputs, and states @@ -210,9 +214,7 @@ def __mul__(sys2, sys1): "inputs and outputs") # Make sure timebase are compatible - dt = _find_timebase(sys1, sys2) - if dt is False: - raise ValueError("System timebases are not compabile") + dt = common_timebase(sys1.dt, sys2.dt) inplist = [(0,i) for i in range(sys1.ninputs)] outlist = [(1,i) for i in range(sys2.noutputs)] @@ -464,12 +466,11 @@ def feedback(self, other=1, sign=-1, params={}): "inputs and outputs") # Make sure timebases are compatible - dt = _find_timebase(self, other) - if dt is False: - raise ValueError("System timebases are not compabile") + dt = common_timebase(self.dt, other.dt) inplist = [(0,i) for i in range(self.ninputs)] outlist = [(0,i) for i in range(self.noutputs)] + # Return the series interconnection between the systems newsys = InterconnectedSystem((self, other), inplist=inplist, outlist=outlist, params=params, dt=dt) @@ -650,7 +651,8 @@ class NonlinearIOSystem(InputOutputSystem): """ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, - states=None, params={}, dt=None, name=None): + states=None, params={}, + name=None, **kwargs): """Create a nonlinear I/O system given update and output functions. Creates an `InputOutputSystem` for a nonlinear system by specifying a @@ -722,6 +724,7 @@ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, self.outfcn = outfcn # Initialize the rest of the structure + dt = kwargs.get('dt', config.defaults['iosys.default_dt']) super(NonlinearIOSystem, self).__init__( inputs=inputs, outputs=outputs, states=states, params=params, dt=dt, name=name @@ -888,7 +891,6 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], # Check to make sure all systems are consistent self.syslist = syslist self.syslist_index = {} - dt = None nstates = 0; self.state_offset = [] ninputs = 0; self.input_offset = [] noutputs = 0; self.output_offset = [] @@ -896,12 +898,7 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], sysname_count_dct = {} for sysidx, sys in enumerate(syslist): # Make sure time bases are consistent - # TODO: Use lti._find_timebase() instead? - if dt is None and sys.dt is not None: - # Timebase was not specified; set to match this system - dt = sys.dt - elif dt != sys.dt: - raise TypeError("System timebases are not compatible") + dt = common_timebase(dt, sys.dt) # Make sure number of inputs, outputs, states is given if sys.ninputs is None or sys.noutputs is None or \ diff --git a/control/lti.py b/control/lti.py index 8db14794b..d0802d760 100644 --- a/control/lti.py +++ b/control/lti.py @@ -9,13 +9,13 @@ isdtime() isctime() timebase() -timebaseEqual() +common_timebase() """ import numpy as np from numpy import absolute, real -__all__ = ['issiso', 'timebase', 'timebaseEqual', 'isdtime', 'isctime', +__all__ = ['issiso', 'timebase', 'common_timebase', 'isdtime', 'isctime', 'pole', 'zero', 'damp', 'evalfr', 'freqresp', 'dcgain'] class LTI: @@ -157,48 +157,31 @@ def timebase(sys, strict=True): return sys.dt -# Check to see if two timebases are equal -def timebaseEqual(sys1, sys2): - """Check to see if two systems have the same timebase - - timebaseEqual(sys1, sys2) - - returns True if the timebases for the two systems are compatible. By - default, systems with timebase 'None' are compatible with either - discrete or continuous timebase systems. If two systems have a discrete - timebase (dt > 0) then their timebases must be equal. - """ - - if (type(sys1.dt) == bool or type(sys2.dt) == bool): - # Make sure both are unspecified discrete timebases - return type(sys1.dt) == type(sys2.dt) and sys1.dt == sys2.dt - elif (sys1.dt is None or sys2.dt is None): - # One or the other is unspecified => the other can be anything - return True - else: - return sys1.dt == sys2.dt - -# Find a common timebase between two or more systems -def _find_timebase(sys1, *sysn): - """Find the common timebase between systems, otherwise return False""" - - # Create a list of systems to check - syslist = [sys1] - syslist.append(*sysn) - - # Look for a common timebase - dt = None - - for sys in syslist: - # Make sure time bases are consistent - if (dt is None and sys.dt is not None) or \ - (dt is True and isdiscrete(sys)): - # Timebase was not specified; set to match this system - dt = sys.dt - elif dt != sys.dt: - return False - return dt - +def common_timebase(dt1, dt2): + """Find the common timebase when interconnecting systems.""" + # cases: + # if either dt is None, they are compatible with anything + # if either dt is True (discrete with unspecified time base), + # use the timebase of the other, if it is also discrete + # otherwise they must be equal (holds for both cont and discrete systems) + if dt1 is None: + return dt2 + elif dt2 is None: + return dt1 + elif dt1 is True: + if dt2 > 0: + return dt2 + else: + raise ValueError("Systems have incompatible timebases") + elif dt2 is True: + if dt1 > 0: + return dt1 + else: + raise ValueError("Systems have incompatible timebases") + elif np.isclose(dt1, dt2): + return dt1 + else: + raise ValueError("Systems have incompatible timebases") # Check to see if a system is a discrete time system def isdtime(sys, strict=False): diff --git a/control/statesp.py b/control/statesp.py index acefe3e1e..09d4da55b 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -62,7 +62,7 @@ from scipy.signal import cont2discrete from scipy.signal import StateSpace as signalStateSpace from warnings import warn -from .lti import LTI, timebase, timebaseEqual, isdtime +from .lti import LTI, common_timebase, isdtime from . import config from copy import deepcopy @@ -180,7 +180,10 @@ def __init__(self, *args, **kw): if len(args) == 4: # The user provided A, B, C, and D matrices. (A, B, C, D) = args - dt = config.defaults['statesp.default_dt'] + if _isstaticgain(A, B, C, D): + dt = None + else: + dt = config.defaults['statesp.default_dt'] elif len(args) == 5: # Discrete time system (A, B, C, D, dt) = args @@ -196,9 +199,12 @@ def __init__(self, *args, **kw): try: dt = args[0].dt except NameError: - dt = config.defaults['statesp.default_dt'] + if _isstaticgain(A, B, C, D): + dt = None + else: + dt = config.defaults['statesp.default_dt'] else: - raise ValueError("Needs 1 or 4 arguments; received %i." % len(args)) + raise ValueError("Expected 1, 4, or 5 arguments; received %i." % len(args)) # Process keyword arguments remove_useless = kw.get('remove_useless', @@ -330,14 +336,7 @@ def __add__(self, other): (self.outputs != other.outputs)): raise ValueError("Systems have different shapes.") - # Figure out the sampling time to use - if self.dt is None and other.dt is not None: - dt = other.dt # use dt from second argument - elif (other.dt is None and self.dt is not None) or \ - (timebaseEqual(self, other)): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different sampling times") + dt = common_timebase(self.dt, other.dt) # Concatenate the various arrays A = concatenate(( @@ -386,16 +385,8 @@ def __mul__(self, other): # Check to make sure the dimensions are OK if self.inputs != other.outputs: raise ValueError("C = A * B: A has %i column(s) (input(s)), \ -but B has %i row(s)\n(output(s))." % (self.inputs, other.outputs)) - - # Figure out the sampling time to use - if (self.dt == None and other.dt != None): - dt = other.dt # use dt from second argument - elif (other.dt == None and self.dt != None) or \ - (timebaseEqual(self, other)): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different sampling times") + but B has %i row(s)\n(output(s))." % (self.inputs, other.outputs)) + dt = common_timebase(self.dt, other.dt) # Concatenate the various arrays A = concatenate( @@ -467,9 +458,8 @@ def _evalfr(self, omega): """Evaluate a SS system's transfer function at a single frequency""" # Figure out the point to evaluate the transfer function if isdtime(self, strict=True): - dt = timebase(self) - s = exp(1.j * omega * dt) - if omega * dt > math.pi: + s = exp(1.j * omega * self.dt) + if omega * self.dt > math.pi: warn("_evalfr: frequency evaluation above Nyquist frequency") else: s = omega * 1.j @@ -526,9 +516,8 @@ def freqresp(self, omega): # axis (continuous time) or unit circle (discrete time). omega.sort() if isdtime(self, strict=True): - dt = timebase(self) - cmplx_freqs = exp(1.j * omega * dt) - if max(np.abs(omega)) * dt > math.pi: + cmplx_freqs = exp(1.j * omega * self.dt) + if max(np.abs(omega)) * self.dt > math.pi: warn("freqresp: frequency evaluation above Nyquist frequency") else: cmplx_freqs = omega * 1.j @@ -631,14 +620,7 @@ def feedback(self, other=1, sign=-1): if (self.inputs != other.outputs) or (self.outputs != other.inputs): raise ValueError("State space systems don't have compatible inputs/outputs for " "feedback.") - - # Figure out the sampling time to use - if self.dt is None and other.dt is not None: - dt = other.dt # use dt from second argument - elif other.dt is None and self.dt is not None or timebaseEqual(self, other): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different sampling times") + dt = common_timebase(self.dt, other.dt) A1 = self.A B1 = self.B @@ -708,14 +690,7 @@ def lft(self, other, nu=-1, ny=-1): # dimension check # TODO - # Figure out the sampling time to use - if (self.dt == None and other.dt != None): - dt = other.dt # use dt from second argument - elif (other.dt == None and self.dt != None) or \ - timebaseEqual(self, other): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different time bases") + dt = common_timebase(self.dt, other.dt) # submatrices A = self.A @@ -858,8 +833,7 @@ def append(self, other): if not isinstance(other, StateSpace): other = _convertToStateSpace(other) - if self.dt != other.dt: - raise ValueError("Systems must have the same time step") + self.dt = common_timebase(self.dt, other.dt) n = self.states + other.states m = self.inputs + other.inputs @@ -1293,6 +1267,11 @@ def _mimo2simo(sys, input, warn_conversion=False): return sys +def _isstaticgain(A, B, C, D): + """returns True if and only if the system has no dynamics, that is, + if A and B are zero. """ + return not np.any(np.matrix(A, dtype=float)) \ + and not np.any(np.matrix(B, dtype=float)) def ss(*args): """ss(A, B, C, D[, dt]) diff --git a/control/tests/config_test.py b/control/tests/config_test.py index ede683fe1..9b03853db 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -246,7 +246,8 @@ def test_change_default_dt(self, dt): def test_change_default_dt_static(self): """Test that static gain systems always have dt=None""" - ct.set_defaults('control', default_dt=0) + ct.set_defaults('xferfcn', default_dt=0) assert ct.tf(1, 1).dt is None + ct.set_defaults('statesp', default_dt=0) assert ct.ss(0, 0, 0, 1).dt is None # TODO: add in test for static gain iosys diff --git a/control/tests/matlab_test.py b/control/tests/matlab_test.py index 6c7f6f14f..3a15a5aff 100644 --- a/control/tests/matlab_test.py +++ b/control/tests/matlab_test.py @@ -736,20 +736,20 @@ def testCombi01(self): margin command should remove the solution for w = nearly zero. """ # Example is a concocted two-body satellite with flexible link - Jb = 400; - Jp = 1000; - k = 10; - b = 5; + Jb = 400 + Jp = 1000 + k = 10 + b = 5 # can now define an "s" variable, to make TF's - s = tf([1, 0], [1]); - hb1 = 1/(Jb*s); - hb2 = 1/s; - hp1 = 1/(Jp*s); - hp2 = 1/s; + s = tf([1, 0], [1]) + hb1 = 1/(Jb*s) + hb2 = 1/s + hp1 = 1/(Jp*s) + hp2 = 1/s # convert to ss and append - sat0 = append(ss(hb1), ss(hb2), k, b, ss(hp1), ss(hp2)); + sat0 = append(ss(hb1), ss(hb2), k, b, ss(hp1), ss(hp2)) # connection of the elements with connect call Q = [[1, -3, -4], # link moment (spring, damper), feedback to body @@ -758,9 +758,9 @@ def testCombi01(self): [4, 1, -5], # damper input [5, 3, 4], # link moment, acting on payload [6, 5, 0]] - inputs = [1]; - outputs = [1, 2, 5, 6]; - sat1 = connect(sat0, Q, inputs, outputs); + inputs = [1] + outputs = [1, 2, 5, 6] + sat1 = connect(sat0, Q, inputs, outputs) # matched notch filter wno = 0.19 diff --git a/control/xferfcn.py b/control/xferfcn.py index 0c5e1fdcb..fb616d4d9 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -63,7 +63,7 @@ from warnings import warn from itertools import chain from re import sub -from .lti import LTI, timebaseEqual, timebase, isdtime +from .lti import LTI, common_timebase, isdtime from . import config __all__ = ['TransferFunction', 'tf', 'ss2tf', 'tfdata'] @@ -125,7 +125,10 @@ def __init__(self, *args): if len(args) == 2: # The user provided a numerator and a denominator. (num, den) = args - dt = config.defaults['xferfcn.default_dt'] + if _isstaticgain(num, den): + dt = None + else: + dt = config.defaults['xferfcn.default_dt'] elif len(args) == 3: # Discrete time transfer function (num, den, dt) = args @@ -141,7 +144,10 @@ def __init__(self, *args): try: dt = args[0].dt except NameError: # pragma: no coverage - dt = config.defaults['xferfcn.default_dt'] + if _isstaticgain(num, den): + dt = None + else: + dt = config.defaults['xferfcn.default_dt'] else: raise ValueError("Needs 1, 2 or 3 arguments; received %i." % len(args)) @@ -370,14 +376,7 @@ def __add__(self, other): "The first summand has %i output(s), but the second has %i." % (self.outputs, other.outputs)) - # Figure out the sampling time to use - if self.dt is None and other.dt is not None: - dt = other.dt # use dt from second argument - elif (other.dt is None and self.dt is not None) or \ - (timebaseEqual(self, other)): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different sampling times") + dt = common_timebase(self.dt, other.dt) # Preallocate the numerator and denominator of the sum. num = [[[] for j in range(self.inputs)] for i in range(self.outputs)] @@ -421,15 +420,8 @@ def __mul__(self, other): inputs = other.inputs outputs = self.outputs - # Figure out the sampling time to use - if self.dt is None and other.dt is not None: - dt = other.dt # use dt from second argument - elif (other.dt is None and self.dt is not None) or \ - (self.dt == other.dt): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different sampling times") - + dt = common_timebase(self.dt, other.dt) + # Preallocate the numerator and denominator of the sum. num = [[[0] for j in range(inputs)] for i in range(outputs)] den = [[[1] for j in range(inputs)] for i in range(outputs)] @@ -472,14 +464,7 @@ def __rmul__(self, other): inputs = self.inputs outputs = other.outputs - # Figure out the sampling time to use - if self.dt is None and other.dt is not None: - dt = other.dt # use dt from second argument - elif (other.dt is None and self.dt is not None) \ - or (self.dt == other.dt): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different sampling times") + dt = common_timebase(self.dt, other.dt) # Preallocate the numerator and denominator of the sum. num = [[[0] for j in range(inputs)] for i in range(outputs)] @@ -519,14 +504,7 @@ def __truediv__(self, other): "TransferFunction.__truediv__ is currently \ implemented only for SISO systems.") - # Figure out the sampling time to use - if self.dt is None and other.dt is not None: - dt = other.dt # use dt from second argument - elif (other.dt is None and self.dt is not None) or \ - (self.dt == other.dt): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different sampling times") + dt = common_timebase(self.dt, other.dt) num = polymul(self.num[0][0], other.den[0][0]) den = polymul(self.den[0][0], other.num[0][0]) @@ -626,8 +604,7 @@ def _evalfr(self, omega): # TODO: implement for discrete time systems if isdtime(self, strict=True): # Convert the frequency to discrete time - dt = timebase(self) - s = exp(1.j * omega * dt) + s = exp(1.j * omega * self.dt) if np.any(omega * dt > pi): warn("_evalfr: frequency evaluation above Nyquist frequency") else: @@ -692,9 +669,8 @@ def freqresp(self, omega): # Figure out the frequencies omega.sort() if isdtime(self, strict=True): - dt = timebase(self) - slist = np.array([exp(1.j * w * dt) for w in omega]) - if max(omega) * dt > pi: + slist = np.array([exp(1.j * w * self.dt) for w in omega]) + if max(omega) * self.dt > pi: warn("freqresp: frequency evaluation above Nyquist frequency") else: slist = np.array([1j * w for w in omega]) @@ -737,15 +713,7 @@ def feedback(self, other=1, sign=-1): raise NotImplementedError( "TransferFunction.feedback is currently only implemented " "for SISO functions.") - - # Figure out the sampling time to use - if self.dt is None and other.dt is not None: - dt = other.dt # use dt from second argument - elif (other.dt is None and self.dt is not None) or \ - (self.dt == other.dt): - dt = self.dt # use dt from first argument - else: - raise ValueError("Systems have different sampling times") + dt = common_timebase(self.dt, other.dt) num1 = self.num[0][0] den1 = self.den[0][0] @@ -1048,7 +1016,7 @@ def sample(self, Ts, method='zoh', alpha=None, prewarp_frequency=None): Returns ------- - sysd : StateSpace system + sysd : TransferFunction system Discrete time system, with sampling rate Ts Notes @@ -1598,18 +1566,16 @@ def _clean_part(data): return data def _isstaticgain(num, den): - """returns true if and only if all of the numerator and denominator + """returns True if and only if all of the numerator and denominator polynomials of the (possibly MIMO) transfer funnction are zeroth order, that is, if the system has no dynamics. """ num, den = _clean_part(num), _clean_part(den) - for m in range(len(num)): - for n in range(len(num[m])): - if len(num[m][n]) > 1: - return False - for m in range(len(den)): - for n in range(len(den[m])): - if len(den[m][n]) > 1: - return False + for list_of_polys in num, den: + for row in list_of_polys: + for poly in row: + poly_trimmed = np.trim_zeros(poly, 'f') # trim leading zeros + if len(poly_trimmed) > 1: + return False return True # Define constants to represent differentiation, unit delay From 5f46b5ba872059c2f93470e023d0a0bc9d8b91f9 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 17 Jul 2020 19:16:18 -0700 Subject: [PATCH 038/260] small bugfix to xferfcn._evalfr to correctly give it dt value --- control/xferfcn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/xferfcn.py b/control/xferfcn.py index fb616d4d9..bddc48d61 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -605,7 +605,7 @@ def _evalfr(self, omega): if isdtime(self, strict=True): # Convert the frequency to discrete time s = exp(1.j * omega * self.dt) - if np.any(omega * dt > pi): + if np.any(omega * self.dt > pi): warn("_evalfr: frequency evaluation above Nyquist frequency") else: s = 1.j * omega From 24eeb75ac494ba270346bf9c717fec93bfa218d9 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 20 Jul 2020 09:26:58 -0700 Subject: [PATCH 039/260] re-incorporated lti.timebaseEqual, with a pendingDeprecationWarning --- .vscode/settings.json | 3 +++ control/lti.py | 61 +++++++++++++++++++++++++++++++++++++++---- 2 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..36e5778aa --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "restructuredtext.confPath": "${workspaceFolder}/doc" +} \ No newline at end of file diff --git a/control/lti.py b/control/lti.py index d0802d760..e41fe416b 100644 --- a/control/lti.py +++ b/control/lti.py @@ -14,9 +14,11 @@ import numpy as np from numpy import absolute, real +from warnings import warn -__all__ = ['issiso', 'timebase', 'common_timebase', 'isdtime', 'isctime', - 'pole', 'zero', 'damp', 'evalfr', 'freqresp', 'dcgain'] +__all__ = ['issiso', 'timebase', 'common_timebase', 'timebaseEqual', + 'isdtime', 'isctime', 'pole', 'zero', 'damp', 'evalfr', + 'freqresp', 'dcgain'] class LTI: """LTI is a parent class to linear time-invariant (LTI) system objects. @@ -158,12 +160,35 @@ def timebase(sys, strict=True): return sys.dt def common_timebase(dt1, dt2): - """Find the common timebase when interconnecting systems.""" - # cases: + """ + Find the common timebase when interconnecting systems + + Parameters + ---------- + dt1, dt2: number or system with a 'dt' attribute (e.g. TransferFunction + or StateSpace system) + + Returns + ------- + dt: number + The common timebase of dt1 and dt2, as specified in + :ref:`conventions-ref`. + + Raises + ------ + ValueError + when no compatible time base can be found + """ + # explanation: # if either dt is None, they are compatible with anything # if either dt is True (discrete with unspecified time base), # use the timebase of the other, if it is also discrete - # otherwise they must be equal (holds for both cont and discrete systems) + # otherwise both dts must be equal + if hasattr(dt1, 'dt'): + dt1 = dt1.dt + if hasattr(dt2, 'dt'): + dt2 = dt2.dt + if dt1 is None: return dt2 elif dt2 is None: @@ -183,6 +208,32 @@ def common_timebase(dt1, dt2): else: raise ValueError("Systems have incompatible timebases") +# Check to see if two timebases are equal +def timebaseEqual(sys1, sys2): + """ + Check to see if two systems have the same timebase + + timebaseEqual(sys1, sys2) + + returns True if the timebases for the two systems are compatible. By + default, systems with timebase 'None' are compatible with either + discrete or continuous timebase systems. If two systems have a discrete + timebase (dt > 0) then their timebases must be equal. + """ + warn("timebaseEqual will be deprecated in a future release of " + "python-control; use :func:`common_timebase` instead", + PendingDeprecationWarning) + + if (type(sys1.dt) == bool or type(sys2.dt) == bool): + # Make sure both are unspecified discrete timebases + return type(sys1.dt) == type(sys2.dt) and sys1.dt == sys2.dt + elif (sys1.dt is None or sys2.dt is None): + # One or the other is unspecified => the other can be anything + return True + else: + return sys1.dt == sys2.dt + + # Check to see if a system is a discrete time system def isdtime(sys, strict=False): """ From 0223b82ca46d9c0bf19a1b813c07d5c44de4399c Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 20 Jul 2020 10:16:16 -0700 Subject: [PATCH 040/260] changes to enable package-wide default, 'control.default_dt') --- control/config.py | 6 ++---- control/iosys.py | 15 +++++++++------ control/statesp.py | 15 +++++++-------- control/tests/config_test.py | 15 ++++++--------- control/xferfcn.py | 35 +++++++++++++++++------------------ 5 files changed, 41 insertions(+), 45 deletions(-) diff --git a/control/config.py b/control/config.py index 7d0d6907f..4d4512af7 100644 --- a/control/config.py +++ b/control/config.py @@ -15,7 +15,7 @@ # Package level default values _control_defaults = { - # No package level defaults (yet) + 'control.default_dt':0 } defaults = dict(_control_defaults) @@ -216,8 +216,6 @@ def use_legacy_defaults(version): # switched to 'array' as default for state space objects set_defaults('statesp', use_numpy_matrix=True) # switched to 0 (=continuous) as default timestep - set_defaults('statesp', default_dt=None) - set_defaults('xferfcn', default_dt=None) - set_defaults('iosys', default_dt=None) + set_defaults('control', default_dt=None) return (major, minor, patch) diff --git a/control/iosys.py b/control/iosys.py index 720767289..483236429 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -46,8 +46,7 @@ 'linearize', 'ss2io', 'tf2io'] # Define module default parameter values -_iosys_defaults = { - 'iosys.default_dt': 0} +_iosys_defaults = {} class InputOutputSystem(object): """A class for representing input/output systems. @@ -166,9 +165,13 @@ def __init__(self, inputs=None, outputs=None, states=None, params={}, """ # Store the input arguments - self.params = params.copy() # default parameters - self.dt = kwargs.get('dt', config.defaults['iosys.default_dt']) # timebase - self.name = self.name_or_default(name) # system name + + # default parameters + self.params = params.copy() + # timebase + self.dt = kwargs.get('dt', config.defaults['control.default_dt']) + # system name + self.name = self.name_or_default(name) # Parse and store the number of inputs, outputs, and states self.set_inputs(inputs) @@ -724,7 +727,7 @@ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, self.outfcn = outfcn # Initialize the rest of the structure - dt = kwargs.get('dt', config.defaults['iosys.default_dt']) + dt = kwargs.get('dt', config.defaults['control.default_dt']) super(NonlinearIOSystem, self).__init__( inputs=inputs, outputs=outputs, states=states, params=params, dt=dt, name=name diff --git a/control/statesp.py b/control/statesp.py index 09d4da55b..ea9a9c29e 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -72,7 +72,6 @@ # Define module default parameter values _statesp_defaults = { 'statesp.use_numpy_matrix': False, # False is default in 0.9.0 and above - 'statesp.default_dt': 0, 'statesp.remove_useless_states': True, } @@ -155,8 +154,8 @@ class StateSpace(LTI): Setting dt = 0 specifies a continuous system, while leaving dt = None means the system timebase is not specified. If 'dt' is set to True, the system will be treated as a discrete time system with unspecified sampling - time. The default value of 'dt' is None and can be changed by changing the - value of ``control.config.defaults['statesp.default_dt']``. + time. The default value of 'dt' is 0 and can be changed by changing the + value of ``control.config.defaults['control.default_dt']``. """ @@ -180,10 +179,10 @@ def __init__(self, *args, **kw): if len(args) == 4: # The user provided A, B, C, and D matrices. (A, B, C, D) = args - if _isstaticgain(A, B, C, D): + if _isstaticgain(A, B, C, D): dt = None else: - dt = config.defaults['statesp.default_dt'] + dt = config.defaults['control.default_dt'] elif len(args) == 5: # Discrete time system (A, B, C, D, dt) = args @@ -199,10 +198,10 @@ def __init__(self, *args, **kw): try: dt = args[0].dt except NameError: - if _isstaticgain(A, B, C, D): + if _isstaticgain(A, B, C, D): dt = None else: - dt = config.defaults['statesp.default_dt'] + dt = config.defaults['control.default_dt'] else: raise ValueError("Expected 1, 4, or 5 arguments; received %i." % len(args)) @@ -1268,7 +1267,7 @@ def _mimo2simo(sys, input, warn_conversion=False): return sys def _isstaticgain(A, B, C, D): - """returns True if and only if the system has no dynamics, that is, + """returns True if and only if the system has no dynamics, that is, if A and B are zero. """ return not np.any(np.matrix(A, dtype=float)) \ and not np.any(np.matrix(B, dtype=float)) diff --git a/control/tests/config_test.py b/control/tests/config_test.py index 9b03853db..e2530fc8f 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -234,20 +234,17 @@ def test_legacy_defaults(self): @pytest.mark.parametrize("dt", [0, None]) def test_change_default_dt(self, dt): """Test that system with dynamics uses correct default dt""" - ct.set_defaults('statesp', default_dt=dt) + ct.set_defaults('control', default_dt=dt) assert ct.ss(1, 0, 0, 1).dt == dt - ct.set_defaults('xferfcn', default_dt=dt) assert ct.tf(1, [1, 1]).dt == dt - - # nlsys = ct.iosys.NonlinearIOSystem( - # lambda t, x, u: u * x * x, - # lambda t, x, u: x, inputs=1, outputs=1) - # assert nlsys.dt == dt + nlsys = ct.iosys.NonlinearIOSystem( + lambda t, x, u: u * x * x, + lambda t, x, u: x, inputs=1, outputs=1) + assert nlsys.dt == dt def test_change_default_dt_static(self): """Test that static gain systems always have dt=None""" - ct.set_defaults('xferfcn', default_dt=0) + ct.set_defaults('control', default_dt=0) assert ct.tf(1, 1).dt is None - ct.set_defaults('statesp', default_dt=0) assert ct.ss(0, 0, 0, 1).dt is None # TODO: add in test for static gain iosys diff --git a/control/xferfcn.py b/control/xferfcn.py index bddc48d61..57d6fbb7c 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -70,8 +70,7 @@ # Define module default parameter values -_xferfcn_defaults = { - 'xferfcn.default_dt': 0} +_xferfcn_defaults = {} class TransferFunction(LTI): @@ -95,8 +94,8 @@ class TransferFunction(LTI): has a non-zero value, then it must match whenever two transfer functions are combined. If 'dt' is set to True, the system will be treated as a discrete time system with unspecified sampling time. The default value of - 'dt' is None and can be changed by changing the value of - ``control.config.defaults['xferfcn.default_dt']``. + 'dt' is 0 and can be changed by changing the value of + ``control.config.defaults['control.default_dt']``. The TransferFunction class defines two constants ``s`` and ``z`` that represent the differentiation and delay operators in continuous and @@ -127,8 +126,8 @@ def __init__(self, *args): (num, den) = args if _isstaticgain(num, den): dt = None - else: - dt = config.defaults['xferfcn.default_dt'] + else: + dt = config.defaults['control.default_dt'] elif len(args) == 3: # Discrete time transfer function (num, den, dt) = args @@ -146,8 +145,8 @@ def __init__(self, *args): except NameError: # pragma: no coverage if _isstaticgain(num, den): dt = None - else: - dt = config.defaults['xferfcn.default_dt'] + else: + dt = config.defaults['control.default_dt'] else: raise ValueError("Needs 1, 2 or 3 arguments; received %i." % len(args)) @@ -421,7 +420,7 @@ def __mul__(self, other): outputs = self.outputs dt = common_timebase(self.dt, other.dt) - + # Preallocate the numerator and denominator of the sum. num = [[[0] for j in range(inputs)] for i in range(outputs)] den = [[[1] for j in range(inputs)] for i in range(outputs)] @@ -1083,16 +1082,16 @@ def _dcgain_cont(self): return np.squeeze(gain) def is_static_gain(self): - """returns True if and only if all of the numerator and denominator - polynomials of the (possibly MIMO) transfer function are zeroth order, + """returns True if and only if all of the numerator and denominator + polynomials of the (possibly MIMO) transfer function are zeroth order, that is, if the system has no dynamics. """ - for list_of_polys in self.num, self.den: + for list_of_polys in self.num, self.den: for row in list_of_polys: for poly in row: - if len(poly) > 1: + if len(poly) > 1: return False return True - + # c2d function contributed by Benjamin White, Oct 2012 def _c2d_matched(sysC, Ts): # Pole-zero match method of continuous to discrete time conversion @@ -1566,15 +1565,15 @@ def _clean_part(data): return data def _isstaticgain(num, den): - """returns True if and only if all of the numerator and denominator - polynomials of the (possibly MIMO) transfer funnction are zeroth order, + """returns True if and only if all of the numerator and denominator + polynomials of the (possibly MIMO) transfer funnction are zeroth order, that is, if the system has no dynamics. """ num, den = _clean_part(num), _clean_part(den) - for list_of_polys in num, den: + for list_of_polys in num, den: for row in list_of_polys: for poly in row: poly_trimmed = np.trim_zeros(poly, 'f') # trim leading zeros - if len(poly_trimmed) > 1: + if len(poly_trimmed) > 1: return False return True From 1ca9decb0b3d82c569a99f7a159a0f308218b5e4 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 20 Jul 2020 14:25:13 -0700 Subject: [PATCH 041/260] fixes to docstrings and conventions.rst to match convention of dt=0 as default system timebase --- control/dtime.py | 64 +++++++++++++++++++++++---------------------- control/iosys.py | 46 ++++++++++++++++++-------------- control/statesp.py | 28 ++++++++++++-------- control/xferfcn.py | 24 +++++++++++------ doc/conventions.rst | 21 +++++++-------- 5 files changed, 101 insertions(+), 82 deletions(-) diff --git a/control/dtime.py b/control/dtime.py index 89f17c4af..725bcde47 100644 --- a/control/dtime.py +++ b/control/dtime.py @@ -53,21 +53,19 @@ # Sample a continuous time system def sample_system(sysc, Ts, method='zoh', alpha=None, prewarp_frequency=None): - """Convert a continuous time system to discrete time - - Creates a discrete time system from a continuous time system by - sampling. Multiple methods of conversion are supported. + """ + Convert a continuous time system to discrete time by sampling Parameters ---------- - sysc : linsys + sysc : LTI (StateSpace or TransferFunction) Continuous time system to be converted - Ts : real + Ts : real > 0 Sampling period method : string - Method to use for conversion: 'matched', 'tustin', 'zoh' (default) + Method to use for conversion, e.g. 'bilinear', 'zoh' (default) - prewarp_frequency : float within [0, infinity) + prewarp_frequency : real within [0, infinity) The frequency [rad/s] at which to match with the input continuous- time system's magnitude and phase @@ -78,13 +76,13 @@ def sample_system(sysc, Ts, method='zoh', alpha=None, prewarp_frequency=None): Notes ----- - See `TransferFunction.sample` and `StateSpace.sample` for + See :meth:`StateSpace.sample` or :meth:`TransferFunction.sample`` for further details. Examples -------- >>> sysc = TransferFunction([1], [1, 2, 1]) - >>> sysd = sample_system(sysc, 1, method='matched') + >>> sysd = sample_system(sysc, 1, method='bilinear') """ # Make sure we have a continuous time system @@ -95,35 +93,39 @@ def sample_system(sysc, Ts, method='zoh', alpha=None, prewarp_frequency=None): def c2d(sysc, Ts, method='zoh', prewarp_frequency=None): - ''' - Return a discrete-time system + """ + Convert a continuous time system to discrete time by sampling Parameters ---------- - sysc: LTI (StateSpace or TransferFunction), continuous - System to be converted + sysc : LTI (StateSpace or TransferFunction) + Continuous time system to be converted + Ts : real > 0 + Sampling period + method : string + Method to use for conversion, e.g. 'bilinear', 'zoh' (default) - Ts: number - Sample time for the conversion + prewarp_frequency : real within [0, infinity) + The frequency [rad/s] at which to match with the input continuous- + time system's magnitude and phase - method: string, optional - Method to be applied, - 'zoh' Zero-order hold on the inputs (default) - 'foh' First-order hold, currently not implemented - 'impulse' Impulse-invariant discretization, currently not implemented - 'tustin' Bilinear (Tustin) approximation, only SISO - 'matched' Matched pole-zero method, only SISO + Returns + ------- + sysd : linsys + Discrete time system, with sampling rate Ts + + Notes + ----- + See :meth:`StateSpace.sample` or :meth:`TransferFunction.sample`` for + further details. - prewarp_frequency : float within [0, infinity) - The frequency [rad/s] at which to match with the input continuous- - time system's magnitude and phase + Examples + -------- + >>> sysc = TransferFunction([1], [1, 2, 1]) + >>> sysd = sample_system(sysc, 1, method='bilinear') + """ - ''' # Call the sample_system() function to do the work sysd = sample_system(sysc, Ts, method, prewarp_frequency) - # TODO: is this check needed? If sysc is StateSpace, sysd is too? - if isinstance(sysc, StateSpace) and not isinstance(sysd, StateSpace): - return _convertToStateSpace(sysd) # pragma: no cover - return sysd diff --git a/control/iosys.py b/control/iosys.py index 483236429..65d6c1228 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -72,9 +72,11 @@ class for a set of subclasses that are used to implement specific states : int, list of str, or None Description of the system states. Same format as `inputs`. dt : None, True or float, optional - System timebase. None (default) indicates continuous time, True - indicates discrete time with undefined sampling time, positive number - is discrete time with specified sampling time. + System timebase. 0 (default) indicates continuous + time, True indicates discrete time with unspecified sampling + time, positive number is discrete time with specified + sampling time, None indicates unspecified timebase (either + continuous or discrete time). params : dict, optional Parameter values for the systems. Passed to the evaluation functions for the system as default values, overriding internal defaults. @@ -90,9 +92,11 @@ class for a set of subclasses that are used to implement specific Dictionary of signal names for the inputs, outputs and states and the index of the corresponding array dt : None, True or float - System timebase. None (default) indicates continuous time, True - indicates discrete time with undefined sampling time, positive number - is discrete time with specified sampling time. + System timebase. 0 (default) indicates continuous + time, True indicates discrete time with unspecified sampling + time, positive number is discrete time with specified + sampling time, None indicates unspecified timebase (either + continuous or discrete time). params : dict, optional Parameter values for the systems. Passed to the evaluation functions for the system as default values, overriding internal defaults. @@ -146,10 +150,11 @@ def __init__(self, inputs=None, outputs=None, states=None, params={}, states : int, list of str, or None Description of the system states. Same format as `inputs`. dt : None, True or float, optional - System timebase. None (default) indicates continuous - time, True indicates discrete time with undefined sampling + System timebase. 0 (default) indicates continuous + time, True indicates discrete time with unspecified sampling time, positive number is discrete time with specified - sampling time. + sampling time, None indicates unspecified timebase (either + continuous or discrete time). params : dict, optional Parameter values for the systems. Passed to the evaluation functions for the system as default values, overriding internal @@ -584,10 +589,11 @@ def __init__(self, linsys, inputs=None, outputs=None, states=None, states : int, list of str, or None, optional Description of the system states. Same format as `inputs`. dt : None, True or float, optional - System timebase. None (default) indicates continuous - time, True indicates discrete time with undefined sampling + System timebase. 0 (default) indicates continuous + time, True indicates discrete time with unspecified sampling time, positive number is discrete time with specified - sampling time. + sampling time, None indicates unspecified timebase (either + continuous or discrete time). params : dict, optional Parameter values for the systems. Passed to the evaluation functions for the system as default values, overriding internal @@ -707,10 +713,10 @@ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, operating in continuous or discrete time. It can have the following values: - * dt = None No timebase specified - * dt = 0 Continuous time system - * dt > 0 Discrete time system with sampling time dt - * dt = True Discrete time with unspecified sampling time + * dt = 0: continuous time system (default) + * dt > 0: discrete time system with sampling period 'dt' + * dt = True: discrete time with unspecified sampling period + * dt = None: no timebase specified name : string, optional System name (used for specifying signals). If unspecified, a generic @@ -877,10 +883,10 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], operating in continuous or discrete time. It can have the following values: - * dt = None No timebase specified - * dt = 0 Continuous time system - * dt > 0 Discrete time system with sampling time dt - * dt = True Discrete time with unspecified sampling time + * dt = 0: continuous time system (default) + * dt > 0: discrete time system with sampling period 'dt' + * dt = True: discrete time with unspecified sampling period + * dt = None: no timebase specified name : string, optional System name (used for specifying signals). If unspecified, a generic diff --git a/control/statesp.py b/control/statesp.py index ea9a9c29e..2a66cbfa9 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -148,15 +148,22 @@ class StateSpace(LTI): `numpy.ndarray` objects. The :func:`~control.use_numpy_matrix` function can be used to set the storage type. - Discrete-time state space system are implemented by using the 'dt' - instance variable and setting it to the sampling period. If 'dt' is not - None, then it must match whenever two state space systems are combined. - Setting dt = 0 specifies a continuous system, while leaving dt = None - means the system timebase is not specified. If 'dt' is set to True, the - system will be treated as a discrete time system with unspecified sampling - time. The default value of 'dt' is 0 and can be changed by changing the - value of ``control.config.defaults['control.default_dt']``. - + A discrete time system is created by specifying a nonzero 'timebase', dt + when the system is constructed: + + * dt = 0: continuous time system (default) + * dt > 0: discrete time system with sampling period 'dt' + * dt = True: discrete time with unspecified sampling period + * dt = None: no timebase specified + + Systems must have compatible timebases in order to be combined. A discrete + time system with unspecified sampling time (`dt = True`) can be combined + with a system having a specified sampling time; the result will be a + discrete time system with the sample time of the latter system. Similarly, + a system with timebase `None` can be combined with a system having any + timebase; the result will have the timebase of the latter system. + The default value of dt can be changed by changing the value of + ``control.config.defaults['control.default_dt']``. """ # Allow ndarray * StateSpace to give StateSpace._rmul_() priority @@ -1317,8 +1324,7 @@ def ss(*args): Output matrix D: array_like or string Feed forward matrix - dt: If present, specifies the sampling period and a discrete time - system is created + dt: If present, specifies the timebase of the system Returns ------- diff --git a/control/xferfcn.py b/control/xferfcn.py index 57d6fbb7c..ee3424053 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -73,7 +73,6 @@ _xferfcn_defaults = {} class TransferFunction(LTI): - """TransferFunction(num, den[, dt]) A class for representing transfer functions @@ -89,12 +88,21 @@ class TransferFunction(LTI): means that the numerator of the transfer function from the 6th input to the 3rd output is set to s^2 + 4s + 8. - Discrete-time transfer functions are implemented by using the 'dt' - instance variable and setting it to something other than 'None'. If 'dt' - has a non-zero value, then it must match whenever two transfer functions - are combined. If 'dt' is set to True, the system will be treated as a - discrete time system with unspecified sampling time. The default value of - 'dt' is 0 and can be changed by changing the value of + A discrete time transfer function is created by specifying a nonzero + 'timebase' dt when the system is constructed: + + * dt = 0: continuous time system (default) + * dt > 0: discrete time system with sampling period 'dt' + * dt = True: discrete time with unspecified sampling period + * dt = None: no timebase specified + + Systems must have compatible timebases in order to be combined. A discrete + time system with unspecified sampling time (`dt = True`) can be combined + with a system having a specified sampling time; the result will be a + discrete time system with the sample time of the latter system. Similarly, + a system with timebase `None` can be combined with a system having any + timebase; the result will have the timebase of the latter system. + The default value of dt can be changed by changing the value of ``control.config.defaults['control.default_dt']``. The TransferFunction class defines two constants ``s`` and ``z`` that @@ -104,8 +112,8 @@ class TransferFunction(LTI): >>> s = TransferFunction.s >>> G = (s + 1)/(s**2 + 2*s + 1) - """ + def __init__(self, *args): """TransferFunction(num, den[, dt]) diff --git a/doc/conventions.rst b/doc/conventions.rst index 99789bc9e..4a3d78926 100644 --- a/doc/conventions.rst +++ b/doc/conventions.rst @@ -80,27 +80,24 @@ Discrete time systems A discrete time system is created by specifying a nonzero 'timebase', dt. The timebase argument can be given when a system is constructed: -* dt = None: no timebase specified (default) -* dt = 0: continuous time system +* dt = 0: continuous time system (default) * dt > 0: discrete time system with sampling period 'dt' * dt = True: discrete time with unspecified sampling period +* dt = None: no timebase specified Only the :class:`StateSpace`, :class:`TransferFunction`, and :class:`InputOutputSystem` classes allow explicit representation of discrete time systems. -Systems must have compatible timebases in order to be combined. A system -with timebase `None` can be combined with a system having a specified -timebase; the result will have the timebase of the latter system. -Similarly, a discrete time system with unspecified sampling time (`dt = -True`) can be combined with a system having a specified sampling time; -the result will be a discrete time system with the sample time of the latter -system. For continuous time systems, the :func:`sample_system` function or -the :meth:`StateSpace.sample` and :meth:`TransferFunction.sample` methods +Systems must have compatible timebases in order to be combined. A discrete time +system with unspecified sampling time (`dt = True`) can be combined with a system +having a specified sampling time; the result will be a discrete time system with the sample time of the latter +system. Similarly, a system with timebase `None` can be combined with a system having a specified +timebase; the result will have the timebase of the latter system. For continuous +time systems, the :func:`sample_system` function or the :meth:`StateSpace.sample` and :meth:`TransferFunction.sample` methods can be used to create a discrete time system from a continuous time system. See :ref:`utility-and-conversions`. The default value of 'dt' can be changed by -changing the values of ``control.config.defaults['statesp.default_dt']`` and -``control.config.defaults['xferfcn.default_dt']``. +changing the value of ``control.config.defaults['control.default_dt']``. Conversion between representations ---------------------------------- From 3b2ab1884f259d93024ef3658d6c644f8680d101 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Mon, 20 Jul 2020 22:02:34 -0700 Subject: [PATCH 042/260] remove extraneous file --- .vscode/settings.json | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 36e5778aa..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "restructuredtext.confPath": "${workspaceFolder}/doc" -} \ No newline at end of file From 351e0f7d211211bf7ebaf68ddfa23762048bcb18 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Wed, 22 Jul 2020 13:25:26 -0700 Subject: [PATCH 043/260] new method is_static_gain() for state space and transfer function systems, refactored __init__ on both to use it --- control/statesp.py | 55 +++++++++++++++++++++++++++------------------- control/xferfcn.py | 53 ++++++++++++++++++++++---------------------- 2 files changed, 59 insertions(+), 49 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index 2a66cbfa9..985e37568 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -170,7 +170,7 @@ class StateSpace(LTI): __array_priority__ = 11 # override ndarray and matrix types - def __init__(self, *args, **kw): + def __init__(self, *args, **kwargs): """ StateSpace(A, B, C, D[, dt]) @@ -183,16 +183,13 @@ def __init__(self, *args, **kw): call StateSpace(sys), where sys is a StateSpace object. """ + # first get A, B, C, D matrices if len(args) == 4: # The user provided A, B, C, and D matrices. (A, B, C, D) = args - if _isstaticgain(A, B, C, D): - dt = None - else: - dt = config.defaults['control.default_dt'] elif len(args) == 5: # Discrete time system - (A, B, C, D, dt) = args + (A, B, C, D, _) = args elif len(args) == 1: # Use the copy constructor. if not isinstance(args[0], StateSpace): @@ -202,19 +199,12 @@ def __init__(self, *args, **kw): B = args[0].B C = args[0].C D = args[0].D - try: - dt = args[0].dt - except NameError: - if _isstaticgain(A, B, C, D): - dt = None - else: - dt = config.defaults['control.default_dt'] else: raise ValueError("Expected 1, 4, or 5 arguments; received %i." % len(args)) # Process keyword arguments - remove_useless = kw.get('remove_useless', - config.defaults['statesp.remove_useless_states']) + remove_useless = kwargs.get('remove_useless', + config.defaults['statesp.remove_useless_states']) # Convert all matrices to standard form A = _ssmatrix(A) @@ -233,12 +223,33 @@ def __init__(self, *args, **kw): D = _ssmatrix(D) # TODO: use super here? - LTI.__init__(self, inputs=D.shape[1], outputs=D.shape[0], dt=dt) + LTI.__init__(self, inputs=D.shape[1], outputs=D.shape[0]) self.A = A self.B = B self.C = C self.D = D + # now set dt + if len(args) == 4: + if 'dt' in kwargs: + dt = kwargs['dt'] + elif self.is_static_gain(): + dt = None + else: + dt = config.defaults['control.default_dt'] + elif len(args) == 5: + dt = args[4] + if 'dt' in kwargs: + warn('received multiple dt arguments, using positional arg'%dt) + elif len(args) == 1: + try: + dt = args[0].dt + except NameError: + if self.is_static_gain(): + dt = None + else: + dt = config.defaults['control.default_dt'] + self.dt = dt self.states = A.shape[1] if 0 == self.states: @@ -953,6 +964,12 @@ def dcgain(self): gain = np.tile(np.nan, (self.outputs, self.inputs)) return np.squeeze(gain) + def is_static_gain(self): + """True if and only if the system has no dynamics, that is, + if A and B are zero. """ + return not np.any(self.A) and not np.any(self.B) + + def is_static_gain(self): """True if and only if the system has no dynamics, that is, if A and B are zero. """ @@ -1273,12 +1290,6 @@ def _mimo2simo(sys, input, warn_conversion=False): return sys -def _isstaticgain(A, B, C, D): - """returns True if and only if the system has no dynamics, that is, - if A and B are zero. """ - return not np.any(np.matrix(A, dtype=float)) \ - and not np.any(np.matrix(B, dtype=float)) - def ss(*args): """ss(A, B, C, D[, dt]) diff --git a/control/xferfcn.py b/control/xferfcn.py index ee3424053..605289067 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -114,7 +114,7 @@ class TransferFunction(LTI): >>> G = (s + 1)/(s**2 + 2*s + 1) """ - def __init__(self, *args): + def __init__(self, *args, **kwargs): """TransferFunction(num, den[, dt]) Construct a transfer function. @@ -132,10 +132,6 @@ def __init__(self, *args): if len(args) == 2: # The user provided a numerator and a denominator. (num, den) = args - if _isstaticgain(num, den): - dt = None - else: - dt = config.defaults['control.default_dt'] elif len(args) == 3: # Discrete time transfer function (num, den, dt) = args @@ -147,14 +143,6 @@ def __init__(self, *args): % type(args[0])) num = args[0].num den = args[0].den - # TODO: not sure this can ever happen since dt is always present - try: - dt = args[0].dt - except NameError: # pragma: no coverage - if _isstaticgain(num, den): - dt = None - else: - dt = config.defaults['control.default_dt'] else: raise ValueError("Needs 1, 2 or 3 arguments; received %i." % len(args)) @@ -212,12 +200,36 @@ def __init__(self, *args): if zeronum: den[i][j] = ones(1) - LTI.__init__(self, inputs, outputs, dt) + LTI.__init__(self, inputs, outputs) self.num = num self.den = den self._truncatecoeff() + # get dt + if len(args) == 2: + # no dt given in positional arguments + if 'dt' in kwargs: + dt = kwargs['dt'] + elif self.is_static_gain(): + dt = None + else: + dt = config.defaults['control.default_dt'] + elif len(args) == 3: + # Discrete time transfer function + if 'dt' in kwargs: + warn('received multiple dt arguments, using positional arg'%dt) + elif len(args) == 1: + # TODO: not sure this can ever happen since dt is always present + try: + dt = args[0].dt + except NameError: # pragma: no coverage + if self.is_static_gain(): + dt = None + else: + dt = config.defaults['control.default_dt'] + self.dt = dt + def __call__(self, s): """Evaluate the system's transfer function for a complex variable @@ -1572,19 +1584,6 @@ def _clean_part(data): return data -def _isstaticgain(num, den): - """returns True if and only if all of the numerator and denominator - polynomials of the (possibly MIMO) transfer funnction are zeroth order, - that is, if the system has no dynamics. """ - num, den = _clean_part(num), _clean_part(den) - for list_of_polys in num, den: - for row in list_of_polys: - for poly in row: - poly_trimmed = np.trim_zeros(poly, 'f') # trim leading zeros - if len(poly_trimmed) > 1: - return False - return True - # Define constants to represent differentiation, unit delay TransferFunction.s = TransferFunction([1, 0], [1], 0) TransferFunction.z = TransferFunction([1, 0], [1], True) From e3a00701adfcbc768127665b73b9a789f826759b Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Wed, 22 Jul 2020 13:42:10 -0700 Subject: [PATCH 044/260] added keyword arguments to xferfcn.tf and statesp.ss to set dt --- control/statesp.py | 8 ++++---- control/xferfcn.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index 985e37568..4fae902d1 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -240,7 +240,7 @@ def __init__(self, *args, **kwargs): elif len(args) == 5: dt = args[4] if 'dt' in kwargs: - warn('received multiple dt arguments, using positional arg'%dt) + warn('received multiple dt arguments, using positional arg dt=%s'%dt) elif len(args) == 1: try: dt = args[0].dt @@ -1290,7 +1290,7 @@ def _mimo2simo(sys, input, warn_conversion=False): return sys -def ss(*args): +def ss(*args, **kwargs): """ss(A, B, C, D[, dt]) Create a state space system. @@ -1366,7 +1366,7 @@ def ss(*args): """ if len(args) == 4 or len(args) == 5: - return StateSpace(*args) + return StateSpace(*args, **kwargs) elif len(args) == 1: from .xferfcn import TransferFunction sys = args[0] @@ -1378,7 +1378,7 @@ def ss(*args): raise TypeError("ss(sys): sys must be a StateSpace or \ TransferFunction object. It is %s." % type(sys)) else: - raise ValueError("Needs 1 or 4 arguments; received %i." % len(args)) + raise ValueError("Needs 1, 4, or 5 arguments; received %i." % len(args)) def tf2ss(*args): diff --git a/control/xferfcn.py b/control/xferfcn.py index 605289067..52866a8ec 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -218,7 +218,7 @@ def __init__(self, *args, **kwargs): elif len(args) == 3: # Discrete time transfer function if 'dt' in kwargs: - warn('received multiple dt arguments, using positional arg'%dt) + warn('received multiple dt arguments, using positional arg dt=%s'%dt) elif len(args) == 1: # TODO: not sure this can ever happen since dt is always present try: @@ -1322,7 +1322,7 @@ def _convert_to_transfer_function(sys, **kw): raise TypeError("Can't convert given type to TransferFunction system.") -def tf(*args): +def tf(*args, **kwargs): """tf(num, den[, dt]) Create a transfer function system. Can create MIMO systems. @@ -1412,7 +1412,7 @@ def tf(*args): """ if len(args) == 2 or len(args) == 3: - return TransferFunction(*args) + return TransferFunction(*args, **kwargs) elif len(args) == 1: # Look for special cases defining differential/delay operator if args[0] == 's': @@ -1433,7 +1433,7 @@ def tf(*args): raise ValueError("Needs 1 or 2 arguments; received %i." % len(args)) -def ss2tf(*args): +def ss2tf(*args, **kwargs): """ss2tf(sys) Transform a state space system to a transfer function. @@ -1498,7 +1498,7 @@ def ss2tf(*args): from .statesp import StateSpace if len(args) == 4 or len(args) == 5: # Assume we were given the A, B, C, D matrix and (optional) dt - return _convert_to_transfer_function(StateSpace(*args)) + return _convert_to_transfer_function(StateSpace(*args, **kwargs)) elif len(args) == 1: sys = args[0] From 404b23c127fb724bad3194be81bdf7bc6c4b213c Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 31 Dec 2020 02:08:11 +0100 Subject: [PATCH 045/260] update tests for dt=0, fix the constructor checks for missing dt --- control/statesp.py | 2 +- control/tests/discrete_test.py | 12 ------------ control/tests/iosys_test.py | 2 +- control/tests/statesp_test.py | 5 +---- control/tests/xferfcn_test.py | 16 ++++++++++++++++ control/xferfcn.py | 2 +- 6 files changed, 20 insertions(+), 19 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index 4fae902d1..ff7f23068 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -244,7 +244,7 @@ def __init__(self, *args, **kwargs): elif len(args) == 1: try: dt = args[0].dt - except NameError: + except AttributeError: if self.is_static_gain(): dt = None else: diff --git a/control/tests/discrete_test.py b/control/tests/discrete_test.py index ffdd1aeb4..3dcbb7f3b 100644 --- a/control/tests/discrete_test.py +++ b/control/tests/discrete_test.py @@ -243,8 +243,6 @@ def testAddition(self, tsys): StateSpace.__add__(tsys.mimo_ss1c, tsys.mimo_ss1d) with pytest.raises(ValueError): StateSpace.__add__(tsys.mimo_ss1d, tsys.mimo_ss2d) - with pytest.raises(ValueError): - StateSpace.__add__(tsys.siso_ss1d, tsys.siso_ss3d) # Transfer function addition sys = tsys.siso_tf1 + tsys.siso_tf1d @@ -260,8 +258,6 @@ def testAddition(self, tsys): TransferFunction.__add__(tsys.siso_tf1c, tsys.siso_tf1d) with pytest.raises(ValueError): TransferFunction.__add__(tsys.siso_tf1d, tsys.siso_tf2d) - with pytest.raises(ValueError): - TransferFunction.__add__(tsys.siso_tf1d, tsys.siso_tf3d) # State space + transfer function sys = tsys.siso_ss1c + tsys.siso_tf1c @@ -285,8 +281,6 @@ def testMultiplication(self, tsys): StateSpace.__mul__(tsys.mimo_ss1c, tsys.mimo_ss1d) with pytest.raises(ValueError): StateSpace.__mul__(tsys.mimo_ss1d, tsys.mimo_ss2d) - with pytest.raises(ValueError): - StateSpace.__mul__(tsys.siso_ss1d, tsys.siso_ss3d) # Transfer function multiplication sys = tsys.siso_tf1 * tsys.siso_tf1d @@ -301,8 +295,6 @@ def testMultiplication(self, tsys): TransferFunction.__mul__(tsys.siso_tf1c, tsys.siso_tf1d) with pytest.raises(ValueError): TransferFunction.__mul__(tsys.siso_tf1d, tsys.siso_tf2d) - with pytest.raises(ValueError): - TransferFunction.__mul__(tsys.siso_tf1d, tsys.siso_tf3d) # State space * transfer function sys = tsys.siso_ss1c * tsys.siso_tf1c @@ -328,8 +320,6 @@ def testFeedback(self, tsys): feedback(tsys.mimo_ss1c, tsys.mimo_ss1d) with pytest.raises(ValueError): feedback(tsys.mimo_ss1d, tsys.mimo_ss2d) - with pytest.raises(ValueError): - feedback(tsys.siso_ss1d, tsys.siso_ss3d) # Transfer function feedback sys = feedback(tsys.siso_tf1, tsys.siso_tf1d) @@ -344,8 +334,6 @@ def testFeedback(self, tsys): feedback(tsys.siso_tf1c, tsys.siso_tf1d) with pytest.raises(ValueError): feedback(tsys.siso_tf1d, tsys.siso_tf2d) - with pytest.raises(ValueError): - feedback(tsys.siso_tf1d, tsys.siso_tf3d) # State space, transfer function sys = feedback(tsys.siso_ss1c, tsys.siso_tf1c) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 2bb6f066c..faed39e07 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -1024,7 +1024,7 @@ def test_duplicates(self, tsys): # Nonduplicate objects nlios1 = nlios.copy() nlios2 = nlios.copy() - with pytest.warns(UserWarning, match="copy of sys") as record: + with pytest.warns(UserWarning, match="Duplicate name"): ios_series = nlios1 * nlios2 assert "copy of sys_1.x[0]" in ios_series.state_index.keys() assert "copy of sys.x[0]" in ios_series.state_index.keys() diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 9dbb6da94..aee1d2433 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -165,10 +165,7 @@ def test_copy_constructor(self): np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value def test_copy_constructor_nodt(self, sys322): - """Test the copy constructor when an object without dt is passed - - FIXME: may be obsolete in case gh-431 is updated - """ + """Test the copy constructor when an object without dt is passed""" sysin = sample_system(sys322, 1.) del sysin.dt sys = StateSpace(sysin) diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index b0673de1e..f3bba4523 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -13,6 +13,7 @@ from control.tests.conftest import slycotonly, nopython2, matrixfilter from control.lti import isctime, isdtime from control.dtime import sample_system +from control.config import defaults class TestXferFcn: @@ -85,6 +86,21 @@ def test_constructor_zero_denominator(self): TransferFunction([[[1.], [2., 3.]], [[-1., 4.], [3., 2.]]], [[[1., 0.], [0.]], [[0., 0.], [2.]]]) + def test_constructor_nodt(self): + """Test the constructor when an object without dt is passed""" + sysin = TransferFunction([[[0., 1.], [2., 3.]]], + [[[5., 2.], [3., 0.]]]) + del sysin.dt + sys = TransferFunction(sysin) + assert sys.dt == defaults['control.default_dt'] + + # test for static gain + sysin = TransferFunction([[[2.], [3.]]], + [[[1.], [.1]]]) + del sysin.dt + sys = TransferFunction(sysin) + assert sys.dt is None + def test_add_inconsistent_dimension(self): """Add two transfer function matrices of different sizes.""" sys1 = TransferFunction([[[1., 2.]]], [[[4., 5.]]]) diff --git a/control/xferfcn.py b/control/xferfcn.py index 52866a8ec..36c5393b0 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -223,7 +223,7 @@ def __init__(self, *args, **kwargs): # TODO: not sure this can ever happen since dt is always present try: dt = args[0].dt - except NameError: # pragma: no coverage + except AttributeError: if self.is_static_gain(): dt = None else: From 8b82850e1a892a56d50dc73f25d989cb45301e56 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 31 Dec 2020 02:34:09 +0100 Subject: [PATCH 046/260] remove duplicate is_static_gain --- control/statesp.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index ff7f23068..58d46fddd 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -970,11 +970,6 @@ def is_static_gain(self): return not np.any(self.A) and not np.any(self.B) - def is_static_gain(self): - """True if and only if the system has no dynamics, that is, - if A and B are zero. """ - return not np.any(self.A) and not np.any(self.B) - # TODO: add discrete time check def _convertToStateSpace(sys, **kw): """Convert a system to state space form (if needed). From 7095cf245905909ff0f3e68f3af0aacd0d5ba2ce Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 31 Dec 2020 04:23:17 +0100 Subject: [PATCH 047/260] test coverage of options for bode_plot with margins --- control/tests/freqresp_test.py | 73 ++++++++++++++++++++++------------ 1 file changed, 48 insertions(+), 25 deletions(-) diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 1ecc88129..29c67d9af 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -120,39 +120,62 @@ def test_mimo(): tf(sysMIMO) -def test_bode_margin(): +@pytest.mark.parametrize( + "Hz, Wcp, Wcg", + [pytest.param(False, 6.0782869, 10., id="omega"), + pytest.param(True, 0.9673894, 1.591549, id="Hz")]) +@pytest.mark.parametrize( + "deg, p0, pm", + [pytest.param(False, -np.pi, -2.748266, id="rad"), + pytest.param(True, -180, -157.46405841, id="deg")]) +@pytest.mark.parametrize( + "dB, maginfty1, maginfty2, gminv", + [pytest.param(False, 1, 1e-8, 0.4, id="mag"), + pytest.param(True, 0, -1e+5, -7.9588, id="dB")]) +def test_bode_margin(dB, maginfty1, maginfty2, gminv, + deg, p0, pm, + Hz, Wcp, Wcg): """Test bode margins""" num = [1000] den = [1, 25, 100, 0] sys = ctrl.tf(num, den) plt.figure() - ctrl.bode_plot(sys, margins=True, dB=False, deg=True, Hz=False) + ctrl.bode_plot(sys, margins=True, dB=dB, deg=deg, Hz=Hz) fig = plt.gcf() allaxes = fig.get_axes() - mag_to_infinity = (np.array([6.07828691, 6.07828691]), - np.array([1., 1e-8])) - assert_allclose(mag_to_infinity, allaxes[0].lines[2].get_data()) - - gm_to_infinty = (np.array([10., 10.]), - np.array([4e-1, 1e-8])) - assert_allclose(gm_to_infinty, allaxes[0].lines[3].get_data()) - - one_to_gm = (np.array([10., 10.]), - np.array([1., 0.4])) - assert_allclose(one_to_gm, allaxes[0].lines[4].get_data()) - - pm_to_infinity = (np.array([6.07828691, 6.07828691]), - np.array([100000., -157.46405841])) - assert_allclose(pm_to_infinity, allaxes[1].lines[2].get_data()) - - pm_to_phase = (np.array([6.07828691, 6.07828691]), - np.array([-157.46405841, -180.])) - assert_allclose(pm_to_phase, allaxes[1].lines[3].get_data()) - - phase_to_infinity = (np.array([10., 10.]), - np.array([1e-8, -1.8e2])) - assert_allclose(phase_to_infinity, allaxes[1].lines[4].get_data()) + mag_to_infinity = (np.array([Wcp, Wcp]), + np.array([maginfty1, maginfty2])) + assert_allclose(mag_to_infinity, + allaxes[0].lines[2].get_data(), + rtol=1e-5) + + gm_to_infinty = (np.array([Wcg, Wcg]), + np.array([gminv, maginfty2])) + assert_allclose(gm_to_infinty, + allaxes[0].lines[3].get_data(), + rtol=1e-5) + + one_to_gm = (np.array([Wcg, Wcg]), + np.array([maginfty1, gminv])) + assert_allclose(one_to_gm, allaxes[0].lines[4].get_data(), + rtol=1e-5) + + pm_to_infinity = (np.array([Wcp, Wcp]), + np.array([1e5, pm])) + assert_allclose(pm_to_infinity, + allaxes[1].lines[2].get_data(), + rtol=1e-5) + + pm_to_phase = (np.array([Wcp, Wcp]), + np.array([pm, p0])) + assert_allclose(pm_to_phase, allaxes[1].lines[3].get_data(), + rtol=1e-5) + + phase_to_infinity = (np.array([Wcg, Wcg]), + np.array([1e-8, p0])) + assert_allclose(phase_to_infinity, allaxes[1].lines[4].get_data(), + rtol=1e-5) @pytest.fixture From 91b04de355f2f01c0cfc13b0cf69e5150960e31c Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Sat, 8 Aug 2020 14:33:46 +0200 Subject: [PATCH 048/260] Added IPython LaTeX representation method for StateSpace objects Added StateSpace method `_repr_latex_`, which returns a MathJax-centric LaTeX representation of the instance. Added two `statesp` configuration options for this representation. One affects number formatting, and the other chooses the output type. --- control/statesp.py | 177 ++++++++++++++++++++++++++++++++++ control/tests/statesp_test.py | 62 ++++++++++++ 2 files changed, 239 insertions(+) diff --git a/control/statesp.py b/control/statesp.py index d23fbd7be..0f6638881 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -74,6 +74,8 @@ 'statesp.use_numpy_matrix': False, # False is default in 0.9.0 and above 'statesp.default_dt': None, 'statesp.remove_useless_states': True, + 'statesp.latex_num_format': '.3g', + 'statesp.latex_repr_type': 'partitioned', } @@ -128,6 +130,33 @@ def _ssmatrix(data, axis=1): return arr.reshape(shape) +def _f2s(f): + """Format floating point number f for StateSpace._repr_latex_. + + Numbers are converted to strings with statesp.latex_num_format. + + Inserts column separators, etc., as needed. + """ + fmt = "{:" + config.defaults['statesp.latex_num_format'] + "}" + sraw = fmt.format(f) + # significand-exponent + se = sraw.lower().split('e') + # whole-fraction + wf = se[0].split('.') + s = wf[0] + if wf[1:]: + s += r'.&\hspace{{-1em}}{frac}'.format(frac=wf[1]) + else: + s += r'\phantom{.}&\hspace{-1em}' + + if se[1:]: + s += r'&\hspace{{-1em}}\cdot10^{{{:d}}}'.format(int(se[1])) + else: + s += r'&\hspace{-1em}\phantom{\cdot}' + + return s + + class StateSpace(LTI): """StateSpace(A, B, C, D[, dt]) @@ -158,6 +187,24 @@ class StateSpace(LTI): time. The default value of 'dt' is None and can be changed by changing the value of ``control.config.defaults['statesp.default_dt']``. + StateSpace instances have support for IPython LaTeX output, + intended for pretty-printing in Jupyter notebooks. The LaTeX + output can be configured using + `control.config.defaults['statesp.latex_num_format']` and + `control.config.defaults['statesp.latex_repr_type']`. The LaTeX output is + tailored for MathJax, as used in Jupyter, and may look odd when + typeset by non-MathJax LaTeX systems. + + `control.config.defaults['statesp.latex_num_format']` is a format string + fragment, specifically the part of the format string after `'{:'` + used to convert floating-point numbers to strings. By default it + is `'.3g'`. + + `control.config.defaults['statesp.latex_repr_type']` must either be + `'partitioned'` or `'separate'`. If `'partitioned'`, the A, B, C, D + matrices are shown as a single, partitioned matrix; if + `'separate'`, the matrices are shown separately. + """ # Allow ndarray * StateSpace to give StateSpace._rmul_() priority @@ -306,6 +353,136 @@ def __repr__(self): C=asarray(self.C).__repr__(), D=asarray(self.D).__repr__(), dt=(isdtime(self, strict=True) and ", {}".format(self.dt)) or '') + def _latex_partitioned_stateless(self): + """`Partitioned` matrix LaTeX representation for stateless systems + + Model is presented as a matrix, D. No partition lines are shown. + + Returns + ------- + s : string with LaTeX representation of model + """ + lines = [ + r'\[', + r'\left(', + (r'\begin{array}' + + r'{' + 'rll' * self.inputs + '}') + ] + + for Di in asarray(self.D): + lines.append('&'.join(_f2s(Dij) for Dij in Di) + + '\\\\') + + lines.extend([ + r'\end{array}' + r'\right)', + r'\]']) + + return '\n'.join(lines) + + def _latex_partitioned(self): + """Partitioned matrix LaTeX representation of state-space model + + Model is presented as a matrix partitioned into A, B, C, and D + parts. + + Returns + ------- + s : string with LaTeX representation of model + """ + if self.states == 0: + return self._latex_partitioned_stateless() + + lines = [ + r'\[', + r'\left(', + (r'\begin{array}' + + r'{' + 'rll' * self.states + '|' + 'rll' * self.inputs + '}') + ] + + for Ai, Bi in zip(asarray(self.A), asarray(self.B)): + lines.append('&'.join([_f2s(Aij) for Aij in Ai] + + [_f2s(Bij) for Bij in Bi]) + + '\\\\') + lines.append(r'\hline') + for Ci, Di in zip(asarray(self.C), asarray(self.D)): + lines.append('&'.join([_f2s(Cij) for Cij in Ci] + + [_f2s(Dij) for Dij in Di]) + + '\\\\') + + lines.extend([ + r'\end{array}' + r'\right)', + r'\]']) + + return '\n'.join(lines) + + def _latex_separate(self): + """Separate matrices LaTeX representation of state-space model + + Model is presented as separate, named, A, B, C, and D matrices. + + Returns + ------- + s : string with LaTeX representation of model + """ + lines = [ + r'\[', + r'\begin{array}{ll}', + ] + + def fmt_matrix(matrix, name): + matlines = [name + + r' = \left(\begin{array}{' + + 'rll' * matrix.shape[1] + + '}'] + for row in asarray(matrix): + matlines.append('&'.join(_f2s(entry) for entry in row) + + '\\\\') + matlines.extend([ + r'\end{array}' + r'\right)']) + return matlines + + if self.states > 0: + lines.extend(fmt_matrix(self.A, 'A')) + lines.append('&') + lines.extend(fmt_matrix(self.B, 'B')) + lines.append('\\\\') + + lines.extend(fmt_matrix(self.C, 'C')) + lines.append('&') + lines.extend(fmt_matrix(self.D, 'D')) + + lines.extend([ + r'\end{array}', + r'\]']) + + return '\n'.join(lines) + + def _repr_latex_(self): + """LaTeX representation of state-space model + + Output is controlled by config options statesp.latex_repr_type + and statesp.latex_num_format. + + The output is primarily intended for Jupyter notebooks, which + use MathJax to render the LaTeX, and the results may look odd + when processed by a 'conventional' LaTeX system. + + Returns + ------- + s : string with LaTeX representation of model + + """ + if config.defaults['statesp.latex_repr_type'] == 'partitioned': + return self._latex_partitioned() + elif config.defaults['statesp.latex_repr_type'] == 'separate': + return self._latex_separate() + else: + cfg = config.defaults['statesp.latex_repr_type'] + raise ValueError("Unknown statesp.latex_repr_type '{cfg}'".format(cfg=cfg)) + # Negation of a system def __neg__(self): """Negate a state space system.""" diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 23ccab555..3fcf5b45b 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -20,6 +20,7 @@ from control.tests.conftest import ismatarrayout, slycotonly from control.xferfcn import TransferFunction, ss2tf +from .conftest import editsdefaults class TestStateSpace: """Tests for the StateSpace class.""" @@ -840,3 +841,64 @@ def test_statespace_defaults(self, matarrayout): for k, v in _statesp_defaults.items(): assert defaults[k] == v, \ "{} is {} but expected {}".format(k, defaults[k], v) + + +# test data for test_latex_repr below +LTX_G1 = StateSpace([[np.pi, 1e100], [-1.23456789, 5e-23]], + [[0], [1]], + [[987654321, 0.001234]], + [[5]]) + +LTX_G2 = StateSpace([], + [], + [], + [[1.2345, -2e-200], [-1, 0]]) + +LTX_G1_REF = { + 'p3_p' : '\\[\n\\left(\n\\begin{array}{rllrll|rll}\n3.&\\hspace{-1em}14&\\hspace{-1em}\\phantom{\\cdot}&1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{100}&0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n-1.&\\hspace{-1em}23&\\hspace{-1em}\\phantom{\\cdot}&5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-23}&1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\hline\n9.&\\hspace{-1em}88&\\hspace{-1em}\\cdot10^{8}&0.&\\hspace{-1em}00123&\\hspace{-1em}\\phantom{\\cdot}&5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\]', + + 'p5_p' : '\\[\n\\left(\n\\begin{array}{rllrll|rll}\n3.&\\hspace{-1em}1416&\\hspace{-1em}\\phantom{\\cdot}&1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{100}&0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n-1.&\\hspace{-1em}2346&\\hspace{-1em}\\phantom{\\cdot}&5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-23}&1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\hline\n9.&\\hspace{-1em}8765&\\hspace{-1em}\\cdot10^{8}&0.&\\hspace{-1em}001234&\\hspace{-1em}\\phantom{\\cdot}&5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\]', + + 'p3_s' : '\\[\n\\begin{array}{ll}\nA = \\left(\\begin{array}{rllrll}\n3.&\\hspace{-1em}14&\\hspace{-1em}\\phantom{\\cdot}&1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{100}\\\\\n-1.&\\hspace{-1em}23&\\hspace{-1em}\\phantom{\\cdot}&5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-23}\\\\\n\\end{array}\\right)\n&\nB = \\left(\\begin{array}{rll}\n0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\\\\nC = \\left(\\begin{array}{rllrll}\n9.&\\hspace{-1em}88&\\hspace{-1em}\\cdot10^{8}&0.&\\hspace{-1em}00123&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n&\nD = \\left(\\begin{array}{rll}\n5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\end{array}\n\\]', + + 'p5_s' : '\\[\n\\begin{array}{ll}\nA = \\left(\\begin{array}{rllrll}\n3.&\\hspace{-1em}1416&\\hspace{-1em}\\phantom{\\cdot}&1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{100}\\\\\n-1.&\\hspace{-1em}2346&\\hspace{-1em}\\phantom{\\cdot}&5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-23}\\\\\n\\end{array}\\right)\n&\nB = \\left(\\begin{array}{rll}\n0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\\\\nC = \\left(\\begin{array}{rllrll}\n9.&\\hspace{-1em}8765&\\hspace{-1em}\\cdot10^{8}&0.&\\hspace{-1em}001234&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n&\nD = \\left(\\begin{array}{rll}\n5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\end{array}\n\\]', +} + +LTX_G2_REF = { + 'p3_p' : '\\[\n\\left(\n\\begin{array}{rllrll}\n1.&\\hspace{-1em}23&\\hspace{-1em}\\phantom{\\cdot}&-2\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-200}\\\\\n-1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}&0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\]', + + 'p5_p' : '\\[\n\\left(\n\\begin{array}{rllrll}\n1.&\\hspace{-1em}2345&\\hspace{-1em}\\phantom{\\cdot}&-2\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-200}\\\\\n-1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}&0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\]', + + 'p3_s' : '\\[\n\\begin{array}{ll}\nD = \\left(\\begin{array}{rllrll}\n1.&\\hspace{-1em}23&\\hspace{-1em}\\phantom{\\cdot}&-2\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-200}\\\\\n-1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}&0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\end{array}\n\\]', + + 'p5_s' : '\\[\n\\begin{array}{ll}\nD = \\left(\\begin{array}{rllrll}\n1.&\\hspace{-1em}2345&\\hspace{-1em}\\phantom{\\cdot}&-2\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-200}\\\\\n-1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}&0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\end{array}\n\\]', +} + +refkey_n = {None: 'p3', '.3g': 'p3', '.5g': 'p5'} +refkey_r = {None: 'p', 'partitioned': 'p', 'separate': 's'} + + +@pytest.mark.parametrize(" g, ref", + [(LTX_G1, LTX_G1_REF), + (LTX_G2, LTX_G2_REF)]) +@pytest.mark.parametrize("repr_type", [None, "partitioned", "separate"]) +@pytest.mark.parametrize("num_format", [None, ".3g", ".5g"]) +def test_latex_repr(g, ref, repr_type, num_format, editsdefaults): + """Test `._latex_repr_` with different config values + + This is a 'gold image' test, so if you change behaviour, + you'll need to regenerate the reference results. + Try something like: + control.reset_defaults() + print(f'p3_p : {g1._repr_latex_()!r}') + """ + from control import set_defaults + if num_format is not None: + set_defaults('statesp', latex_num_format=num_format) + + if repr_type is not None: + set_defaults('statesp', latex_repr_type=repr_type) + + refkey = "{}_{}".format(refkey_n[num_format], refkey_r[repr_type]) + assert g._repr_latex_() == ref[refkey] + From 8c707dd91459ed888fe459985fa3891315040fec Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 30 Dec 2020 23:08:45 -0800 Subject: [PATCH 049/260] generate error for tf2ss of non-proper transfer function + PEP8 cleanup --- control/statesp.py | 175 ++++++++++++++++++++-------------- control/tests/convert_test.py | 13 +++ control/tests/iosys_test.py | 6 +- 3 files changed, 119 insertions(+), 75 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index 0f6638881..7b9549a8a 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -10,7 +10,7 @@ # Python 3 compatibility (needs to go here) from __future__ import print_function -from __future__ import division # for _convertToStateSpace +from __future__ import division # for _convertToStateSpace """Copyright (c) 2010 by California Institute of Technology All rights reserved. @@ -162,8 +162,8 @@ class StateSpace(LTI): A class for representing state-space models - The StateSpace class is used to represent state-space realizations of linear - time-invariant (LTI) systems: + The StateSpace class is used to represent state-space realizations of + linear time-invariant (LTI) systems: dx/dt = A x + B u y = C x + D u @@ -210,7 +210,6 @@ class StateSpace(LTI): # Allow ndarray * StateSpace to give StateSpace._rmul_() priority __array_priority__ = 11 # override ndarray and matrix types - def __init__(self, *args, **kw): """ StateSpace(A, B, C, D[, dt]) @@ -234,8 +233,9 @@ def __init__(self, *args, **kw): elif len(args) == 1: # Use the copy constructor. if not isinstance(args[0], StateSpace): - raise TypeError("The one-argument constructor can only take in a StateSpace " - "object. Received %s." % type(args[0])) + raise TypeError( + "The one-argument constructor can only take in a " + "StateSpace object. Received %s." % type(args[0])) A = args[0].A B = args[0].B C = args[0].C @@ -245,11 +245,13 @@ def __init__(self, *args, **kw): except NameError: dt = config.defaults['statesp.default_dt'] else: - raise ValueError("Needs 1 or 4 arguments; received %i." % len(args)) + raise ValueError( + "Needs 1 or 4 arguments; received %i." % len(args)) # Process keyword arguments - remove_useless = kw.get('remove_useless', - config.defaults['statesp.remove_useless_states']) + remove_useless = kw.get( + 'remove_useless', + config.defaults['statesp.remove_useless_states']) # Convert all matrices to standard form A = _ssmatrix(A) @@ -261,7 +263,7 @@ def __init__(self, *args, **kw): if np.asarray(C).ndim == 1 and len(C) == A.shape[0]: C = _ssmatrix(C, axis=1) else: - C = _ssmatrix(C, axis=0) #if this doesn't work, error below + C = _ssmatrix(C, axis=0) # if this doesn't work, error below if np.isscalar(D) and D == 0 and B.shape[1] > 0 and C.shape[0] > 0: # If D is a scalar zero, broadcast it to the proper size D = np.zeros((C.shape[0], B.shape[1])) @@ -279,9 +281,9 @@ def __init__(self, *args, **kw): if 0 == self.states: # static gain # matrix's default "empty" shape is 1x0 - A.shape = (0,0) - B.shape = (0,self.inputs) - C.shape = (self.outputs,0) + A.shape = (0, 0) + B.shape = (0, self.inputs) + C.shape = (self.outputs, 0) # Check that the matrix sizes are consistent. if self.states != A.shape[0]: @@ -296,14 +298,15 @@ def __init__(self, *args, **kw): raise ValueError("C and D must have the same number of rows.") # Check for states that don't do anything, and remove them. - if remove_useless: self._remove_useless_states() + if remove_useless: + self._remove_useless_states() def _remove_useless_states(self): """Check for states that don't do anything, and remove them. Scan the A, B, and C matrices for rows or columns of zeros. If the - zeros are such that a particular state has no effect on the input-output - dynamics, then remove that state from the A, B, and C matrices. + zeros are such that a particular state has no effect on the input- + output dynamics, then remove that state from the A, B, and C matrices. """ @@ -481,7 +484,8 @@ def _repr_latex_(self): return self._latex_separate() else: cfg = config.defaults['statesp.latex_repr_type'] - raise ValueError("Unknown statesp.latex_repr_type '{cfg}'".format(cfg=cfg)) + raise ValueError( + "Unknown statesp.latex_repr_type '{cfg}'".format(cfg=cfg)) # Negation of a system def __neg__(self): @@ -519,10 +523,9 @@ def __add__(self, other): # Concatenate the various arrays A = concatenate(( concatenate((self.A, zeros((self.A.shape[0], - other.A.shape[-1]))),axis=1), + other.A.shape[-1]))), axis=1), concatenate((zeros((other.A.shape[0], self.A.shape[-1])), - other.A),axis=1) - ),axis=0) + other.A), axis=1)), axis=0) B = concatenate((self.B, other.B), axis=0) C = concatenate((self.C, other.C), axis=1) D = self.D + other.D @@ -566,9 +569,9 @@ def __mul__(self, other): but B has %i row(s)\n(output(s))." % (self.inputs, other.outputs)) # Figure out the sampling time to use - if (self.dt == None and other.dt != None): + if (self.dt is None and other.dt is not None): dt = other.dt # use dt from second argument - elif (other.dt == None and self.dt != None) or \ + elif (other.dt is None and self.dt is not None) or \ (timebaseEqual(self, other)): dt = self.dt # use dt from first argument else: @@ -582,7 +585,7 @@ def __mul__(self, other): concatenate((np.dot(self.B, other.C), self.A), axis=1)), axis=0) B = concatenate((other.B, np.dot(self.B, other.D)), axis=0) - C = concatenate((np.dot(self.D, other.C), self.C),axis=1) + C = concatenate((np.dot(self.D, other.C), self.C), axis=1) D = np.dot(self.D, other.D) return StateSpace(A, B, C, D, dt) @@ -626,7 +629,8 @@ def __div__(self, other): def __rdiv__(self, other): """Right divide two LTI systems.""" - raise NotImplementedError("StateSpace.__rdiv__ is not implemented yet.") + raise NotImplementedError( + "StateSpace.__rdiv__ is not implemented yet.") def evalfr(self, omega): """Evaluate a SS system's transfer function at a single frequency. @@ -773,7 +777,8 @@ def zero(self): if nu == 0: return np.array([]) else: - return sp.linalg.eigvals(out[8][0:nu, 0:nu], out[9][0:nu, 0:nu]) + return sp.linalg.eigvals(out[8][0:nu, 0:nu], + out[9][0:nu, 0:nu]) except ImportError: # Slycot unavailable. Fall back to scipy. if self.C.shape[0] != self.D.shape[1]: @@ -795,7 +800,8 @@ def zero(self): concatenate((self.C, self.D), axis=1)), axis=0) M = pad(eye(self.A.shape[0]), ((0, self.C.shape[0]), (0, self.B.shape[1])), "constant") - return np.array([x for x in sp.linalg.eigvals(L, M, overwrite_a=True) + return np.array([x for x in sp.linalg.eigvals(L, M, + overwrite_a=True) if not isinf(x)]) # Feedback around a state space system @@ -806,13 +812,15 @@ def feedback(self, other=1, sign=-1): # Check to make sure the dimensions are OK if (self.inputs != other.outputs) or (self.outputs != other.inputs): - raise ValueError("State space systems don't have compatible inputs/outputs for " - "feedback.") + raise ValueError( + "State space systems don't have compatible inputs/outputs " + "for feedback.") # Figure out the sampling time to use if self.dt is None and other.dt is not None: dt = other.dt # use dt from second argument - elif other.dt is None and self.dt is not None or timebaseEqual(self, other): + elif other.dt is None and self.dt is not None \ + or timebaseEqual(self, other): dt = self.dt # use dt from first argument else: raise ValueError("Systems have different sampling times") @@ -828,7 +836,8 @@ def feedback(self, other=1, sign=-1): F = eye(self.inputs) - sign * np.dot(D2, D1) if matrix_rank(F) != self.inputs: - raise ValueError("I - sign * D2 * D1 is singular to working precision.") + raise ValueError( + "I - sign * D2 * D1 is singular to working precision.") # Precompute F\D2 and F\C2 (E = inv(F)) # We can solve two linear systems in one pass, since the @@ -886,9 +895,9 @@ def lft(self, other, nu=-1, ny=-1): # TODO # Figure out the sampling time to use - if (self.dt == None and other.dt != None): + if (self.dt is None and other.dt is not None): dt = other.dt # use dt from second argument - elif (other.dt == None and self.dt != None) or \ + elif (other.dt is None and self.dt is not None) or \ timebaseEqual(self, other): dt = self.dt # use dt from first argument else: @@ -924,16 +933,20 @@ def lft(self, other, nu=-1, ny=-1): # solve for the resulting ss by solving for [y, u] using [x, # xbar] and [w1, w2]. TH = np.linalg.solve(F, np.block( - [[C2, np.zeros((ny, other.states)), D21, np.zeros((ny, other.inputs - ny))], - [np.zeros((nu, self.states)), Cbar1, np.zeros((nu, self.inputs - nu)), Dbar12]] + [[C2, np.zeros((ny, other.states)), + D21, np.zeros((ny, other.inputs - ny))], + [np.zeros((nu, self.states)), Cbar1, + np.zeros((nu, self.inputs - nu)), Dbar12]] )) T11 = TH[:ny, :self.states] T12 = TH[:ny, self.states: self.states + other.states] T21 = TH[ny:, :self.states] T22 = TH[ny:, self.states: self.states + other.states] - H11 = TH[:ny, self.states + other.states: self.states + other.states + self.inputs - nu] + H11 = TH[:ny, self.states + other.states:self.states + + other.states + self.inputs - nu] H12 = TH[:ny, self.states + other.states + self.inputs - nu:] - H21 = TH[ny:, self.states + other.states: self.states + other.states + self.inputs - nu] + H21 = TH[ny:, self.states + other.states:self.states + + other.states + self.inputs - nu] H22 = TH[ny:, self.states + other.states + self.inputs - nu:] Ares = np.block([ @@ -964,13 +977,13 @@ def minreal(self, tol=0.0): try: from slycot import tb01pd B = empty((self.states, max(self.inputs, self.outputs))) - B[:,:self.inputs] = self.B + B[:, :self.inputs] = self.B C = empty((max(self.outputs, self.inputs), self.states)) - C[:self.outputs,:] = self.C + C[:self.outputs, :] = self.C A, B, C, nr = tb01pd(self.states, self.inputs, self.outputs, self.A, B, C, tol=tol) - return StateSpace(A[:nr,:nr], B[:nr,:self.inputs], - C[:self.outputs,:nr], self.D) + return StateSpace(A[:nr, :nr], B[:nr, :self.inputs], + C[:self.outputs, :nr], self.D) except ImportError: raise TypeError("minreal requires slycot tb01pd") else: @@ -1061,7 +1074,8 @@ def __getitem__(self, indices): raise IOError('must provide indices of length 2 for state space') i = indices[0] j = indices[1] - return StateSpace(self.A, self.B[:, j], self.C[i, :], self.D[i, j], self.dt) + return StateSpace(self.A, self.B[:, j], self.C[i, :], + self.D[i, j], self.dt) def sample(self, Ts, method='zoh', alpha=None, prewarp_frequency=None): """Convert a continuous time system to discrete time @@ -1113,9 +1127,9 @@ def sample(self, Ts, method='zoh', alpha=None, prewarp_frequency=None): raise ValueError("System must be continuous time system") sys = (self.A, self.B, self.C, self.D) - if (method=='bilinear' or (method=='gbt' and alpha==0.5)) and \ + if (method == 'bilinear' or (method == 'gbt' and alpha == 0.5)) and \ prewarp_frequency is not None: - Twarp = 2*np.tan(prewarp_frequency*Ts/2)/prewarp_frequency + Twarp = 2 * np.tan(prewarp_frequency * Ts/2)/prewarp_frequency else: Twarp = Ts Ad, Bd, C, D, _ = cont2discrete(sys, Twarp, method, alpha) @@ -1142,7 +1156,8 @@ def dcgain(self): """ try: if self.isctime(): - gain = np.asarray(self.D-self.C.dot(np.linalg.solve(self.A, self.B))) + gain = np.asarray(self.D - + self.C.dot(np.linalg.solve(self.A, self.B))) else: gain = self.horner(1) except LinAlgError: @@ -1151,36 +1166,43 @@ def dcgain(self): return np.squeeze(gain) def is_static_gain(self): - """True if and only if the system has no dynamics, that is, - if A and B are zero. """ - return not np.any(self.A) and not np.any(self.B) + """True if and only if the system has no dynamics, that is, + if A and B are zero. """ + return not np.any(self.A) and not np.any(self.B) + # TODO: add discrete time check def _convertToStateSpace(sys, **kw): """Convert a system to state space form (if needed). - If sys is already a state space, then it is returned. If sys is a transfer - function object, then it is converted to a state space and returned. If sys - is a scalar, then the number of inputs and outputs can be specified - manually, as in: + If sys is already a state space, then it is returned. If sys is a + transfer function object, then it is converted to a state space and + returned. If sys is a scalar, then the number of inputs and outputs can + be specified manually, as in: >>> sys = _convertToStateSpace(3.) # Assumes inputs = outputs = 1 >>> sys = _convertToStateSpace(1., inputs=3, outputs=2) In the latter example, A = B = C = 0 and D = [[1., 1., 1.] [1., 1., 1.]]. - """ from .xferfcn import TransferFunction import itertools + if isinstance(sys, StateSpace): if len(kw): - raise TypeError("If sys is a StateSpace, _convertToStateSpace \ -cannot take keywords.") + raise TypeError("If sys is a StateSpace, _convertToStateSpace " + "cannot take keywords.") # Already a state space system; just return it return sys + elif isinstance(sys, TransferFunction): + # Make sure the transfer function is proper + if any([[len(num) for num in col] for col in sys.num] > + [[len(num) for num in col] for col in sys.den]): + raise ValueError("Transfer function is non-proper; can't " + "convert to StateSpace system.") try: from slycot import td04ad if len(kw): @@ -1197,8 +1219,10 @@ def _convertToStateSpace(sys, **kw): denorder, den, num, tol=0) states = ssout[0] - return StateSpace(ssout[1][:states, :states], ssout[2][:states, :sys.inputs], - ssout[3][:sys.outputs, :states], ssout[4], sys.dt) + return StateSpace(ssout[1][:states, :states], + ssout[2][:states, :sys.inputs], + ssout[3][:sys.outputs, :states], ssout[4], + sys.dt) except ImportError: # No Slycot. Scipy tf->ss can't handle MIMO, but static # MIMO is an easy special case we can check for here @@ -1208,7 +1232,8 @@ def _convertToStateSpace(sys, **kw): for drow in sys.den) if 1 == maxn and 1 == maxd: D = empty((sys.outputs, sys.inputs), dtype=float) - for i, j in itertools.product(range(sys.outputs), range(sys.inputs)): + for i, j in itertools.product(range(sys.outputs), + range(sys.inputs)): D[i, j] = sys.num[i][j][0] / sys.den[i][j][0] return StateSpace([], [], [], D, sys.dt) else: @@ -1218,7 +1243,8 @@ def _convertToStateSpace(sys, **kw): # TODO: do we want to squeeze first and check dimenations? # I think this will fail if num and den aren't 1-D after # the squeeze - A, B, C, D = sp.signal.tf2ss(squeeze(sys.num), squeeze(sys.den)) + A, B, C, D = \ + sp.signal.tf2ss(squeeze(sys.num), squeeze(sys.den)) return StateSpace(A, B, C, D, sys.dt) elif isinstance(sys, (int, float, complex, np.number)): @@ -1235,18 +1261,19 @@ def _convertToStateSpace(sys, **kw): # The following Doesn't work due to inconsistencies in ltisys: # return StateSpace([[]], [[]], [[]], eye(outputs, inputs)) return StateSpace(0., zeros((1, inputs)), zeros((outputs, 1)), - sys * ones((outputs, inputs))) + sys * ones((outputs, inputs))) # If this is a matrix, try to create a constant feedthrough try: D = _ssmatrix(sys) return StateSpace([], [], [], D) except Exception as e: - print("Failure to assume argument is matrix-like in" \ - " _convertToStateSpace, result %s" % e) + print("Failure to assume argument is matrix-like in" + " _convertToStateSpace, result %s" % e) raise TypeError("Can't convert given type to StateSpace system.") + # TODO: add discrete time option def _rss_generate(states, inputs, outputs, type): """Generate a random state space. @@ -1272,13 +1299,13 @@ def _rss_generate(states, inputs, outputs, type): # Check for valid input arguments. if states < 1 or states % 1: raise ValueError("states must be a positive integer. states = %g." % - states) + states) if inputs < 1 or inputs % 1: raise ValueError("inputs must be a positive integer. inputs = %g." % - inputs) + inputs) if outputs < 1 or outputs % 1: raise ValueError("outputs must be a positive integer. outputs = %g." % - outputs) + outputs) # Make some poles for A. Preallocate a complex array. poles = zeros(states) + zeros(states) * 0.j @@ -1366,7 +1393,7 @@ def _rss_generate(states, inputs, outputs, type): # Convert a MIMO system to a SISO system # TODO: add discrete time check def _mimo2siso(sys, input, output, warn_conversion=False): - #pylint: disable=W0622 + # pylint: disable=W0622 """ Convert a MIMO system to a SISO system. (Convert a system with multiple inputs and/or outputs, to a system with a single input and output.) @@ -1406,7 +1433,7 @@ def _mimo2siso(sys, input, output, warn_conversion=False): "Selected output: {sel}, " "number of system outputs: {ext}." .format(sel=output, ext=sys.outputs)) - #Convert sys to SISO if necessary + # Convert sys to SISO if necessary if sys.inputs > 1 or sys.outputs > 1: if warn_conversion: warn("Converting MIMO system to SISO system. " @@ -1557,8 +1584,8 @@ def ss(*args): elif isinstance(sys, TransferFunction): return tf2ss(sys) else: - raise TypeError("ss(sys): sys must be a StateSpace or \ -TransferFunction object. It is %s." % type(sys)) + raise TypeError("ss(sys): sys must be a StateSpace or " + "TransferFunction object. It is %s." % type(sys)) else: raise ValueError("Needs 1 or 4 arguments; received %i." % len(args)) @@ -1582,16 +1609,16 @@ def tf2ss(*args): Parameters ---------- - sys: LTI (StateSpace or TransferFunction) + sys : LTI (StateSpace or TransferFunction) A linear system - num: array_like, or list of list of array_like + num : array_like, or list of list of array_like Polynomial coefficients of the numerator - den: array_like, or list of list of array_like + den : array_like, or list of list of array_like Polynomial coefficients of the denominator Returns ------- - out: StateSpace + out : StateSpace New linear system in state space form Raises @@ -1628,8 +1655,8 @@ def tf2ss(*args): elif len(args) == 1: sys = args[0] if not isinstance(sys, TransferFunction): - raise TypeError("tf2ss(sys): sys must be a TransferFunction \ -object.") + raise TypeError("tf2ss(sys): sys must be a TransferFunction " + "object.") return _convertToStateSpace(sys) else: raise ValueError("Needs 1 or 2 arguments; received %i." % len(args)) diff --git a/control/tests/convert_test.py b/control/tests/convert_test.py index de1cf01d1..f92029fe3 100644 --- a/control/tests/convert_test.py +++ b/control/tests/convert_test.py @@ -250,3 +250,16 @@ def test_tf2ss_robustness(self): np.testing.assert_array_almost_equal(np.sort(sys2tf.pole()), np.sort(sys2ss.pole())) + def test_tf2ss_nonproper(self): + """Unit tests for non-proper transfer functions""" + # Easy case: input 2 to output 1 is 's' + num = [ [[0], [1, 0]], [[1], [0]] ] + den1 = [ [[1], [1]], [[1,4], [1]] ] + with pytest.raises(ValueError): + tf2ss(tf(num, den1)) + + # Trickier case (make sure that leading zeros in den are handled) + num = [ [[0], [1, 0]], [[1], [0]] ] + den1 = [ [[1], [0, 1]], [[1,4], [1]] ] + with pytest.raises(ValueError): + tf2ss(tf(num, den1)) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 740416507..42765480c 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -18,7 +18,6 @@ from control import iosys as ios from control.tests.conftest import noscipy0 - class TestIOSys: @pytest.fixture @@ -81,6 +80,11 @@ def test_tf2io(self, tsys): np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y, atol=0.002, rtol=0.) + # Make sure that non-proper transfer functions generate an error + tfsys = ct.tf('s') + with pytest.raises(ValueError): + iosys=ct.tf2io(tfsys) + def test_ss2io(self, tsys): # Create an input/output system from the linear system linsys = tsys.siso_linsys From 75f3aef754b2274a2e28c92d7c2af9c656bd4c60 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 31 Dec 2020 11:32:43 +0100 Subject: [PATCH 050/260] add test for dt in arg and kwarg --- control/tests/xferfcn_test.py | 7 +++++++ control/xferfcn.py | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index f3bba4523..c0b5e227f 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -101,6 +101,13 @@ def test_constructor_nodt(self): sys = TransferFunction(sysin) assert sys.dt is None + def test_constructor_double_dt(self): + """Test that providing dt as arg and kwarg prefers arg with warning""" + with pytest.warns(UserWarning, match="received multiple dt.*" + "using positional arg"): + sys = TransferFunction(1, [1, 2, 3], 0.1, dt=0.2) + assert sys.dt == 0.1 + def test_add_inconsistent_dimension(self): """Add two transfer function matrices of different sizes.""" sys1 = TransferFunction([[[1., 2.]]], [[[4., 5.]]]) diff --git a/control/xferfcn.py b/control/xferfcn.py index 36c5393b0..93743deb1 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -218,7 +218,8 @@ def __init__(self, *args, **kwargs): elif len(args) == 3: # Discrete time transfer function if 'dt' in kwargs: - warn('received multiple dt arguments, using positional arg dt=%s'%dt) + warn('received multiple dt arguments, ' + 'using positional arg dt=%s' % dt) elif len(args) == 1: # TODO: not sure this can ever happen since dt is always present try: From fa041b695f021b4baf60b495ea9fd3ff29c9922e Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 29 Dec 2020 11:03:10 -0800 Subject: [PATCH 051/260] allow naming of linearized system signals --- control/iosys.py | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 65d6c1228..0686e290a 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -494,7 +494,8 @@ def feedback(self, other=1, sign=-1, params={}): # Return the newly created system return newsys - def linearize(self, x0, u0, t=0, params={}, eps=1e-6): + def linearize(self, x0, u0, t=0, params={}, eps=1e-6, + name=None, copy=False, **kwargs): """Linearize an input/output system at a given state and input. Return the linearization of an input/output system at a given state @@ -547,8 +548,20 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6): D[:, i] = (self._out(t, x0, u0 + du) - H0) / eps # Create the state space system - linsys = StateSpace(A, B, C, D, self.dt, remove_useless=False) - return LinearIOSystem(linsys) + linsys = LinearIOSystem( + StateSpace(A, B, C, D, self.dt, remove_useless=False), + name=name, **kwargs) + + # Set the names the system, inputs, outputs, and states + if copy: + linsys.ninputs, linsys.input_index = self.ninputs, \ + self.input_index.copy() + linsys.noutputs, linsys.output_index = \ + self.noutputs, self.output_index.copy() + linsys.nstates, linsys.state_index = \ + self.nstates, self.state_index.copy() + + return linsys def copy(self, newname=None): """Make a copy of an input/output system.""" @@ -1759,6 +1772,11 @@ def linearize(sys, xeq, ueq=[], t=0, params={}, **kw): params : dict, optional Parameter values for the systems. Passed to the evaluation functions for the system as default values, overriding internal defaults. + copy : bool, Optional + If `copy` is True, copy the names of the input signals, output signals, + and states to the linearized system. + name : string, optional + Set the name of the linearized system. Returns ------- From 4f08382f00636ca26acba889b43e83c085544a0b Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 31 Dec 2020 21:28:30 -0800 Subject: [PATCH 052/260] PEP8 cleanup --- control/iosys.py | 143 ++++++++++++++++++++++++++++------------------- 1 file changed, 87 insertions(+), 56 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 0686e290a..07dacdc5c 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -48,6 +48,7 @@ # Define module default parameter values _iosys_defaults = {} + class InputOutputSystem(object): """A class for representing input/output systems. @@ -75,7 +76,7 @@ class for a set of subclasses that are used to implement specific System timebase. 0 (default) indicates continuous time, True indicates discrete time with unspecified sampling time, positive number is discrete time with specified - sampling time, None indicates unspecified timebase (either + sampling time, None indicates unspecified timebase (either continuous or discrete time). params : dict, optional Parameter values for the systems. Passed to the evaluation functions @@ -95,7 +96,7 @@ class for a set of subclasses that are used to implement specific System timebase. 0 (default) indicates continuous time, True indicates discrete time with unspecified sampling time, positive number is discrete time with specified - sampling time, None indicates unspecified timebase (either + sampling time, None indicates unspecified timebase (either continuous or discrete time). params : dict, optional Parameter values for the systems. Passed to the evaluation functions @@ -118,6 +119,7 @@ class for a set of subclasses that are used to implement specific """ idCounter = 0 + def name_or_default(self, name=None): if name is None: name = "sys[{}]".format(InputOutputSystem.idCounter) @@ -153,15 +155,15 @@ def __init__(self, inputs=None, outputs=None, states=None, params={}, System timebase. 0 (default) indicates continuous time, True indicates discrete time with unspecified sampling time, positive number is discrete time with specified - sampling time, None indicates unspecified timebase (either + sampling time, None indicates unspecified timebase (either continuous or discrete time). params : dict, optional Parameter values for the systems. Passed to the evaluation functions for the system as default values, overriding internal defaults. name : string, optional - System name (used for specifying signals). If unspecified, a generic - name is generated with a unique integer id. + System name (used for specifying signals). If unspecified, a + generic name is generated with a unique integer id. Returns ------- @@ -190,11 +192,14 @@ def __str__(self): """String representation of an input/output system""" str = "System: " + (self.name if self.name else "(None)") + "\n" str += "Inputs (%s): " % self.ninputs - for key in self.input_index: str += key + ", " + for key in self.input_index: + str += key + ", " str += "\nOutputs (%s): " % self.noutputs - for key in self.output_index: str += key + ", " + for key in self.output_index: + str += key + ", " str += "\nStates (%s): " % self.nstates - for key in self.state_index: str += key + ", " + for key in self.state_index: + str += key + ", " return str def __mul__(sys2, sys1): @@ -224,10 +229,11 @@ def __mul__(sys2, sys1): # Make sure timebase are compatible dt = common_timebase(sys1.dt, sys2.dt) - inplist = [(0,i) for i in range(sys1.ninputs)] - outlist = [(1,i) for i in range(sys2.noutputs)] + inplist = [(0, i) for i in range(sys1.ninputs)] + outlist = [(1, i) for i in range(sys2.noutputs)] # Return the series interconnection between the systems - newsys = InterconnectedSystem((sys1, sys2), inplist=inplist, outlist=outlist) + newsys = InterconnectedSystem( + (sys1, sys2), inplist=inplist, outlist=outlist) # Set up the connection map manually newsys.set_connect_map(np.block( @@ -281,10 +287,11 @@ def __add__(sys1, sys2): ninputs = sys1.ninputs noutputs = sys1.noutputs - inplist = [[(0,i),(1,i)] for i in range(ninputs)] - outlist = [[(0,i),(1,i)] for i in range(noutputs)] + inplist = [[(0, i), (1, i)] for i in range(ninputs)] + outlist = [[(0, i), (1, i)] for i in range(noutputs)] # Create a new system to handle the composition - newsys = InterconnectedSystem((sys1, sys2), inplist=inplist, outlist=outlist) + newsys = InterconnectedSystem( + (sys1, sys2), inplist=inplist, outlist=outlist) # Return the newly created system return newsys @@ -303,10 +310,11 @@ def __neg__(sys): if sys.ninputs is None or sys.noutputs is None: raise ValueError("Can't determine number of inputs or outputs") - inplist = [(0,i) for i in range(sys.ninputs)] - outlist = [(0,i,-1) for i in range(sys.noutputs)] + inplist = [(0, i) for i in range(sys.ninputs)] + outlist = [(0, i, -1) for i in range(sys.noutputs)] # Create a new system to hold the negation - newsys = InterconnectedSystem((sys,), dt=sys.dt, inplist=inplist, outlist=outlist) + newsys = InterconnectedSystem( + (sys,), dt=sys.dt, inplist=inplist, outlist=outlist) # Return the newly created system return newsys @@ -476,12 +484,13 @@ def feedback(self, other=1, sign=-1, params={}): # Make sure timebases are compatible dt = common_timebase(self.dt, other.dt) - inplist = [(0,i) for i in range(self.ninputs)] - outlist = [(0,i) for i in range(self.noutputs)] + inplist = [(0, i) for i in range(self.ninputs)] + outlist = [(0, i) for i in range(self.noutputs)] # Return the series interconnection between the systems - newsys = InterconnectedSystem((self, other), inplist=inplist, outlist=outlist, - params=params, dt=dt) + newsys = InterconnectedSystem( + (self, other), inplist=inplist, outlist=outlist, + params=params, dt=dt) # Set up the connecton map manually newsys.set_connect_map(np.block( @@ -514,8 +523,10 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6, ninputs = _find_size(self.ninputs, u0) # Convert x0, u0 to arrays, if needed - if np.isscalar(x0): x0 = np.ones((nstates,)) * x0 - if np.isscalar(u0): u0 = np.ones((ninputs,)) * u0 + if np.isscalar(x0): + x0 = np.ones((nstates,)) * x0 + if np.isscalar(u0): + u0 = np.ones((ninputs,)) * u0 # Compute number of outputs by evaluating the output function noutputs = _find_size(self.noutputs, self._out(t, x0, u0)) @@ -566,7 +577,8 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6, def copy(self, newname=None): """Make a copy of an input/output system.""" newsys = copy.copy(self) - newsys.name = self.name_or_default("copy of " + self.name if not newname else newname) + newsys.name = self.name_or_default( + "copy of " + self.name if not newname else newname) return newsys @@ -605,15 +617,15 @@ def __init__(self, linsys, inputs=None, outputs=None, states=None, System timebase. 0 (default) indicates continuous time, True indicates discrete time with unspecified sampling time, positive number is discrete time with specified - sampling time, None indicates unspecified timebase (either + sampling time, None indicates unspecified timebase (either continuous or discrete time). params : dict, optional Parameter values for the systems. Passed to the evaluation functions for the system as default values, overriding internal defaults. name : string, optional - System name (used for specifying signals). If unspecified, a generic - name is generated with a unique integer id. + System name (used for specifying signals). If unspecified, a + generic name is generated with a unique integer id. Returns ------- @@ -729,11 +741,11 @@ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, * dt = 0: continuous time system (default) * dt > 0: discrete time system with sampling period 'dt' * dt = True: discrete time with unspecified sampling period - * dt = None: no timebase specified + * dt = None: no timebase specified name : string, optional - System name (used for specifying signals). If unspecified, a generic - name is generated with a unique integer id. + System name (used for specifying signals). If unspecified, a + generic name is generated with a unique integer id. Returns ------- @@ -899,23 +911,28 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], * dt = 0: continuous time system (default) * dt > 0: discrete time system with sampling period 'dt' * dt = True: discrete time with unspecified sampling period - * dt = None: no timebase specified + * dt = None: no timebase specified name : string, optional - System name (used for specifying signals). If unspecified, a generic - name is generated with a unique integer id. + System name (used for specifying signals). If unspecified, a + generic name is generated with a unique integer id. """ # Convert input and output names to lists if they aren't already - if not isinstance(inplist, (list, tuple)): inplist = [inplist] - if not isinstance(outlist, (list, tuple)): outlist = [outlist] + if not isinstance(inplist, (list, tuple)): + inplist = [inplist] + if not isinstance(outlist, (list, tuple)): + outlist = [outlist] # Check to make sure all systems are consistent self.syslist = syslist self.syslist_index = {} - nstates = 0; self.state_offset = [] - ninputs = 0; self.input_offset = [] - noutputs = 0; self.output_offset = [] + nstates = 0 + self.state_offset = [] + ninputs = 0 + self.input_offset = [] + noutputs = 0 + self.output_offset = [] sysobj_name_dct = {} sysname_count_dct = {} for sysidx, sys in enumerate(syslist): @@ -943,14 +960,16 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], # Duplicates are renamed sysname_1, sysname_2, etc. if sys in sysobj_name_dct: sys = sys.copy() - warn("Duplicate object found in system list: %s. Making a copy" % str(sys)) + warn("Duplicate object found in system list: %s. " + "Making a copy" % str(sys)) if sys.name is not None and sys.name in sysname_count_dct: count = sysname_count_dct[sys.name] sysname_count_dct[sys.name] += 1 sysname = sys.name + "_" + str(count) sysobj_name_dct[sys] = sysname self.syslist_index[sysname] = sysidx - warn("Duplicate name found in system list. Renamed to {}".format(sysname)) + warn("Duplicate name found in system list. " + "Renamed to {}".format(sysname)) else: sysname_count_dct[sys.name] = 1 sysobj_name_dct[sys] = sys.name @@ -959,7 +978,8 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], if states is None: states = [] for sys, sysname in sysobj_name_dct.items(): - states += [sysname + '.' + statename for statename in sys.state_index.keys()] + states += [sysname + '.' + + statename for statename in sys.state_index.keys()] # Create the I/O system super(InterconnectedSystem, self).__init__( @@ -989,14 +1009,16 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], # Convert the input list to a matrix: maps system to subsystems self.input_map = np.zeros((ninputs, self.ninputs)) for index, inpspec in enumerate(inplist): - if isinstance(inpspec, (int, str, tuple)): inpspec = [inpspec] + if isinstance(inpspec, (int, str, tuple)): + inpspec = [inpspec] for spec in inpspec: self.input_map[self._parse_input_spec(spec), index] = 1 # Convert the output list to a matrix: maps subsystems to system self.output_map = np.zeros((self.noutputs, noutputs + ninputs)) for index, outspec in enumerate(outlist): - if isinstance(outspec, (int, str, tuple)): outspec = [outspec] + if isinstance(outspec, (int, str, tuple)): + outspec = [outspec] for spec in outspec: ylist_index, gain = self._parse_output_spec(spec) self.output_map[index, ylist_index] = gain @@ -1041,7 +1063,7 @@ def _rhs(self, t, x, u): # Go through each system and update the right hand side for that system xdot = np.zeros((self.nstates,)) # Array to hold results - state_index = 0; input_index = 0 # Start at the beginning + state_index, input_index = 0, 0 # Start at the beginning for sys in self.syslist: # Update the right hand side for this subsystem if sys.nstates != 0: @@ -1084,7 +1106,7 @@ def _compute_static_io(self, t, x, u): # TODO (later): see if there is a more efficient way to compute cycle_count = len(self.syslist) + 1 while cycle_count > 0: - state_index = 0; input_index = 0; output_index = 0 + state_index, input_index, output_index = 0, 0, 0 for sys in self.syslist: # Compute outputs for each system from current state ysys = sys._out( @@ -1097,8 +1119,8 @@ def _compute_static_io(self, t, x, u): # Store the input in the second part of ylist ylist[noutputs + input_index: - noutputs + input_index + sys.ninputs] = \ - ulist[input_index:input_index + sys.ninputs] + noutputs + input_index + sys.ninputs] = \ + ulist[input_index:input_index + sys.ninputs] # Increment the index pointers state_index += sys.nstates @@ -1229,7 +1251,8 @@ def _parse_signal(self, spec, signame='input', dictname=None): return spec # Figure out the name of the dictionary to use - if dictname is None: dictname = signame + '_index' + if dictname is None: + dictname = signame + '_index' if isinstance(spec, str): # If we got a dotted string, break up into pieces @@ -1415,7 +1438,8 @@ def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', for i in range(len(T)): u = U[i] if len(U.shape) == 1 else U[:, i] y[:, i] = sys._out(T[i], [], u) - if (squeeze): y = np.squeeze(y) + if squeeze: + y = np.squeeze(y) if return_x: return T, y, [] else: @@ -1495,7 +1519,8 @@ def ivp_rhs(t, x): return sys._rhs(t, x, u(t)) raise TypeError("Can't determine system type") # Get rid of extra dimensions in the output, of desired - if (squeeze): y = np.squeeze(y) + if squeeze: + y = np.squeeze(y) if return_x: return soln.t, y, soln.y @@ -1580,9 +1605,12 @@ def find_eqpt(sys, x0, u0=[], y0=None, t=0, params={}, noutputs = _find_size(sys.noutputs, y0) # Convert x0, u0, y0 to arrays, if needed - if np.isscalar(x0): x0 = np.ones((nstates,)) * x0 - if np.isscalar(u0): u0 = np.ones((ninputs,)) * u0 - if np.isscalar(y0): y0 = np.ones((ninputs,)) * y0 + if np.isscalar(x0): + x0 = np.ones((nstates,)) * x0 + if np.isscalar(u0): + u0 = np.ones((ninputs,)) * u0 + if np.isscalar(y0): + y0 = np.ones((ninputs,)) * y0 # Discrete-time not yet supported if isdtime(sys, strict=True): @@ -1718,7 +1746,8 @@ def rootfun(z): # Compute the update and output maps dx = sys._rhs(t, x, u) - dx0 - if dtime: dx -= x # TODO: check + if dtime: + dx -= x # TODO: check dy = sys._out(t, x, u) - y0 # Map the results into the constrained variables @@ -1736,7 +1765,8 @@ def rootfun(z): z = (x, u, sys._out(t, x, u)) # Return the result based on what the user wants and what we found - if not return_y: z = z[0:2] # Strip y from result if not desired + if not return_y: + z = z[0:2] # Strip y from result if not desired if return_result: # Return whatever we got, along with the result dictionary return z + (result,) @@ -1810,7 +1840,8 @@ def _find_size(sysval, vecval): # Convert a state space system into an input/output system (wrapper) -def ss2io(*args, **kw): return LinearIOSystem(*args, **kw) +def ss2io(*args, **kw): + return LinearIOSystem(*args, **kw) ss2io.__doc__ = LinearIOSystem.__init__.__doc__ From e343a33353aefdd66f588e23581cf399466bd370 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 31 Dec 2020 21:55:59 -0800 Subject: [PATCH 053/260] append _linearize for system name + unit tests --- control/iosys.py | 12 +++++++--- control/tests/iosys_test.py | 48 ++++++++++++++++++++++++++++++------- 2 files changed, 49 insertions(+), 11 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 07dacdc5c..67b618a26 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -551,7 +551,7 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6, A[:, i] = (self._rhs(t, x0 + dx, u0) - F0) / eps C[:, i] = (self._out(t, x0 + dx, u0) - H0) / eps - # Perturb each of the input variables and compute linearization + # Perturb each of the input variables and compute linearization for i in range(ninputs): du = np.zeros((ninputs,)) du[i] = eps @@ -565,6 +565,8 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6, # Set the names the system, inputs, outputs, and states if copy: + if name is None: + linsys.name = self.name + "_linearized" linsys.ninputs, linsys.input_index = self.ninputs, \ self.input_index.copy() linsys.noutputs, linsys.output_index = \ @@ -1804,9 +1806,13 @@ def linearize(sys, xeq, ueq=[], t=0, params={}, **kw): for the system as default values, overriding internal defaults. copy : bool, Optional If `copy` is True, copy the names of the input signals, output signals, - and states to the linearized system. + and states to the linearized system. If `name` is not specified, + the system name is set to the input system name with the string + '_linearized' appended. name : string, optional - Set the name of the linearized system. + Set the name of the linearized system. If not specified and if `copy` + is `False`, a generic name is generated with a unique + integer id. Returns ------- diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index d96eefd39..5c7faee6c 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -167,7 +167,22 @@ def test_nonlinear_iosys(self, tsys): np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) - def test_linearize(self, tsys): + @pytest.fixture + def kincar(self): + # Create a simple nonlinear system to check (kinematic car) + def kincar_update(t, x, u, params): + return np.array([np.cos(x[2]) * u[0], np.sin(x[2]) * u[0], u[1]]) + + def kincar_output(t, x, u, params): + return np.array([x[0], x[1]]) + + return ios.NonlinearIOSystem( + kincar_update, kincar_output, + inputs = ['v', 'phi'], + outputs = ['x', 'y'], + states = ['x', 'y', 'theta']) + + def test_linearize(self, tsys, kincar): # Create a single input/single output linear system linsys = tsys.siso_linsys iosys = ios.LinearIOSystem(linsys) @@ -180,13 +195,7 @@ def test_linearize(self, tsys): np.testing.assert_array_almost_equal(linsys.D, linearized.D) # Create a simple nonlinear system to check (kinematic car) - def kincar_update(t, x, u, params): - return np.array([np.cos(x[2]) * u[0], np.sin(x[2]) * u[0], u[1]]) - - def kincar_output(t, x, u, params): - return np.array([x[0], x[1]]) - - iosys = ios.NonlinearIOSystem(kincar_update, kincar_output) + iosys = kincar linearized = iosys.linearize([0, 0, 0], [0, 0]) np.testing.assert_array_almost_equal(linearized.A, np.zeros((3,3))) np.testing.assert_array_almost_equal( @@ -196,6 +205,29 @@ def kincar_output(t, x, u, params): np.testing.assert_array_almost_equal(linearized.D, np.zeros((2,2))) + def test_linearize_named_signals(self, kincar): + # Full form of the call + linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True, + name='linearized') + assert linearized.name == 'linearized' + assert linearized.find_input('v') == 0 + assert linearized.find_input('phi') == 1 + assert linearized.find_output('x') == 0 + assert linearized.find_output('y') == 1 + assert linearized.find_state('x') == 0 + assert linearized.find_state('y') == 1 + assert linearized.find_state('theta') == 2 + + # If we copy signal names w/out a system name, append '_linearized' + linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True) + assert linearized.name == kincar.name + '_linearized' + + # If copy is False, signal names should not be copied + lin_nocopy = kincar.linearize(0, 0, copy=False) + assert lin_nocopy.find_input('v') is None + assert lin_nocopy.find_output('x') is None + assert lin_nocopy.find_state('x') is None + @noscipy0 def test_connect(self, tsys): # Define a couple of (linear) systems to interconnection From aacb64885bb1887389c1a9a8c52beecf43ceea53 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Fri, 1 Jan 2021 21:16:56 +0100 Subject: [PATCH 054/260] error on matrix warning --- setup.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.cfg b/setup.cfg index 227b2b97d..c72ef19a8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,4 +3,6 @@ universal=1 [tool:pytest] addopts = -ra +filterwarnings = + error:.*matrix subclass:PendingDeprecationWarning From 7e852fd242271e77ab9ff56d4cae4c8121c5bda9 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Fri, 1 Jan 2021 22:09:24 +0100 Subject: [PATCH 055/260] move StateSpace generation into test function --- control/tests/statesp_test.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index a69672d36..02fac1776 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -869,15 +869,15 @@ def test_statespace_defaults(self, matarrayout): # test data for test_latex_repr below -LTX_G1 = StateSpace([[np.pi, 1e100], [-1.23456789, 5e-23]], - [[0], [1]], - [[987654321, 0.001234]], - [[5]]) +LTX_G1 = ([[np.pi, 1e100], [-1.23456789, 5e-23]], + [[0], [1]], + [[987654321, 0.001234]], + [[5]]) -LTX_G2 = StateSpace([], - [], - [], - [[1.2345, -2e-200], [-1, 0]]) +LTX_G2 = ([], + [], + [], + [[1.2345, -2e-200], [-1, 0]]) LTX_G1_REF = { 'p3_p' : '\\[\n\\left(\n\\begin{array}{rllrll|rll}\n3.&\\hspace{-1em}14&\\hspace{-1em}\\phantom{\\cdot}&1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{100}&0\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n-1.&\\hspace{-1em}23&\\hspace{-1em}\\phantom{\\cdot}&5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\cdot10^{-23}&1\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\hline\n9.&\\hspace{-1em}88&\\hspace{-1em}\\cdot10^{8}&0.&\\hspace{-1em}00123&\\hspace{-1em}\\phantom{\\cdot}&5\\phantom{.}&\\hspace{-1em}&\\hspace{-1em}\\phantom{\\cdot}\\\\\n\\end{array}\\right)\n\\]', @@ -903,12 +903,12 @@ def test_statespace_defaults(self, matarrayout): refkey_r = {None: 'p', 'partitioned': 'p', 'separate': 's'} -@pytest.mark.parametrize(" g, ref", +@pytest.mark.parametrize(" gmats, ref", [(LTX_G1, LTX_G1_REF), (LTX_G2, LTX_G2_REF)]) @pytest.mark.parametrize("repr_type", [None, "partitioned", "separate"]) @pytest.mark.parametrize("num_format", [None, ".3g", ".5g"]) -def test_latex_repr(g, ref, repr_type, num_format, editsdefaults): +def test_latex_repr(gmats, ref, repr_type, num_format, editsdefaults): """Test `._latex_repr_` with different config values This is a 'gold image' test, so if you change behaviour, @@ -924,6 +924,7 @@ def test_latex_repr(g, ref, repr_type, num_format, editsdefaults): if repr_type is not None: set_defaults('statesp', latex_repr_type=repr_type) + g = StateSpace(*gmats) refkey = "{}_{}".format(refkey_n[num_format], refkey_r[repr_type]) assert g._repr_latex_() == ref[refkey] From 50e61a0b64c42f5ee8309daecfec32b4d19ee085 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 1 Jan 2021 14:14:05 -0800 Subject: [PATCH 056/260] add keyword to geterate strictly proper rss systems --- control/statesp.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index 288b0831d..b41f18c7d 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1264,7 +1264,7 @@ def _convertToStateSpace(sys, **kw): # TODO: add discrete time option -def _rss_generate(states, inputs, outputs, type): +def _rss_generate(states, inputs, outputs, type, strictly_proper=False): """Generate a random state space. This does the actual random state space generation expected from rss and @@ -1374,7 +1374,7 @@ def _rss_generate(states, inputs, outputs, type): # Apply masks. B = B * Bmask C = C * Cmask - D = D * Dmask + D = D * Dmask if not strictly_proper else zeros(D.shape) return StateSpace(A, B, C, D) @@ -1649,7 +1649,7 @@ def tf2ss(*args): raise ValueError("Needs 1 or 2 arguments; received %i." % len(args)) -def rss(states=1, outputs=1, inputs=1): +def rss(states=1, outputs=1, inputs=1, strictly_proper=False): """ Create a stable *continuous* random state space object. @@ -1661,6 +1661,9 @@ def rss(states=1, outputs=1, inputs=1): Number of system inputs outputs : integer Number of system outputs + strictly_proper : bool, optional + If set to 'True', returns a proper system (no direct term). Default + value is 'False'. Returns ------- @@ -1684,10 +1687,11 @@ def rss(states=1, outputs=1, inputs=1): """ - return _rss_generate(states, inputs, outputs, 'c') + return _rss_generate(states, inputs, outputs, 'c', + strictly_proper=strictly_proper) -def drss(states=1, outputs=1, inputs=1): +def drss(states=1, outputs=1, inputs=1, strictly_proper=False): """ Create a stable *discrete* random state space object. @@ -1722,7 +1726,8 @@ def drss(states=1, outputs=1, inputs=1): """ - return _rss_generate(states, inputs, outputs, 'd') + return _rss_generate(states, inputs, outputs, 'd', + strictly_proper=strictly_proper) def ssdata(sys): From 4e46c4a2da6f789b3e6242b39d6e7688920ed037 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 1 Jan 2021 14:18:01 -0800 Subject: [PATCH 057/260] update docs, tests for InterconnectedSystem + small refactoring of gain parsing --- control/iosys.py | 162 +++++++++++++++++--------- control/tests/iosys_test.py | 203 +++++++++++++++++++++++++++------ examples/cruise-control.py | 14 +-- examples/steering-gainsched.py | 14 +-- 4 files changed, 289 insertions(+), 104 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 67b618a26..2324cc838 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -214,7 +214,6 @@ def __mul__(sys2, sys1): elif isinstance(sys1, StateSpace) and isinstance(sys2, StateSpace): # Special case: maintain linear systems structure new_ss_sys = StateSpace.__mul__(sys2, sys1) - # TODO: set input and output names new_io_sys = LinearIOSystem(new_ss_sys) return new_io_sys @@ -825,60 +824,70 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], Parameters ---------- - syslist : array_like of InputOutputSystems + syslist : list of InputOutputSystems The list of input/output systems to be connected - connections : list of tuple of connection specifications, optional - Description of the internal connections between the subsystems. + connections : list of connections, optional + Description of the internal connections between the subsystems: [connection1, connection2, ...] - Each connection is a tuple that describes an input to one of the - subsystems. The entries are of the form: + Each connection is itself a list that describes an input to one of + the subsystems. The entries are of the form: - (input-spec, output-spec1, output-spec2, ...) + [input-spec, output-spec1, output-spec2, ...] - The input-spec should be a tuple of the form `(subsys_i, inp_j)` + The input-spec can be in a number of different forms. The lowest + level representation is a tuple of the form `(subsys_i, inp_j)` where `subsys_i` is the index into `syslist` and `inp_j` is the index into the input vector for the subsystem. If `subsys_i` has a single input, then the subsystem index `subsys_i` can be listed as the input-spec. If systems and signals are given names, then the form 'sys.sig' or ('sys', 'sig') are also recognized. - Each output-spec should be a tuple of the form `(subsys_i, out_j, - gain)`. The input will be constructed by summing the listed - outputs after multiplying by the gain term. If the gain term is - omitted, it is assumed to be 1. If the system has a single - output, then the subsystem index `subsys_i` can be listed as the - input-spec. If systems and signals are given names, then the form - 'sys.sig', ('sys', 'sig') or ('sys', 'sig', gain) are also - recognized, and the special form '-sys.sig' can be used to specify - a signal with gain -1. + Similarly, each output-spec should describe an output signal from + one of the susystems. The lowest level representation is a tuple + of the form `(subsys_i, out_j, gain)`. The input will be + constructed by summing the listed outputs after multiplying by the + gain term. If the gain term is omitted, it is assumed to be 1. + If the system has a single output, then the subsystem index + `subsys_i` can be listed as the input-spec. If systems and + signals are given names, then the form 'sys.sig', ('sys', 'sig') + or ('sys', 'sig', gain) are also recognized, and the special form + '-sys.sig' can be used to specify a signal with gain -1. If omitted, the connection map (matrix) can be specified using the :func:`~control.InterconnectedSystem.set_connect_map` method. - inplist : List of tuple of input specifications, optional - List of specifications for how the inputs for the overall system + inplist : list of input connections, optional + List of connections for how the inputs for the overall system are mapped to the subsystem inputs. The input specification is - similar to the form defined in the connection specification, except - that connections do not specify an input-spec, since these are - the system inputs. The entries are thus of the form: + similar to the form defined in the connection specification, + except that connections do not specify an input-spec, since these + are the system inputs. The entries for a connection are thus of + the form: - (output-spec1, output-spec2, ...) + [input-spec1, input-spec2, ...] Each system input is added to the input for the listed subsystem. + If the system input connects to only one subsystem input, a single + input specification can be given (without the inner list). If omitted, the input map can be specified using the `set_input_map` method. - outlist : tuple of output specifications, optional - List of specifications for how the outputs for the subsystems are - mapped to overall system outputs. The output specification is the - same as the form defined in the inplist specification - (including the optional gain term). Numbered outputs must be - chosen from the list of subsystem outputs, but named outputs can - also be contained in the list of subsystem inputs. + outlist : list of output connections, optional + List of connections for how the outputs from the subsystems are + mapped to overall system outputs. The output connection + description is the same as the form defined in the inplist + specification (including the optional gain term). Numbered + outputs must be chosen from the list of subsystem outputs, but + named outputs can also be contained in the list of subsystem + inputs. + + If an output connection contains more than one signal + specification, then those signals are added together (multiplying + by the any gain term) to form the system output. If omitted, the output map can be specified using the `set_output_map` method. @@ -896,9 +905,10 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], Description of the system outputs. Same format as `inputs`. states : int, list of str, or None, optional - Description of the system states. Same format as `inputs`, except - the state names will be of the form '.', - for each subsys in syslist and each state_name of each subsys. + Description of the system states. Same format as `inputs`. The + default is `None`, in which case the states will be given names of + the form '.', for each subsys in syslist + and each state_name of each subsys. params : dict, optional Parameter values for the systems. Passed to the evaluation @@ -919,6 +929,29 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], System name (used for specifying signals). If unspecified, a generic name is generated with a unique integer id. + Example + ------- + P = control.LinearIOSystem( + ct.rss(2, 2, 2, strictly_proper=True), name='P') + C = control.LinearIOSystem(control.rss(2, 2, 2), name='C') + S = control.InterconnectedSystem( + [P, C], + connections = [ + ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[0]'], + ['C.u[0]', '-P.y[0]'], ['C.u[1]', '-P.y[1]']], + inplist = ['C.u[0]', 'C.u[1]'], + outlist = ['P.y[0]', 'P.y[1]'], + ) + + Notes + ----- + It is possible to replace lists in most of arguments with tuples + instead, but strictly speaking the only use of tuples should be in the + specification of an input- or output-signal via the tuple notation + `(subsys_i, signal_j, gain)` (where `gain` is optional). If you get + an unexpected error message about a specification being of the wrong + type, check your use of tuples. + """ # Convert input and output names to lists if they aren't already if not isinstance(inplist, (list, tuple)): @@ -1006,24 +1039,40 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], input_index = self._parse_input_spec(connection[0]) for output_spec in connection[1:]: output_index, gain = self._parse_output_spec(output_spec) - self.connect_map[input_index, output_index] = gain + if self.connect_map[input_index, output_index] != 0: + warn("multiple connections given for input %d" % + input_index + ". Combining with previous entries.") + self.connect_map[input_index, output_index] += gain # Convert the input list to a matrix: maps system to subsystems self.input_map = np.zeros((ninputs, self.ninputs)) for index, inpspec in enumerate(inplist): if isinstance(inpspec, (int, str, tuple)): inpspec = [inpspec] + if not isinstance(inpspec, list): + raise ValueError("specifications in inplist must be of type " + "int, str, tuple or list.") for spec in inpspec: - self.input_map[self._parse_input_spec(spec), index] = 1 + ulist_index = self._parse_input_spec(spec) + if self.input_map[ulist_index, index] != 0: + warn("multiple connections given for input %d" % + index + ". Combining with previous entries.") + self.input_map[ulist_index, index] += 1 # Convert the output list to a matrix: maps subsystems to system self.output_map = np.zeros((self.noutputs, noutputs + ninputs)) for index, outspec in enumerate(outlist): if isinstance(outspec, (int, str, tuple)): outspec = [outspec] + if not isinstance(outspec, list): + raise ValueError("specifications in outlist must be of type " + "int, str, tuple or list.") for spec in outspec: ylist_index, gain = self._parse_output_spec(spec) - self.output_map[index, ylist_index] = gain + if self.output_map[index, ylist_index] != 0: + warn("multiple connections given for output %d" % + index + ". Combining with previous entries.") + self.output_map[index, ylist_index] += gain # Save the parameters for the system self.params = params.copy() @@ -1166,7 +1215,9 @@ def _parse_input_spec(self, spec): """ # Parse the signal that we received - subsys_index, input_index = self._parse_signal(spec, 'input') + subsys_index, input_index, gain = self._parse_signal(spec, 'input') + if gain != 1: + raise ValueError("gain not allowed in spec '%s'." % str(spec)) # Return the index into the input vector list (ylist) return self.input_offset[subsys_index] + input_index @@ -1195,27 +1246,18 @@ def _parse_output_spec(self, spec): the gain to use for that output. """ - gain = 1 # Default gain - - # Check for special forms of the input - if isinstance(spec, tuple) and len(spec) == 3: - gain = spec[2] - spec = spec[:2] - elif isinstance(spec, str) and spec[0] == '-': - gain = -1 - spec = spec[1:] - # Parse the rest of the spec with standard signal parsing routine try: # Start by looking in the set of subsystem outputs - subsys_index, output_index = self._parse_signal(spec, 'output') + subsys_index, output_index, gain = \ + self._parse_signal(spec, 'output') # Return the index into the input vector list (ylist) return self.output_offset[subsys_index] + output_index, gain except ValueError: # Try looking in the set of subsystem *inputs* - subsys_index, input_index = self._parse_signal( + subsys_index, input_index, gain = self._parse_signal( spec, 'input or output', dictname='input_index') # Return the index into the input vector list (ylist) @@ -1240,17 +1282,27 @@ def _parse_signal(self, spec, signame='input', dictname=None): """ import re + gain = 1 # Default gain + + # Check for special forms of the input + if isinstance(spec, tuple) and len(spec) == 3: + gain = spec[2] + spec = spec[:2] + elif isinstance(spec, str) and spec[0] == '-': + gain = -1 + spec = spec[1:] + # Process cases where we are given indices as integers if isinstance(spec, int): - return spec, 0 + return spec, 0, gain elif isinstance(spec, tuple) and len(spec) == 1 \ and isinstance(spec[0], int): - return spec[0], 0 + return spec[0], 0, gain elif isinstance(spec, tuple) and len(spec) == 2 \ and all([isinstance(index, int) for index in spec]): - return spec + return spec + (gain,) # Figure out the name of the dictionary to use if dictname is None: @@ -1276,7 +1328,7 @@ def _parse_signal(self, spec, signame='input', dictname=None): raise ValueError("Couldn't find %s signal '%s.%s'." % (signame, namelist[0], namelist[1])) - return system_index, signal_index + return system_index, signal_index, gain # Handle the ('sys', 'sig'), (i, j), and mixed cases elif isinstance(spec, tuple) and len(spec) == 2 and \ @@ -1289,7 +1341,7 @@ def _parse_signal(self, spec, signame='input', dictname=None): else: system_index = self._find_system(spec[0]) if system_index is None: - raise ValueError("Couldn't find system %s." % spec[0]) + raise ValueError("Couldn't find system '%s'." % spec[0]) if isinstance(spec[1], int): signal_index = spec[1] @@ -1302,7 +1354,7 @@ def _parse_signal(self, spec, signame='input', dictname=None): if signal_index is None: raise ValueError("Couldn't find signal %s.%s." % tuple(spec)) - return system_index, signal_index + return system_index, signal_index, gain else: raise ValueError("Couldn't parse signal reference %s." % str(spec)) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 5c7faee6c..e70c95dd5 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -239,8 +239,8 @@ def test_connect(self, tsys): # Connect systems in different ways and compare to StateSpace linsys_series = linsys2 * linsys1 iosys_series = ios.InterconnectedSystem( - (iosys1, iosys2), # systems - ((1, 0),), # interconnection (series) + [iosys1, iosys2], # systems + [[1, 0]], # interconnection (series) 0, # input = first system 1 # output = second system ) @@ -259,8 +259,8 @@ def test_connect(self, tsys): linsys2c.dt = 0 # Reset the timebase iosys2c = ios.LinearIOSystem(linsys2c) iosys_series = ios.InterconnectedSystem( - (iosys1, iosys2c), # systems - ((1, 0),), # interconnection (series) + [iosys1, iosys2c], # systems + [[1, 0]], # interconnection (series) 0, # input = first system 1 # output = second system ) @@ -274,9 +274,9 @@ def test_connect(self, tsys): # Feedback interconnection linsys_feedback = ct.feedback(linsys1, linsys2) iosys_feedback = ios.InterconnectedSystem( - (iosys1, iosys2), # systems - ((1, 0), # input of sys2 = output of sys1 - (0, (1, 0, -1))), # input of sys1 = -output of sys2 + [iosys1, iosys2], # systems + [[1, 0], # input of sys2 = output of sys1 + [0, (1, 0, -1)]], # input of sys1 = -output of sys2 0, # input = first system 0 # output = first system ) @@ -286,6 +286,83 @@ def test_connect(self, tsys): np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) + @pytest.mark.parametrize( + "connections, inplist, outlist", + [pytest.param([[(1, 0), (0, 0, 1)]], [[(0, 0, 1)]], [[(1, 0, 1)]], + id="full, raw tuple"), + pytest.param([[(1, 0), (0, 0, -1)]], [[(0, 0)]], [[(1, 0, -1)]], + id="full, raw tuple, canceling gains"), + pytest.param([[(1, 0), (0, 0)]], [[(0, 0)]], [[(1, 0)]], + id="full, raw tuple, no gain"), + pytest.param([[(1, 0), (0, 0)]], [(0, 0)], [(1, 0)], + id="full, raw tuple, no gain, no outer list"), + pytest.param([['sys2.u[0]', 'sys1.y[0]']], ['sys1.u[0]'], + ['sys2.y[0]'], id="named, full"), + pytest.param([['sys2.u[0]', '-sys1.y[0]']], ['sys1.u[0]'], + ['-sys2.y[0]'], id="named, full, caneling gains"), + pytest.param([['sys2.u[0]', 'sys1.y[0]']], 'sys1.u[0]', 'sys2.y[0]', + id="named, full, no list"), + pytest.param([['sys2.u[0]', ('sys1', 'y[0]')]], [(0, 0)], [(1,)], + id="mixed"), + pytest.param([[1, 0]], 0, 1, id="minimal")]) + def test_connect_spec_variants(self, tsys, connections, inplist, outlist): + # Define a couple of (linear) systems to interconnection + linsys1 = tsys.siso_linsys + iosys1 = ios.LinearIOSystem(linsys1, name="sys1") + linsys2 = tsys.siso_linsys + iosys2 = ios.LinearIOSystem(linsys2, name="sys2") + + # Simple series connection + linsys_series = linsys2 * linsys1 + + # Create a simulation run to compare against + T, U = tsys.T, tsys.U + X0 = np.concatenate((tsys.X0, tsys.X0)) + lti_t, lti_y, lti_x = ct.forced_response(linsys_series, T, U, X0) + + # Create the input/output system with different parameter variations + iosys_series = ios.InterconnectedSystem( + [iosys1, iosys2], connections, inplist, outlist) + ios_t, ios_y, ios_x = ios.input_output_response( + iosys_series, T, U, X0, return_x=True) + np.testing.assert_array_almost_equal(lti_t, ios_t) + np.testing.assert_allclose(lti_y, ios_y, atol=0.002, rtol=0.) + + @pytest.mark.parametrize( + "connections, inplist, outlist", + [pytest.param([['sys2.u[0]', 'sys1.y[0]']], + [[('sys1', 'u[0]'), ('sys1', 'u[0]')]], + [('sys2', 'y[0]', 0.5)], id="duplicated input"), + pytest.param([['sys2.u[0]', ('sys1', 'y[0]', 0.5)], + ['sys2.u[0]', ('sys1', 'y[0]', 0.5)]], + 'sys1.u[0]', 'sys2.y[0]', id="duplicated connection"), + pytest.param([['sys2.u[0]', 'sys1.y[0]']], 'sys1.u[0]', + [[('sys2', 'y[0]', 0.5), ('sys2', 'y[0]', 0.5)]], + id="duplicated output")]) + def test_connect_spec_warnings(self, tsys, connections, inplist, outlist): + # Define a couple of (linear) systems to interconnection + linsys1 = tsys.siso_linsys + iosys1 = ios.LinearIOSystem(linsys1, name="sys1") + linsys2 = tsys.siso_linsys + iosys2 = ios.LinearIOSystem(linsys2, name="sys2") + + # Simple series connection + linsys_series = linsys2 * linsys1 + + # Create a simulation run to compare against + T, U = tsys.T, tsys.U + X0 = np.concatenate((tsys.X0, tsys.X0)) + lti_t, lti_y, lti_x = ct.forced_response(linsys_series, T, U, X0) + + # Set up multiple gainst and make sure a warning is generated + with pytest.warns(UserWarning, match="multiple.*Combining"): + iosys_series = ios.InterconnectedSystem( + [iosys1, iosys2], connections, inplist, outlist) + ios_t, ios_y, ios_x = ios.input_output_response( + iosys_series, T, U, X0, return_x=True) + np.testing.assert_array_almost_equal(lti_t, ios_t) + np.testing.assert_allclose(lti_y, ios_y, atol=0.002, rtol=0.) + @noscipy0 def test_static_nonlinearity(self, tsys): # Linear dynamical system @@ -344,9 +421,9 @@ def test_algebraic_loop(self, tsys): # Nonlinear system in feeback loop with LTI system iosys = ios.InterconnectedSystem( - (lnios, nlios), # linear system w/ nonlinear feedback - ((1,), # feedback interconnection (sig to 0) - (0, (1, 0, -1))), + [lnios, nlios], # linear system w/ nonlinear feedback + [[1], # feedback interconnection (sig to 0) + [0, (1, 0, -1)]], 0, # input to linear system 0 # output from linear system ) @@ -356,9 +433,9 @@ def test_algebraic_loop(self, tsys): # Algebraic loop from static nonlinear system in feedback # (error will be due to no states) iosys = ios.InterconnectedSystem( - (nlios1, nlios2), # two copies of a static nonlinear system - ((0, 1), # feedback interconnection - (1, (0, 0, -1))), + [nlios1, nlios2], # two copies of a static nonlinear system + [[0, 1], # feedback interconnection + [1, (0, 0, -1)]], 0, 0 ) args = (iosys, T, U) @@ -370,9 +447,9 @@ def test_algebraic_loop(self, tsys): [[-1, 1], [0, -2]], [[0], [1]], [[1, 0]], [[1]]) lnios = ios.LinearIOSystem(linsys) iosys = ios.InterconnectedSystem( - (nlios, lnios), # linear system w/ nonlinear feedback - ((0, 1), # feedback interconnection - (1, (0, 0, -1))), + [nlios, lnios], # linear system w/ nonlinear feedback + [[0, 1], # feedback interconnection + [1, (0, 0, -1)]], 0, 0 ) args = (iosys, T, U, X0) @@ -758,7 +835,6 @@ def test_params(self, tsys): ios_t, ios_y = ios.input_output_response( iosys, T, U, X0, params={'something':0}) - # Check to make sure results are OK np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) @@ -773,13 +849,13 @@ def test_named_signals(self, tsys): np.dot(tsys.mimo_linsys1.C, np.reshape(x, (-1, 1))) \ + np.dot(tsys.mimo_linsys1.D, np.reshape(u, (-1, 1))) ).reshape(-1,), - inputs = ('u[0]', 'u[1]'), - outputs = ('y[0]', 'y[1]'), + inputs = ['u[0]', 'u[1]'], + outputs = ['y[0]', 'y[1]'], states = tsys.mimo_linsys1.states, name = 'sys1') sys2 = ios.LinearIOSystem(tsys.mimo_linsys2, - inputs = ('u[0]', 'u[1]'), - outputs = ('y[0]', 'y[1]'), + inputs = ['u[0]', 'u[1]'], + outputs = ['y[0]', 'y[1]'], name = 'sys2') # Series interconnection (sys1 * sys2) using __mul__ @@ -802,13 +878,30 @@ def test_named_signals(self, tsys): # Series interconnection (sys1 * sys2) using named + mixed signals ios_connect = ios.InterconnectedSystem( + [sys2, sys1], + connections=[ + [('sys1', 'u[0]'), 'sys2.y[0]'], + ['sys1.u[1]', 'sys2.y[1]'] + ], + inplist=['sys2.u[0]', ('sys2', 1)], + outlist=[(1, 'y[0]'), 'sys1.y[1]'] + ) + lin_series = ct.linearize(ios_connect, 0, 0) + np.testing.assert_array_almost_equal(ss_series.A, lin_series.A) + np.testing.assert_array_almost_equal(ss_series.B, lin_series.B) + np.testing.assert_array_almost_equal(ss_series.C, lin_series.C) + np.testing.assert_array_almost_equal(ss_series.D, lin_series.D) + + # Try the same thing using the interconnect function + # Since sys1 is nonlinear, we should get back the same result + ios_connect = ios.interconnect( (sys2, sys1), connections=( - (('sys1', 'u[0]'), 'sys2.y[0]'), - ('sys1.u[1]', 'sys2.y[1]') + [('sys1', 'u[0]'), 'sys2.y[0]'], + ['sys1.u[1]', 'sys2.y[1]'] ), - inplist=('sys2.u[0]', ('sys2', 1)), - outlist=((1, 'y[0]'), 'sys1.y[1]') + inplist=['sys2.u[0]', ('sys2', 1)], + outlist=[(1, 'y[0]'), 'sys1.y[1]'] ) lin_series = ct.linearize(ios_connect, 0, 0) np.testing.assert_array_almost_equal(ss_series.A, lin_series.A) @@ -816,15 +909,33 @@ def test_named_signals(self, tsys): np.testing.assert_array_almost_equal(ss_series.C, lin_series.C) np.testing.assert_array_almost_equal(ss_series.D, lin_series.D) - # Make sure that we can use input signal names as system outputs - ios_connect = ios.InterconnectedSystem( - (sys1, sys2), + # Try the same thing using the interconnect function + # Since sys1 is nonlinear, we should get back the same result + # Note: use a tuple for connections to make sure it works + ios_connect = ios.interconnect( + (sys2, sys1), connections=( - ('sys2.u[0]', 'sys1.y[0]'), ('sys2.u[1]', 'sys1.y[1]'), - ('sys1.u[0]', '-sys2.y[0]'), ('sys1.u[1]', '-sys2.y[1]') + [('sys1', 'u[0]'), 'sys2.y[0]'], + ['sys1.u[1]', 'sys2.y[1]'] ), - inplist=('sys1.u[0]', 'sys1.u[1]'), - outlist=('sys2.u[0]', 'sys2.u[1]') # = sys1.y[0], sys1.y[1] + inplist=['sys2.u[0]', ('sys2', 1)], + outlist=[(1, 'y[0]'), 'sys1.y[1]'] + ) + lin_series = ct.linearize(ios_connect, 0, 0) + np.testing.assert_array_almost_equal(ss_series.A, lin_series.A) + np.testing.assert_array_almost_equal(ss_series.B, lin_series.B) + np.testing.assert_array_almost_equal(ss_series.C, lin_series.C) + np.testing.assert_array_almost_equal(ss_series.D, lin_series.D) + + # Make sure that we can use input signal names as system outputs + ios_connect = ios.InterconnectedSystem( + [sys1, sys2], + connections=[ + ['sys2.u[0]', 'sys1.y[0]'], ['sys2.u[1]', 'sys1.y[1]'], + ['sys1.u[0]', '-sys2.y[0]'], ['sys1.u[1]', '-sys2.y[1]'] + ], + inplist=['sys1.u[0]', 'sys1.u[1]'], + outlist=['sys2.u[0]', 'sys2.u[1]'] # = sys1.y[0], sys1.y[1] ) ss_feedback = ct.feedback(tsys.mimo_linsys1, tsys.mimo_linsys2) lin_feedback = ct.linearize(ios_connect, 0, 0) @@ -1047,6 +1158,29 @@ def test_lineariosys_statespace(self, tsys): np.testing.assert_array_equal(io_feedback.C, ss_feedback.C) np.testing.assert_array_equal(io_feedback.D, ss_feedback.D) + def test_docstring_example(self): + P = ct.LinearIOSystem( + ct.rss(2, 2, 2, strictly_proper=True), name='P') + C = ct.LinearIOSystem(ct.rss(2, 2, 2), name='C') + S = ct.InterconnectedSystem( + [C, P], + connections = [ + ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[1]'], + ['C.u[0]', '-P.y[0]'], ['C.u[1]', '-P.y[1]']], + inplist = ['C.u[0]', 'C.u[1]'], + outlist = ['P.y[0]', 'P.y[1]'], + ) + ss_P = ct.StateSpace(P.linearize(0, 0)) + ss_C = ct.StateSpace(C.linearize(0, 0)) + ss_eye = ct.StateSpace( + [], np.zeros((0, 2)), np.zeros((2, 0)), np.eye(2)) + ss_S = ct.feedback(ss_P * ss_C, ss_eye) + io_S = S.linearize(0, 0) + np.testing.assert_array_almost_equal(io_S.A, ss_S.A) + np.testing.assert_array_almost_equal(io_S.B, ss_S.B) + np.testing.assert_array_almost_equal(io_S.C, ss_S.C) + np.testing.assert_array_almost_equal(io_S.D, ss_S.D) + def test_duplicates(self, tsys): nlios = ios.NonlinearIOSystem(lambda t, x, u, params: x, lambda t, x, u, params: u * u, @@ -1075,7 +1209,7 @@ def test_duplicates(self, tsys): inputs=1, outputs=1, name="sys") with pytest.warns(UserWarning, match="Duplicate name"): - ct.InterconnectedSystem((nlios1, iosys_siso, nlios2), + ct.InterconnectedSystem([nlios1, iosys_siso, nlios2], inputs=0, outputs=0, states=0) # Same system, different names => everything should be OK @@ -1086,7 +1220,7 @@ def test_duplicates(self, tsys): lambda t, x, u, params: u * u, inputs=1, outputs=1, name="nlios2") with pytest.warns(None) as record: - ct.InterconnectedSystem((nlios1, iosys_siso, nlios2), + ct.InterconnectedSystem([nlios1, iosys_siso, nlios2], inputs=0, outputs=0, states=0) if record: pytest.fail("Warning not expected: " + record[0].message) @@ -1141,7 +1275,6 @@ def pvtol_full(t, x, u, params={}): ]) - def secord_update(t, x, u, params={}): """Second order system dynamics""" omega0 = params.get('omega0', 1.) diff --git a/examples/cruise-control.py b/examples/cruise-control.py index 8e59c79c7..505b4071c 100644 --- a/examples/cruise-control.py +++ b/examples/cruise-control.py @@ -141,8 +141,8 @@ def motor_torque(omega, params={}): cruise_tf = ct.InterconnectedSystem( (control_tf, vehicle), name='cruise', connections = ( - ('control.u', '-vehicle.v'), - ('vehicle.u', 'control.y')), + ['control.u', '-vehicle.v'], + ['vehicle.u', 'control.y']), inplist = ('control.u', 'vehicle.gear', 'vehicle.theta'), inputs = ('vref', 'gear', 'theta'), outlist = ('vehicle.v', 'vehicle.u'), @@ -279,8 +279,8 @@ def pi_output(t, x, u, params={}): cruise_pi = ct.InterconnectedSystem( (vehicle, control_pi), name='cruise', connections=( - ('vehicle.u', 'control.u'), - ('control.v', 'vehicle.v')), + ['vehicle.u', 'control.u'], + ['control.v', 'vehicle.v']), inplist=('control.vref', 'vehicle.gear', 'vehicle.theta'), outlist=('control.u', 'vehicle.v'), outputs=['u', 'v']) @@ -404,9 +404,9 @@ def sf_output(t, z, u, params={}): cruise_sf = ct.InterconnectedSystem( (vehicle, control_sf), name='cruise', connections=( - ('vehicle.u', 'control.u'), - ('control.x', 'vehicle.v'), - ('control.y', 'vehicle.v')), + ['vehicle.u', 'control.u'], + ['control.x', 'vehicle.v'], + ['control.y', 'vehicle.v']), inplist=('control.r', 'vehicle.gear', 'vehicle.theta'), outlist=('control.u', 'vehicle.v'), outputs=['u', 'v']) diff --git a/examples/steering-gainsched.py b/examples/steering-gainsched.py index 8f541ead8..7db2d9a73 100644 --- a/examples/steering-gainsched.py +++ b/examples/steering-gainsched.py @@ -143,13 +143,13 @@ def trajgen_output(t, x, u, params): # Interconnections between subsystems connections=( - ('controller.ex', 'trajgen.xd', '-vehicle.x'), - ('controller.ey', 'trajgen.yd', '-vehicle.y'), - ('controller.etheta', 'trajgen.thetad', '-vehicle.theta'), - ('controller.vd', 'trajgen.vd'), - ('controller.phid', 'trajgen.phid'), - ('vehicle.v', 'controller.v'), - ('vehicle.phi', 'controller.phi') + ['controller.ex', 'trajgen.xd', '-vehicle.x'], + ['controller.ey', 'trajgen.yd', '-vehicle.y'], + ['controller.etheta', 'trajgen.thetad', '-vehicle.theta'], + ['controller.vd', 'trajgen.vd'], + ['controller.phid', 'trajgen.phid'], + ['vehicle.v', 'controller.v'], + ['vehicle.phi', 'controller.phi'] ), # System inputs From da04036b763d1a026406fc2afe2b10f11bf7f50b Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 1 Jan 2021 23:57:17 -0800 Subject: [PATCH 058/260] create LinearInterconnectedSystems for interconnections of linear systems --- control/config.py | 6 + control/iosys.py | 467 +++++++++++++++++++++--------------- control/tests/iosys_test.py | 109 ++++++++- 3 files changed, 381 insertions(+), 201 deletions(-) diff --git a/control/config.py b/control/config.py index 4d4512af7..2e2da14fc 100644 --- a/control/config.py +++ b/control/config.py @@ -215,7 +215,13 @@ def use_legacy_defaults(version): if major == 0 and minor < 9: # switched to 'array' as default for state space objects set_defaults('statesp', use_numpy_matrix=True) + # switched to 0 (=continuous) as default timestep set_defaults('control', default_dt=None) + # changed iosys naming conventions + set_defaults('iosys', state_name_delim='.', + duplicate_system_name_prefix='copy of ', + duplicate_system_name_suffix='') + return (major, minor, patch) diff --git a/control/iosys.py b/control/iosys.py index 2324cc838..009e4565f 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -43,10 +43,14 @@ __all__ = ['InputOutputSystem', 'LinearIOSystem', 'NonlinearIOSystem', 'InterconnectedSystem', 'input_output_response', 'find_eqpt', - 'linearize', 'ss2io', 'tf2io'] + 'linearize', 'ss2io', 'tf2io', 'interconnect'] # Define module default parameter values -_iosys_defaults = {} +_iosys_defaults = { + 'iosys.state_name_delim': '_', + 'iosys.duplicate_system_name_prefix': '', + 'iosys.duplicate_system_name_suffix': '$copy' +} class InputOutputSystem(object): @@ -208,15 +212,11 @@ def __mul__(sys2, sys1): if isinstance(sys1, (int, float, np.number)): # TODO: Scale the output raise NotImplemented("Scalar multiplication not yet implemented") + elif isinstance(sys1, np.ndarray): # TODO: Post-multiply by a matrix raise NotImplemented("Matrix multiplication not yet implemented") - elif isinstance(sys1, StateSpace) and isinstance(sys2, StateSpace): - # Special case: maintain linear systems structure - new_ss_sys = StateSpace.__mul__(sys2, sys1) - new_io_sys = LinearIOSystem(new_ss_sys) - return new_io_sys elif not isinstance(sys1, InputOutputSystem): raise ValueError("Unknown I/O system object ", sys1) @@ -228,13 +228,13 @@ def __mul__(sys2, sys1): # Make sure timebase are compatible dt = common_timebase(sys1.dt, sys2.dt) + # Create a new system to handle the composition inplist = [(0, i) for i in range(sys1.ninputs)] outlist = [(1, i) for i in range(sys2.noutputs)] - # Return the series interconnection between the systems newsys = InterconnectedSystem( (sys1, sys2), inplist=inplist, outlist=outlist) - # Set up the connection map manually + # Set up the connection map manually newsys.set_connect_map(np.block( [[np.zeros((sys1.ninputs, sys1.noutputs)), np.zeros((sys1.ninputs, sys2.noutputs))], @@ -242,7 +242,12 @@ def __mul__(sys2, sys1): np.zeros((sys2.ninputs, sys2.noutputs))]] )) - # Return the newly created system + # If both systems are linear, create LinearInterconnectedSystem + if isinstance(sys1, StateSpace) and isinstance(sys2, StateSpace): + ss_sys = StateSpace.__mul__(sys2, sys1) + return LinearInterconnectedSystem(newsys, ss_sys) + + # Return the newly created InterconnectedSystem return newsys def __rmul__(sys1, sys2): @@ -250,34 +255,31 @@ def __rmul__(sys1, sys2): if isinstance(sys2, (int, float, np.number)): # TODO: Scale the output raise NotImplemented("Scalar multiplication not yet implemented") + elif isinstance(sys2, np.ndarray): # TODO: Post-multiply by a matrix raise NotImplemented("Matrix multiplication not yet implemented") - elif isinstance(sys1, StateSpace) and isinstance(sys2, StateSpace): - # Special case: maintain linear systems structure - new_ss_sys = StateSpace.__rmul__(sys1, sys2) - # TODO: set input and output names - new_io_sys = LinearIOSystem(new_ss_sys) - return new_io_sys elif not isinstance(sys2, InputOutputSystem): raise ValueError("Unknown I/O system object ", sys1) + else: - # Both systetms are InputOutputSystems => use __mul__ + # Both systems are InputOutputSystems => use __mul__ return InputOutputSystem.__mul__(sys2, sys1) def __add__(sys1, sys2): """Add two input/output systems (parallel interconnection)""" # TODO: Allow addition of scalars and matrices - if not isinstance(sys2, InputOutputSystem): - raise ValueError("Unknown I/O system object ", sys2) - elif isinstance(sys1, StateSpace) and isinstance(sys2, StateSpace): - # Special case: maintain linear systems structure - new_ss_sys = StateSpace.__add__(sys1, sys2) - # TODO: set input and output names - new_io_sys = LinearIOSystem(new_ss_sys) + if isinstance(sys2, (int, float, np.number)): + # TODO: Scale the output + raise NotImplemented("Scalar addition not yet implemented") - return new_io_sys + elif isinstance(sys2, np.ndarray): + # TODO: Post-multiply by a matrix + raise NotImplemented("Matrix addition not yet implemented") + + elif not isinstance(sys2, InputOutputSystem): + raise ValueError("Unknown I/O system object ", sys2) # Make sure number of input and outputs match if sys1.ninputs != sys2.ninputs or sys1.noutputs != sys2.noutputs: @@ -286,26 +288,24 @@ def __add__(sys1, sys2): ninputs = sys1.ninputs noutputs = sys1.noutputs + # Create a new system to handle the composition inplist = [[(0, i), (1, i)] for i in range(ninputs)] outlist = [[(0, i), (1, i)] for i in range(noutputs)] - # Create a new system to handle the composition newsys = InterconnectedSystem( (sys1, sys2), inplist=inplist, outlist=outlist) - # Return the newly created system + # If both systems are linear, create LinearInterconnectedSystem + if isinstance(sys1, StateSpace) and isinstance(sys2, StateSpace): + ss_sys = StateSpace.__add__(sys2, sys1) + return LinearInterconnectedSystem(newsys, ss_sys) + + # Return the newly created InterconnectedSystem return newsys # TODO: add __radd__ to allow postaddition by scalars and matrices def __neg__(sys): """Negate an input/output systems (rescale)""" - if isinstance(sys, StateSpace): - # Special case: maintain linear systems structure - new_ss_sys = StateSpace.__neg__(sys) - # TODO: set input and output names - new_io_sys = LinearIOSystem(new_ss_sys) - - return new_io_sys if sys.ninputs is None or sys.noutputs is None: raise ValueError("Can't determine number of inputs or outputs") @@ -315,6 +315,11 @@ def __neg__(sys): newsys = InterconnectedSystem( (sys,), dt=sys.dt, inplist=inplist, outlist=outlist) + # If the system is linear, create LinearInterconnectedSystem + if isinstance(sys, StateSpace): + ss_sys = StateSpace.__neg__(sys) + return LinearInterconnectedSystem(newsys, ss_sys) + # Return the newly created system return newsys @@ -467,11 +472,6 @@ def feedback(self, other=1, sign=-1, params={}): # TODO: add conversion to I/O system when needed if not isinstance(other, InputOutputSystem): raise TypeError("Feedback around I/O system must be I/O system.") - elif isinstance(self, StateSpace) and isinstance(other, StateSpace): - # Special case: maintain linear systems structure - new_ss_sys = StateSpace.feedback(self, other, sign=sign) - # TODO: set input and output names - new_io_sys = LinearIOSystem(new_ss_sys) return new_io_sys @@ -499,6 +499,11 @@ def feedback(self, other=1, sign=-1, params={}): np.zeros((other.ninputs, other.noutputs))]] )) + if isinstance(self, StateSpace) and isinstance(other, StateSpace): + # Special case: maintain linear systems structure + ss_sys = StateSpace.feedback(self, other, sign=sign) + return LinearInterconnectedSystem(newsys, ss_sys) + # Return the newly created system return newsys @@ -577,9 +582,11 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6, def copy(self, newname=None): """Make a copy of an input/output system.""" + dup_prefix = config.defaults['iosys.duplicate_system_name_prefix'] + dup_suffix = config.defaults['iosys.duplicate_system_name_suffix'] newsys = copy.copy(self) newsys.name = self.name_or_default( - "copy of " + self.name if not newname else newname) + dup_prefix + self.name + dup_suffix if not newname else newname) return newsys @@ -822,135 +829,7 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], inputs to other subsystems. The overall system inputs and outputs can be any subset of subsystem inputs and outputs. - Parameters - ---------- - syslist : list of InputOutputSystems - The list of input/output systems to be connected - - connections : list of connections, optional - Description of the internal connections between the subsystems: - - [connection1, connection2, ...] - - Each connection is itself a list that describes an input to one of - the subsystems. The entries are of the form: - - [input-spec, output-spec1, output-spec2, ...] - - The input-spec can be in a number of different forms. The lowest - level representation is a tuple of the form `(subsys_i, inp_j)` - where `subsys_i` is the index into `syslist` and `inp_j` is the - index into the input vector for the subsystem. If `subsys_i` has - a single input, then the subsystem index `subsys_i` can be listed - as the input-spec. If systems and signals are given names, then - the form 'sys.sig' or ('sys', 'sig') are also recognized. - - Similarly, each output-spec should describe an output signal from - one of the susystems. The lowest level representation is a tuple - of the form `(subsys_i, out_j, gain)`. The input will be - constructed by summing the listed outputs after multiplying by the - gain term. If the gain term is omitted, it is assumed to be 1. - If the system has a single output, then the subsystem index - `subsys_i` can be listed as the input-spec. If systems and - signals are given names, then the form 'sys.sig', ('sys', 'sig') - or ('sys', 'sig', gain) are also recognized, and the special form - '-sys.sig' can be used to specify a signal with gain -1. - - If omitted, the connection map (matrix) can be specified using the - :func:`~control.InterconnectedSystem.set_connect_map` method. - - inplist : list of input connections, optional - List of connections for how the inputs for the overall system - are mapped to the subsystem inputs. The input specification is - similar to the form defined in the connection specification, - except that connections do not specify an input-spec, since these - are the system inputs. The entries for a connection are thus of - the form: - - [input-spec1, input-spec2, ...] - - Each system input is added to the input for the listed subsystem. - If the system input connects to only one subsystem input, a single - input specification can be given (without the inner list). - - If omitted, the input map can be specified using the - `set_input_map` method. - - outlist : list of output connections, optional - List of connections for how the outputs from the subsystems are - mapped to overall system outputs. The output connection - description is the same as the form defined in the inplist - specification (including the optional gain term). Numbered - outputs must be chosen from the list of subsystem outputs, but - named outputs can also be contained in the list of subsystem - inputs. - - If an output connection contains more than one signal - specification, then those signals are added together (multiplying - by the any gain term) to form the system output. - - If omitted, the output map can be specified using the - `set_output_map` method. - - inputs : int, list of str or None, optional - Description of the system inputs. This can be given as an integer - count or as a list of strings that name the individual signals. - If an integer count is specified, the names of the signal will be - of the form `s[i]` (where `s` is one of `u`, `y`, or `x`). If - this parameter is not given or given as `None`, the relevant - quantity will be determined when possible based on other - information provided to functions using the system. - - outputs : int, list of str or None, optional - Description of the system outputs. Same format as `inputs`. - - states : int, list of str, or None, optional - Description of the system states. Same format as `inputs`. The - default is `None`, in which case the states will be given names of - the form '.', for each subsys in syslist - and each state_name of each subsys. - - params : dict, optional - Parameter values for the systems. Passed to the evaluation - functions for the system as default values, overriding internal - defaults. - - dt : timebase, optional - The timebase for the system, used to specify whether the system is - operating in continuous or discrete time. It can have the - following values: - - * dt = 0: continuous time system (default) - * dt > 0: discrete time system with sampling period 'dt' - * dt = True: discrete time with unspecified sampling period - * dt = None: no timebase specified - - name : string, optional - System name (used for specifying signals). If unspecified, a - generic name is generated with a unique integer id. - - Example - ------- - P = control.LinearIOSystem( - ct.rss(2, 2, 2, strictly_proper=True), name='P') - C = control.LinearIOSystem(control.rss(2, 2, 2), name='C') - S = control.InterconnectedSystem( - [P, C], - connections = [ - ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[0]'], - ['C.u[0]', '-P.y[0]'], ['C.u[1]', '-P.y[1]']], - inplist = ['C.u[0]', 'C.u[1]'], - outlist = ['P.y[0]', 'P.y[1]'], - ) - - Notes - ----- - It is possible to replace lists in most of arguments with tuples - instead, but strictly speaking the only use of tuples should be in the - specification of an input- or output-signal via the tuple notation - `(subsys_i, signal_j, gain)` (where `gain` is optional). If you get - an unexpected error message about a specification being of the wrong - type, check your use of tuples. + See :func:`~control.interconnect` for a list of parameters. """ # Convert input and output names to lists if they aren't already @@ -996,7 +875,7 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], if sys in sysobj_name_dct: sys = sys.copy() warn("Duplicate object found in system list: %s. " - "Making a copy" % str(sys)) + "Making a copy" % str(sys.name)) if sys.name is not None and sys.name in sysname_count_dct: count = sysname_count_dct[sys.name] sysname_count_dct[sys.name] += 1 @@ -1012,8 +891,9 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], if states is None: states = [] + state_name_delim = config.defaults['iosys.state_name_delim'] for sys, sysname in sysobj_name_dct.items(): - states += [sysname + '.' + + states += [sysname + state_name_delim + statename for statename in sys.state_index.keys()] # Create the I/O system @@ -1077,26 +957,6 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], # Save the parameters for the system self.params = params.copy() - def __add__(self, sys): - # TODO: implement special processing to maintain flat structure - return super(InterconnectedSystem, self).__add__(sys) - - def __radd__(self, sys): - # TODO: implement special processing to maintain flat structure - return super(InterconnectedSystem, self).__radd__(sys) - - def __mul__(self, sys): - # TODO: implement special processing to maintain flat structure - return super(InterconnectedSystem, self).__mul__(sys) - - def __rmul__(self, sys): - # TODO: implement special processing to maintain flat structure - return super(InterconnectedSystem, self).__rmul__(sys) - - def __neg__(self): - # TODO: implement special processing to maintain flat structure - return super(InterconnectedSystem, self).__neg__() - def _update_params(self, params, warning=False): for sys in self.syslist: local = sys.params.copy() # start with system parameters @@ -1424,6 +1284,64 @@ def set_output_map(self, output_map): self.noutputs = output_map.shape[0] +class LinearInterconnectedSystem(InterconnectedSystem, LinearIOSystem): + """Interconnection of a set of linear input/output systems. + + This class is used to implement a system that is an interconnection of + linear input/output systems. It has all of the structure of an + :class:`InterconnectedSystem`, but also maintains the requirement elements + of :class:`LinearIOSystem`, including the :class:`StateSpace` class + structure, allowing it to be passed to functions that expect a + :class:`StateSpace` system. + """ + + def __init__(self, io_sys, ss_sys=None): + if not isinstance(io_sys, InterconnectedSystem): + raise TypeError("First argument must be an interconnected system.") + + # Create the I/O system object + InputOutputSystem.__init__( + self, name=io_sys.name, params=io_sys.params) + + # Copy over the I/O systems attributes + self.syslist = io_sys.syslist + self.ninputs = io_sys.ninputs + self.noutputs = io_sys.noutputs + self.nstates = io_sys.nstates + self.input_index = io_sys.input_index + self.output_index = io_sys.output_index + self.state_index = io_sys.state_index + self.dt = io_sys.dt + + # Copy over the attributes from the interconnected system + self.syslist_index = io_sys.syslist_index + self.state_offset = io_sys.state_offset + self.input_offset = io_sys.input_offset + self.output_offset = io_sys.output_offset + self.connect_map = io_sys.connect_map + self.input_map = io_sys.input_map + self.output_map = io_sys.output_map + self.params = io_sys.params + + # If we didnt' get a state space system, linearize the full system + # TODO: this could be replaced with a direct computation (someday) + if ss_sys is None: + ss_sys = self.linearize(0, 0) + + # Initialize the state space attributes + if isinstance(ss_sys, StateSpace): + # Make sure the dimension match + if io_sys.ninputs != ss_sys.inputs or \ + io_sys.noutputs != ss_sys.outputs or \ + io_sys.nstates != ss_sys.states: + raise ValueError("System dimensions for first and second " + "arguments must match.") + StateSpace.__init__(self, ss_sys, remove_useless=False) + + else: + raise TypeError("Second argument must be a state space system.") + + def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', return_x=False, squeeze=True): @@ -1898,17 +1816,176 @@ def _find_size(sysval, vecval): # Convert a state space system into an input/output system (wrapper) -def ss2io(*args, **kw): - return LinearIOSystem(*args, **kw) +def ss2io(*args, **kwargs): + return LinearIOSystem(*args, **kwargs) ss2io.__doc__ = LinearIOSystem.__init__.__doc__ # Convert a transfer function into an input/output system (wrapper) -def tf2io(*args, **kw): +def tf2io(*args, **kwargs): """Convert a transfer function into an I/O system""" # TODO: add remaining documentation # Convert the system to a state space system linsys = tf2ss(*args) # Now convert the state space system to an I/O system - return LinearIOSystem(linsys, **kw) + return LinearIOSystem(linsys, **kwargs) + + +# Function to create an interconnected system +def interconnect(syslist, connections=[], inplist=[], outlist=[], + inputs=None, outputs=None, states=None, + params={}, dt=None, name=None): + """Interconnect a set of input/output systems. + + This function creates a new system that is an interconnection of a set of + input/output systems. If all of the input systems are linear I/O systems + (type `LinearIOSystem`) then the resulting system will be a linear + interconnected I/O system (type `LinearInterconnectedSystem`) with the + appropriate inputs, outputs, and states. Otherwise, an interconnected I/O + system (type `InterconnectedSystem`) will be created. + + Parameters + ---------- + syslist : list of InputOutputSystems + The list of input/output systems to be connected + + connections : list of connections, optional + Description of the internal connections between the subsystems: + + [connection1, connection2, ...] + + Each connection is itself a list that describes an input to one of the + subsystems. The entries are of the form: + + [input-spec, output-spec1, output-spec2, ...] + + The input-spec can be in a number of different forms. The lowest + level representation is a tuple of the form `(subsys_i, inp_j)` where + `subsys_i` is the index into `syslist` and `inp_j` is the index into + the input vector for the subsystem. If `subsys_i` has a single input, + then the subsystem index `subsys_i` can be listed as the input-spec. + If systems and signals are given names, then the form 'sys.sig' or + ('sys', 'sig') are also recognized. + + Similarly, each output-spec should describe an output signal from one + of the susystems. The lowest level representation is a tuple of the + form `(subsys_i, out_j, gain)`. The input will be constructed by + summing the listed outputs after multiplying by the gain term. If the + gain term is omitted, it is assumed to be 1. If the system has a + single output, then the subsystem index `subsys_i` can be listed as + the input-spec. If systems and signals are given names, then the form + 'sys.sig', ('sys', 'sig') or ('sys', 'sig', gain) are also recognized, + and the special form '-sys.sig' can be used to specify a signal with + gain -1. + + If omitted, the connection map (matrix) can be specified using the + :func:`~control.InterconnectedSystem.set_connect_map` method. + + inplist : list of input connections, optional + List of connections for how the inputs for the overall system are + mapped to the subsystem inputs. The input specification is similar to + the form defined in the connection specification, except that + connections do not specify an input-spec, since these are the system + inputs. The entries for a connection are thus of the form: + + [input-spec1, input-spec2, ...] + + Each system input is added to the input for the listed subsystem. If + the system input connects to only one subsystem input, a single input + specification can be given (without the inner list). + + If omitted, the input map can be specified using the `set_input_map` + method. + + outlist : list of output connections, optional + List of connections for how the outputs from the subsystems are mapped + to overall system outputs. The output connection description is the + same as the form defined in the inplist specification (including the + optional gain term). Numbered outputs must be chosen from the list of + subsystem outputs, but named outputs can also be contained in the list + of subsystem inputs. + + If an output connection contains more than one signal specification, + then those signals are added together (multiplying by the any gain + term) to form the system output. + + If omitted, the output map can be specified using the `set_output_map` + method. + + inputs : int, list of str or None, optional + Description of the system inputs. This can be given as an integer + count or as a list of strings that name the individual signals. If an + integer count is specified, the names of the signal will be of the + form `s[i]` (where `s` is one of `u`, `y`, or `x`). If this parameter + is not given or given as `None`, the relevant quantity will be + determined when possible based on other information provided to + functions using the system. + + outputs : int, list of str or None, optional + Description of the system outputs. Same format as `inputs`. + + states : int, list of str, or None, optional + Description of the system states. Same format as `inputs`. The + default is `None`, in which case the states will be given names of the + form '.', for each subsys in syslist and each + state_name of each subsys. + + params : dict, optional + Parameter values for the systems. Passed to the evaluation functions + for the system as default values, overriding internal defaults. + + dt : timebase, optional + The timebase for the system, used to specify whether the system is + operating in continuous or discrete time. It can have the following + values: + + * dt = 0: continuous time system (default) + * dt > 0: discrete time system with sampling period 'dt' + * dt = True: discrete time with unspecified sampling period + * dt = None: no timebase specified + + name : string, optional + System name (used for specifying signals). If unspecified, a generic + name is generated with a unique integer id. + + Example + ------- + P = control.LinearIOSystem( + ct.rss(2, 2, 2, strictly_proper=True), name='P') + C = control.LinearIOSystem(control.rss(2, 2, 2), name='C') + S = control.InterconnectedSystem( + [P, C], + connections = [ + ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[0]'], + ['C.u[0]', '-P.y[0]'], ['C.u[1]', '-P.y[1]']], + inplist = ['C.u[0]', 'C.u[1]'], + outlist = ['P.y[0]', 'P.y[1]'], + ) + + Notes + ----- + It is possible to replace lists in most of arguments with tuples instead, + but strictly speaking the only use of tuples should be in the + specification of an input- or output-signal via the tuple notation + `(subsys_i, signal_j, gain)` (where `gain` is optional). If you get an + unexpected error message about a specification being of the wrong type, + check your use of tuples. + + In addition to its use for general nonlinear I/O systems, the + `interconnect` function allows linear systems to be interconnected using + named signals (compared with the `connect` function, which uses signal + indicies) and to be treated as both a `StateSpace` system as well as an + `InputOutputSystem`. + + """ + newsys = InterconnectedSystem( + syslist, connections=connections, inplist=inplist, outlist=outlist, + inputs=inputs, outputs=outputs, states=states, + params=params, dt=dt, name=name) + + # If all subsystems are linear systems, maintain linear structure + if all([isinstance(sys, LinearIOSystem) for sys in syslist]): + return LinearInterconnectedSystem(newsys, None) + + return newsys diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index e70c95dd5..dea816deb 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -461,10 +461,11 @@ def test_algebraic_loop(self, tsys): def test_summer(self, tsys): # Construct a MIMO system for testing linsys = tsys.mimo_linsys1 - linio = ios.LinearIOSystem(linsys) + linio1 = ios.LinearIOSystem(linsys) + linio2 = ios.LinearIOSystem(linsys) linsys_parallel = linsys + linsys - iosys_parallel = linio + linio + iosys_parallel = linio1 + linio2 # Set up parameters for simulation T = tsys.T @@ -948,6 +949,8 @@ def test_sys_naming_convention(self, tsys): """Enforce generic system names 'sys[i]' to be present when systems are created without explicit names.""" + ct.config.use_legacy_defaults('0.8.4') # changed delims in 0.9.0 + ct.config.use_numpy_matrix(False) # get rid of warning messages ct.InputOutputSystem.idCounter = 0 sys = ct.LinearIOSystem(tsys.mimo_linsys1) @@ -1001,13 +1004,18 @@ def test_sys_naming_convention(self, tsys): with pytest.warns(UserWarning): unnamedsys1 * unnamedsys1 - def test_signals_naming_convention(self, tsys): + ct.config.reset_defaults() # reset defaults + + def test_signals_naming_convention_0_8_4(self, tsys): """Enforce generic names to be present when systems are created without explicit signal names: input: 'u[i]' state: 'x[i]' output: 'y[i]' """ + + ct.config.use_legacy_defaults('0.8.4') # changed delims in 0.9.0 + ct.config.use_numpy_matrix(False) # get rid of warning messages ct.InputOutputSystem.idCounter = 0 sys = ct.LinearIOSystem(tsys.mimo_linsys1) for statename in ["x[0]", "x[1]"]: @@ -1060,6 +1068,8 @@ def test_signals_naming_convention(self, tsys): assert "sys[1].x[0]" in same_name_series.state_index assert "copy of sys[1].x[0]" in same_name_series.state_index + ct.config.reset_defaults() # reset defaults + def test_named_signals_linearize_inconsistent(self, tsys): """Mare sure that providing inputs or outputs not consistent with updfcn or outfcn fail @@ -1109,6 +1119,7 @@ def outfcn(t, x, u, params): def test_lineariosys_statespace(self, tsys): """Make sure that a LinearIOSystem is also a StateSpace object""" iosys_siso = ct.LinearIOSystem(tsys.siso_linsys) + iosys_siso2 = ct.LinearIOSystem(tsys.siso_linsys) assert isinstance(iosys_siso, ct.StateSpace) # Make sure that state space functions work for LinearIOSystems @@ -1122,7 +1133,7 @@ def test_lineariosys_statespace(self, tsys): np.testing.assert_array_equal(omega_io, omega_ss) # LinearIOSystem methods should override StateSpace methods - io_mul = iosys_siso * iosys_siso + io_mul = iosys_siso * iosys_siso2 assert isinstance(io_mul, ct.InputOutputSystem) # But also retain linear structure @@ -1136,7 +1147,7 @@ def test_lineariosys_statespace(self, tsys): np.testing.assert_array_equal(io_mul.D, ss_series.D) # Make sure that series does the same thing - io_series = ct.series(iosys_siso, iosys_siso) + io_series = ct.series(iosys_siso, iosys_siso2) assert isinstance(io_series, ct.InputOutputSystem) assert isinstance(io_series, ct.StateSpace) np.testing.assert_array_equal(io_series.A, ss_series.A) @@ -1145,7 +1156,7 @@ def test_lineariosys_statespace(self, tsys): np.testing.assert_array_equal(io_series.D, ss_series.D) # Test out feedback as well - io_feedback = ct.feedback(iosys_siso, iosys_siso) + io_feedback = ct.feedback(iosys_siso, iosys_siso2) assert isinstance(io_series, ct.InputOutputSystem) # But also retain linear structure @@ -1158,6 +1169,23 @@ def test_lineariosys_statespace(self, tsys): np.testing.assert_array_equal(io_feedback.C, ss_feedback.C) np.testing.assert_array_equal(io_feedback.D, ss_feedback.D) + # Make sure series interconnections are done in the right order + ss_sys1 = ct.rss(2, 3, 2) + io_sys1 = ct.ss2io(ss_sys1) + ss_sys2 = ct.rss(2, 2, 3) + io_sys2 = ct.ss2io(ss_sys2) + io_series = io_sys2 * io_sys1 + assert io_series.ninputs == 2 + assert io_series.noutputs == 2 + assert io_series.nstates == 4 + + # While we are at it, check that the state space matrices match + ss_series = ss_sys2 * ss_sys1 + np.testing.assert_array_equal(io_series.A, ss_series.A) + np.testing.assert_array_equal(io_series.B, ss_series.B) + np.testing.assert_array_equal(io_series.C, ss_series.C) + np.testing.assert_array_equal(io_series.D, ss_series.D) + def test_docstring_example(self): P = ct.LinearIOSystem( ct.rss(2, 2, 2, strictly_proper=True), name='P') @@ -1192,12 +1220,14 @@ def test_duplicates(self, tsys): ios_series = nlios * nlios # Nonduplicate objects + ct.config.use_legacy_defaults('0.8.4') # changed delims in 0.9.0 nlios1 = nlios.copy() nlios2 = nlios.copy() with pytest.warns(UserWarning, match="Duplicate name"): ios_series = nlios1 * nlios2 assert "copy of sys_1.x[0]" in ios_series.state_index.keys() assert "copy of sys.x[0]" in ios_series.state_index.keys() + ct.config.reset_defaults() # reset defaults # Duplicate names iosys_siso = ct.LinearIOSystem(tsys.siso_linsys) @@ -1226,6 +1256,73 @@ def test_duplicates(self, tsys): pytest.fail("Warning not expected: " + record[0].message) +def test_linear_interconnection(): + ss_sys1 = ct.rss(2, 2, 2, strictly_proper=True) + ss_sys2 = ct.rss(2, 2, 2) + io_sys1 = ios.LinearIOSystem( + ss_sys1, inputs = ('u[0]', 'u[1]'), + outputs = ('y[0]', 'y[1]'), name = 'sys1') + io_sys2 = ios.LinearIOSystem( + ss_sys2, inputs = ('u[0]', 'u[1]'), + outputs = ('y[0]', 'y[1]'), name = 'sys2') + nl_sys2 = ios.NonlinearIOSystem( + lambda t, x, u, params: np.array( + np.dot(ss_sys2.A, np.reshape(x, (-1, 1))) \ + + np.dot(ss_sys2.B, np.reshape(u, (-1, 1)))).reshape((-1,)), + lambda t, x, u, params: np.array( + np.dot(ss_sys2.C, np.reshape(x, (-1, 1))) \ + + np.dot(ss_sys2.D, np.reshape(u, (-1, 1)))).reshape((-1,)), + states = 2, + inputs = ('u[0]', 'u[1]'), + outputs = ('y[0]', 'y[1]'), + name = 'sys2') + + # Create a "regular" InterconnectedSystem + nl_connect = ios.interconnect( + (io_sys1, nl_sys2), + connections=[ + ['sys1.u[1]', 'sys2.y[0]'], + ['sys2.u[0]', 'sys1.y[1]'] + ], + inplist=[ + ['sys1.u[0]', 'sys1.u[1]'], + ['sys2.u[1]']], + outlist=[ + ['sys1.y[0]', '-sys2.y[0]'], + ['sys2.y[1]'], + ['sys2.u[1]']]) + assert isinstance(nl_connect, ios.InterconnectedSystem) + assert not isinstance(nl_connect, ios.LinearInterconnectedSystem) + + # Now take its linearization + ss_connect = nl_connect.linearize(0, 0) + assert isinstance(ss_connect, ios.LinearIOSystem) + + io_connect = ios.interconnect( + (io_sys1, io_sys2), + connections=[ + ['sys1.u[1]', 'sys2.y[0]'], + ['sys2.u[0]', 'sys1.y[1]'] + ], + inplist=[ + ['sys1.u[0]', 'sys1.u[1]'], + ['sys2.u[1]']], + outlist=[ + ['sys1.y[0]', '-sys2.y[0]'], + ['sys2.y[1]'], + ['sys2.u[1]']]) + assert isinstance(io_connect, ios.InterconnectedSystem) + assert isinstance(io_connect, ios.LinearInterconnectedSystem) + assert isinstance(io_connect, ios.LinearIOSystem) + assert isinstance(io_connect, ct.StateSpace) + + # Finally compare the linearization with the linear system + np.testing.assert_array_almost_equal(io_connect.A, ss_connect.A) + np.testing.assert_array_almost_equal(io_connect.B, ss_connect.B) + np.testing.assert_array_almost_equal(io_connect.C, ss_connect.C) + np.testing.assert_array_almost_equal(io_connect.D, ss_connect.D) + + def predprey(t, x, u, params={}): """Predator prey dynamics""" r = params.get('r', 2) From ff4a351dd5d411bca2fde0afb5d298acfefae451 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 2 Jan 2021 07:35:23 -0800 Subject: [PATCH 059/260] turn off selected unit tests for scipy-0.19 --- control/tests/iosys_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index dea816deb..34e8bae93 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -204,7 +204,6 @@ def test_linearize(self, tsys, kincar): linearized.C, [[1, 0, 0], [0, 1, 0]]) np.testing.assert_array_almost_equal(linearized.D, np.zeros((2,2))) - def test_linearize_named_signals(self, kincar): # Full form of the call linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True, @@ -286,6 +285,7 @@ def test_connect(self, tsys): np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) + @noscipy0 @pytest.mark.parametrize( "connections, inplist, outlist", [pytest.param([[(1, 0), (0, 0, 1)]], [[(0, 0, 1)]], [[(1, 0, 1)]], @@ -328,6 +328,7 @@ def test_connect_spec_variants(self, tsys, connections, inplist, outlist): np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y, atol=0.002, rtol=0.) + @noscipy0 @pytest.mark.parametrize( "connections, inplist, outlist", [pytest.param([['sys2.u[0]', 'sys1.y[0]']], From 5125ff7c09dedd5e023fcb53a91a047f01ef8245 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 2 Jan 2021 09:16:35 -0800 Subject: [PATCH 060/260] implementation of initial_phase, wrap_phase keywords for bode() (#494) * implementation of initial_phase, wrap_phase keywords for bode() * add additional documentation on initial_phase if deg=False * clear figure in unit tests to avoid slow plotting problem --- control/freqplot.py | 85 +++++++++++++++++++++++++++++----- control/tests/freqresp_test.py | 67 ++++++++++++++++++++++++++- 2 files changed, 139 insertions(+), 13 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 448814a55..5a03694db 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -78,6 +78,7 @@ 'bode.deg': True, # Plot phase in degrees 'bode.Hz': False, # Plot frequency in Hertz 'bode.grid': True, # Turn on grid for gain and phase + 'bode.wrap_phase': False, # Wrap the phase plot at a given value } @@ -131,7 +132,19 @@ def bode_plot(syslist, omega=None, grid : bool If True, plot grid lines on gain and phase plots. Default is set by `config.defaults['bode.grid']`. - + initial_phase : float + Set the reference phase to use for the lowest frequency. If set, the + initial phase of the Bode plot will be set to the value closest to the + value specified. Units are in either degrees or radians, depending on + the `deg` parameter. Default is -180 if wrap_phase is False, 0 if + wrap_phase is True. + wrap_phase : bool or float + If wrap_phase is `False`, then the phase will be unwrapped so that it + is continuously increasing or decreasing. If wrap_phase is `True` the + phase will be restricted to the range [-180, 180) (or [:math:`-\\pi`, + :math:`\\pi`) radians). If `wrap_phase` is specified as a float, the + phase will be offset by 360 degrees if it falls below the specified + value. Default to `False`, set by config.defaults['bode.wrap_phase']. The default values for Bode plot configuration parameters can be reset using the `config.defaults` dictionary, with module name 'bode'. @@ -171,6 +184,10 @@ def bode_plot(syslist, omega=None, grid = config._get_param('bode', 'grid', kwargs, _bode_defaults, pop=True) plot = config._get_param('bode', 'grid', plot, True) margins = config._get_param('bode', 'margins', margins, False) + wrap_phase = config._get_param( + 'bode', 'wrap_phase', kwargs, _bode_defaults, pop=True) + initial_phase = config._get_param( + 'bode', 'initial_phase', kwargs, None, pop=True) # If argument was a singleton, turn it into a list if not getattr(syslist, '__iter__', False): @@ -209,11 +226,47 @@ def bode_plot(syslist, omega=None, # TODO: What distance to the Nyquist frequency is appropriate? else: nyquistfrq = None + # Get the magnitude and phase of the system mag_tmp, phase_tmp, omega_sys = sys.freqresp(omega_sys) mag = np.atleast_1d(np.squeeze(mag_tmp)) phase = np.atleast_1d(np.squeeze(phase_tmp)) - phase = unwrap(phase) + + # + # Post-process the phase to handle initial value and wrapping + # + + if initial_phase is None: + # Start phase in the range 0 to -360 w/ initial phase = -180 + # If wrap_phase is true, use 0 instead (phase \in (-pi, pi]) + initial_phase = -math.pi if wrap_phase is not True else 0 + elif isinstance(initial_phase, (int, float)): + # Allow the user to override the default calculation + if deg: + initial_phase = initial_phase/180. * math.pi + else: + raise ValueError("initial_phase must be a number.") + + # Shift the phase if needed + if abs(phase[0] - initial_phase) > math.pi: + phase -= 2*math.pi * \ + round((phase[0] - initial_phase) / (2*math.pi)) + + # Phase wrapping + if wrap_phase is False: + phase = unwrap(phase) # unwrap the phase + elif wrap_phase is True: + pass # default calculation OK + elif isinstance(wrap_phase, (int, float)): + phase = unwrap(phase) # unwrap the phase first + if deg: + wrap_phase *= math.pi/180. + + # Shift the phase if it is below the wrap_phase + phase += 2*math.pi * np.maximum( + 0, np.ceil((wrap_phase - phase)/(2*math.pi))) + else: + raise ValueError("wrap_phase must be bool or float.") mags.append(mag) phases.append(phase) @@ -270,7 +323,9 @@ def bode_plot(syslist, omega=None, label='control-bode-phase', sharex=ax_mag) + # # Magnitude plot + # if dB: pltline = ax_mag.semilogx(omega_plot, 20 * np.log10(mag), *args, **kwargs) @@ -285,19 +340,22 @@ def bode_plot(syslist, omega=None, ax_mag.grid(grid and not margins, which='both') ax_mag.set_ylabel("Magnitude (dB)" if dB else "Magnitude") + # # Phase plot - if deg: - phase_plot = phase * 180. / math.pi - else: - phase_plot = phase + # + phase_plot = phase * 180. / math.pi if deg else phase + + # Plot the data ax_phase.semilogx(omega_plot, phase_plot, *args, **kwargs) # Show the phase and gain margins in the plot if margins: + # Compute stability margins for the system margin = stability_margins(sys) - gm, pm, Wcg, Wcp = \ - margin[0], margin[1], margin[3], margin[4] - # TODO: add some documentation describing why this is here + gm, pm, Wcg, Wcp = (margin[i] for i in (0, 1, 3, 4)) + + # Figure out sign of the phase at the first gain crossing + # (needed if phase_wrap is True) phase_at_cp = phases[0][(np.abs(omegas[0] - Wcp)).argmin()] if phase_at_cp >= 0.: phase_limit = 180. @@ -307,6 +365,7 @@ def bode_plot(syslist, omega=None, if Hz: Wcg, Wcp = Wcg/(2*math.pi), Wcp/(2*math.pi) + # Draw lines at gain and phase limits ax_mag.axhline(y=0 if dB else 1, color='k', linestyle=':', zorder=-20) ax_phase.axhline(y=phase_limit if deg else @@ -315,6 +374,7 @@ def bode_plot(syslist, omega=None, mag_ylim = ax_mag.get_ylim() phase_ylim = ax_phase.get_ylim() + # Annotate the phase margin (if it exists) if pm != float('inf') and Wcp != float('nan'): if dB: ax_mag.semilogx( @@ -327,7 +387,7 @@ def bode_plot(syslist, omega=None, if deg: ax_phase.semilogx( - [Wcp, Wcp], [1e5, phase_limit+pm], + [Wcp, Wcp], [1e5, phase_limit + pm], color='k', linestyle=':', zorder=-20) ax_phase.semilogx( [Wcp, Wcp], [phase_limit + pm, phase_limit], @@ -343,6 +403,7 @@ def bode_plot(syslist, omega=None, math.radians(phase_limit)], color='k', zorder=-20) + # Annotate the gain margin (if it exists) if gm != float('inf') and Wcg != float('nan'): if dB: ax_mag.semilogx( @@ -360,11 +421,11 @@ def bode_plot(syslist, omega=None, if deg: ax_phase.semilogx( - [Wcg, Wcg], [1e-8, phase_limit], + [Wcg, Wcg], [0, phase_limit], color='k', linestyle=':', zorder=-20) else: ax_phase.semilogx( - [Wcg, Wcg], [1e-8, math.radians(phase_limit)], + [Wcg, Wcg], [0, math.radians(phase_limit)], color='k', linestyle=':', zorder=-20) ax_mag.set_ylim(mag_ylim) diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 29c67d9af..111d4296c 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -9,6 +9,7 @@ import matplotlib.pyplot as plt import numpy as np from numpy.testing import assert_allclose +import math import pytest import control as ctrl @@ -173,7 +174,7 @@ def test_bode_margin(dB, maginfty1, maginfty2, gminv, rtol=1e-5) phase_to_infinity = (np.array([Wcg, Wcg]), - np.array([1e-8, p0])) + np.array([0, p0])) assert_allclose(phase_to_infinity, allaxes[1].lines[4].get_data(), rtol=1e-5) @@ -271,3 +272,67 @@ def test_options(editsdefaults): # Make sure we got the right number of points assert numpoints1 != numpoints3 assert numpoints3 == 13 + +@pytest.mark.parametrize( + "TF, initial_phase, default_phase, expected_phase", + [pytest.param(ctrl.tf([1], [1, 0]), + None, -math.pi/2, -math.pi/2, id="order1, default"), + pytest.param(ctrl.tf([1], [1, 0]), + 180, -math.pi/2, 3*math.pi/2, id="order1, 180"), + pytest.param(ctrl.tf([1], [1, 0, 0]), + None, -math.pi, -math.pi, id="order2, default"), + pytest.param(ctrl.tf([1], [1, 0, 0]), + 180, -math.pi, math.pi, id="order2, 180"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0]), + None, -3*math.pi/2, -3*math.pi/2, id="order2, default"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0]), + 180, -3*math.pi/2, math.pi/2, id="order2, 180"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0, 0]), + None, 0, 0, id="order4, default"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0, 0]), + 180, 0, 0, id="order4, 180"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0, 0]), + -360, 0, -2*math.pi, id="order4, -360"), + ]) +def test_initial_phase(TF, initial_phase, default_phase, expected_phase): + # Check initial phase of standard transfer functions + mag, phase, omega = ctrl.bode(TF) + assert(abs(phase[0] - default_phase) < 0.1) + + # Now reset the initial phase to +180 and see if things work + mag, phase, omega = ctrl.bode(TF, initial_phase=initial_phase) + assert(abs(phase[0] - expected_phase) < 0.1) + + # Make sure everything works in rad/sec as well + if initial_phase: + plt.clf() # clear previous figure (speeds things up) + mag, phase, omega = ctrl.bode( + TF, initial_phase=initial_phase/180. * math.pi, deg=False) + assert(abs(phase[0] - expected_phase) < 0.1) + + +@pytest.mark.parametrize( + "TF, wrap_phase, min_phase, max_phase", + [pytest.param(ctrl.tf([1], [1, 0]), + None, -math.pi/2, 0, id="order1, default"), + pytest.param(ctrl.tf([1], [1, 0]), + True, -math.pi, math.pi, id="order1, True"), + pytest.param(ctrl.tf([1], [1, 0]), + -270, -3*math.pi/2, math.pi/2, id="order1, -270"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0]), + None, -3*math.pi/2, 0, id="order3, default"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0]), + True, -math.pi, math.pi, id="order3, True"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0]), + -270, -3*math.pi/2, math.pi/2, id="order3, -270"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0, 0, 0]), + True, -3*math.pi/2, 0, id="order5, default"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0, 0, 0]), + True, -math.pi, math.pi, id="order5, True"), + pytest.param(ctrl.tf([1], [1, 0, 0, 0, 0, 0]), + -270, -3*math.pi/2, math.pi/2, id="order5, -270"), + ]) +def test_phase_wrap(TF, wrap_phase, min_phase, max_phase): + mag, phase, omega = ctrl.bode(TF, wrap_phase=wrap_phase) + assert(min(phase) >= min_phase) + assert(max(phase) <= max_phase) From 4f04f485431cb96a00e71d3eba8ab6597c6199db Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 2 Jan 2021 14:59:40 -0800 Subject: [PATCH 061/260] updated sphinx documentation + changed to LinearICSystem --- control/bdalg.py | 7 +++ control/iosys.py | 97 +++++++++++++++++++------------------ control/tests/iosys_test.py | 4 +- control/xferfcn.py | 2 +- doc/classes.rst | 7 ++- doc/control.rst | 11 +++-- doc/iosys.rst | 62 ++++++++++++------------ 7 files changed, 99 insertions(+), 91 deletions(-) diff --git a/control/bdalg.py b/control/bdalg.py index a9ba6cd16..f88e8e813 100644 --- a/control/bdalg.py +++ b/control/bdalg.py @@ -326,6 +326,13 @@ def connect(sys, Q, inputv, outputv): >>> Q = [[1, 2], [2, -1]] # negative feedback interconnection >>> sysc = connect(sys, Q, [2], [1, 2]) + Notes + ----- + The :func:`~control.interconnect` function in the + :ref:`input/output systems ` module allows the use + of named signals and provides an alternative method for + interconnecting multiple systems. + """ inputv, outputv, Q = np.asarray(inputv), np.asarray(outputv), np.asarray(Q) # check indices diff --git a/control/iosys.py b/control/iosys.py index 009e4565f..77868692f 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -42,8 +42,8 @@ from . import config __all__ = ['InputOutputSystem', 'LinearIOSystem', 'NonlinearIOSystem', - 'InterconnectedSystem', 'input_output_response', 'find_eqpt', - 'linearize', 'ss2io', 'tf2io', 'interconnect'] + 'InterconnectedSystem', 'LinearICSystem', 'input_output_response', + 'find_eqpt', 'linearize', 'ss2io', 'tf2io', 'interconnect'] # Define module default parameter values _iosys_defaults = { @@ -110,8 +110,8 @@ class for a set of subclasses that are used to implement specific Notes ----- - The `InputOuputSystem` class (and its subclasses) makes use of two special - methods for implementing much of the work of the class: + The :class:`~control.InputOuputSystem` class (and its subclasses) makes + use of two special methods for implementing much of the work of the class: * _rhs(t, x, u): compute the right hand side of the differential or difference equation for the system. This must be specified by the @@ -137,8 +137,8 @@ def __init__(self, inputs=None, outputs=None, states=None, params={}, The InputOutputSystem contructor is used to create an input/output object with the core information required for all input/output systems. Instances of this class are normally created by one of the - input/output subclasses: :class:`~control.LinearIOSystem`, - :class:`~control.NonlinearIOSystem`, + input/output subclasses: :class:`~control.LinearICSystem`, + :class:`~control.LinearIOSystem`, :class:`~control.NonlinearIOSystem`, :class:`~control.InterconnectedSystem`. Parameters @@ -242,10 +242,10 @@ def __mul__(sys2, sys1): np.zeros((sys2.ninputs, sys2.noutputs))]] )) - # If both systems are linear, create LinearInterconnectedSystem + # If both systems are linear, create LinearICSystem if isinstance(sys1, StateSpace) and isinstance(sys2, StateSpace): ss_sys = StateSpace.__mul__(sys2, sys1) - return LinearInterconnectedSystem(newsys, ss_sys) + return LinearICSystem(newsys, ss_sys) # Return the newly created InterconnectedSystem return newsys @@ -294,10 +294,10 @@ def __add__(sys1, sys2): newsys = InterconnectedSystem( (sys1, sys2), inplist=inplist, outlist=outlist) - # If both systems are linear, create LinearInterconnectedSystem + # If both systems are linear, create LinearICSystem if isinstance(sys1, StateSpace) and isinstance(sys2, StateSpace): ss_sys = StateSpace.__add__(sys2, sys1) - return LinearInterconnectedSystem(newsys, ss_sys) + return LinearICSystem(newsys, ss_sys) # Return the newly created InterconnectedSystem return newsys @@ -315,10 +315,10 @@ def __neg__(sys): newsys = InterconnectedSystem( (sys,), dt=sys.dt, inplist=inplist, outlist=outlist) - # If the system is linear, create LinearInterconnectedSystem + # If the system is linear, create LinearICSystem if isinstance(sys, StateSpace): ss_sys = StateSpace.__neg__(sys) - return LinearInterconnectedSystem(newsys, ss_sys) + return LinearICSystem(newsys, ss_sys) # Return the newly created system return newsys @@ -502,7 +502,7 @@ def feedback(self, other=1, sign=-1, params={}): if isinstance(self, StateSpace) and isinstance(other, StateSpace): # Special case: maintain linear systems structure ss_sys = StateSpace.feedback(self, other, sign=sign) - return LinearInterconnectedSystem(newsys, ss_sys) + return LinearICSystem(newsys, ss_sys) # Return the newly created system return newsys @@ -697,10 +697,10 @@ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, name=None, **kwargs): """Create a nonlinear I/O system given update and output functions. - Creates an `InputOutputSystem` for a nonlinear system by specifying a - state update function and an output function. The new system can be a - continuous or discrete time system (Note: discrete-time systems not - yet supported by most function.) + Creates an :class:`~control.InputOutputSystem` for a nonlinear system + by specifying a state update function and an output function. The new + system can be a continuous or discrete time system (Note: + discrete-time systems not yet supported by most function.) Parameters ---------- @@ -1284,15 +1284,16 @@ def set_output_map(self, output_map): self.noutputs = output_map.shape[0] -class LinearInterconnectedSystem(InterconnectedSystem, LinearIOSystem): +class LinearICSystem(InterconnectedSystem, LinearIOSystem): """Interconnection of a set of linear input/output systems. This class is used to implement a system that is an interconnection of linear input/output systems. It has all of the structure of an - :class:`InterconnectedSystem`, but also maintains the requirement elements - of :class:`LinearIOSystem`, including the :class:`StateSpace` class - structure, allowing it to be passed to functions that expect a - :class:`StateSpace` system. + :class:`~control.InterconnectedSystem`, but also maintains the requirement + elements of :class:`~control.LinearIOSystem`, including the + :class:`StateSpace` class structure, allowing it to be passed to functions + that expect a :class:`StateSpace` system. + """ def __init__(self, io_sys, ss_sys=None): @@ -1755,7 +1756,7 @@ def linearize(sys, xeq, ueq=[], t=0, params={}, **kw): """Linearize an input/output system at a given state and input. This function computes the linearization of an input/output system at a - given state and input value and returns a :class:`control.StateSpace` + given state and input value and returns a :class:`~control.StateSpace` object. The eavaluation point need not be an equilibrium point. Parameters @@ -1840,10 +1841,11 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], This function creates a new system that is an interconnection of a set of input/output systems. If all of the input systems are linear I/O systems - (type `LinearIOSystem`) then the resulting system will be a linear - interconnected I/O system (type `LinearInterconnectedSystem`) with the - appropriate inputs, outputs, and states. Otherwise, an interconnected I/O - system (type `InterconnectedSystem`) will be created. + (type :class:`~control.LinearIOSystem`) then the resulting system will be + a linear interconnected I/O system (type :class:`~control.LinearICSystem`) + with the appropriate inputs, outputs, and states. Otherwise, an + interconnected I/O system (type :class:`~control.InterconnectedSystem`) + will be created. Parameters ---------- @@ -1895,8 +1897,8 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], the system input connects to only one subsystem input, a single input specification can be given (without the inner list). - If omitted, the input map can be specified using the `set_input_map` - method. + If omitted, the input map can be specified using the + :func:`~control.InterconnectedSystem.set_input_map` method. outlist : list of output connections, optional List of connections for how the outputs from the subsystems are mapped @@ -1910,8 +1912,8 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], then those signals are added together (multiplying by the any gain term) to form the system output. - If omitted, the output map can be specified using the `set_output_map` - method. + If omitted, the output map can be specified using the + :func:`~control.InterconnectedSystem.set_output_map` method. inputs : int, list of str or None, optional Description of the system inputs. This can be given as an integer @@ -1951,17 +1953,17 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], Example ------- - P = control.LinearIOSystem( - ct.rss(2, 2, 2, strictly_proper=True), name='P') - C = control.LinearIOSystem(control.rss(2, 2, 2), name='C') - S = control.InterconnectedSystem( - [P, C], - connections = [ - ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[0]'], - ['C.u[0]', '-P.y[0]'], ['C.u[1]', '-P.y[1]']], - inplist = ['C.u[0]', 'C.u[1]'], - outlist = ['P.y[0]', 'P.y[1]'], - ) + >>> P = control.LinearIOSystem( + >>> ct.rss(2, 2, 2, strictly_proper=True), name='P') + >>> C = control.LinearIOSystem(control.rss(2, 2, 2), name='C') + >>> S = control.InterconnectedSystem( + >>> [P, C], + >>> connections = [ + >>> ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[0]'], + >>> ['C.u[0]', '-P.y[0]'], ['C.u[1]', '-P.y[1]']], + >>> inplist = ['C.u[0]', 'C.u[1]'], + >>> outlist = ['P.y[0]', 'P.y[1]'], + >>> ) Notes ----- @@ -1973,10 +1975,11 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], check your use of tuples. In addition to its use for general nonlinear I/O systems, the - `interconnect` function allows linear systems to be interconnected using - named signals (compared with the `connect` function, which uses signal - indicies) and to be treated as both a `StateSpace` system as well as an - `InputOutputSystem`. + :func:`~control.interconnect` function allows linear systems to be + interconnected using named signals (compared with the + :func:`~control.connect` function, which uses signal indicies) and to be + treated as both a :class:`~control.StateSpace` system as well as an + :class:`~control.InputOutputSystem`. """ newsys = InterconnectedSystem( @@ -1986,6 +1989,6 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], # If all subsystems are linear systems, maintain linear structure if all([isinstance(sys, LinearIOSystem) for sys in syslist]): - return LinearInterconnectedSystem(newsys, None) + return LinearICSystem(newsys, None) return newsys diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 34e8bae93..5ab91a8f3 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -1293,7 +1293,7 @@ def test_linear_interconnection(): ['sys2.y[1]'], ['sys2.u[1]']]) assert isinstance(nl_connect, ios.InterconnectedSystem) - assert not isinstance(nl_connect, ios.LinearInterconnectedSystem) + assert not isinstance(nl_connect, ios.LinearICSystem) # Now take its linearization ss_connect = nl_connect.linearize(0, 0) @@ -1313,7 +1313,7 @@ def test_linear_interconnection(): ['sys2.y[1]'], ['sys2.u[1]']]) assert isinstance(io_connect, ios.InterconnectedSystem) - assert isinstance(io_connect, ios.LinearInterconnectedSystem) + assert isinstance(io_connect, ios.LinearICSystem) assert isinstance(io_connect, ios.LinearIOSystem) assert isinstance(io_connect, ct.StateSpace) diff --git a/control/xferfcn.py b/control/xferfcn.py index 93743deb1..9a70e36b6 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -809,7 +809,7 @@ def returnScipySignalLTI(self, strict=True): continuous (0) or discrete (True or > 0). False: if `tfobject.dt` is None, continuous time - :class:`scipy.signal.lti`objects are returned + :class:`scipy.signal.lti` objects are returned Returns ------- diff --git a/doc/classes.rst b/doc/classes.rst index 0981843ca..b948f23aa 100644 --- a/doc/classes.rst +++ b/doc/classes.rst @@ -16,18 +16,17 @@ these directly. TransferFunction StateSpace FrequencyResponseData - ~iosys.InputOutputSystem + InputOutputSystem Input/output system subclasses ============================== -.. currentmodule:: control.iosys - Input/output systems are accessed primarily via a set of subclasses that allow for linear, nonlinear, and interconnected elements: .. autosummary:: :toctree: generated/ + InterconnectedSystem + LinearICSystem LinearIOSystem NonlinearIOSystem - InterconnectedSystem diff --git a/doc/control.rst b/doc/control.rst index d44de3f04..a3423e379 100644 --- a/doc/control.rst +++ b/doc/control.rst @@ -139,11 +139,12 @@ Nonlinear system support .. autosummary:: :toctree: generated/ - ~iosys.find_eqpt - ~iosys.linearize - ~iosys.input_output_response - ~iosys.ss2io - ~iosys.tf2io + find_eqpt + interconnect + linearize + input_output_response + ss2io + tf2io flatsys.point_to_point .. _utility-and-conversions: diff --git a/doc/iosys.rst b/doc/iosys.rst index 0353a01d7..b2ac752af 100644 --- a/doc/iosys.rst +++ b/doc/iosys.rst @@ -4,10 +4,6 @@ Input/output systems ******************** -.. automodule:: control.iosys - :no-members: - :no-inherited-members: - Module usage ============ @@ -40,16 +36,16 @@ equation) and and output function (computes the outputs from the state):: io_sys = NonlinearIOSystem(updfcn, outfcn, inputs=M, outputs=P, states=N) More complex input/output systems can be constructed by using the -:class:`~control.InterconnectedSystem` class, which allows a collection of -input/output subsystems to be combined with internal connections between the -subsystems and a set of overall system inputs and outputs that link to the -subsystems:: +:func:`~control.interconnect` function, which allows a collection of +input/output subsystems to be combined with internal connections +between the subsystems and a set of overall system inputs and outputs +that link to the subsystems:: - steering = ct.InterconnectedSystem( - (plant, controller), name='system', - connections=(('controller.e', '-plant.y')), - inplist=('controller.e'), inputs='r', - outlist=('plant.y'), outputs='y') + steering = ct.interconnect( + [plant, controller], name='system', + connections=[['controller.e', '-plant.y']], + inplist=['controller.e'], inputs='r', + outlist=['plant.y'], outputs='y') Interconnected systems can also be created using block diagram manipulations such as the :func:`~control.series`, :func:`~control.parallel`, and @@ -160,19 +156,19 @@ The input to the controller is `u`, consisting of the vector of hare and lynx populations followed by the desired lynx population. To connect the controller to the predatory-prey model, we create an -`InterconnectedSystem`: +:class:`~control.InterconnectedSystem`: .. code-block:: python - io_closed = control.InterconnectedSystem( - (io_predprey, io_controller), # systems - connections=( - ('predprey.u', 'control.y[0]'), - ('control.u1', 'predprey.H'), - ('control.u2', 'predprey.L') - ), - inplist=('control.Ld'), - outlist=('predprey.H', 'predprey.L', 'control.y[0]') + io_closed = control.interconnect( + [io_predprey, io_controller], # systems + connections=[ + ['predprey.u', 'control.y[0]'], + ['control.u1', 'predprey.H'], + ['control.u2', 'predprey.L'] + ], + inplist=['control.Ld'], + outlist=['predprey.H', 'predprey.L', 'control.y[0]'] ) Finally, we simulate the closed loop system: @@ -200,18 +196,20 @@ Input/output system classes --------------------------- .. autosummary:: - InputOutputSystem - InterconnectedSystem - LinearIOSystem - NonlinearIOSystem + ~control.InputOutputSystem + ~control.InterconnectedSystem + ~control.LinearICSystem + ~control.LinearIOSystem + ~control.NonlinearIOSystem Input/output system functions ----------------------------- .. autosummary:: - find_eqpt - linearize - input_output_response - ss2io - tf2io + ~control.find_eqpt + ~control.linearize + ~control.input_output_response + ~control.interconnect + ~control.ss2io + ~control.tf2io From 14fc96eccbc2f0f60eeaa2cdc03ecc099f785df8 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 2 Jan 2021 19:29:05 -0800 Subject: [PATCH 062/260] allow default linearized system name to be customized --- control/config.py | 4 +++- control/iosys.py | 28 ++++++++++++++++++++++------ control/tests/iosys_test.py | 5 +++++ 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/control/config.py b/control/config.py index 2e2da14fc..b4950ae5e 100644 --- a/control/config.py +++ b/control/config.py @@ -222,6 +222,8 @@ def use_legacy_defaults(version): # changed iosys naming conventions set_defaults('iosys', state_name_delim='.', duplicate_system_name_prefix='copy of ', - duplicate_system_name_suffix='') + duplicate_system_name_suffix='', + linearized_system_name_prefix='', + linearized_system_name_suffix='_linearized') return (major, minor, patch) diff --git a/control/iosys.py b/control/iosys.py index 77868692f..94b8234c6 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -49,7 +49,9 @@ _iosys_defaults = { 'iosys.state_name_delim': '_', 'iosys.duplicate_system_name_prefix': '', - 'iosys.duplicate_system_name_suffix': '$copy' + 'iosys.duplicate_system_name_suffix': '$copy', + 'iosys.linearized_system_name_prefix': '', + 'iosys.linearized_system_name_suffix': '$linearized' } @@ -570,7 +572,10 @@ def linearize(self, x0, u0, t=0, params={}, eps=1e-6, # Set the names the system, inputs, outputs, and states if copy: if name is None: - linsys.name = self.name + "_linearized" + linsys.name = \ + config.defaults['iosys.linearized_system_name_prefix'] + \ + self.name + \ + config.defaults['iosys.linearized_system_name_suffix'] linsys.ninputs, linsys.input_index = self.ninputs, \ self.input_index.copy() linsys.noutputs, linsys.output_index = \ @@ -1781,9 +1786,13 @@ def linearize(sys, xeq, ueq=[], t=0, params={}, **kw): the system name is set to the input system name with the string '_linearized' appended. name : string, optional - Set the name of the linearized system. If not specified and if `copy` - is `False`, a generic name is generated with a unique - integer id. + Set the name of the linearized system. If not specified and + if `copy` is `False`, a generic name is generated + with a unique integer id. If `copy` is `True`, the new system + name is determined by adding the prefix and suffix strings in + config.defaults['iosys.linearized_system_name_prefix'] and + config.defaults['iosys.linearized_system_name_suffix'], with the + default being to add the suffix '$linearized'. Returns ------- @@ -1967,6 +1976,13 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], Notes ----- + If a system is duplicated in the list of systems to be connected, + a warning is generated a copy of the system is created with the + name of the new system determined by adding the prefix and suffix + strings in config.defaults['iosys.linearized_system_name_prefix'] + and config.defaults['iosys.linearized_system_name_suffix'], with the + default being to add the suffix '$copy'$ to the system name. + It is possible to replace lists in most of arguments with tuples instead, but strictly speaking the only use of tuples should be in the specification of an input- or output-signal via the tuple notation @@ -1977,7 +1993,7 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], In addition to its use for general nonlinear I/O systems, the :func:`~control.interconnect` function allows linear systems to be interconnected using named signals (compared with the - :func:`~control.connect` function, which uses signal indicies) and to be + :func:`~control.connect` function, which uses signal indices) and to be treated as both a :class:`~control.StateSpace` system as well as an :class:`~control.InputOutputSystem`. diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 5ab91a8f3..64bac53d8 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -218,8 +218,13 @@ def test_linearize_named_signals(self, kincar): assert linearized.find_state('theta') == 2 # If we copy signal names w/out a system name, append '_linearized' + ct.use_legacy_defaults('0.8.4') linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True) assert linearized.name == kincar.name + '_linearized' + ct.use_legacy_defaults('0.9.0') + linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True) + assert linearized.name == kincar.name + '$linearized' + ct.reset_defaults() # If copy is False, signal names should not be copied lin_nocopy = kincar.linearize(0, 0, copy=False) From e767986587baa13db90b25f5ff330d0a3513b61b Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 2 Jan 2021 21:56:26 -0800 Subject: [PATCH 063/260] fix bug in iosys unit test (reset_defaults) --- control/tests/iosys_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 64bac53d8..291ce868e 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -219,8 +219,11 @@ def test_linearize_named_signals(self, kincar): # If we copy signal names w/out a system name, append '_linearized' ct.use_legacy_defaults('0.8.4') + ct.config.use_numpy_matrix(False) # get rid of warning messages linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True) assert linearized.name == kincar.name + '_linearized' + + ct.reset_defaults() ct.use_legacy_defaults('0.9.0') linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True) assert linearized.name == kincar.name + '$linearized' From 488edf58b3528c88493dd50772b053d841b00724 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 4 Jan 2021 19:31:21 -0800 Subject: [PATCH 064/260] use editdefaults fixture and matrixfilter mark for unit testing --- control/tests/iosys_test.py | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 291ce868e..740f9ce73 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -16,7 +16,7 @@ import control as ct from control import iosys as ios -from control.tests.conftest import noscipy0 +from control.tests.conftest import noscipy0, matrixfilter class TestIOSys: @@ -204,6 +204,8 @@ def test_linearize(self, tsys, kincar): linearized.C, [[1, 0, 0], [0, 1, 0]]) np.testing.assert_array_almost_equal(linearized.D, np.zeros((2,2))) + @pytest.mark.usefixtures("editsdefaults") + @matrixfilter # avoid np.matrix warnings in v0.8.4 def test_linearize_named_signals(self, kincar): # Full form of the call linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True, @@ -217,17 +219,14 @@ def test_linearize_named_signals(self, kincar): assert linearized.find_state('y') == 1 assert linearized.find_state('theta') == 2 - # If we copy signal names w/out a system name, append '_linearized' - ct.use_legacy_defaults('0.8.4') - ct.config.use_numpy_matrix(False) # get rid of warning messages + # If we copy signal names w/out a system name, append '$linearized' linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True) - assert linearized.name == kincar.name + '_linearized' + assert linearized.name == kincar.name + '$linearized' - ct.reset_defaults() - ct.use_legacy_defaults('0.9.0') + # Test legacy version as well + ct.use_legacy_defaults('0.8.4') linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True) - assert linearized.name == kincar.name + '$linearized' - ct.reset_defaults() + assert linearized.name == kincar.name + '_linearized' # If copy is False, signal names should not be copied lin_nocopy = kincar.linearize(0, 0, copy=False) @@ -954,12 +953,13 @@ def test_named_signals(self, tsys): np.testing.assert_array_almost_equal(ss_feedback.C, lin_feedback.C) np.testing.assert_array_almost_equal(ss_feedback.D, lin_feedback.D) + @pytest.mark.usefixtures("editsdefaults") + @matrixfilter # avoid np.matrix warnings in v0.8.4 def test_sys_naming_convention(self, tsys): """Enforce generic system names 'sys[i]' to be present when systems are created without explicit names.""" ct.config.use_legacy_defaults('0.8.4') # changed delims in 0.9.0 - ct.config.use_numpy_matrix(False) # get rid of warning messages ct.InputOutputSystem.idCounter = 0 sys = ct.LinearIOSystem(tsys.mimo_linsys1) @@ -1013,8 +1013,8 @@ def test_sys_naming_convention(self, tsys): with pytest.warns(UserWarning): unnamedsys1 * unnamedsys1 - ct.config.reset_defaults() # reset defaults - + @pytest.mark.usefixtures("editsdefaults") + @matrixfilter # avoid np.matrix warnings in v0.8.4 def test_signals_naming_convention_0_8_4(self, tsys): """Enforce generic names to be present when systems are created without explicit signal names: @@ -1024,7 +1024,6 @@ def test_signals_naming_convention_0_8_4(self, tsys): """ ct.config.use_legacy_defaults('0.8.4') # changed delims in 0.9.0 - ct.config.use_numpy_matrix(False) # get rid of warning messages ct.InputOutputSystem.idCounter = 0 sys = ct.LinearIOSystem(tsys.mimo_linsys1) for statename in ["x[0]", "x[1]"]: @@ -1077,8 +1076,6 @@ def test_signals_naming_convention_0_8_4(self, tsys): assert "sys[1].x[0]" in same_name_series.state_index assert "copy of sys[1].x[0]" in same_name_series.state_index - ct.config.reset_defaults() # reset defaults - def test_named_signals_linearize_inconsistent(self, tsys): """Mare sure that providing inputs or outputs not consistent with updfcn or outfcn fail @@ -1218,6 +1215,8 @@ def test_docstring_example(self): np.testing.assert_array_almost_equal(io_S.C, ss_S.C) np.testing.assert_array_almost_equal(io_S.D, ss_S.D) + @pytest.mark.usefixtures("editsdefaults") + @matrixfilter # avoid np.matrix warnings in v0.8.4 def test_duplicates(self, tsys): nlios = ios.NonlinearIOSystem(lambda t, x, u, params: x, lambda t, x, u, params: u * u, @@ -1236,7 +1235,6 @@ def test_duplicates(self, tsys): ios_series = nlios1 * nlios2 assert "copy of sys_1.x[0]" in ios_series.state_index.keys() assert "copy of sys.x[0]" in ios_series.state_index.keys() - ct.config.reset_defaults() # reset defaults # Duplicate names iosys_siso = ct.LinearIOSystem(tsys.siso_linsys) From 5ed0f96765e3677969f2e969b7b4043b393e7fee Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 5 Jan 2021 07:54:14 -0800 Subject: [PATCH 065/260] fix issue with np.matrix deprecation in iosys_test.py --- control/tests/iosys_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 740f9ce73..4a8e09930 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -205,7 +205,6 @@ def test_linearize(self, tsys, kincar): np.testing.assert_array_almost_equal(linearized.D, np.zeros((2,2))) @pytest.mark.usefixtures("editsdefaults") - @matrixfilter # avoid np.matrix warnings in v0.8.4 def test_linearize_named_signals(self, kincar): # Full form of the call linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True, @@ -225,6 +224,7 @@ def test_linearize_named_signals(self, kincar): # Test legacy version as well ct.use_legacy_defaults('0.8.4') + ct.config.use_numpy_matrix(False) # np.matrix deprecated linearized = kincar.linearize([0, 0, 0], [0, 0], copy=True) assert linearized.name == kincar.name + '_linearized' @@ -954,12 +954,12 @@ def test_named_signals(self, tsys): np.testing.assert_array_almost_equal(ss_feedback.D, lin_feedback.D) @pytest.mark.usefixtures("editsdefaults") - @matrixfilter # avoid np.matrix warnings in v0.8.4 def test_sys_naming_convention(self, tsys): """Enforce generic system names 'sys[i]' to be present when systems are created without explicit names.""" ct.config.use_legacy_defaults('0.8.4') # changed delims in 0.9.0 + ct.config.use_numpy_matrix(False) # np.matrix deprecated ct.InputOutputSystem.idCounter = 0 sys = ct.LinearIOSystem(tsys.mimo_linsys1) @@ -1014,7 +1014,6 @@ def test_sys_naming_convention(self, tsys): unnamedsys1 * unnamedsys1 @pytest.mark.usefixtures("editsdefaults") - @matrixfilter # avoid np.matrix warnings in v0.8.4 def test_signals_naming_convention_0_8_4(self, tsys): """Enforce generic names to be present when systems are created without explicit signal names: @@ -1024,6 +1023,7 @@ def test_signals_naming_convention_0_8_4(self, tsys): """ ct.config.use_legacy_defaults('0.8.4') # changed delims in 0.9.0 + ct.config.use_numpy_matrix(False) # np.matrix deprecated ct.InputOutputSystem.idCounter = 0 sys = ct.LinearIOSystem(tsys.mimo_linsys1) for statename in ["x[0]", "x[1]"]: @@ -1216,7 +1216,6 @@ def test_docstring_example(self): np.testing.assert_array_almost_equal(io_S.D, ss_S.D) @pytest.mark.usefixtures("editsdefaults") - @matrixfilter # avoid np.matrix warnings in v0.8.4 def test_duplicates(self, tsys): nlios = ios.NonlinearIOSystem(lambda t, x, u, params: x, lambda t, x, u, params: u * u, @@ -1229,6 +1228,7 @@ def test_duplicates(self, tsys): # Nonduplicate objects ct.config.use_legacy_defaults('0.8.4') # changed delims in 0.9.0 + ct.config.use_numpy_matrix(False) # np.matrix deprecated nlios1 = nlios.copy() nlios2 = nlios.copy() with pytest.warns(UserWarning, match="Duplicate name"): From 195bec3effa50052518ebf4cd042c846eecdd964 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 5 Jan 2021 22:20:28 -0800 Subject: [PATCH 066/260] rebase sawyerbfuller-call-method against master --- control/bench/time_freqresp.py | 4 +- control/frdata.py | 192 ++++++++++++++-------------- control/freqplot.py | 24 ++-- control/lti.py | 141 ++++++++++++++------- control/margins.py | 14 +- control/matlab/__init__.py | 4 +- control/nichols.py | 2 +- control/rlocus.py | 12 +- control/statesp.py | 225 ++++++++++++++++++--------------- control/tests/frd_test.py | 158 +++++++++++------------ control/tests/freqresp_test.py | 12 +- control/tests/iosys_test.py | 4 +- control/tests/margin_test.py | 12 +- control/tests/statesp_test.py | 45 +++++-- control/tests/xferfcn_test.py | 84 +++++++----- control/xferfcn.py | 175 +++++++++++-------------- examples/robust_mimo.py | 2 +- examples/robust_siso.py | 8 +- 18 files changed, 594 insertions(+), 524 deletions(-) diff --git a/control/bench/time_freqresp.py b/control/bench/time_freqresp.py index 1945cbc24..3ae837082 100644 --- a/control/bench/time_freqresp.py +++ b/control/bench/time_freqresp.py @@ -8,7 +8,7 @@ sys_tf = tf(sys) w = logspace(-1,1,50) ntimes = 1000 -time_ss = timeit("sys.freqresp(w)", setup="from __main__ import sys, w", number=ntimes) -time_tf = timeit("sys_tf.freqresp(w)", setup="from __main__ import sys_tf, w", number=ntimes) +time_ss = timeit("sys.freqquency_response(w)", setup="from __main__ import sys, w", number=ntimes) +time_tf = timeit("sys_tf.frequency_response(w)", setup="from __main__ import sys_tf, w", number=ntimes) print("State-space model on %d states: %f" % (nstates, time_ss)) print("Transfer-function model on %d states: %f" % (nstates, time_tf)) diff --git a/control/frdata.py b/control/frdata.py index 8ca9dfd9d..95c84e0ba 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -48,7 +48,7 @@ from warnings import warn import numpy as np from numpy import angle, array, empty, ones, \ - real, imag, absolute, eye, linalg, where, dot + real, imag, absolute, eye, linalg, where, dot, sort from scipy.interpolate import splprep, splev from .lti import LTI @@ -100,6 +100,7 @@ def __init__(self, *args, **kwargs): object, other than an FRD, call FRD(sys, omega) """ + # TODO: discrete-time FRD systems? smooth = kwargs.get('smooth', False) if len(args) == 2: @@ -107,17 +108,10 @@ def __init__(self, *args, **kwargs): # not an FRD, but still a system, second argument should be # the frequency range otherlti = args[0] - self.omega = array(args[1], dtype=float) - self.omega.sort() + self.omega = sort(np.asarray(args[1], dtype=float)) numfreq = len(self.omega) - # calculate frequency response at my points - self.fresp = empty( - (otherlti.outputs, otherlti.inputs, numfreq), - dtype=complex) - for k, w in enumerate(self.omega): - self.fresp[:, :, k] = otherlti._evalfr(w) - + self.fresp = otherlti(1j * self.omega, squeeze=False) else: # The user provided a response and a freq vector self.fresp = array(args[0], dtype=complex) @@ -141,7 +135,7 @@ def __init__(self, *args, **kwargs): self.omega = args[0].omega self.fresp = args[0].fresp else: - raise ValueError("Needs 1 or 2 arguments; receivd %i." % len(args)) + raise ValueError("Needs 1 or 2 arguments; received %i." % len(args)) # create interpolation functions if smooth: @@ -163,7 +157,6 @@ def __str__(self): mimo = self.inputs > 1 or self.outputs > 1 outstr = ['Frequency response data'] - mt, pt, wt = self.freqresp(self.omega) for i in range(self.inputs): for j in range(self.outputs): if mimo: @@ -171,9 +164,10 @@ def __str__(self): outstr.append('Freq [rad/s] Response') outstr.append('------------ ---------------------') outstr.extend( - ['%12.3f %10.4g%+10.4gj' % (w, m, p) - for m, p, w in zip(real(self.fresp[j, i, :]), - imag(self.fresp[j, i, :]), wt)]) + ['%12.3f %10.4g%+10.4gj' % (w, re, im) + for w, re, im in zip(self.omega, + real(self.fresp[j, i, :]), + imag(self.fresp[j, i, :]))]) return '\n'.join(outstr) @@ -342,110 +336,115 @@ def __pow__(self, other): return (FRD(ones(self.fresp.shape), self.omega) / self) * \ (self**(other+1)) - def evalfr(self, omega): - """Evaluate a transfer function at a single angular frequency. - - self._evalfr(omega) returns the value of the frequency response - at frequency omega. - - Note that a "normal" FRD only returns values for which there is an - entry in the omega vector. An interpolating FRD can return - intermediate values. - - """ - warn("FRD.evalfr(omega) will be deprecated in a future release " - "of python-control; use sys.eval(omega) instead", - PendingDeprecationWarning) # pragma: no coverage - return self._evalfr(omega) - # Define the `eval` function to evaluate an FRD at a given (real) # frequency. Note that we choose to use `eval` instead of `evalfr` to # avoid confusion with :func:`evalfr`, which takes a complex number as its # argument. Similarly, we don't use `__call__` to avoid confusion between # G(s) for a transfer function and G(omega) for an FRD object. - def eval(self, omega): - """Evaluate a transfer function at a single angular frequency. - - self.evalfr(omega) returns the value of the frequency response - at frequency omega. + # update Sawyer B. Fuller 2020.08.14: __call__ added to provide a uniform + # interface to systems in general and the lti.frequency_response method + def eval(self, omega, squeeze=True): + """Evaluate a transfer function at angular frequency omega. Note that a "normal" FRD only returns values for which there is an entry in the omega vector. An interpolating FRD can return intermediate values. + Parameters + ---------- + omega: float or array_like + Frequencies in radians per second + squeeze: bool, optional (default=True) + If True and `sys` is single input single output (SISO), returns a + 1D array or scalar depending on the length of `omega` + + Returns + ------- + fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is ``len(x)`` if and + only if system is SISO and ``squeeze=True``. + """ - return self._evalfr(omega) - - # Internal function to evaluate the frequency responses - def _evalfr(self, omega): - """Evaluate a transfer function at a single angular frequency.""" - # Preallocate the output. - if getattr(omega, '__iter__', False): - out = empty((self.outputs, self.inputs, len(omega)), dtype=complex) - else: - out = empty((self.outputs, self.inputs), dtype=complex) + omega_array = np.array(omega, ndmin=1) # array-like version of omega + if any(omega_array.imag > 0): + raise ValueError("FRD.eval can only accept real-valued omega") if self.ifunc is None: - try: - out = self.fresp[:, :, where(self.omega == omega)[0][0]] - except Exception: + elements = np.isin(self.omega, omega) # binary array + if sum(elements) < len(omega_array): raise ValueError( - "Frequency %f not in frequency list, try an interpolating" - " FRD if you want additional points" % omega) - else: - if getattr(omega, '__iter__', False): - for i in range(self.outputs): - for j in range(self.inputs): - for k, w in enumerate(omega): - frraw = splev(w, self.ifunc[i, j], der=0) - out[i, j, k] = frraw[0] + 1.0j * frraw[1] + "not all frequencies omega are in frequency list of FRD " + "system. Try an interpolating FRD for additional points.") else: - for i in range(self.outputs): - for j in range(self.inputs): - frraw = splev(omega, self.ifunc[i, j], der=0) - out[i, j] = frraw[0] + 1.0j * frraw[1] - + out = self.fresp[:, :, elements] + else: + out = empty((self.outputs, self.inputs, len(omega_array)), + dtype=complex) + for i in range(self.outputs): + for j in range(self.inputs): + for k, w in enumerate(omega_array): + frraw = splev(w, self.ifunc[i, j], der=0) + out[i, j, k] = frraw[0] + 1.0j * frraw[1] + if not hasattr(omega, '__len__'): + # omega is a scalar, squeeze down array along last dim + out = np.squeeze(out, axis=2) + if squeeze and self.issiso(): + out = out[0][0] return out - # Method for generating the frequency response of the system - def freqresp(self, omega): - """Evaluate the frequency response at a list of angular frequencies. + def __call__(self, s, squeeze=True): + """Evaluate system's transfer function at complex frequencies. - Reports the value of the magnitude, phase, and angular frequency of - the requency response evaluated at omega, where omega is a list of - angular frequencies, and is a sorted version of the input omega. + Returns the complex frequency response `sys(s)`. + + To evaluate at a frequency omega in radians per second, enter + ``x = omega * 1j`` or use ``sys.eval(omega)`` Parameters ---------- - omega : array_like - A list of frequencies in radians/sec at which the system should be - evaluated. The list can be either a python list or a numpy array - and will be sorted before evaluation. + s: complex scalar or array_like + Complex frequencies + squeeze: bool, optional (default=True) + If True and `sys` is single input single output (SISO), returns a + 1D array or scalar depending on the length of x`. Returns ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray - The magnitude (absolute value, not dB or log10) of the system - frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray - The wrapped phase in radians of the system frequency response. - omega : ndarray or list or tuple - The list of sorted frequencies at which the response was - evaluated. - """ - # Preallocate outputs. - numfreq = len(omega) - mag = empty((self.outputs, self.inputs, numfreq)) - phase = empty((self.outputs, self.inputs, numfreq)) + fresp : (self.outputs, self.inputs, len(s)) or len(s) complex ndarray + The frequency response of the system. Array is ``len(s)`` if and + only if system is SISO and ``squeeze=True``. - omega.sort() + Raises + ------ + ValueError + If `s` is not purely imaginary, because + :class:`FrequencyDomainData` systems are only defined at imaginary + frequency values. + + """ + if any(abs(np.array(s, ndmin=1).real) > 0): + raise ValueError("__call__: FRD systems can only accept" + "purely imaginary frequencies") + # need to preserve array or scalar status + if hasattr(s, '__len__'): + return self.eval(np.asarray(s).imag, squeeze=squeeze) + else: + return self.eval(complex(s).imag, squeeze=squeeze) - for k, w in enumerate(omega): - fresp = self._evalfr(w) - mag[:, :, k] = abs(fresp) - phase[:, :, k] = angle(fresp) + def freqresp(self, omega): + """(deprecated) Evaluate transfer function at complex frequencies. - return mag, phase, omega + .. deprecated::0.9.0 + Method has been given the more pythonic name + :meth:`FrequencyResponseData.frequency_response`. Or use + :func:`freqresp` in the MATLAB compatibility module. + """ + warn("FrequencyResponseData.freqresp(omega) will be removed in a " + "future release of python-control; use " + "FrequencyResponseData.frequency_response(omega), or " + "freqresp(sys, omega) in the MATLAB compatibility module " + "instead", DeprecationWarning) + return self.frequency_response(omega) def feedback(self, other=1, sign=-1): """Feedback interconnection between two FRD objects.""" @@ -515,11 +514,10 @@ def _convertToFRD(sys, omega, inputs=1, outputs=1): "Frequency ranges of FRD do not match, conversion not implemented") elif isinstance(sys, LTI): - omega.sort() - fresp = empty((sys.outputs, sys.inputs, len(omega)), dtype=complex) - for k, w in enumerate(omega): - fresp[:, :, k] = sys._evalfr(w) - + omega = np.sort(omega) + fresp = sys(1j * omega) + if len(fresp.shape) == 1: + fresp = fresp[np.newaxis, np.newaxis, :] return FRD(fresp, omega, smooth=True) elif isinstance(sys, (int, float, complex, np.number)): diff --git a/control/freqplot.py b/control/freqplot.py index 5a03694db..38b525aec 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -151,14 +151,14 @@ def bode_plot(syslist, omega=None, Notes ----- - 1. Alternatively, you may use the lower-level method - ``(mag, phase, freq) = sys.freqresp(freq)`` to generate the frequency - response for a system, but it returns a MIMO response. + 1. Alternatively, you may use the lower-level methods + :meth:`LTI.frequency_response` or ``sys(s)`` or ``sys(z)`` or to + generate the frequency response for a single system. 2. If a discrete time model is given, the frequency response is plotted - along the upper branch of the unit circle, using the mapping z = exp(j - \\omega dt) where omega ranges from 0 to pi/dt and dt is the discrete - timebase. If not timebase is specified (dt = True), dt is set to 1. + along the upper branch of the unit circle, using the mapping ``z = exp(1j + * omega * dt)`` where `omega` ranges from 0 to `pi/dt` and `dt` is the discrete + timebase. If timebase not specified (``dt=True``), `dt` is set to 1. Examples -------- @@ -228,7 +228,7 @@ def bode_plot(syslist, omega=None, nyquistfrq = None # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega_sys = sys.freqresp(omega_sys) + mag_tmp, phase_tmp, omega_sys = sys.frequency_response(omega_sys) mag = np.atleast_1d(np.squeeze(mag_tmp)) phase = np.atleast_1d(np.squeeze(phase_tmp)) @@ -588,7 +588,7 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, "Nyquist is currently only implemented for SISO systems.") else: # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega = sys.freqresp(omega) + mag_tmp, phase_tmp, omega = sys.frequency_response(omega) mag = np.squeeze(mag_tmp) phase = np.squeeze(phase_tmp) @@ -718,7 +718,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): omega_plot = omega / (2. * math.pi) if Hz else omega # TODO: Need to add in the mag = 1 lines - mag_tmp, phase_tmp, omega = S.freqresp(omega) + mag_tmp, phase_tmp, omega = S.frequency_response(omega) mag = np.squeeze(mag_tmp) if dB: plot_axes['s'].semilogx(omega_plot, 20 * np.log10(mag), **kwargs) @@ -728,7 +728,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): plot_axes['s'].tick_params(labelbottom=False) plot_axes['s'].grid(grid, which='both') - mag_tmp, phase_tmp, omega = (P * S).freqresp(omega) + mag_tmp, phase_tmp, omega = (P * S).frequency_response(omega) mag = np.squeeze(mag_tmp) if dB: plot_axes['ps'].semilogx(omega_plot, 20 * np.log10(mag), **kwargs) @@ -738,7 +738,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): plot_axes['ps'].set_ylabel("$|PS|$" + " (dB)" if dB else "") plot_axes['ps'].grid(grid, which='both') - mag_tmp, phase_tmp, omega = (C * S).freqresp(omega) + mag_tmp, phase_tmp, omega = (C * S).frequency_response(omega) mag = np.squeeze(mag_tmp) if dB: plot_axes['cs'].semilogx(omega_plot, 20 * np.log10(mag), **kwargs) @@ -749,7 +749,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): plot_axes['cs'].set_ylabel("$|CS|$" + " (dB)" if dB else "") plot_axes['cs'].grid(grid, which='both') - mag_tmp, phase_tmp, omega = T.freqresp(omega) + mag_tmp, phase_tmp, omega = T.frequency_response(omega) mag = np.squeeze(mag_tmp) if dB: plot_axes['t'].semilogx(omega_plot, 20 * np.log10(mag), **kwargs) diff --git a/control/lti.py b/control/lti.py index e41fe416b..eff14be2a 100644 --- a/control/lti.py +++ b/control/lti.py @@ -13,11 +13,11 @@ """ import numpy as np -from numpy import absolute, real +from numpy import absolute, real, angle, abs from warnings import warn -__all__ = ['issiso', 'timebase', 'common_timebase', 'timebaseEqual', - 'isdtime', 'isctime', 'pole', 'zero', 'damp', 'evalfr', +__all__ = ['issiso', 'timebase', 'common_timebase', 'timebaseEqual', + 'isdtime', 'isctime', 'pole', 'zero', 'damp', 'evalfr', 'freqresp', 'dcgain'] class LTI: @@ -111,11 +111,56 @@ def damp(self): Z = -real(splane_poles)/wn return wn, Z, poles + def frequency_response(self, omega, squeeze=True): + """Evaluate the linear time-invariant system at an array of angular + frequencies. + + Reports the frequency response of the system, + + G(j*omega) = mag*exp(j*phase) + + for continuous time systems. For discrete time systems, the response is + evaluated around the unit circle such that + + G(exp(j*omega*dt)) = mag*exp(j*phase). + + Parameters + ---------- + omega : array_like or float + A list, tuple, array, or scalar value of frequencies in + radians/sec at which the system will be evaluated. + squeeze: bool, optional (default=True) + If True and sys is single input, single output (SISO), return a + 1D array or scalar depending on omega's length. + + Returns + ------- + mag : (self.outputs, self.inputs, len(omega)) or len(omega) ndarray + The magnitude (absolute value, not dB or log10) of the system + frequency response. + phase : (self.outputs, self.inputs, len(omega)) or len(omega) ndarray + The wrapped phase in radians of the system frequency response. + omega : ndarray + The (sorted) frequencies at which the response was evaluated. + + """ + omega = np.sort(np.array(omega, ndmin=1)) + if isdtime(self, strict=True): + # Convert the frequency to discrete time + if np.any(omega * self.dt > np.pi): + warn("__call__: evaluation above Nyquist frequency") + s = np.exp(1j * omega * self.dt) + else: + s = 1j * omega + response = self.__call__(s, squeeze=squeeze) + return abs(response), angle(response), omega + def dcgain(self): """Return the zero-frequency gain""" raise NotImplementedError("dcgain not implemented for %s objects" % str(self.__class__)) + # Test to see if a system is SISO def issiso(sys, strict=False): """ @@ -162,50 +207,50 @@ def timebase(sys, strict=True): def common_timebase(dt1, dt2): """ Find the common timebase when interconnecting systems - + Parameters ---------- - dt1, dt2: number or system with a 'dt' attribute (e.g. TransferFunction + dt1, dt2: number or system with a 'dt' attribute (e.g. TransferFunction or StateSpace system) Returns ------- dt: number - The common timebase of dt1 and dt2, as specified in - :ref:`conventions-ref`. - + The common timebase of dt1 and dt2, as specified in + :ref:`conventions-ref`. + Raises ------ ValueError when no compatible time base can be found """ - # explanation: + # explanation: # if either dt is None, they are compatible with anything - # if either dt is True (discrete with unspecified time base), + # if either dt is True (discrete with unspecified time base), # use the timebase of the other, if it is also discrete - # otherwise both dts must be equal + # otherwise both dts must be equal if hasattr(dt1, 'dt'): dt1 = dt1.dt if hasattr(dt2, 'dt'): dt2 = dt2.dt - if dt1 is None: + if dt1 is None: return dt2 - elif dt2 is None: + elif dt2 is None: return dt1 - elif dt1 is True: + elif dt1 is True: if dt2 > 0: return dt2 - else: + else: raise ValueError("Systems have incompatible timebases") - elif dt2 is True: - if dt1 > 0: + elif dt2 is True: + if dt1 > 0: return dt1 - else: + else: raise ValueError("Systems have incompatible timebases") elif np.isclose(dt1, dt2): return dt1 - else: + else: raise ValueError("Systems have incompatible timebases") # Check to see if two timebases are equal @@ -221,9 +266,9 @@ def timebaseEqual(sys1, sys2): timebase (dt > 0) then their timebases must be equal. """ warn("timebaseEqual will be deprecated in a future release of " - "python-control; use :func:`common_timebase` instead", + "python-control; use :func:`common_timebase` instead", PendingDeprecationWarning) - + if (type(sys1.dt) == bool or type(sys2.dt) == bool): # Make sure both are unspecified discrete timebases return type(sys1.dt) == type(sys2.dt) and sys1.dt == sys2.dt @@ -413,24 +458,33 @@ def damp(sys, doprint=True): (p.real, p.imag, d, w)) return wn, damping, poles -def evalfr(sys, x): +def evalfr(sys, x, squeeze=True): """ - Evaluate the transfer function of an LTI system for a single complex - number x. + Evaluate the transfer function of an LTI system for complex frequency x. + + Returns the complex frequency response `sys(x)` where `x` is `s` for + continuous-time systems and `z` for discrete-time systems. - To evaluate at a frequency, enter x = omega*j, where omega is the - frequency in radians + To evaluate at a frequency omega in radians per second, enter + ``x = omega * 1j`` for continuous-time systems, or + ``x = exp(1j * omega * dt)`` for discrete-time systems, or use + ``freqresp(sys, omega)``. Parameters ---------- sys: StateSpace or TransferFunction Linear system - x: scalar - Complex number + x: complex scalar or array_like + Complex frequency(s) + squeeze: bool, optional (default=True) + If True and sys is single input single output (SISO), returns a + 1D array or scalar depending on the length of x. Returns ------- - fresp: ndarray + fresp : (sys.outputs, sys.inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is len(x) if and only if + system is SISO and squeeze=True. See Also -------- @@ -439,8 +493,8 @@ def evalfr(sys, x): Notes ----- - This function is a wrapper for StateSpace.evalfr and - TransferFunction.evalfr. + This function is a wrapper for StateSpace.__call__ and + TransferFunction.__call__. Examples -------- @@ -451,12 +505,9 @@ def evalfr(sys, x): .. todo:: Add example with MIMO system """ - if issiso(sys): - return sys.horner(x)[0][0] - return sys.horner(x) - + return sys.__call__(x, squeeze=squeeze) -def freqresp(sys, omega): +def freqresp(sys, omega, squeeze=True): """ Frequency response of an LTI system at multiple angular frequencies. @@ -464,19 +515,22 @@ def freqresp(sys, omega): ---------- sys: StateSpace or TransferFunction Linear system - omega: array_like + omega: float or array_like A list of frequencies in radians/sec at which the system should be evaluated. The list can be either a python list or a numpy array and will be sorted before evaluation. + squeeze: bool, optional (default=True) + If True and sys is single input, single output (SISO), returns + 1D array or scalar depending on omega's length. Returns ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray + mag : (sys.outputs, sys.inputs, len(omega)) or len(omega) ndarray The magnitude (absolute value, not dB or log10) of the system frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray + phase : (sys.outputs, sys.inputs, len(omega)) or len(omega) ndarray The wrapped phase in radians of the system frequency response. - omega : ndarray or list or tuple + omega : ndarray The list of sorted frequencies at which the response was evaluated. @@ -487,9 +541,8 @@ def freqresp(sys, omega): Notes ----- - This function is a wrapper for StateSpace.freqresp and - TransferFunction.freqresp. The output omega is a sorted version of the - input omega. + This function is a wrapper for StateSpace.frequency_response and + TransferFunction.frequency_response. Examples -------- @@ -514,7 +567,7 @@ def freqresp(sys, omega): #>>> # frequency response from the 1st input to the 2nd output, for #>>> # s = 0.1i, i, 10i. """ - return sys.freqresp(omega) + return sys.frequency_response(omega, squeeze=squeeze) def dcgain(sys): diff --git a/control/margins.py b/control/margins.py index 03e78352f..20da2a879 100644 --- a/control/margins.py +++ b/control/margins.py @@ -339,24 +339,24 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): # a bit coarse, have the interpolated frd evaluated again def _mod(w): """Calculate |G(jw)| - 1""" - return np.abs(sys._evalfr(w)[0][0]) - 1 + return np.abs(sys(1j * w)) - 1 def _arg(w): """Calculate the phase angle at -180 deg""" - return np.angle(-sys._evalfr(w)[0][0]) + return np.angle(-sys(1j * w)) def _dstab(w): """Calculate the distance from -1 point""" - return np.abs(sys._evalfr(w)[0][0] + 1.) + return np.abs(sys(1j * w) + 1.) # find the phase crossings ang(H(jw) == -180 widx = np.where(np.diff(np.sign(_arg(sys.omega))))[0] - widx = widx[np.real(sys._evalfr(sys.omega[widx])[0][0]) <= 0] + widx = widx[np.real(sys(1j * sys.omega[widx])) <= 0] w_180 = np.array( [sp.optimize.brentq(_arg, sys.omega[i], sys.omega[i+1]) for i in widx]) # TODO: replace by evalfr(sys, 1J*w) or sys(1J*w), (needs gh-449) - w180_resp = sys._evalfr(w_180)[0][0] + w180_resp = sys(1j * w_180) # Find all crossings, note that this depends on omega having # a correct range @@ -364,7 +364,7 @@ def _dstab(w): wc = np.array( [sp.optimize.brentq(_mod, sys.omega[i], sys.omega[i+1]) for i in widx]) - wc_resp = sys._evalfr(wc)[0][0] + wc_resp = sys(1j * wc) # find all stab margins? widx, = np.where(np.diff(np.sign(np.diff(_dstab(sys.omega)))) > 0) @@ -374,7 +374,7 @@ def _dstab(w): ).x for i in widx]) wstab = wstab[(wstab >= sys.omega[0]) * (wstab <= sys.omega[-1])] - ws_resp = sys._evalfr(wstab)[0][0] + ws_resp = sys(1j * wstab) with np.errstate(all='ignore'): # |G|=0 is okay and yields inf GM = 1. / np.abs(w180_resp) diff --git a/control/matlab/__init__.py b/control/matlab/__init__.py index 413dc6d86..6b88214c6 100644 --- a/control/matlab/__init__.py +++ b/control/matlab/__init__.py @@ -224,8 +224,8 @@ \* :func:`~control.nichols` Nichols plot \* :func:`margin` gain and phase margins \ lti/allmargin all crossover frequencies and margins -\* :func:`freqresp` frequency response over a frequency grid -\* :func:`evalfr` frequency response at single frequency +\* :func:`freqresp` frequency response +\* :func:`evalfr` frequency response at complex frequency s == ========================== ============================================ diff --git a/control/nichols.py b/control/nichols.py index ca0505957..c1d8ff9b6 100644 --- a/control/nichols.py +++ b/control/nichols.py @@ -95,7 +95,7 @@ def nichols_plot(sys_list, omega=None, grid=None): for sys in sys_list: # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega = sys.freqresp(omega) + mag_tmp, phase_tmp, omega = sys.frequency_response(omega) mag = np.squeeze(mag_tmp) phase = np.squeeze(phase_tmp) diff --git a/control/rlocus.py b/control/rlocus.py index 479a833ab..3a3c1c2b6 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -476,7 +476,7 @@ def _systopoly1d(sys): sys = _convert_to_transfer_function(sys) # Make sure we have a SISO system - if (sys.inputs > 1 or sys.outputs > 1): + if not sys.issiso(): raise ControlMIMONotImplemented() # Start by extracting the numerator and denominator from system object @@ -497,7 +497,7 @@ def _RLFindRoots(nump, denp, kvect): """Find the roots for the root locus.""" # Convert numerator and denominator to polynomials if they aren't roots = [] - for k in kvect: + for k in np.array(kvect, ndmin=1): curpoly = denp + k * nump curroots = curpoly.r if len(curroots) < denp.order: @@ -581,10 +581,10 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False): # Catch type error when event click is in the figure but not in an axis try: s = complex(event.xdata, event.ydata) - K = -1. / sys.horner(s) - K_xlim = -1. / sys.horner( + K = -1. / sys(s) + K_xlim = -1. / sys( complex(event.xdata + 0.05 * abs(xlim[1] - xlim[0]), event.ydata)) - K_ylim = -1. / sys.horner( + K_ylim = -1. / sys( complex(event.xdata, event.ydata + 0.05 * abs(ylim[1] - ylim[0]))) except TypeError: @@ -625,7 +625,7 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False): ax_rlocus.plot(s.real, s.imag, 'k.', marker='s', markersize=8, zorder=20, label='gain_point') - return K.real[0][0] + return K.real def _removeLine(label, ax): diff --git a/control/statesp.py b/control/statesp.py index b41f18c7d..8bf4c0d99 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -54,7 +54,7 @@ import math import numpy as np from numpy import any, array, asarray, concatenate, cos, delete, \ - dot, empty, exp, eye, isinf, ones, pad, sin, zeros, squeeze + dot, empty, exp, eye, isinf, ones, pad, sin, zeros, squeeze, pi from numpy.random import rand, randn from numpy.linalg import solve, eigvals, matrix_rank from numpy.linalg.linalg import LinAlgError @@ -640,125 +640,146 @@ def __rdiv__(self, other): raise NotImplementedError( "StateSpace.__rdiv__ is not implemented yet.") - def evalfr(self, omega): - """Evaluate a SS system's transfer function at a single frequency. + def __call__(self, x, squeeze=True): + """Evaluate system's transfer function at complex frequency. - self._evalfr(omega) returns the value of the transfer function matrix - with input value s = i * omega. + Returns the complex frequency response `sys(x)` where `x` is `s` for + continuous-time systems and `z` for discrete-time systems. - """ - warn("StateSpace.evalfr(omega) will be deprecated in a future " - "release of python-control; use evalfr(sys, omega*1j) instead", - PendingDeprecationWarning) - return self._evalfr(omega) - - def _evalfr(self, omega): - """Evaluate a SS system's transfer function at a single frequency""" - # Figure out the point to evaluate the transfer function - if isdtime(self, strict=True): - s = exp(1.j * omega * self.dt) - if omega * self.dt > math.pi: - warn("_evalfr: frequency evaluation above Nyquist frequency") - else: - s = omega * 1.j + To evaluate at a frequency omega in radians per second, enter + ``x = omega * 1j``, for continuous-time systems, or + ``x = exp(1j * omega * dt)`` for discrete-time systems. Or use + :meth:`StateSpace.frequency_response`. - return self.horner(s) + Parameters + ---------- + x: complex or complex array_like + Complex frequencies + squeeze: bool, optional (default=True) + If True and `sys` is single input single output (SISO), returns a + 1D array or scalar depending on the length of `x`. - def horner(self, s): - """Evaluate the systems's transfer function for a complex variable + Returns + ------- + fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is ``len(x)`` if and + only if system is SISO and ``squeeze=True``. - Returns a matrix of values evaluated at complex variable s. """ - resp = np.dot(self.C, solve(s * eye(self.states) - self.A, - self.B)) + self.D - return array(resp) + # Use Slycot if available + out = self.horner(x) + if not hasattr(x, '__len__'): + # received a scalar x, squeeze down the array along last dim + out = np.squeeze(out, axis=2) + if squeeze and self.issiso(): + return out[0][0] + else: + return out - def freqresp(self, omega): - """Evaluate the system's transfer function at a list of frequencies + def slycot_laub(self, x): + """Evaluate system's transfer function at complex frequency + using Laub's method from Slycot. + + Expects inputs and outputs to be formatted correctly. Use ``sys(x)`` + for a more user-friendly interface. + + Parameters + ---------- + x : complex array_like or complex + Complex frequency - Reports the frequency response of the system, + Returns + ------- + output : (number_outputs, number_inputs, len(x)) complex ndarray + Frequency response + """ + from slycot import tb05ad + + # preallocate + x_arr = np.atleast_1d(x) # array-like version of x + n = self.states + m = self.inputs + p = self.outputs + out = np.empty((p, m, len(x_arr)), dtype=complex) + # The first call both evaluates C(sI-A)^-1 B and also returns + # Hessenberg transformed matrices at, bt, ct. + result = tb05ad(n, m, p, x_arr[0], self.A, self.B, self.C, job='NG') + # When job='NG', result = (at, bt, ct, g_i, hinvb, info) + at = result[0] + bt = result[1] + ct = result[2] + + # TB05AD frequency evaluation does not include direct feedthrough. + out[:, :, 0] = result[3] + self.D + + # Now, iterate through the remaining frequencies using the + # transformed state matrices, at, bt, ct. + + # Start at the second frequency, already have the first. + for kk, x_kk in enumerate(x_arr[1:len(x_arr)]): + result = tb05ad(n, m, p, x_kk, at, bt, ct, job='NH') + # When job='NH', result = (g_i, hinvb, info) + + # kk+1 because enumerate starts at kk = 0. + # but zero-th spot is already filled. + out[:, :, kk+1] = result[0] + self.D + return out - G(j*omega) = mag*exp(j*phase) + def horner(self, x): + """Evaluate system's transfer function at complex frequency + using Laub's or Horner's method. - for continuous time. For discrete time systems, the response is - evaluated around the unit circle such that + Evaluates `sys(x)` where `x` is `s` for continuous-time systems and `z` + for discrete-time systems. - G(exp(j*omega*dt)) = mag*exp(j*phase). + Expects inputs and outputs to be formatted correctly. Use ``sys(x)`` + for a more user-friendly interface. Parameters ---------- - omega : array_like - A list of frequencies in radians/sec at which the system should be - evaluated. The list can be either a python list or a numpy array - and will be sorted before evaluation. + x : complex array_like or complex + Complex frequencies Returns ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray - The magnitude (absolute value, not dB or log10) of the system - frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray - The wrapped phase in radians of the system frequency response. - omega : ndarray - The list of sorted frequencies at which the response was - evaluated. - """ - # In case omega is passed in as a list, rather than a proper array. - omega = np.asarray(omega) - - numFreqs = len(omega) - Gfrf = np.empty((self.outputs, self.inputs, numFreqs), - dtype=np.complex128) - - # Sort frequency and calculate complex frequencies on either imaginary - # axis (continuous time) or unit circle (discrete time). - omega.sort() - if isdtime(self, strict=True): - cmplx_freqs = exp(1.j * omega * self.dt) - if max(np.abs(omega)) * self.dt > math.pi: - warn("freqresp: frequency evaluation above Nyquist frequency") - else: - cmplx_freqs = omega * 1.j + output : (self.outputs, self.inputs, len(x)) complex ndarray + Frequency response - # Do the frequency response evaluation. Use TB05AD from Slycot - # if it's available, otherwise use the built-in horners function. + Notes + ----- + Attempts to use Laub's method from Slycot library, with a + fall-back to python code. + """ try: - from slycot import tb05ad - - n = np.shape(self.A)[0] - m = self.inputs - p = self.outputs - # The first call both evaluates C(sI-A)^-1 B and also returns - # Hessenberg transformed matrices at, bt, ct. - result = tb05ad(n, m, p, cmplx_freqs[0], self.A, - self.B, self.C, job='NG') - # When job='NG', result = (at, bt, ct, g_i, hinvb, info) - at = result[0] - bt = result[1] - ct = result[2] - - # TB05AD frequency evaluation does not include direct feedthrough. - Gfrf[:, :, 0] = result[3] + self.D - - # Now, iterate through the remaining frequencies using the - # transformed state matrices, at, bt, ct. - - # Start at the second frequency, already have the first. - for kk, cmplx_freqs_kk in enumerate(cmplx_freqs[1:numFreqs]): - result = tb05ad(n, m, p, cmplx_freqs_kk, at, - bt, ct, job='NH') - # When job='NH', result = (g_i, hinvb, info) - - # kk+1 because enumerate starts at kk = 0. - # but zero-th spot is already filled. - Gfrf[:, :, kk+1] = result[0] + self.D - - except ImportError: # Slycot unavailable. Fall back to horner. - for kk, cmplx_freqs_kk in enumerate(cmplx_freqs): - Gfrf[:, :, kk] = self.horner(cmplx_freqs_kk) - - # mag phase omega - return np.abs(Gfrf), np.angle(Gfrf), omega + out = self.slycot_laub(x) + except (ImportError, Exception): + # Fall back because either Slycot unavailable or cannot handle + # certain cases. + x_arr = np.atleast_1d(x) # force to be an array + # Preallocate + out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) + + #TODO: can this be vectorized? + for idx, x_idx in enumerate(x_arr): + out[:,:,idx] = \ + np.dot(self.C, + solve(x_idx * eye(self.states) - self.A, self.B)) \ + + self.D + return out + + def freqresp(self, omega): + """(deprecated) Evaluate transfer function at complex frequencies. + + .. deprecated::0.9.0 + Method has been given the more pythonic name + :meth:`StateSpace.frequency_response`. Or use + :func:`freqresp` in the MATLAB compatibility module. + """ + warn("StateSpace.freqresp(omega) will be removed in a " + "future release of python-control; use " + "sys.frequency_response(omega), or freqresp(sys, omega) in the " + "MATLAB compatibility module instead", DeprecationWarning) + return self.frequency_response(omega) # Compute poles and zeros def pole(self): @@ -1148,7 +1169,7 @@ def dcgain(self): gain = np.asarray(self.D - self.C.dot(np.linalg.solve(self.A, self.B))) else: - gain = self.horner(1) + gain = np.squeeze(self.horner(1)) except LinAlgError: # eigenvalue at DC gain = np.tile(np.nan, (self.outputs, self.inputs)) diff --git a/control/tests/frd_test.py b/control/tests/frd_test.py index 18f2f17b1..5343112fe 100644 --- a/control/tests/frd_test.py +++ b/control/tests/frd_test.py @@ -39,8 +39,8 @@ def testSISOtf(self): frd = FRD(h, omega) assert isinstance(frd, FRD) - mag1, phase1, omega1 = frd.freqresp([1.0]) - mag2, phase2, omega2 = h.freqresp([1.0]) + mag1, phase1, omega1 = frd.frequency_response([1.0]) + mag2, phase2, omega2 = h.frequency_response([1.0]) np.testing.assert_array_almost_equal(mag1, mag2) np.testing.assert_array_almost_equal(phase1, phase2) np.testing.assert_array_almost_equal(omega1, omega2) @@ -54,39 +54,39 @@ def testOperators(self): f2 = FRD(h2, omega) np.testing.assert_array_almost_equal( - (f1 + f2).freqresp([0.1, 1.0, 10])[0], - (h1 + h2).freqresp([0.1, 1.0, 10])[0]) + (f1 + f2).frequency_response([0.1, 1.0, 10])[0], + (h1 + h2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1 + f2).freqresp([0.1, 1.0, 10])[1], - (h1 + h2).freqresp([0.1, 1.0, 10])[1]) + (f1 + f2).frequency_response([0.1, 1.0, 10])[1], + (h1 + h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 - f2).freqresp([0.1, 1.0, 10])[0], - (h1 - h2).freqresp([0.1, 1.0, 10])[0]) + (f1 - f2).frequency_response([0.1, 1.0, 10])[0], + (h1 - h2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1 - f2).freqresp([0.1, 1.0, 10])[1], - (h1 - h2).freqresp([0.1, 1.0, 10])[1]) + (f1 - f2).frequency_response([0.1, 1.0, 10])[1], + (h1 - h2).frequency_response([0.1, 1.0, 10])[1]) # multiplication and division np.testing.assert_array_almost_equal( - (f1 * f2).freqresp([0.1, 1.0, 10])[1], - (h1 * h2).freqresp([0.1, 1.0, 10])[1]) + (f1 * f2).frequency_response([0.1, 1.0, 10])[1], + (h1 * h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 / f2).freqresp([0.1, 1.0, 10])[1], - (h1 / h2).freqresp([0.1, 1.0, 10])[1]) + (f1 / f2).frequency_response([0.1, 1.0, 10])[1], + (h1 / h2).frequency_response([0.1, 1.0, 10])[1]) # with default conversion from scalar np.testing.assert_array_almost_equal( - (f1 * 1.5).freqresp([0.1, 1.0, 10])[1], - (h1 * 1.5).freqresp([0.1, 1.0, 10])[1]) + (f1 * 1.5).frequency_response([0.1, 1.0, 10])[1], + (h1 * 1.5).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 / 1.7).freqresp([0.1, 1.0, 10])[1], - (h1 / 1.7).freqresp([0.1, 1.0, 10])[1]) + (f1 / 1.7).frequency_response([0.1, 1.0, 10])[1], + (h1 / 1.7).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (2.2 * f2).freqresp([0.1, 1.0, 10])[1], - (2.2 * h2).freqresp([0.1, 1.0, 10])[1]) + (2.2 * f2).frequency_response([0.1, 1.0, 10])[1], + (2.2 * h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (1.3 / f2).freqresp([0.1, 1.0, 10])[1], - (1.3 / h2).freqresp([0.1, 1.0, 10])[1]) + (1.3 / f2).frequency_response([0.1, 1.0, 10])[1], + (1.3 / h2).frequency_response([0.1, 1.0, 10])[1]) def testOperatorsTf(self): # get two SISO transfer functions @@ -98,24 +98,24 @@ def testOperatorsTf(self): f2 # reference to avoid pyflakes error np.testing.assert_array_almost_equal( - (f1 + h2).freqresp([0.1, 1.0, 10])[0], - (h1 + h2).freqresp([0.1, 1.0, 10])[0]) + (f1 + h2).frequency_response([0.1, 1.0, 10])[0], + (h1 + h2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1 + h2).freqresp([0.1, 1.0, 10])[1], - (h1 + h2).freqresp([0.1, 1.0, 10])[1]) + (f1 + h2).frequency_response([0.1, 1.0, 10])[1], + (h1 + h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 - h2).freqresp([0.1, 1.0, 10])[0], - (h1 - h2).freqresp([0.1, 1.0, 10])[0]) + (f1 - h2).frequency_response([0.1, 1.0, 10])[0], + (h1 - h2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1 - h2).freqresp([0.1, 1.0, 10])[1], - (h1 - h2).freqresp([0.1, 1.0, 10])[1]) + (f1 - h2).frequency_response([0.1, 1.0, 10])[1], + (h1 - h2).frequency_response([0.1, 1.0, 10])[1]) # multiplication and division np.testing.assert_array_almost_equal( - (f1 * h2).freqresp([0.1, 1.0, 10])[1], - (h1 * h2).freqresp([0.1, 1.0, 10])[1]) + (f1 * h2).frequency_response([0.1, 1.0, 10])[1], + (h1 * h2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1 / h2).freqresp([0.1, 1.0, 10])[1], - (h1 / h2).freqresp([0.1, 1.0, 10])[1]) + (f1 / h2).frequency_response([0.1, 1.0, 10])[1], + (h1 / h2).frequency_response([0.1, 1.0, 10])[1]) # the reverse does not work def testbdalg(self): @@ -127,45 +127,45 @@ def testbdalg(self): f2 = FRD(h2, omega) np.testing.assert_array_almost_equal( - (bdalg.series(f1, f2)).freqresp([0.1, 1.0, 10])[0], - (bdalg.series(h1, h2)).freqresp([0.1, 1.0, 10])[0]) + (bdalg.series(f1, f2)).frequency_response([0.1, 1.0, 10])[0], + (bdalg.series(h1, h2)).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (bdalg.parallel(f1, f2)).freqresp([0.1, 1.0, 10])[0], - (bdalg.parallel(h1, h2)).freqresp([0.1, 1.0, 10])[0]) + (bdalg.parallel(f1, f2)).frequency_response([0.1, 1.0, 10])[0], + (bdalg.parallel(h1, h2)).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (bdalg.feedback(f1, f2)).freqresp([0.1, 1.0, 10])[0], - (bdalg.feedback(h1, h2)).freqresp([0.1, 1.0, 10])[0]) + (bdalg.feedback(f1, f2)).frequency_response([0.1, 1.0, 10])[0], + (bdalg.feedback(h1, h2)).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (bdalg.negate(f1)).freqresp([0.1, 1.0, 10])[0], - (bdalg.negate(h1)).freqresp([0.1, 1.0, 10])[0]) + (bdalg.negate(f1)).frequency_response([0.1, 1.0, 10])[0], + (bdalg.negate(h1)).frequency_response([0.1, 1.0, 10])[0]) # append() and connect() not implemented for FRD objects # np.testing.assert_array_almost_equal( -# (bdalg.append(f1, f2)).freqresp([0.1, 1.0, 10])[0], -# (bdalg.append(h1, h2)).freqresp([0.1, 1.0, 10])[0]) +# (bdalg.append(f1, f2)).frequency_response([0.1, 1.0, 10])[0], +# (bdalg.append(h1, h2)).frequency_response([0.1, 1.0, 10])[0]) # # f3 = bdalg.append(f1, f2, f2) # h3 = bdalg.append(h1, h2, h2) # Q = np.mat([ [1, 2], [2, -1] ]) # np.testing.assert_array_almost_equal( -# (bdalg.connect(f3, Q, [2], [1])).freqresp([0.1, 1.0, 10])[0], -# (bdalg.connect(h3, Q, [2], [1])).freqresp([0.1, 1.0, 10])[0]) +# (bdalg.connect(f3, Q, [2], [1])).frequency_response([0.1, 1.0, 10])[0], +# (bdalg.connect(h3, Q, [2], [1])).frequency_response([0.1, 1.0, 10])[0]) def testFeedback(self): h1 = TransferFunction([1], [1, 2, 2]) omega = np.logspace(-1, 2, 10) f1 = FRD(h1, omega) np.testing.assert_array_almost_equal( - f1.feedback(1).freqresp([0.1, 1.0, 10])[0], - h1.feedback(1).freqresp([0.1, 1.0, 10])[0]) + f1.feedback(1).frequency_response([0.1, 1.0, 10])[0], + h1.feedback(1).frequency_response([0.1, 1.0, 10])[0]) # Make sure default argument also works np.testing.assert_array_almost_equal( - f1.feedback().freqresp([0.1, 1.0, 10])[0], - h1.feedback().freqresp([0.1, 1.0, 10])[0]) + f1.feedback().frequency_response([0.1, 1.0, 10])[0], + h1.feedback().frequency_response([0.1, 1.0, 10])[0]) def testFeedback2(self): h2 = StateSpace([[-1.0, 0], [0, -2.0]], [[0.4], [0.1]], @@ -198,11 +198,11 @@ def testMIMO(self): omega = np.logspace(-1, 2, 10) f1 = FRD(sys, omega) np.testing.assert_array_almost_equal( - sys.freqresp([0.1, 1.0, 10])[0], - f1.freqresp([0.1, 1.0, 10])[0]) + sys.frequency_response([0.1, 1.0, 10])[0], + f1.frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - sys.freqresp([0.1, 1.0, 10])[1], - f1.freqresp([0.1, 1.0, 10])[1]) + sys.frequency_response([0.1, 1.0, 10])[1], + f1.frequency_response([0.1, 1.0, 10])[1]) @slycotonly def testMIMOfb(self): @@ -214,11 +214,11 @@ def testMIMOfb(self): f1 = FRD(sys, omega).feedback([[0.1, 0.3], [0.0, 1.0]]) f2 = FRD(sys.feedback([[0.1, 0.3], [0.0, 1.0]]), omega) np.testing.assert_array_almost_equal( - f1.freqresp([0.1, 1.0, 10])[0], - f2.freqresp([0.1, 1.0, 10])[0]) + f1.frequency_response([0.1, 1.0, 10])[0], + f2.frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - f1.freqresp([0.1, 1.0, 10])[1], - f2.freqresp([0.1, 1.0, 10])[1]) + f1.frequency_response([0.1, 1.0, 10])[1], + f2.frequency_response([0.1, 1.0, 10])[1]) @slycotonly def testMIMOfb2(self): @@ -232,11 +232,11 @@ def testMIMOfb2(self): f1 = FRD(sys, omega).feedback(K) f2 = FRD(sys.feedback(K), omega) np.testing.assert_array_almost_equal( - f1.freqresp([0.1, 1.0, 10])[0], - f2.freqresp([0.1, 1.0, 10])[0]) + f1.frequency_response([0.1, 1.0, 10])[0], + f2.frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - f1.freqresp([0.1, 1.0, 10])[1], - f2.freqresp([0.1, 1.0, 10])[1]) + f1.frequency_response([0.1, 1.0, 10])[1], + f2.frequency_response([0.1, 1.0, 10])[1]) @slycotonly def testMIMOMult(self): @@ -248,11 +248,11 @@ def testMIMOMult(self): f1 = FRD(sys, omega) f2 = FRD(sys, omega) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[0], - (sys*sys).freqresp([0.1, 1.0, 10])[0]) + (f1*f2).frequency_response([0.1, 1.0, 10])[0], + (sys*sys).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[1], - (sys*sys).freqresp([0.1, 1.0, 10])[1]) + (f1*f2).frequency_response([0.1, 1.0, 10])[1], + (sys*sys).frequency_response([0.1, 1.0, 10])[1]) @slycotonly def testMIMOSmooth(self): @@ -265,14 +265,14 @@ def testMIMOSmooth(self): f1 = FRD(sys, omega, smooth=True) f2 = FRD(sys2, omega, smooth=True) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[0], - (sys*sys2).freqresp([0.1, 1.0, 10])[0]) + (f1*f2).frequency_response([0.1, 1.0, 10])[0], + (sys*sys2).frequency_response([0.1, 1.0, 10])[0]) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[1], - (sys*sys2).freqresp([0.1, 1.0, 10])[1]) + (f1*f2).frequency_response([0.1, 1.0, 10])[1], + (sys*sys2).frequency_response([0.1, 1.0, 10])[1]) np.testing.assert_array_almost_equal( - (f1*f2).freqresp([0.1, 1.0, 10])[2], - (sys*sys2).freqresp([0.1, 1.0, 10])[2]) + (f1*f2).frequency_response([0.1, 1.0, 10])[2], + (sys*sys2).frequency_response([0.1, 1.0, 10])[2]) def testAgainstOctave(self): # with data from octave: @@ -285,8 +285,8 @@ def testAgainstOctave(self): omega = np.logspace(-1, 2, 10) f1 = FRD(sys, omega) np.testing.assert_array_almost_equal( - (f1.freqresp([1.0])[0] * - np.exp(1j * f1.freqresp([1.0])[1])).reshape(3, 2), + (f1.frequency_response([1.0])[0] * + np.exp(1j * f1.frequency_response([1.0])[1])).reshape(3, 2), np.array([[0.4 - 0.2j, 0], [0, 0.1 - 0.2j], [0, 0.3 - 0.1j]])) def test_string_representation(self, capsys): @@ -407,13 +407,9 @@ def test_eval(self): with pytest.raises(ValueError): frd_tf.eval(2) - - def test_evalfr_deprecated(self): - sys_tf = ct.tf([1], [1, 2, 1]) - frd_tf = FRD(sys_tf, np.logspace(-1, 1, 3)) - - with pytest.deprecated_call(): - frd_tf.evalfr(1.) + # Should get an error if we use __call__ at real-valued frequency + with pytest.raises(ValueError): + frd_tf(2) def test_repr_str(self): # repr printing diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 111d4296c..e6a6934e8 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -18,7 +18,6 @@ from control.matlab import ss, tf, bode, rss from control.tests.conftest import slycotonly - pytestmark = pytest.mark.usefixtures("mplcleanup") @@ -32,7 +31,7 @@ def test_siso(): omega = np.linspace(10e-2, 10e2, 1000) # test frequency response - sys.freqresp(omega) + sys.frequency_response(omega) # test bode plot bode(sys) @@ -97,7 +96,7 @@ def test_superimpose(): def test_doubleint(): """Test typcast bug with double int - 30 May 2016, RMM: added to replicate typecast bug in freqresp.py + 30 May 2016, RMM: added to replicate typecast bug in frequency_response.py """ A = np.array([[0, 1], [0, 0]]) B = np.array([[0], [1]]) @@ -117,7 +116,7 @@ def test_mimo(): omega = np.linspace(10e-2, 10e2, 1000) sysMIMO = ss(A, B, C, D) - sysMIMO.freqresp(omega) + sysMIMO.frequency_response(omega) tf(sysMIMO) @@ -215,13 +214,13 @@ def test_discrete(dsystem_type): omega_ok = np.linspace(10e-4, 0.99, 100) * np.pi / dsys.dt # Test frequency response - dsys.freqresp(omega_ok) + dsys.frequency_response(omega_ok) # Check for warning if frequency is out of range with pytest.warns(UserWarning, match="above.*Nyquist"): # Look for a warning about sampling above Nyquist frequency omega_bad = np.linspace(10e-4, 1.1, 10) * np.pi / dsys.dt - dsys.freqresp(omega_bad) + dsys.frequency_response(omega_bad) # Test bode plots (currently only implemented for SISO) if (dsys.inputs == 1 and dsys.outputs == 1): @@ -332,6 +331,7 @@ def test_initial_phase(TF, initial_phase, default_phase, expected_phase): pytest.param(ctrl.tf([1], [1, 0, 0, 0, 0, 0]), -270, -3*math.pi/2, math.pi/2, id="order5, -270"), ]) + def test_phase_wrap(TF, wrap_phase, min_phase, max_phase): mag, phase, omega = ctrl.bode(TF, wrap_phase=wrap_phase) assert(min(phase) >= min_phase) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 4a8e09930..0dcbf3325 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -1132,8 +1132,8 @@ def test_lineariosys_statespace(self, tsys): np.testing.assert_array_equal( iosys_siso.pole(), tsys.siso_linsys.pole()) omega = np.logspace(.1, 10, 100) - mag_io, phase_io, omega_io = iosys_siso.freqresp(omega) - mag_ss, phase_ss, omega_ss = tsys.siso_linsys.freqresp(omega) + mag_io, phase_io, omega_io = iosys_siso.frequency_response(omega) + mag_ss, phase_ss, omega_ss = tsys.siso_linsys.frequency_response(omega) np.testing.assert_array_equal(mag_io, mag_ss) np.testing.assert_array_equal(phase_io, phase_ss) np.testing.assert_array_equal(omega_io, omega_ss) diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index 80916da1b..81a4b68b4 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -93,7 +93,7 @@ def test_stability_margins_3input(tsys): sys, refout, refoutall = tsys """Test stability_margins() function with mag, phase, omega input""" omega = np.logspace(-2, 2, 2000) - mag, phase, omega_ = sys.freqresp(omega) + mag, phase, omega_ = sys.frequency_response(omega) out = stability_margins((mag, phase*180/np.pi, omega_)) assert_allclose(out, refout, atol=1.5e-3) @@ -109,7 +109,7 @@ def test_margin_3input(tsys): sys, refout, refoutall = tsys """Test margin() function with mag, phase, omega input""" omega = np.logspace(-2, 2, 2000) - mag, phase, omega_ = sys.freqresp(omega) + mag, phase, omega_ = sys.frequency_response(omega) out = margin((mag, phase*180/np.pi, omega_)) assert_allclose(out, np.array(refout)[[0, 1, 3, 4]], atol=1.5e-3) @@ -136,8 +136,10 @@ def test_phase_crossover_frequencies_mimo(): [[3], [4]]], [[[1, 2, 3, 4], [1, 1]], [[1, 1], [1, 1]]]) - with pytest.raises(ControlMIMONotImplemented): - omega, gain = phase_crossover_frequencies(tf) + + omega, gain = phase_crossover_frequencies(tf[0,0]) + assert_allclose(omega, [1.73205, 0.], atol=1.5e-3) + assert_allclose(gain, [-0.5, 0.25], atol=1.5e-3) def test_mag_phase_omega(): @@ -145,7 +147,7 @@ def test_mag_phase_omega(): sys = TransferFunction(15, [1, 6, 11, 6]) out = stability_margins(sys) omega = np.logspace(-2, 2, 1000) - mag, phase, omega = sys.freqresp(omega) + mag, phase, omega = sys.frequency_response(omega) out2 = stability_margins((mag, phase*180/np.pi, omega)) ind = [0, 1, 3, 4] # indices of gm, pm, wg, wp -- ignore sm marg1 = np.array(out)[ind] diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 02fac1776..7bf90f4c6 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -341,18 +341,14 @@ def test_evalfr(self, dt, omega, resp): else: s = omega * 1j - # Correct version of the call + # Correct versions of the call np.testing.assert_allclose(evalfr(sys, s), resp, atol=1e-3) - # Deprecated version of the call (should generate warning) - with pytest.deprecated_call(): + np.testing.assert_allclose(sys(s), resp, atol=1e-3) + + # Deprecated version of the call (should generate error) + with pytest.raises(AttributeError): np.testing.assert_allclose(sys.evalfr(omega), resp, atol=1e-3) - # call above nyquist frequency - if dt: - with pytest.warns(UserWarning): - np.testing.assert_allclose(sys._evalfr(omega + 2 * np.pi / dt), - resp, - atol=1e-3) @slycotonly def test_freq_resp(self): @@ -374,7 +370,7 @@ def test_freq_resp(self): [-0.438157380501337, -1.40720969147217]]] true_omega = [0.1, 10.] - mag, phase, omega = sys.freqresp(true_omega) + mag, phase, omega = sys.frequency_response(true_omega) np.testing.assert_almost_equal(mag, true_mag) np.testing.assert_almost_equal(phase, true_phase) @@ -739,9 +735,9 @@ def test_horner(self, sys322): sys322.horner(1. + 1.j) # Make sure result agrees with frequency response - mag, phase, omega = sys322.freqresp([1]) + mag, phase, omega = sys322.frequency_response([1]) np.testing.assert_array_almost_equal( - sys322.horner(1.j), + np.squeeze(sys322.horner(1.j)), mag[:, :, 0] * np.exp(1.j * phase[:, :, 0])) class TestRss: @@ -902,7 +898,6 @@ def test_statespace_defaults(self, matarrayout): refkey_n = {None: 'p3', '.3g': 'p3', '.5g': 'p5'} refkey_r = {None: 'p', 'partitioned': 'p', 'separate': 's'} - @pytest.mark.parametrize(" gmats, ref", [(LTX_G1, LTX_G1_REF), (LTX_G2, LTX_G2_REF)]) @@ -928,3 +923,27 @@ def test_latex_repr(gmats, ref, repr_type, num_format, editsdefaults): refkey = "{}_{}".format(refkey_n[num_format], refkey_r[repr_type]) assert g._repr_latex_() == ref[refkey] + def test_pole_static(self): + """Regression: pole() of static gain is empty array.""" + np.testing.assert_array_equal(np.array([]), + StateSpace([], [], [], [[1]]).pole()) + + def test_copy_constructor(self): + # Create a set of matrices for a simple linear system + A = np.array([[-1]]) + B = np.array([[1]]) + C = np.array([[1]]) + D = np.array([[0]]) + + # Create the first linear system and a copy + linsys = StateSpace(A, B, C, D) + cpysys = StateSpace(linsys) + + # Change the original A matrix + A[0, 0] = -2 + np.testing.assert_array_equal(linsys.A, [[-1]]) # original value + np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value + + # Change the A matrix for the original system + linsys.A[0, 0] = -3 + np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index c0b5e227f..1ec596a6e 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -404,34 +404,6 @@ def test_slice(self): assert (sys1.inputs, sys1.outputs) == (2, 1) assert sys1.dt == 0.5 - @pytest.mark.parametrize("omega, resp", - [(1, np.array([[-0.5 - 0.5j]])), - (32, np.array([[0.002819593 - 0.03062847j]]))]) - @pytest.mark.parametrize("dt", [None, 0, 1e-3]) - def test_evalfr_siso(self, dt, omega, resp): - """Evaluate the frequency response at single frequencies""" - sys = TransferFunction([1., 3., 5], [1., 6., 2., -1]) - - if dt: - sys = sample_system(sys, dt) - s = np.exp(omega * 1j * dt) - else: - s = omega * 1j - - # Correct versions of the call - np.testing.assert_allclose(evalfr(sys, s), resp, atol=1e-3) - np.testing.assert_allclose(sys(s), resp, atol=1e-3) - # Deprecated version of the call (should generate warning) - with pytest.deprecated_call(): - np.testing.assert_allclose(sys.evalfr(omega), resp, atol=1e-3) - - # call above nyquist frequency - if dt: - with pytest.warns(UserWarning): - np.testing.assert_allclose(sys._evalfr(omega + 2 * np.pi / dt), - resp, - atol=1e-3) - def test_is_static_gain(self): numstatic = 1.1 denstatic = 1.2 @@ -454,10 +426,37 @@ def test_is_static_gain(self): assert not TransferFunction(numdynamicmimo, denstaticmimo).is_static_gain() + @pytest.mark.parametrize("omega, resp", + [(1, np.array([[-0.5 - 0.5j]])), + (32, np.array([[0.002819593 - 0.03062847j]]))]) + @pytest.mark.parametrize("dt", [None, 0, 1e-3]) + def test_call_siso(self, dt, omega, resp): + """Evaluate the frequency response of a SISO system at one frequency.""" + sys = TransferFunction([1., 3., 5], [1., 6., 2., -1]) + + if dt: + sys = sample_system(sys, dt) + s = np.exp(omega * 1j * dt) + else: + s = omega * 1j + + # Correct versions of the call + np.testing.assert_allclose(evalfr(sys, s), resp, atol=1e-3) + np.testing.assert_allclose(sys(s), resp, atol=1e-3) + # Deprecated version of the call (should generate exception) + with pytest.raises(AttributeError): + np.testing.assert_allclose(sys.evalfr(omega), resp, atol=1e-3) + + + @nopython2 + def test_call_dtime(self): + sys = TransferFunction([1., 3., 5], [1., 6., 2., -1], 0.1) + np.testing.assert_array_almost_equal(sys(1j), -0.5 - 0.5j) @slycotonly - def test_evalfr_mimo(self): - """Evaluate the frequency response of a MIMO system at a freq""" + def test_call_mimo(self): + """Evaluate the frequency response of a MIMO system at one frequency.""" + num = [[[1., 2.], [0., 3.], [2., -1.]], [[1.], [4., 0.], [1., -4., 3.]]] den = [[[-3., 2., 4.], [1., 0., 0.], [2., -1.]], @@ -467,13 +466,28 @@ def test_evalfr_mimo(self): [-0.083333333333333, -0.188235294117647 - 0.847058823529412j, -1. - 8.j]] - np.testing.assert_array_almost_equal(sys._evalfr(2.), resp) + np.testing.assert_array_almost_equal(evalfr(sys, 2j), resp) # Test call version as well np.testing.assert_array_almost_equal(sys(2.j), resp) - def test_freqresp_siso(self): - """Evaluate the SISO magnitude and phase at multiple frequencies""" + def test_freqresp_deprecated(self): + sys = TransferFunction([1., 3., 5], [1., 6., 2., -1.]) + # Deprecated version of the call (should generate warning) + import warnings + with warnings.catch_warnings(record=True) as w: + # Set up warnings filter to only show warnings in control module + warnings.filterwarnings("ignore") + warnings.filterwarnings("always", module="control") + + # Make sure that we get a pending deprecation warning + sys.freqresp(1.) + assert issubclass(w[-1].category, DeprecationWarning) + + def test_frequency_response_siso(self): + """Evaluate the magnitude and phase of a SISO system at + multiple frequencies.""" + sys = TransferFunction([1., 3., 5], [1., 6., 2., -1]) truemag = [[[4.63507337473906, 0.707106781186548, 0.0866592803995351]]] @@ -481,7 +495,7 @@ def test_freqresp_siso(self): -1.32655885133871]]] trueomega = [0.1, 1., 10.] - mag, phase, omega = sys.freqresp(trueomega) + mag, phase, omega = sys.frequency_response(trueomega, squeeze=False) np.testing.assert_array_almost_equal(mag, truemag) np.testing.assert_array_almost_equal(phase, truephase) @@ -509,7 +523,7 @@ def test_freqresp_mimo(self): [-1.66852323, -1.89254688, -1.62050658], [-0.13298964, -1.10714871, -2.75046720]]] - mag, phase, omega = sys.freqresp(true_omega) + mag, phase, omega = sys.frequency_response(true_omega) np.testing.assert_array_almost_equal(mag, true_mag) np.testing.assert_array_almost_equal(phase, true_phase) diff --git a/control/xferfcn.py b/control/xferfcn.py index 9a70e36b6..a0941b74a 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -231,19 +231,70 @@ def __init__(self, *args, **kwargs): dt = config.defaults['control.default_dt'] self.dt = dt - def __call__(self, s): - """Evaluate the system's transfer function for a complex variable + def __call__(self, x, squeeze=True): + """Evaluate system's transfer function at complex frequencies. - For a SISO transfer function, returns the value of the - transfer function. For a MIMO transfer fuction, returns a - matrix of values evaluated at complex variable s.""" + Returns the complex frequency response `sys(x)` where `x` is `s` for + continuous-time systems and `z` for discrete-time systems. - if self.issiso(): - # return a scalar - return self.horner(s)[0][0] + To evaluate at a frequency omega in radians per second, enter + ``x = omega * 1j``, for continuous-time systems, or + ``x = exp(1j * omega * dt)`` for discrete-time systems. Or use + :meth:`TransferFunction.frequency_response`. + + Parameters + ---------- + x: complex array_like or complex + Complex frequencies + squeeze: bool, optional (default=True) + If True and `sys` is single input single output (SISO), returns a + 1D array or scalar depending on the length of `x`. + + Returns + ------- + fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray + The frequency response of the system. Array is `len(x)` if and + only if system is SISO and ``squeeze=True``. + + """ + out = self.horner(x) + if not hasattr(x, '__len__'): + # received a scalar x, squeeze down the array along last dim + out = np.squeeze(out, axis=2) + if squeeze and self.issiso(): + # return a scalar/1d array of outputs + return out[0][0] else: - # return a matrix - return self.horner(s) + return out + + def horner(self, x): + """Evaluate system's transfer function at complex frequency + using Horner's method. + + Evaluates `sys(x)` where `x` is `s` for continuous-time systems and `z` + for discrete-time systems. + + Expects inputs and outputs to be formatted correctly. Use ``sys(x)`` + for a more user-friendly interface. + + Parameters + ---------- + x : complex array_like or complex + Complex frequencies + + Returns + ------- + output : (self.outputs, self.inputs, len(x)) complex ndarray + Frequency response + + """ + x_arr = np.atleast_1d(x) # force to be an array + out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) + for i in range(self.outputs): + for j in range(self.inputs): + out[i][j] = (polyval(self.num[i][j], x) / + polyval(self.den[i][j], x)) + return out def _truncatecoeff(self): """Remove extraneous zero coefficients from num and den. @@ -607,103 +658,19 @@ def __getitem__(self, key): else: return TransferFunction(num, den, self.dt) - def evalfr(self, omega): - """Evaluate a transfer function at a single angular frequency. - - self._evalfr(omega) returns the value of the transfer function - matrix with input value s = i * omega. - - """ - warn("TransferFunction.evalfr(omega) will be deprecated in a " - "future release of python-control; use evalfr(sys, omega*1j) " - "instead", PendingDeprecationWarning) - return self._evalfr(omega) - - def _evalfr(self, omega): - """Evaluate a transfer function at a single angular frequency.""" - # TODO: implement for discrete time systems - if isdtime(self, strict=True): - # Convert the frequency to discrete time - s = exp(1.j * omega * self.dt) - if np.any(omega * self.dt > pi): - warn("_evalfr: frequency evaluation above Nyquist frequency") - else: - s = 1.j * omega - - return self.horner(s) - - def horner(self, s): - """Evaluate the systems's transfer function for a complex variable - - Returns a matrix of values evaluated at complex variable s. - """ - - # Preallocate the output. - if getattr(s, '__iter__', False): - out = empty((self.outputs, self.inputs, len(s)), dtype=complex) - else: - out = empty((self.outputs, self.inputs), dtype=complex) - - for i in range(self.outputs): - for j in range(self.inputs): - out[i][j] = (polyval(self.num[i][j], s) / - polyval(self.den[i][j], s)) - - return out - def freqresp(self, omega): - """Evaluate the transfer function at a list of angular frequencies. - - Reports the frequency response of the system, + """(deprecated) Evaluate transfer function at complex frequencies. - G(j*omega) = mag*exp(j*phase) - - for continuous time. For discrete time systems, the response is - evaluated around the unit circle such that - - G(exp(j*omega*dt)) = mag*exp(j*phase). - - Parameters - ---------- - omega : array_like - A list of frequencies in radians/sec at which the system should be - evaluated. The list can be either a python list or a numpy array - and will be sorted before evaluation. - - Returns - ------- - mag : (self.outputs, self.inputs, len(omega)) ndarray - The magnitude (absolute value, not dB or log10) of the system - frequency response. - phase : (self.outputs, self.inputs, len(omega)) ndarray - The wrapped phase in radians of the system frequency response. - omega : ndarray or list or tuple - The list of sorted frequencies at which the response was - evaluated. + .. deprecated::0.9.0 + Method has been given the more pythonic name + :meth:`TransferFunction.frequency_response`. Or use + :func:`freqresp` in the MATLAB compatibility module. """ - # Preallocate outputs. - numfreq = len(omega) - mag = empty((self.outputs, self.inputs, numfreq)) - phase = empty((self.outputs, self.inputs, numfreq)) - - # Figure out the frequencies - omega.sort() - if isdtime(self, strict=True): - slist = np.array([exp(1.j * w * self.dt) for w in omega]) - if max(omega) * self.dt > pi: - warn("freqresp: frequency evaluation above Nyquist frequency") - else: - slist = np.array([1j * w for w in omega]) - - # Compute frequency response for each input/output pair - for i in range(self.outputs): - for j in range(self.inputs): - fresp = (polyval(self.num[i][j], slist) / - polyval(self.den[i][j], slist)) - mag[i, j, :] = abs(fresp) - phase[i, j, :] = angle(fresp) - - return mag, phase, omega + warn("TransferFunction.freqresp(omega) will be removed in a " + "future release of python-control; use " + "sys.frequency_response(omega), or freqresp(sys, omega) in the " + "MATLAB compatibility module instead", DeprecationWarning) + return self.frequency_response(omega) def pole(self): """Compute the poles of a transfer function.""" diff --git a/examples/robust_mimo.py b/examples/robust_mimo.py index d4e1335e6..9cc5a1c3b 100644 --- a/examples/robust_mimo.py +++ b/examples/robust_mimo.py @@ -43,7 +43,7 @@ def triv_sigma(g, w): g - LTI object, order n w - frequencies, length m s - (m,n) array of singular values of g(1j*w)""" - m, p, _ = g.freqresp(w) + m, p, _ = g.frequency_response(w) sjw = (m*np.exp(1j*p)).transpose(2, 0, 1) sv = np.linalg.svd(sjw, compute_uv=False) return sv diff --git a/examples/robust_siso.py b/examples/robust_siso.py index 87fcdb707..17ce10927 100644 --- a/examples/robust_siso.py +++ b/examples/robust_siso.py @@ -50,10 +50,10 @@ # frequency response omega = np.logspace(-2, 2, 101) -ws1mag, _, _ = ws1.freqresp(omega) -s1mag, _, _ = s1.freqresp(omega) -ws2mag, _, _ = ws2.freqresp(omega) -s2mag, _, _ = s2.freqresp(omega) +ws1mag, _, _ = ws1.frequency_response(omega) +s1mag, _, _ = s1.frequency_response(omega) +ws2mag, _, _ = ws2.frequency_response(omega) +s2mag, _, _ = s2.frequency_response(omega) plt.figure(1) # text uses log-scaled absolute, but dB are probably more familiar to most control engineers From bddc7926f752a9e64b0e0beb939fde515abdf847 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Wed, 6 Jan 2021 23:16:38 +0100 Subject: [PATCH 067/260] fix merge strategy 'errors' --- control/frdata.py | 26 +++++--------------------- control/lti.py | 1 - 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 168163d28..32d3d2c00 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -348,36 +348,21 @@ def eval(self, omega, squeeze=True): Note that a "normal" FRD only returns values for which there is an entry in the omega vector. An interpolating FRD can return - intermediate values. - - Parameters - ---------- - omega: float or array_like - Frequencies in radians per second - squeeze: bool, optional (default=True) - If True and `sys` is single input single output (SISO), returns a - 1D array or scalar depending on the length of `omega` - - Returns - ------- - fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray - The frequency response of the system. Array is ``len(x)`` if and only - if system is SISO and ``squeeze=True``. + intermediate values. Parameters ---------- - omega: float or array_like + omega : float or array_like Frequencies in radians per second - squeeze: bool, optional (default=True) + squeeze : bool, optional (default=True) If True and `sys` is single input single output (SISO), returns a 1D array or scalar depending on the length of `omega` Returns ------- fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray - The frequency response of the system. Array is ``len(x)`` if and - only if system is SISO and ``squeeze=True``. - + The frequency response of the system. Array is ``len(x)`` if and only + if system is SISO and ``squeeze=True``. """ omega_array = np.array(omega, ndmin=1) # array-like version of omega if any(omega_array.imag > 0): @@ -434,7 +419,6 @@ def __call__(self, s, squeeze=True): If `s` is not purely imaginary, because :class:`FrequencyDomainData` systems are only defined at imaginary frequency values. - """ if any(abs(np.array(s, ndmin=1).real) > 0): raise ValueError("__call__: FRD systems can only accept" diff --git a/control/lti.py b/control/lti.py index 70fbcdc7f..eff14be2a 100644 --- a/control/lti.py +++ b/control/lti.py @@ -159,7 +159,6 @@ def dcgain(self): """Return the zero-frequency gain""" raise NotImplementedError("dcgain not implemented for %s objects" % str(self.__class__)) - # Test to see if a system is SISO From e9bff6a4071012f208f1577336450790978e584c Mon Sep 17 00:00:00 2001 From: bnavigator Date: Wed, 6 Jan 2021 23:29:02 +0100 Subject: [PATCH 068/260] restore test_phase_crossover_frequencies_mimo --- control/tests/margin_test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index 81a4b68b4..4965bbe89 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -136,10 +136,8 @@ def test_phase_crossover_frequencies_mimo(): [[3], [4]]], [[[1, 2, 3, 4], [1, 1]], [[1, 1], [1, 1]]]) - - omega, gain = phase_crossover_frequencies(tf[0,0]) - assert_allclose(omega, [1.73205, 0.], atol=1.5e-3) - assert_allclose(gain, [-0.5, 0.25], atol=1.5e-3) + with pytest.raises(ControlMIMONotImplemented): + omega, gain = phase_crossover_frequencies(tf) def test_mag_phase_omega(): From 73fc6a6056aba8051959df9705cd3f7f88844e13 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Wed, 6 Jan 2021 23:43:04 +0100 Subject: [PATCH 069/260] reinstate second check in frd_test test_eval() --- control/tests/frd_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/tests/frd_test.py b/control/tests/frd_test.py index 5343112fe..581ee9b25 100644 --- a/control/tests/frd_test.py +++ b/control/tests/frd_test.py @@ -401,7 +401,8 @@ def test_operator_conversion(self): def test_eval(self): sys_tf = ct.tf([1], [1, 2, 1]) frd_tf = FRD(sys_tf, np.logspace(-1, 1, 3)) - np.testing.assert_almost_equal(evalfr(sys_tf, 1J), frd_tf.eval(1)) + np.testing.assert_almost_equal(sys_tf(1j), frd_tf.eval(1)) + np.testing.assert_almost_equal(sys_tf(1j), frd_tf(1j)) # Should get an error if we evaluate at an unknown frequency with pytest.raises(ValueError): From 7acfc779f10806610db0680c3e305ab9e26beb08 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 7 Jan 2021 00:01:35 +0100 Subject: [PATCH 070/260] statesp_test: rename from test_evalfr to test_call --- control/tests/statesp_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 7bf90f4c6..041792377 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -327,7 +327,7 @@ def test_multiply_ss(self, sys222, sys322): [-3.00137118e-01+3.42881660e-03j, 6.32015038e-04-1.21462255e-02j]]))]) @pytest.mark.parametrize("dt", [None, 0, 1e-3]) - def test_evalfr(self, dt, omega, resp): + def test_call(self, dt, omega, resp): """Evaluate the frequency response at single frequencies""" A = [[-2, 0.5], [0.5, -0.3]] B = [[0.3, -1.3], [0.1, 0.]] @@ -345,9 +345,9 @@ def test_evalfr(self, dt, omega, resp): np.testing.assert_allclose(evalfr(sys, s), resp, atol=1e-3) np.testing.assert_allclose(sys(s), resp, atol=1e-3) - # Deprecated version of the call (should generate error) + # Deprecated name of the call (should generate error) with pytest.raises(AttributeError): - np.testing.assert_allclose(sys.evalfr(omega), resp, atol=1e-3) + sys.evalfr(omega) @slycotonly From a26520d6b1d124b5f13c6083082b3fde5971099c Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 7 Jan 2021 00:02:08 +0100 Subject: [PATCH 071/260] statesp_test: remove duplicate test_pole_static and test_copy_constructor --- control/tests/statesp_test.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 041792377..27c37e247 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -922,28 +922,3 @@ def test_latex_repr(gmats, ref, repr_type, num_format, editsdefaults): g = StateSpace(*gmats) refkey = "{}_{}".format(refkey_n[num_format], refkey_r[repr_type]) assert g._repr_latex_() == ref[refkey] - - def test_pole_static(self): - """Regression: pole() of static gain is empty array.""" - np.testing.assert_array_equal(np.array([]), - StateSpace([], [], [], [[1]]).pole()) - - def test_copy_constructor(self): - # Create a set of matrices for a simple linear system - A = np.array([[-1]]) - B = np.array([[1]]) - C = np.array([[1]]) - D = np.array([[0]]) - - # Create the first linear system and a copy - linsys = StateSpace(A, B, C, D) - cpysys = StateSpace(linsys) - - # Change the original A matrix - A[0, 0] = -2 - np.testing.assert_array_equal(linsys.A, [[-1]]) # original value - np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value - - # Change the A matrix for the original system - linsys.A[0, 0] = -3 - np.testing.assert_array_equal(cpysys.A, [[-1]]) # original value From dae8d4292bab4a9b12a6433bfd5ea4f48eec4d18 Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Wed, 6 Jan 2021 15:17:26 -0800 Subject: [PATCH 072/260] Update control/xferfcn.py Co-authored-by: Ben Greiner --- control/xferfcn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/xferfcn.py b/control/xferfcn.py index a0941b74a..4c0d26a07 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -279,7 +279,7 @@ def horner(self, x): Parameters ---------- - x : complex array_like or complex + x : complex array_like or complex scalar Complex frequencies Returns From 3b10af001bf07644062c0c2da0067bc501cd3eff Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 7 Jan 2021 00:27:32 +0100 Subject: [PATCH 073/260] check for warning the pytest way --- control/tests/xferfcn_test.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 1ec596a6e..eb8755f82 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -474,15 +474,8 @@ def test_call_mimo(self): def test_freqresp_deprecated(self): sys = TransferFunction([1., 3., 5], [1., 6., 2., -1.]) # Deprecated version of the call (should generate warning) - import warnings - with warnings.catch_warnings(record=True) as w: - # Set up warnings filter to only show warnings in control module - warnings.filterwarnings("ignore") - warnings.filterwarnings("always", module="control") - - # Make sure that we get a pending deprecation warning + with pytest.warns(DeprecationWarning): sys.freqresp(1.) - assert issubclass(w[-1].category, DeprecationWarning) def test_frequency_response_siso(self): """Evaluate the magnitude and phase of a SISO system at From 1bf445bbc885c3ccf1fb7c9ead3538262afc983a Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 6 Jan 2021 21:42:12 -0800 Subject: [PATCH 074/260] add unit tests for freqresp/evalfr warnings/errors --- control/frdata.py | 2 +- control/tests/frd_test.py | 8 ++++++-- control/tests/statesp_test.py | 6 ++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 32d3d2c00..837bc1dac 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -421,7 +421,7 @@ def __call__(self, s, squeeze=True): frequency values. """ if any(abs(np.array(s, ndmin=1).real) > 0): - raise ValueError("__call__: FRD systems can only accept" + raise ValueError("__call__: FRD systems can only accept " "purely imaginary frequencies") # need to preserve array or scalar status if hasattr(s, '__len__'): diff --git a/control/tests/frd_test.py b/control/tests/frd_test.py index 581ee9b25..7418dddda 100644 --- a/control/tests/frd_test.py +++ b/control/tests/frd_test.py @@ -405,11 +405,15 @@ def test_eval(self): np.testing.assert_almost_equal(sys_tf(1j), frd_tf(1j)) # Should get an error if we evaluate at an unknown frequency - with pytest.raises(ValueError): + with pytest.raises(ValueError, match="not .* in frequency list"): frd_tf.eval(2) + # Should get an error if we evaluate at an complex number + with pytest.raises(ValueError, match="can only accept real-valued"): + frd_tf.eval(2 + 1j) + # Should get an error if we use __call__ at real-valued frequency - with pytest.raises(ValueError): + with pytest.raises(ValueError, match="only accept purely imaginary"): frd_tf(2) def test_repr_str(self): diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 27c37e247..25cfe6f47 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -376,6 +376,12 @@ def test_freq_resp(self): np.testing.assert_almost_equal(phase, true_phase) np.testing.assert_equal(omega, true_omega) + # Deprecated version of the call (should return warning) + with pytest.warns(DeprecationWarning, match="will be removed"): + from control import freqresp + mag, phase, omega = sys.freqresp(true_omega) + np.testing.assert_almost_equal(mag, true_mag) + def test_is_static_gain(self): A0 = np.zeros((2,2)) A1 = A0.copy() From 3dbaacd7d9d03da4558ad1a8b88dcdcbe47e9261 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 7 Jan 2021 13:03:57 +0100 Subject: [PATCH 075/260] test frd freqresp deprecation --- control/tests/frd_test.py | 6 ++++ control/tests/freqresp_test.py | 54 +++++++++++++++++++--------------- control/tests/statesp_test.py | 1 - 3 files changed, 37 insertions(+), 24 deletions(-) diff --git a/control/tests/frd_test.py b/control/tests/frd_test.py index 7418dddda..f8ee3eb20 100644 --- a/control/tests/frd_test.py +++ b/control/tests/frd_test.py @@ -416,6 +416,12 @@ def test_eval(self): with pytest.raises(ValueError, match="only accept purely imaginary"): frd_tf(2) + def test_freqresp_deprecated(self): + sys_tf = ct.tf([1], [1, 2, 1]) + frd_tf = FRD(sys_tf, np.logspace(-1, 1, 3)) + with pytest.warns(DeprecationWarning): + frd_tf.freqresp(1.) + def test_repr_str(self): # repr printing array = np.array diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index e6a6934e8..752dacb79 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -21,24 +21,46 @@ pytestmark = pytest.mark.usefixtures("mplcleanup") -def test_siso(): - """Test SISO frequency response""" +@pytest.fixture +def ss_siso(): A = np.array([[1, 1], [0, 1]]) B = np.array([[0], [1]]) C = np.array([[1, 0]]) D = 0 - sys = StateSpace(A, B, C, D) + return StateSpace(A, B, C, D) + + +@pytest.fixture +def ss_mimo(): + A = np.array([[1, 1], [0, 1]]) + B = np.array([[1, 0], [0, 1]]) + C = np.array([[1, 0]]) + D = np.array([[0, 0]]) + return StateSpace(A, B, C, D) + +def test_freqresp_siso(ss_siso): + """Test SISO frequency response""" omega = np.linspace(10e-2, 10e2, 1000) # test frequency response - sys.frequency_response(omega) + ctrl.freqresp(ss_siso, omega) - # test bode plot - bode(sys) - # Convert to transfer function and test bode - systf = tf(sys) - bode(systf) +@slycotonly +def test_freqresp_mimo(ss_mimo): + """Test MIMO frequency response calls""" + omega = np.linspace(10e-2, 10e2, 1000) + ctrl.freqresp(ss_mimo, omega) + tf_mimo = tf(ss_mimo) + ctrl.freqresp(tf_mimo, omega) + + +def test_bode_basic(ss_siso): + """Test bode plot call (Very basic)""" + # TODO: proper test + tf_siso = tf(ss_siso) + bode(ss_siso) + bode(tf_siso) @pytest.mark.filterwarnings("ignore:.*non-positive left xlim:UserWarning") @@ -106,20 +128,6 @@ def test_doubleint(): bode(sys) -@slycotonly -def test_mimo(): - """Test MIMO frequency response calls""" - A = np.array([[1, 1], [0, 1]]) - B = np.array([[1, 0], [0, 1]]) - C = np.array([[1, 0]]) - D = np.array([[0, 0]]) - omega = np.linspace(10e-2, 10e2, 1000) - sysMIMO = ss(A, B, C, D) - - sysMIMO.frequency_response(omega) - tf(sysMIMO) - - @pytest.mark.parametrize( "Hz, Wcp, Wcg", [pytest.param(False, 6.0782869, 10., id="omega"), diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 25cfe6f47..48f27a3b5 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -378,7 +378,6 @@ def test_freq_resp(self): # Deprecated version of the call (should return warning) with pytest.warns(DeprecationWarning, match="will be removed"): - from control import freqresp mag, phase, omega = sys.freqresp(true_omega) np.testing.assert_almost_equal(mag, true_mag) From c2b00c308b6dfcf81be0f159978475f9263886f5 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 7 Jan 2021 13:08:57 +0100 Subject: [PATCH 076/260] avoid xlim warning in freqresp_test --- control/tests/freqresp_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 111d4296c..599574c2b 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -305,7 +305,8 @@ def test_initial_phase(TF, initial_phase, default_phase, expected_phase): # Make sure everything works in rad/sec as well if initial_phase: - plt.clf() # clear previous figure (speeds things up) + plt.xscale('linear') # avoids xlim warning on next line + plt.clf() # clear previous figure (speeds things up) mag, phase, omega = ctrl.bode( TF, initial_phase=initial_phase/180. * math.pi, deg=False) assert(abs(phase[0] - expected_phase) < 0.1) From 178bfa0e6cc6bd24b6f2f6aff906f940ea3b9183 Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Thu, 7 Jan 2021 11:40:01 -0800 Subject: [PATCH 077/260] doc updates to specify frequency response outputs more precisely Co-authored-by: Ben Greiner --- control/frdata.py | 27 ++++++++++--------- control/lti.py | 67 +++++++++++++++++++++++++++------------------- control/statesp.py | 14 ++++++---- 3 files changed, 64 insertions(+), 44 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 837bc1dac..22dbb298f 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -356,11 +356,11 @@ def eval(self, omega, squeeze=True): Frequencies in radians per second squeeze : bool, optional (default=True) If True and `sys` is single input single output (SISO), returns a - 1D array or scalar depending on the length of `omega` + 1D array rather than a 3D array. Returns ------- - fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray + fresp : (self.outputs, self.inputs, len(x)) or (len(x), ) complex ndarray The frequency response of the system. Array is ``len(x)`` if and only if system is SISO and ``squeeze=True``. """ @@ -393,25 +393,28 @@ def eval(self, omega, squeeze=True): def __call__(self, s, squeeze=True): """Evaluate system's transfer function at complex frequencies. - - Returns the complex frequency response `sys(s)`. + + Returns the complex frequency response `sys(s)` of system `sys` with + `m = sys.inputs` number of inputs and `p = sys.outputs` number of + outputs. To evaluate at a frequency omega in radians per second, enter - ``x = omega * 1j`` or use ``sys.eval(omega)`` + ``s = omega * 1j`` or use ``sys.eval(omega)`` Parameters ---------- - s: complex scalar or array_like + s : complex scalar or array_like Complex frequencies - squeeze: bool, optional (default=True) - If True and `sys` is single input single output (SISO), returns a - 1D array or scalar depending on the length of x`. + squeeze : bool, optional (default=True) + If True and `sys` is single input single output (SISO), i.e. `m=1`, + `p=1`, return a 1D array rather than a 3D array. Returns ------- - fresp : (self.outputs, self.inputs, len(s)) or len(s) complex ndarray - The frequency response of the system. Array is ``len(s)`` if and - only if system is SISO and ``squeeze=True``. + fresp : (p, m, len(s)) complex ndarray or (len(s),) complex ndarray + The frequency response of the system. Array is ``(len(s), )`` if + and only if system is SISO and ``squeeze=True``. + Raises ------ diff --git a/control/lti.py b/control/lti.py index eff14be2a..152c5c73b 100644 --- a/control/lti.py +++ b/control/lti.py @@ -124,25 +124,30 @@ def frequency_response(self, omega, squeeze=True): G(exp(j*omega*dt)) = mag*exp(j*phase). + In general the system may be multiple input, multiple output (MIMO), where + `m = self.inputs` number of inputs and `p = self.outputs` number of + outputs. + Parameters ---------- - omega : array_like or float + omega : float or array_like A list, tuple, array, or scalar value of frequencies in radians/sec at which the system will be evaluated. - squeeze: bool, optional (default=True) - If True and sys is single input, single output (SISO), return a - 1D array or scalar depending on omega's length. + squeeze : bool, optional (default=True) + If True and the system is single input single output (SISO), i.e. `m=1`, + `p=1`, return a 1D array rather than a 3D array. Returns ------- - mag : (self.outputs, self.inputs, len(omega)) or len(omega) ndarray + mag : (p, m, len(omega)) ndarray or (len(omega),) ndarray The magnitude (absolute value, not dB or log10) of the system - frequency response. - phase : (self.outputs, self.inputs, len(omega)) or len(omega) ndarray + frequency response. Array is ``(len(omega), )`` if + and only if system is SISO and ``squeeze=True``. + phase : (p, m, len(omega)) ndarray or (len(omega),) ndarray The wrapped phase in radians of the system frequency response. omega : ndarray The (sorted) frequencies at which the response was evaluated. - + """ omega = np.sort(np.array(omega, ndmin=1)) if isdtime(self, strict=True): @@ -463,7 +468,9 @@ def evalfr(sys, x, squeeze=True): Evaluate the transfer function of an LTI system for complex frequency x. Returns the complex frequency response `sys(x)` where `x` is `s` for - continuous-time systems and `z` for discrete-time systems. + continuous-time systems and `z` for discrete-time systems, with + `m = sys.inputs` number of inputs and `p = sys.outputs` number of + outputs. To evaluate at a frequency omega in radians per second, enter ``x = omega * 1j`` for continuous-time systems, or @@ -474,17 +481,17 @@ def evalfr(sys, x, squeeze=True): ---------- sys: StateSpace or TransferFunction Linear system - x: complex scalar or array_like + x : complex scalar or array_like Complex frequency(s) - squeeze: bool, optional (default=True) - If True and sys is single input single output (SISO), returns a - 1D array or scalar depending on the length of x. + squeeze : bool, optional (default=True) + If True and `sys` is single input single output (SISO), i.e. `m=1`, + `p=1`, return a 1D array rather than a 3D array. Returns ------- - fresp : (sys.outputs, sys.inputs, len(x)) or len(x) complex ndarray - The frequency response of the system. Array is len(x) if and only if - system is SISO and squeeze=True. + fresp : (p, m, len(x)) complex ndarray or (len(x),) complex ndarray + The frequency response of the system. Array is ``(len(x), )`` if + and only if system is SISO and ``squeeze=True``. See Also -------- @@ -493,8 +500,8 @@ def evalfr(sys, x, squeeze=True): Notes ----- - This function is a wrapper for StateSpace.__call__ and - TransferFunction.__call__. + This function is a wrapper for :meth:`StateSpace.__call__` and + :meth:`TransferFunction.__call__`. Examples -------- @@ -510,25 +517,31 @@ def evalfr(sys, x, squeeze=True): def freqresp(sys, omega, squeeze=True): """ Frequency response of an LTI system at multiple angular frequencies. + + In general the system may be multiple input, multiple output (MIMO), where + `m = sys.inputs` number of inputs and `p = sys.outputs` number of + outputs. Parameters ---------- sys: StateSpace or TransferFunction Linear system - omega: float or array_like + omega : float or array_like A list of frequencies in radians/sec at which the system should be evaluated. The list can be either a python list or a numpy array and will be sorted before evaluation. - squeeze: bool, optional (default=True) - If True and sys is single input, single output (SISO), returns - 1D array or scalar depending on omega's length. + squeeze : bool, optional (default=True) + If True and `sys` is single input, single output (SISO), returns + 1D array rather than a 3D array. Returns ------- - mag : (sys.outputs, sys.inputs, len(omega)) or len(omega) ndarray + mag : (p, m, len(omega)) ndarray or (len(omega),) ndarray The magnitude (absolute value, not dB or log10) of the system - frequency response. - phase : (sys.outputs, sys.inputs, len(omega)) or len(omega) ndarray + frequency response. Array is ``(len(omega), )`` if and only if system + is SISO and ``squeeze=True``. + + phase : (p, m, len(omega)) ndarray or (len(omega),) ndarray The wrapped phase in radians of the system frequency response. omega : ndarray The list of sorted frequencies at which the response was @@ -541,8 +554,8 @@ def freqresp(sys, omega, squeeze=True): Notes ----- - This function is a wrapper for StateSpace.frequency_response and - TransferFunction.frequency_response. + This function is a wrapper for :meth:`StateSpace.frequency_response` and + :meth:`TransferFunction.frequency_response`. Examples -------- diff --git a/control/statesp.py b/control/statesp.py index 8bf4c0d99..ffd229108 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -645,6 +645,10 @@ def __call__(self, x, squeeze=True): Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. + + In general the system may be multiple input, multiple output (MIMO), where + `m = self.inputs` number of inputs and `p = self.outputs` number of + outputs. To evaluate at a frequency omega in radians per second, enter ``x = omega * 1j``, for continuous-time systems, or @@ -653,15 +657,15 @@ def __call__(self, x, squeeze=True): Parameters ---------- - x: complex or complex array_like + x : complex or complex array_like Complex frequencies - squeeze: bool, optional (default=True) - If True and `sys` is single input single output (SISO), returns a - 1D array or scalar depending on the length of `x`. + squeeze : bool, optional (default=True) + If True and `self` is single input single output (SISO), returns a + 1D array rather than a 3D array. Returns ------- - fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray + fresp : (p, m, len(x)) complex ndarray or (len(x),) complex ndarray The frequency response of the system. Array is ``len(x)`` if and only if system is SISO and ``squeeze=True``. From a6310988374348128f038420d480d593f7995765 Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Thu, 7 Jan 2021 11:57:47 -0800 Subject: [PATCH 078/260] missed a couple of doc updates in xferfcn Co-authored-by: Ben Greiner --- control/xferfcn.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/control/xferfcn.py b/control/xferfcn.py index 4c0d26a07..fba674efe 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -237,6 +237,10 @@ def __call__(self, x, squeeze=True): Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. + In general the system may be multiple input, multiple output (MIMO), where + `m = self.inputs` number of inputs and `p = self.outputs` number of + outputs. + To evaluate at a frequency omega in radians per second, enter ``x = omega * 1j``, for continuous-time systems, or ``x = exp(1j * omega * dt)`` for discrete-time systems. Or use @@ -244,15 +248,15 @@ def __call__(self, x, squeeze=True): Parameters ---------- - x: complex array_like or complex + x : complex array_like or complex Complex frequencies - squeeze: bool, optional (default=True) + squeeze : bool, optional (default=True) If True and `sys` is single input single output (SISO), returns a - 1D array or scalar depending on the length of `x`. + 1D array rather than a 3D array. Returns ------- - fresp : (self.outputs, self.inputs, len(x)) or len(x) complex ndarray + fresp : (p, m, len(x)) complex ndarray or or (len(x), ) complex ndarray The frequency response of the system. Array is `len(x)` if and only if system is SISO and ``squeeze=True``. From 8793d780a0ed83cc7b97e94de88a1aa72b7463f9 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 3 Jan 2021 13:20:40 -0800 Subject: [PATCH 079/260] set array_priority=11 for TransferFunction, to match StateSpace --- control/tests/xferfcn_test.py | 19 +++++++++++++++++++ control/xferfcn.py | 3 +++ 2 files changed, 22 insertions(+) diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index eb8755f82..50867e887 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -5,7 +5,9 @@ import numpy as np import pytest +import operator +import control as ct from control.statesp import StateSpace, _convertToStateSpace, rss from control.xferfcn import TransferFunction, _convert_to_transfer_function, \ ss2tf @@ -1022,3 +1024,20 @@ def test_returnScipySignalLTI_error(self, mimotf): mimotf.returnScipySignalLTI() with pytest.raises(ValueError): mimotf.returnScipySignalLTI(strict=True) + +@pytest.mark.parametrize( + "op", + [pytest.param(getattr(operator, s), id=s) for s in ('add', 'sub', 'mul')]) +@pytest.mark.parametrize( + "tf, arr", + [# pytest.param(ct.tf([1], [0.5, 1]), np.array(2.), id="0D scalar"), + # pytest.param(ct.tf([1], [0.5, 1]), np.array([2.]), id="1D scalar"), + pytest.param(ct.tf([1], [0.5, 1]), np.array([[2.]]), id="2D scalar")]) +def test_xferfcn_ndarray_precedence(op, tf, arr): + # Apply the operator to the transfer function and array + result = op(tf, arr) + assert isinstance(result, ct.TransferFunction) + + # Apply the operator to the array and transfer function + result = op(arr, tf) + assert isinstance(result, ct.TransferFunction) diff --git a/control/xferfcn.py b/control/xferfcn.py index fba674efe..2cf5a5001 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -114,6 +114,9 @@ class TransferFunction(LTI): >>> G = (s + 1)/(s**2 + 2*s + 1) """ + # Give TransferFunction._rmul_() priority for ndarray * TransferFunction + __array_priority__ = 11 # override ndarray and matrix types + def __init__(self, *args, **kwargs): """TransferFunction(num, den[, dt]) From bd77d71cf7f98bae5851f5be6935fdcde6460a9d Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 3 Jan 2021 13:24:06 -0800 Subject: [PATCH 080/260] update _convert_to_transfer_function to allow 0D and 1D arrays --- control/tests/bdalg_test.py | 2 +- control/tests/xferfcn_test.py | 4 ++-- control/xferfcn.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/control/tests/bdalg_test.py b/control/tests/bdalg_test.py index fc5f78f91..433a584cc 100644 --- a/control/tests/bdalg_test.py +++ b/control/tests/bdalg_test.py @@ -255,7 +255,7 @@ def test_feedback_args(self, tsys): ctrl.feedback(*args) # If second argument is not LTI or convertable, generate an exception - args = (tsys.sys1, np.array([1])) + args = (tsys.sys1, 'hello world') with pytest.raises(TypeError): ctrl.feedback(*args) diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 50867e887..5de7fffca 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -1030,8 +1030,8 @@ def test_returnScipySignalLTI_error(self, mimotf): [pytest.param(getattr(operator, s), id=s) for s in ('add', 'sub', 'mul')]) @pytest.mark.parametrize( "tf, arr", - [# pytest.param(ct.tf([1], [0.5, 1]), np.array(2.), id="0D scalar"), - # pytest.param(ct.tf([1], [0.5, 1]), np.array([2.]), id="1D scalar"), + [pytest.param(ct.tf([1], [0.5, 1]), np.array(2.), id="0D scalar"), + pytest.param(ct.tf([1], [0.5, 1]), np.array([2.]), id="1D scalar"), pytest.param(ct.tf([1], [0.5, 1]), np.array([[2.]]), id="2D scalar")]) def test_xferfcn_ndarray_precedence(op, tf, arr): # Apply the operator to the transfer function and array diff --git a/control/xferfcn.py b/control/xferfcn.py index 2cf5a5001..9a0e8ee6d 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -1285,7 +1285,7 @@ def _convert_to_transfer_function(sys, **kw): # If this is array-like, try to create a constant feedthrough try: - D = array(sys) + D = array(sys, ndmin=2) outputs, inputs = D.shape num = [[[D[i, j]] for j in range(inputs)] for i in range(outputs)] den = [[[1] for j in range(inputs)] for i in range(outputs)] From 4b7bf8a7e9ca26b198ae6a99818fe165c6b2639f Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 3 Jan 2021 13:40:29 -0800 Subject: [PATCH 081/260] rename _convertToX to _convert_to_x + statesp/ndarray unit tests --- control/bdalg.py | 4 ++-- control/dtime.py | 2 +- control/frdata.py | 18 +++++++++--------- control/statesp.py | 32 ++++++++++++++++---------------- control/tests/frd_test.py | 8 ++++---- control/tests/statesp_test.py | 35 +++++++++++++++++++++++++++++------ control/tests/xferfcn_test.py | 4 ++-- control/timeresp.py | 10 +++++----- 8 files changed, 68 insertions(+), 45 deletions(-) diff --git a/control/bdalg.py b/control/bdalg.py index f88e8e813..e00dcfa3c 100644 --- a/control/bdalg.py +++ b/control/bdalg.py @@ -242,9 +242,9 @@ def feedback(sys1, sys2=1, sign=-1): if isinstance(sys2, tf.TransferFunction): sys1 = tf._convert_to_transfer_function(sys1) elif isinstance(sys2, ss.StateSpace): - sys1 = ss._convertToStateSpace(sys1) + sys1 = ss._convert_to_statespace(sys1) elif isinstance(sys2, frd.FRD): - sys1 = frd._convertToFRD(sys1, sys2.omega) + sys1 = frd._convert_to_FRD(sys1, sys2.omega) else: # sys2 is a scalar. sys1 = tf._convert_to_transfer_function(sys1) sys2 = tf._convert_to_transfer_function(sys2) diff --git a/control/dtime.py b/control/dtime.py index 725bcde47..8c0fe53e9 100644 --- a/control/dtime.py +++ b/control/dtime.py @@ -47,7 +47,7 @@ """ from .lti import isctime -from .statesp import StateSpace, _convertToStateSpace +from .statesp import StateSpace __all__ = ['sample_system', 'c2d'] diff --git a/control/frdata.py b/control/frdata.py index 22dbb298f..8f148a3fa 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -197,7 +197,7 @@ def __add__(self, other): # Convert the second argument to a frequency response function. # or re-base the frd to the current omega (if needed) - other = _convertToFRD(other, omega=self.omega) + other = _convert_to_FRD(other, omega=self.omega) # Check that the input-output sizes are consistent. if self.inputs != other.inputs: @@ -232,7 +232,7 @@ def __mul__(self, other): return FRD(self.fresp * other, self.omega, smooth=(self.ifunc is not None)) else: - other = _convertToFRD(other, omega=self.omega) + other = _convert_to_FRD(other, omega=self.omega) # Check that the input-output sizes are consistent. if self.inputs != other.outputs: @@ -259,7 +259,7 @@ def __rmul__(self, other): return FRD(self.fresp * other, self.omega, smooth=(self.ifunc is not None)) else: - other = _convertToFRD(other, omega=self.omega) + other = _convert_to_FRD(other, omega=self.omega) # Check that the input-output sizes are consistent. if self.outputs != other.inputs: @@ -287,7 +287,7 @@ def __truediv__(self, other): return FRD(self.fresp * (1/other), self.omega, smooth=(self.ifunc is not None)) else: - other = _convertToFRD(other, omega=self.omega) + other = _convert_to_FRD(other, omega=self.omega) if (self.inputs > 1 or self.outputs > 1 or other.inputs > 1 or other.outputs > 1): @@ -310,7 +310,7 @@ def __rtruediv__(self, other): return FRD(other / self.fresp, self.omega, smooth=(self.ifunc is not None)) else: - other = _convertToFRD(other, omega=self.omega) + other = _convert_to_FRD(other, omega=self.omega) if (self.inputs > 1 or self.outputs > 1 or other.inputs > 1 or other.outputs > 1): @@ -450,7 +450,7 @@ def freqresp(self, omega): def feedback(self, other=1, sign=-1): """Feedback interconnection between two FRD objects.""" - other = _convertToFRD(other, omega=self.omega) + other = _convert_to_FRD(other, omega=self.omega) if (self.outputs != other.inputs or self.inputs != other.outputs): raise ValueError( @@ -486,7 +486,7 @@ def feedback(self, other=1, sign=-1): FRD = FrequencyResponseData -def _convertToFRD(sys, omega, inputs=1, outputs=1): +def _convert_to_FRD(sys, omega, inputs=1, outputs=1): """Convert a system to frequency response data form (if needed). If sys is already an frd, and its frequency range matches or @@ -496,8 +496,8 @@ def _convertToFRD(sys, omega, inputs=1, outputs=1): scalar, then the number of inputs and outputs can be specified manually, as in: - >>> frd = _convertToFRD(3., omega) # Assumes inputs = outputs = 1 - >>> frd = _convertToFRD(1., omegs, inputs=3, outputs=2) + >>> frd = _convert_to_FRD(3., omega) # Assumes inputs = outputs = 1 + >>> frd = _convert_to_FRD(1., omegs, inputs=3, outputs=2) In the latter example, sys's matrix transfer function is [[1., 1., 1.] [1., 1., 1.]]. diff --git a/control/statesp.py b/control/statesp.py index ffd229108..35b95a80d 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -10,7 +10,7 @@ # Python 3 compatibility (needs to go here) from __future__ import print_function -from __future__ import division # for _convertToStateSpace +from __future__ import division # for _convert_to_statespace """Copyright (c) 2010 by California Institute of Technology All rights reserved. @@ -527,7 +527,7 @@ def __add__(self, other): D = self.D + other dt = self.dt else: - other = _convertToStateSpace(other) + other = _convert_to_statespace(other) # Check to make sure the dimensions are OK if ((self.inputs != other.inputs) or @@ -577,7 +577,7 @@ def __mul__(self, other): D = self.D * other dt = self.dt else: - other = _convertToStateSpace(other) + other = _convert_to_statespace(other) # Check to make sure the dimensions are OK if self.inputs != other.outputs: @@ -614,7 +614,7 @@ def __rmul__(self, other): # is lti, and convertible? if isinstance(other, LTI): - return _convertToStateSpace(other) * self + return _convert_to_statespace(other) * self # try to treat this as a matrix try: @@ -839,7 +839,7 @@ def zero(self): def feedback(self, other=1, sign=-1): """Feedback interconnection between two LTI systems.""" - other = _convertToStateSpace(other) + other = _convert_to_statespace(other) # Check to make sure the dimensions are OK if (self.inputs != other.outputs) or (self.outputs != other.inputs): @@ -907,7 +907,7 @@ def lft(self, other, nu=-1, ny=-1): Dimension of (plant) control input. """ - other = _convertToStateSpace(other) + other = _convert_to_statespace(other) # maximal values for nu, ny if ny == -1: ny = min(other.inputs, self.outputs) @@ -1061,7 +1061,7 @@ def append(self, other): The second model is converted to state-space if necessary, inputs and outputs are appended and their order is preserved""" if not isinstance(other, StateSpace): - other = _convertToStateSpace(other) + other = _convert_to_statespace(other) self.dt = common_timebase(self.dt, other.dt) @@ -1186,7 +1186,7 @@ def is_static_gain(self): # TODO: add discrete time check -def _convertToStateSpace(sys, **kw): +def _convert_to_statespace(sys, **kw): """Convert a system to state space form (if needed). If sys is already a state space, then it is returned. If sys is a @@ -1194,8 +1194,8 @@ def _convertToStateSpace(sys, **kw): returned. If sys is a scalar, then the number of inputs and outputs can be specified manually, as in: - >>> sys = _convertToStateSpace(3.) # Assumes inputs = outputs = 1 - >>> sys = _convertToStateSpace(1., inputs=3, outputs=2) + >>> sys = _convert_to_statespace(3.) # Assumes inputs = outputs = 1 + >>> sys = _convert_to_statespace(1., inputs=3, outputs=2) In the latter example, A = B = C = 0 and D = [[1., 1., 1.] [1., 1., 1.]]. @@ -1205,7 +1205,7 @@ def _convertToStateSpace(sys, **kw): if isinstance(sys, StateSpace): if len(kw): - raise TypeError("If sys is a StateSpace, _convertToStateSpace " + raise TypeError("If sys is a StateSpace, _convert_to_statespace " "cannot take keywords.") # Already a state space system; just return it @@ -1221,7 +1221,7 @@ def _convertToStateSpace(sys, **kw): from slycot import td04ad if len(kw): raise TypeError("If sys is a TransferFunction, " - "_convertToStateSpace cannot take keywords.") + "_convert_to_statespace cannot take keywords.") # Change the numerator and denominator arrays so that the transfer # function matrix has a common denominator. @@ -1283,7 +1283,7 @@ def _convertToStateSpace(sys, **kw): return StateSpace([], [], [], D) except Exception as e: print("Failure to assume argument is matrix-like in" - " _convertToStateSpace, result %s" % e) + " _convert_to_statespace, result %s" % e) raise TypeError("Can't convert given type to StateSpace system.") @@ -1662,14 +1662,14 @@ def tf2ss(*args): from .xferfcn import TransferFunction if len(args) == 2 or len(args) == 3: # Assume we were given the num, den - return _convertToStateSpace(TransferFunction(*args)) + return _convert_to_statespace(TransferFunction(*args)) elif len(args) == 1: sys = args[0] if not isinstance(sys, TransferFunction): raise TypeError("tf2ss(sys): sys must be a TransferFunction " "object.") - return _convertToStateSpace(sys) + return _convert_to_statespace(sys) else: raise ValueError("Needs 1 or 2 arguments; received %i." % len(args)) @@ -1769,5 +1769,5 @@ def ssdata(sys): (A, B, C, D): list of matrices State space data for the system """ - ss = _convertToStateSpace(sys) + ss = _convert_to_statespace(sys) return ss.A, ss.B, ss.C, ss.D diff --git a/control/tests/frd_test.py b/control/tests/frd_test.py index f8ee3eb20..c63a4c02b 100644 --- a/control/tests/frd_test.py +++ b/control/tests/frd_test.py @@ -12,7 +12,7 @@ import control as ct from control.statesp import StateSpace from control.xferfcn import TransferFunction -from control.frdata import FRD, _convertToFRD, FrequencyResponseData +from control.frdata import FRD, _convert_to_FRD, FrequencyResponseData from control import bdalg, evalfr, freqplot from control.tests.conftest import slycotonly @@ -174,9 +174,9 @@ def testFeedback2(self): def testAuto(self): omega = np.logspace(-1, 2, 10) - f1 = _convertToFRD(1, omega) - f2 = _convertToFRD(np.array([[1, 0], [0.1, -1]]), omega) - f2 = _convertToFRD([[1, 0], [0.1, -1]], omega) + f1 = _convert_to_FRD(1, omega) + f2 = _convert_to_FRD(np.array([[1, 0], [0.1, -1]]), omega) + f2 = _convert_to_FRD([[1, 0], [0.1, -1]], omega) f1, f2 # reference to avoid pyflakes error def testNyquist(self): diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 48f27a3b5..8a91da68b 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -9,14 +9,16 @@ import numpy as np import pytest +import operator from numpy.linalg import solve from scipy.linalg import block_diag, eigvals +import control as ct from control.config import defaults from control.dtime import sample_system from control.lti import evalfr -from control.statesp import (StateSpace, _convertToStateSpace, drss, rss, ss, - tf2ss, _statesp_defaults) +from control.statesp import (StateSpace, _convert_to_statespace, drss, + rss, ss, tf2ss, _statesp_defaults) from control.tests.conftest import ismatarrayout, slycotonly from control.xferfcn import TransferFunction, ss2tf @@ -224,7 +226,7 @@ def test_pole(self, sys322): def test_zero_empty(self): """Test to make sure zero() works with no zeros in system.""" - sys = _convertToStateSpace(TransferFunction([1], [1, 2, 1])) + sys = _convert_to_statespace(TransferFunction([1], [1, 2, 1])) np.testing.assert_array_equal(sys.zero(), np.array([])) @slycotonly @@ -456,7 +458,7 @@ def test_append_tf(self): s = TransferFunction([1, 0], [1]) h = 1 / (s + 1) / (s + 2) sys1 = StateSpace(A1, B1, C1, D1) - sys2 = _convertToStateSpace(h) + sys2 = _convert_to_statespace(h) sys3c = sys1.append(sys2) np.testing.assert_array_almost_equal(sys1.A, sys3c.A[:3, :3]) np.testing.assert_array_almost_equal(sys1.B, sys3c.B[:3, :2]) @@ -625,10 +627,10 @@ def test_empty(self): assert 0 == g1.outputs def test_matrix_to_state_space(self): - """_convertToStateSpace(matrix) gives ss([],[],[],D)""" + """_convert_to_statespace(matrix) gives ss([],[],[],D)""" with pytest.deprecated_call(): D = np.matrix([[1, 2, 3], [4, 5, 6]]) - g = _convertToStateSpace(D) + g = _convert_to_statespace(D) np.testing.assert_array_equal(np.empty((0, 0)), g.A) np.testing.assert_array_equal(np.empty((0, D.shape[1])), g.B) @@ -927,3 +929,24 @@ def test_latex_repr(gmats, ref, repr_type, num_format, editsdefaults): g = StateSpace(*gmats) refkey = "{}_{}".format(refkey_n[num_format], refkey_r[repr_type]) assert g._repr_latex_() == ref[refkey] + + +@pytest.mark.parametrize( + "op", + [pytest.param(getattr(operator, s), id=s) for s in ('add', 'sub', 'mul')]) +@pytest.mark.parametrize( + "tf, arr", + [pytest.param(ct.tf([1], [0.5, 1]), np.array(2.), id="0D scalar"), + pytest.param(ct.tf([1], [0.5, 1]), np.array([2.]), id="1D scalar"), + pytest.param(ct.tf([1], [0.5, 1]), np.array([[2.]]), id="2D scalar")]) +def test_xferfcn_ndarray_precedence(op, tf, arr): + # Apply the operator to the transfer function and array + ss = ct.tf2ss(tf) + result = op(ss, arr) + assert isinstance(result, ct.StateSpace) + + # Apply the operator to the array and transfer function + ss = ct.tf2ss(tf) + result = op(arr, ss) + assert isinstance(result, ct.StateSpace) + diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 5de7fffca..4fc88c42e 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -8,7 +8,7 @@ import operator import control as ct -from control.statesp import StateSpace, _convertToStateSpace, rss +from control.statesp import StateSpace, _convert_to_statespace, rss from control.xferfcn import TransferFunction, _convert_to_transfer_function, \ ss2tf from control.lti import evalfr @@ -711,7 +711,7 @@ def test_state_space_conversion_mimo(self): h = (b0 + b1*s + b2*s**2)/(a0 + a1*s + a2*s**2 + a3*s**3) H = TransferFunction([[h.num[0][0]], [(h*s).num[0][0]]], [[h.den[0][0]], [h.den[0][0]]]) - sys = _convertToStateSpace(H) + sys = _convert_to_statespace(H) H2 = _convert_to_transfer_function(sys) np.testing.assert_array_almost_equal(H.num[0][0], H2.num[0][0]) np.testing.assert_array_almost_equal(H.den[0][0], H2.den[0][0]) diff --git a/control/timeresp.py b/control/timeresp.py index f4f293bdf..a5cc245bf 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -79,7 +79,7 @@ atleast_1d) import warnings from .lti import LTI # base class of StateSpace, TransferFunction -from .statesp import _convertToStateSpace, _mimo2simo, _mimo2siso, ssdata +from .statesp import _convert_to_statespace, _mimo2simo, _mimo2siso, ssdata from .lti import isdtime, isctime __all__ = ['forced_response', 'step_response', 'step_info', 'initial_response', @@ -271,7 +271,7 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, if not isinstance(sys, LTI): raise TypeError('Parameter ``sys``: must be a ``LTI`` object. ' '(For example ``StateSpace`` or ``TransferFunction``)') - sys = _convertToStateSpace(sys) + sys = _convert_to_statespace(sys) A, B, C, D = np.asarray(sys.A), np.asarray(sys.B), np.asarray(sys.C), \ np.asarray(sys.D) # d_type = A.dtype @@ -436,7 +436,7 @@ def _get_ss_simo(sys, input=None, output=None): If input is not specified, select first input and issue warning """ - sys_ss = _convertToStateSpace(sys) + sys_ss = _convert_to_statespace(sys) if sys_ss.issiso(): return sys_ss warn = False @@ -891,7 +891,7 @@ def _ideal_tfinal_and_dt(sys, is_step=True): dt = sys.dt if isdtime(sys, strict=True) else default_dt elif isdtime(sys, strict=True): dt = sys.dt - A = _convertToStateSpace(sys).A + A = _convert_to_statespace(sys).A tfinal = default_tfinal p = eigvals(A) # Array Masks @@ -931,7 +931,7 @@ def _ideal_tfinal_and_dt(sys, is_step=True): if p_int.size > 0: tfinal = tfinal * 5 else: # cont time - sys_ss = _convertToStateSpace(sys) + sys_ss = _convert_to_statespace(sys) # Improve conditioning via balancing and zeroing tiny entries # See for [[1,2,0], [9,1,0.01], [1,2,10*np.pi]] before/after balance b, (sca, perm) = matrix_balance(sys_ss.A, separate=True) From 94b62098d1f16d0e4930962d1d192fa34cec4bbc Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 3 Jan 2021 16:41:42 -0800 Subject: [PATCH 082/260] fix converstion exceptions to be TypeError --- control/iosys.py | 6 +++--- control/statesp.py | 7 ++----- control/xferfcn.py | 7 ++----- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 94b8234c6..efce73e49 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -220,7 +220,7 @@ def __mul__(sys2, sys1): raise NotImplemented("Matrix multiplication not yet implemented") elif not isinstance(sys1, InputOutputSystem): - raise ValueError("Unknown I/O system object ", sys1) + raise TypeError("Unknown I/O system object ", sys1) # Make sure systems can be interconnected if sys1.noutputs != sys2.ninputs: @@ -263,7 +263,7 @@ def __rmul__(sys1, sys2): raise NotImplemented("Matrix multiplication not yet implemented") elif not isinstance(sys2, InputOutputSystem): - raise ValueError("Unknown I/O system object ", sys1) + raise TypeError("Unknown I/O system object ", sys1) else: # Both systems are InputOutputSystems => use __mul__ @@ -281,7 +281,7 @@ def __add__(sys1, sys2): raise NotImplemented("Matrix addition not yet implemented") elif not isinstance(sys2, InputOutputSystem): - raise ValueError("Unknown I/O system object ", sys2) + raise TypeError("Unknown I/O system object ", sys2) # Make sure number of input and outputs match if sys1.ninputs != sys2.ninputs or sys1.noutputs != sys2.noutputs: diff --git a/control/statesp.py b/control/statesp.py index 35b95a80d..ff4c73c4e 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1281,11 +1281,8 @@ def _convert_to_statespace(sys, **kw): try: D = _ssmatrix(sys) return StateSpace([], [], [], D) - except Exception as e: - print("Failure to assume argument is matrix-like in" - " _convert_to_statespace, result %s" % e) - - raise TypeError("Can't convert given type to StateSpace system.") + except: + raise TypeError("Can't convert given type to StateSpace system.") # TODO: add discrete time option diff --git a/control/xferfcn.py b/control/xferfcn.py index 9a0e8ee6d..0ff21a42a 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -1290,11 +1290,8 @@ def _convert_to_transfer_function(sys, **kw): num = [[[D[i, j]] for j in range(inputs)] for i in range(outputs)] den = [[[1] for j in range(inputs)] for i in range(outputs)] return TransferFunction(num, den) - except Exception as e: - print("Failure to assume argument is matrix-like in" - " _convertToTransferFunction, result %s" % e) - - raise TypeError("Can't convert given type to TransferFunction system.") + except: + raise TypeError("Can't convert given type to TransferFunction system.") def tf(*args, **kwargs): From 67a05617a26e70c3862b568eba84c042b15d50b0 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 3 Jan 2021 21:19:25 -0800 Subject: [PATCH 083/260] add unit tests for checking type converstions --- control/tests/type_conversion_test.py | 119 ++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 control/tests/type_conversion_test.py diff --git a/control/tests/type_conversion_test.py b/control/tests/type_conversion_test.py new file mode 100644 index 000000000..d574263a3 --- /dev/null +++ b/control/tests/type_conversion_test.py @@ -0,0 +1,119 @@ +# type_conversion_test.py - test type conversions +# RMM, 3 Jan 2021 +# +# This set of tests looks at how various classes are converted when using +# algebraic operations. See GitHub issue #459 for some discussion on what the +# desired combinations should be. + +import control as ct +import numpy as np +import operator +import pytest + +@pytest.fixture() +def sys_dict(): + sdict = {} + sdict['ss'] = ct.ss([[-1]], [[1]], [[1]], [[0]]) + sdict['tf'] = ct.tf([1],[0.5, 1]) + sdict['frd'] = ct.frd([10+0j, 9 + 1j, 8 + 2j], [1,2,3]) + sdict['lio'] = ct.LinearIOSystem(ct.ss([[-1]], [[5]], [[5]], [[0]])) + sdict['ios'] = ct.NonlinearIOSystem( + sdict['lio']._rhs, sdict['lio']._out, 1, 1, 1) + sdict['arr'] = np.array([[2.0]]) + sdict['flt'] = 3. + return sdict + +type_dict = { + 'ss': ct.StateSpace, 'tf': ct.TransferFunction, + 'frd': ct.FrequencyResponseData, 'lio': ct.LinearICSystem, + 'ios': ct.InterconnectedSystem, 'arr': np.ndarray, 'flt': float} + +# +# Table of expected conversions +# +# This table describes all of the conversions that are supposed to +# happen for various system combinations. This is written out this way +# to make it easy to read, but this is converted below into a list of +# specific tests that can be iterated over. +# +# Items marked as 'E' should generate an exception. +# +# Items starting with 'x' currently generate an expected exception but +# should eventually generate a useful result (when everything is +# implemented properly). +# +# Note 1: some of the entries below are currently converted to to lower level +# types than needed. In particular, LinearIOSystems should combine with +# StateSpace and TransferFunctions in a way that preserves I/O system +# structure when possible. +# +# Note 2: eventually the operator entry for this table can be pulled out and +# tested as a separate parameterized variable (since all operators should +# return consistent values). + +rtype_list = ['ss', 'tf', 'frd', 'lio', 'ios', 'arr', 'flt'] +conversion_table = [ + # op left ss tf frd lio ios arr flt + ('add', 'ss', ['ss', 'ss', 'xrd', 'ss', 'xos', 'ss', 'ss' ]), + ('add', 'tf', ['tf', 'tf', 'xrd', 'tf', 'xos', 'tf', 'tf' ]), + ('add', 'frd', ['xrd', 'xrd', 'frd', 'xrd', 'E', 'xrd', 'xrd']), + ('add', 'lio', ['xio', 'xio', 'xrd', 'lio', 'ios', 'xio', 'xio']), + ('add', 'ios', ['xos', 'xos', 'E', 'ios', 'ios', 'xos', 'xos']), + ('add', 'arr', ['ss', 'tf', 'xrd', 'xio', 'xos', 'arr', 'arr']), + ('add', 'flt', ['ss', 'tf', 'xrd', 'xio', 'xos', 'arr', 'flt']), + + # op left ss tf frd lio ios arr flt + ('sub', 'ss', ['ss', 'ss', 'xrd', 'ss', 'xos', 'ss', 'ss' ]), + ('sub', 'tf', ['tf', 'tf', 'xrd', 'tf', 'xos', 'tf', 'tf' ]), + ('sub', 'frd', ['xrd', 'xrd', 'frd', 'xrd', 'E', 'xrd', 'xrd']), + ('sub', 'lio', ['xio', 'xio', 'xrd', 'lio', 'ios', 'xio', 'xio']), + ('sub', 'ios', ['xos', 'xio', 'E', 'ios', 'xos' 'xos', 'xos']), + ('sub', 'arr', ['ss', 'tf', 'xrd', 'xio', 'xos', 'arr', 'arr']), + ('sub', 'flt', ['ss', 'tf', 'xrd', 'xio', 'xos', 'arr', 'flt']), + + # op left ss tf frd lio ios arr flt + ('mul', 'ss', ['ss', 'ss', 'xrd', 'xio', 'xos', 'ss', 'ss' ]), + ('mul', 'tf', ['tf', 'tf', 'xrd', 'tf', 'xos', 'tf', 'tf' ]), + ('mul', 'frd', ['xrd', 'xrd', 'frd', 'xrd', 'E', 'xrd', 'frd']), + ('mul', 'lio', ['xio', 'xio', 'xrd', 'lio', 'ios', 'xio', 'xio']), + ('mul', 'ios', ['xos', 'xos', 'E', 'ios', 'ios', 'xos', 'xos']), + ('mul', 'arr', ['ss', 'tf', 'xrd', 'xio', 'xos', 'arr', 'arr']), + ('mul', 'flt', ['ss', 'tf', 'frd', 'xio', 'xos', 'arr', 'flt']), + + # op left ss tf frd lio ios arr flt + ('truediv', 'ss', ['xs', 'tf', 'xrd', 'xio', 'xos', 'xs', 'xs' ]), + ('truediv', 'tf', ['tf', 'tf', 'xrd', 'tf', 'xos', 'tf', 'tf' ]), + ('truediv', 'frd', ['xrd', 'xrd', 'frd', 'xrd', 'E', 'xrd', 'frd']), + ('truediv', 'lio', ['xio', 'tf', 'xrd', 'xio', 'xio', 'xio', 'xio']), + ('truediv', 'ios', ['xos', 'xos', 'E', 'xos', 'xos' 'xos', 'xos']), + ('truediv', 'arr', ['xs', 'tf', 'xrd', 'xio', 'xos', 'arr', 'arr']), + ('truediv', 'flt', ['xs', 'tf', 'frd', 'xio', 'xos', 'arr', 'flt'])] + +# Now create list of the tests we actually want to run +test_matrix = [] +for i, (opname, ltype, expected_list) in enumerate(conversion_table): + for rtype, expected in zip(rtype_list, expected_list): + # Add this to the list of tests to run + test_matrix.append([opname, ltype, rtype, expected]) + +@pytest.mark.parametrize("opname, ltype, rtype, expected", test_matrix) +def test_xferfcn_ndarray_precedence(opname, ltype, rtype, expected, sys_dict): + op = getattr(operator, opname) + leftsys = sys_dict[ltype] + rightsys = sys_dict[rtype] + + # Get rid of warnings for InputOutputSystem objects by making a copy + if isinstance(leftsys, ct.InputOutputSystem) and leftsys == rightsys: + rightsys = leftsys.copy() + + # Make sure we get the right result + if expected == 'E' or expected[0] == 'x': + # Exception expected + with pytest.raises(TypeError): + op(leftsys, rightsys) + else: + # Operation should work and return the given type + result = op(leftsys, rightsys) + + # Print out what we are testing in case something goes wrong + assert isinstance(result, type_dict[expected]) From 4a24c84522d6144303d71db3a6bc263837e10410 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 3 Jan 2021 21:38:17 -0800 Subject: [PATCH 084/260] update LinearIOSystem.__rmul__ for Python2/Python3 consistency --- control/iosys.py | 14 +++++++++----- control/tests/type_conversion_test.py | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index efce73e49..913e8d471 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -254,7 +254,11 @@ def __mul__(sys2, sys1): def __rmul__(sys1, sys2): """Pre-multiply an input/output systems by a scalar/matrix""" - if isinstance(sys2, (int, float, np.number)): + if isinstance(sys2, InputOutputSystem): + # Both systems are InputOutputSystems => use __mul__ + return InputOutputSystem.__mul__(sys2, sys1) + + elif isinstance(sys2, (int, float, np.number)): # TODO: Scale the output raise NotImplemented("Scalar multiplication not yet implemented") @@ -262,12 +266,12 @@ def __rmul__(sys1, sys2): # TODO: Post-multiply by a matrix raise NotImplemented("Matrix multiplication not yet implemented") - elif not isinstance(sys2, InputOutputSystem): - raise TypeError("Unknown I/O system object ", sys1) + elif isinstance(sys2, StateSpace): + # TODO: Should eventuall preserve LinearIOSystem structure + return StateSpace.__mul__(sys2, sys1) else: - # Both systems are InputOutputSystems => use __mul__ - return InputOutputSystem.__mul__(sys2, sys1) + raise TypeError("Unknown I/O system object ", sys1) def __add__(sys1, sys2): """Add two input/output systems (parallel interconnection)""" diff --git a/control/tests/type_conversion_test.py b/control/tests/type_conversion_test.py index d574263a3..44c6618d8 100644 --- a/control/tests/type_conversion_test.py +++ b/control/tests/type_conversion_test.py @@ -72,7 +72,7 @@ def sys_dict(): ('sub', 'flt', ['ss', 'tf', 'xrd', 'xio', 'xos', 'arr', 'flt']), # op left ss tf frd lio ios arr flt - ('mul', 'ss', ['ss', 'ss', 'xrd', 'xio', 'xos', 'ss', 'ss' ]), + ('mul', 'ss', ['ss', 'ss', 'xrd', 'ss', 'xos', 'ss', 'ss' ]), ('mul', 'tf', ['tf', 'tf', 'xrd', 'tf', 'xos', 'tf', 'tf' ]), ('mul', 'frd', ['xrd', 'xrd', 'frd', 'xrd', 'E', 'xrd', 'frd']), ('mul', 'lio', ['xio', 'xio', 'xrd', 'lio', 'ios', 'xio', 'xio']), From f0593fab671a53a7c083cf403ac8137bf453a1eb Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 4 Jan 2021 22:38:40 -0800 Subject: [PATCH 085/260] add (skipped) function for desired binary operator conversions --- control/tests/type_conversion_test.py | 72 ++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/control/tests/type_conversion_test.py b/control/tests/type_conversion_test.py index 44c6618d8..72a02e00f 100644 --- a/control/tests/type_conversion_test.py +++ b/control/tests/type_conversion_test.py @@ -15,6 +15,7 @@ def sys_dict(): sdict = {} sdict['ss'] = ct.ss([[-1]], [[1]], [[1]], [[0]]) sdict['tf'] = ct.tf([1],[0.5, 1]) + sdict['tfx'] = ct.tf([1, 1],[1]) # non-proper transfer function sdict['frd'] = ct.frd([10+0j, 9 + 1j, 8 + 2j], [1,2,3]) sdict['lio'] = ct.LinearIOSystem(ct.ss([[-1]], [[5]], [[5]], [[0]])) sdict['ios'] = ct.NonlinearIOSystem( @@ -29,7 +30,7 @@ def sys_dict(): 'ios': ct.InterconnectedSystem, 'arr': np.ndarray, 'flt': float} # -# Table of expected conversions +# Current table of expected conversions # # This table describes all of the conversions that are supposed to # happen for various system combinations. This is written out this way @@ -50,6 +51,10 @@ def sys_dict(): # Note 2: eventually the operator entry for this table can be pulled out and # tested as a separate parameterized variable (since all operators should # return consistent values). +# +# Note 3: this table documents the current state, but not actually the desired +# state. See bottom of the file for the (eventual) desired behavior. +# rtype_list = ['ss', 'tf', 'frd', 'lio', 'ios', 'arr', 'flt'] conversion_table = [ @@ -97,7 +102,7 @@ def sys_dict(): test_matrix.append([opname, ltype, rtype, expected]) @pytest.mark.parametrize("opname, ltype, rtype, expected", test_matrix) -def test_xferfcn_ndarray_precedence(opname, ltype, rtype, expected, sys_dict): +def test_operator_type_conversion(opname, ltype, rtype, expected, sys_dict): op = getattr(operator, opname) leftsys = sys_dict[ltype] rightsys = sys_dict[rtype] @@ -117,3 +122,66 @@ def test_xferfcn_ndarray_precedence(opname, ltype, rtype, expected, sys_dict): # Print out what we are testing in case something goes wrong assert isinstance(result, type_dict[expected]) + +# +# Updated table that describes desired outputs for all operators +# +# General rules (subject to change) +# +# * For LTI/LTI, keep the type of the left operand whenever possible. This +# prioritizes the first operand, but we need to watch out for non-proper +# transfer functions (in which case TransferFunction should be returned) +# +# * For FRD/LTI, convert LTI to FRD by evaluating the LTI transfer function +# at the FRD frequencies (can't got the other way since we can't convert +# an FRD object to state space/transfer function). +# +# * For IOS/LTI, convert to IOS. In the case of a linear I/O system (LIO), +# this will preserve the linear structure since the LTI system will +# be converted to state space. +# +# * When combining state space or transfer with linear I/O systems, the +# * output should be of type Linear IO system, since that maintains the +# * underlying state space attributes. +# +# Note: tfx = non-proper transfer function, order(num) > order(den) +# + +type_list = ['ss', 'tf', 'tfx', 'frd', 'lio', 'ios', 'arr', 'flt'] +conversion_table = [ + # L / R ['ss', 'tf', 'tfx', 'frd', 'lio', 'ios', 'arr', 'flt'] + ('ss', ['ss', 'ss', 'tf' 'frd', 'lio', 'ios', 'ss', 'ss' ]), + ('tf', ['tf', 'tf', 'tf' 'frd', 'lio', 'ios', 'tf', 'tf' ]), + ('tfx', ['tf', 'tf', 'tf', 'frd', 'E', 'E', 'tf', 'tf' ]), + ('frd', ['frd', 'frd', 'frd', 'frd', 'E', 'E', 'frd', 'frd']), + ('lio', ['lio', 'lio', 'E', 'E', 'lio', 'ios', 'lio', 'lio']), + ('ios', ['ios', 'ios', 'E', 'E', 'ios', 'ios', 'ios', 'ios']), + ('arr', ['ss', 'tf', 'tf' 'frd', 'lio', 'ios', 'arr', 'arr']), + ('flt', ['ss', 'tf', 'tf' 'frd', 'lio', 'ios', 'arr', 'flt'])] + +@pytest.mark.skip(reason="future test; conversions not yet fully implemented") +# @pytest.mark.parametrize("opname", ['add', 'sub', 'mul', 'truediv']) +# @pytest.mark.parametrize("ltype", type_list) +# @pytest.mark.parametrize("rtype", type_list) +def test_binary_op_type_conversions(opname, ltype, rtype, sys_dict): + op = getattr(operator, opname) + leftsys = sys_dict[ltype] + rightsys = sys_dict[rtype] + expected = \ + conversion_table[type_list.index(ltype)][1][type_list.index(rtype)] + + # Get rid of warnings for InputOutputSystem objects by making a copy + if isinstance(leftsys, ct.InputOutputSystem) and leftsys == rightsys: + rightsys = leftsys.copy() + + # Make sure we get the right result + if expected == 'E' or expected[0] == 'x': + # Exception expected + with pytest.raises(TypeError): + op(leftsys, rightsys) + else: + # Operation should work and return the given type + result = op(leftsys, rightsys) + + # Print out what we are testing in case something goes wrong + assert isinstance(result, type_dict[expected]) From e910c221ce2fd13f5a9d70eed9424de2a6a84073 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 5 Jan 2021 07:37:33 -0800 Subject: [PATCH 086/260] Update control/tests/type_conversion_test.py Co-authored-by: Ben Greiner --- control/tests/type_conversion_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/tests/type_conversion_test.py b/control/tests/type_conversion_test.py index 72a02e00f..3f51c2bbc 100644 --- a/control/tests/type_conversion_test.py +++ b/control/tests/type_conversion_test.py @@ -149,7 +149,7 @@ def test_operator_type_conversion(opname, ltype, rtype, expected, sys_dict): type_list = ['ss', 'tf', 'tfx', 'frd', 'lio', 'ios', 'arr', 'flt'] conversion_table = [ - # L / R ['ss', 'tf', 'tfx', 'frd', 'lio', 'ios', 'arr', 'flt'] + # L \ R ['ss', 'tf', 'tfx', 'frd', 'lio', 'ios', 'arr', 'flt'] ('ss', ['ss', 'ss', 'tf' 'frd', 'lio', 'ios', 'ss', 'ss' ]), ('tf', ['tf', 'tf', 'tf' 'frd', 'lio', 'ios', 'tf', 'tf' ]), ('tfx', ['tf', 'tf', 'tf', 'frd', 'E', 'E', 'tf', 'tf' ]), From d15ec9fc0440846452cde23237671c081a45e266 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 7 Jan 2021 23:24:33 -0800 Subject: [PATCH 087/260] Revert "dev instructions" This reverts commit bb8132e2a2e9c594e9e04e0521b391a16cb9e2ea. --- doc/index.rst | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index cfd4fbd1a..b6c44d387 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -49,59 +49,11 @@ or to test the installed package:: .. _pytest: https://docs.pytest.org/ -.. rubric:: Contributing - -Your contributions are welcome! Simply fork the `GitHub repository `_ and send a +Your contributions are welcome! Simply fork the `GitHub repository `_ and send a `pull request`_. .. _pull request: https://github.com/python-control/python-control/pulls -The following details suggested steps for making your own contributions to the project using GitHub - -1. Fork on GitHub: login/create an account and click Fork button at the top right corner of https://github.com/python-control/python-control/. - -2. Clone to computer (Replace [you] with your Github username):: - - git clone https://github.com/[you]/python-control.git - cd python_control - -3. Set up remote upstream:: - - git remote add upstream https://github.com/python-control/python-control.git - -4. Start working on a new issue or feature by first creating a new branch with a descriptive name:: - - git checkout -b - -5. Write great code. Suggestion: write the tests you would like your code to satisfy before writing the code itself. This is known as test-driven development. - -6. Run tests and fix as necessary until everything passes:: - - pytest -v - - (for documentation, run ``make html`` in ``doc`` directory) - -7. Commit changes:: - - git add - git commit -m "commit message" - -8. Update & sync your local code to the upstream version on Github before submitting (especially if it has been awhile):: - - git checkout master; git fetch --all; git merge upstream/master; git push - - and then bring those changes into your branch:: - - git checkout ; git rebase master - -9. Push your branch to GitHub:: - - git push origin - -10. Issue pull request to submit your code modifications to Github by going to your fork on Github, clicking Pull Request, and entering a description. -11. Repeat steps 5--9 until feature is complete - - .. rubric:: Links - Issue tracker: https://github.com/python-control/python-control/issues From a82b520e5acb95ae37ebfc2610a3b5065cee7927 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 8 Jan 2021 09:37:52 -0800 Subject: [PATCH 088/260] link to developer wiki in docs. --- README.rst | 4 ++++ doc/index.rst | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.rst b/README.rst index d7c1306b5..6ebed1d78 100644 --- a/README.rst +++ b/README.rst @@ -131,3 +131,7 @@ Your contributions are welcome! Simply fork the GitHub repository and send a .. _pull request: https://github.com/python-control/python-control/pulls +Please see the `Developer's Wiki`_ for detailed instructions. + +.. _Developer's Wiki: https://github.com/python-control/python-control/wiki + diff --git a/doc/index.rst b/doc/index.rst index b6c44d387..3edd7a6f6 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -54,6 +54,10 @@ Your contributions are welcome! Simply fork the `GitHub repository Date: Sat, 9 Jan 2021 10:39:53 -0800 Subject: [PATCH 089/260] fix rlocus plotting problem in Jupyter notebooks + comments, PEP8 --- control/rlocus.py | 108 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 82 insertions(+), 26 deletions(-) diff --git a/control/rlocus.py b/control/rlocus.py index 3a3c1c2b6..dbab96f97 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -222,6 +222,14 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None, ax.set_xlabel('Real') ax.set_ylabel('Imaginary') + # Set up the limits for the plot + # Note: need to do this before computing grid lines + if xlim: + ax.set_xlim(xlim) + if ylim: + ax.set_ylim(ylim) + + # Draw the grid if grid and sisotool: if isdtime(sys, strict=True): zgrid(ax=ax) @@ -236,14 +244,9 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None, ax.axhline(0., linestyle=':', color='k', zorder=-20) ax.axvline(0., linestyle=':', color='k', zorder=-20) if isdtime(sys, strict=True): - ax.add_patch(plt.Circle((0,0), radius=1.0, - linestyle=':', edgecolor='k', linewidth=1.5, - fill=False, zorder=-20)) - - if xlim: - ax.set_xlim(xlim) - if ylim: - ax.set_ylim(ylim) + ax.add_patch(plt.Circle( + (0, 0), radius=1.0, linestyle=':', edgecolor='k', + linewidth=1.5, fill=False, zorder=-20)) return mymat, kvect @@ -642,16 +645,21 @@ def _sgrid_func(fig=None, zeta=None, wn=None): ax = fig.gca() else: ax = fig.axes[1] + + # Get locator function for x-axis tick marks xlocator = ax.get_xaxis().get_major_locator() + # Decide on the location for the labels (?) ylim = ax.get_ylim() ytext_pos_lim = ylim[1] - (ylim[1] - ylim[0]) * 0.03 xlim = ax.get_xlim() xtext_pos_lim = xlim[0] + (xlim[1] - xlim[0]) * 0.0 + # Create a list of damping ratios, if needed if zeta is None: zeta = _default_zetas(xlim, ylim) + # Figure out the angles for the different damping ratios angles = [] for z in zeta: if (z >= 1e-4) and (z <= 1): @@ -661,11 +669,8 @@ def _sgrid_func(fig=None, zeta=None, wn=None): y_over_x = np.tan(angles) # zeta-constant lines - - index = 0 - - for yp in y_over_x: - ax.plot([0, xlocator()[0]], [0, yp*xlocator()[0]], color='gray', + for index, yp in enumerate(y_over_x): + ax.plot([0, xlocator()[0]], [0, yp * xlocator()[0]], color='gray', linestyle='dashed', linewidth=0.5) ax.plot([0, xlocator()[0]], [0, -yp * xlocator()[0]], color='gray', linestyle='dashed', linewidth=0.5) @@ -679,45 +684,96 @@ def _sgrid_func(fig=None, zeta=None, wn=None): ytext_pos = ytext_pos_lim ax.annotate(an, textcoords='data', xy=[xtext_pos, ytext_pos], fontsize=8) - index += 1 ax.plot([0, 0], [ylim[0], ylim[1]], color='gray', linestyle='dashed', linewidth=0.5) - angles = np.linspace(-90, 90, 20)*np.pi/180 + # omega-constant lines + angles = np.linspace(-90, 90, 20) * np.pi/180 if wn is None: wn = _default_wn(xlocator(), ylim) for om in wn: if om < 0: - yp = np.sin(angles)*np.abs(om) - xp = -np.cos(angles)*np.abs(om) - ax.plot(xp, yp, color='gray', - linestyle='dashed', linewidth=0.5) - an = "%.2f" % -om - ax.annotate(an, textcoords='data', xy=[om, 0], fontsize=8) + # Generate the lines for natural frequency curves + yp = np.sin(angles) * np.abs(om) + xp = -np.cos(angles) * np.abs(om) + + # Plot the natural frequency contours + ax.plot(xp, yp, color='gray', linestyle='dashed', linewidth=0.5) + + # Annotate the natural frequencies by listing on x-axis + # Note: need to filter values for proper plotting in Jupyter + if (om > xlim[0]): + an = "%.2f" % -om + ax.annotate(an, textcoords='data', xy=[om, 0], fontsize=8) def _default_zetas(xlim, ylim): - """Return default list of damping coefficients""" - sep1 = -xlim[0]/4 + """Return default list of damping coefficients + + This function computes a list of damping coefficients based on the limits + of the graph. A set of 4 damping coefficients are computed for the x-axis + and a set of three damping coefficients are computed for the y-axis + (corresponding to the normal 4:3 plot aspect ratio in `matplotlib`?). + + Parameters + ---------- + xlim : array_like + List of x-axis limits [min, max] + ylim : array_like + List of y-axis limits [min, max] + + Returns + ------- + zeta : list + List of default damping coefficients for the plot + + """ + # Damping coefficient lines that intersect the x-axis + sep1 = -xlim[0] / 4 ang1 = [np.arctan((sep1*i)/ylim[1]) for i in np.arange(1, 4, 1)] + + # Damping coefficient lines that intersection the y-axis sep2 = ylim[1] / 3 ang2 = [np.arctan(-xlim[0]/(ylim[1]-sep2*i)) for i in np.arange(1, 3, 1)] + # Put the lines together and add one at -pi/2 (negative real axis) angles = np.concatenate((ang1, ang2)) angles = np.insert(angles, len(angles), np.pi/2) + + # Return the damping coefficients corresponding to these angles zeta = np.sin(angles) return zeta.tolist() def _default_wn(xloc, ylim): - """Return default wn for root locus plot""" + """Return default wn for root locus plot + + This function computes a list of natural frequencies based on the grid + parameters of the graph. + + Parameters + ---------- + xloc : array_like + List of x-axis tick values + ylim : array_like + List of y-axis limits [min, max] + + Returns + ------- + wn : list + List of default natural frequencies for the plot + + """ + + wn = xloc # one frequency per x-axis tick mark + sep = xloc[1]-xloc[0] # separation between ticks - wn = xloc - sep = xloc[1]-xloc[0] + # Insert additional frequencies to span the y-axis while np.abs(wn[0]) < ylim[1]: wn = np.insert(wn, 0, wn[0]-sep) + # If there are too many values, cut them in half while len(wn) > 7: wn = wn[0:-1:2] From 3f87c330c059e3e450a1002efcf96b6af75fbfd5 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 9 Jan 2021 19:53:35 -0800 Subject: [PATCH 090/260] Create python-package-conda.yml --- .github/workflows/python-package-conda.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/python-package-conda.yml diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml new file mode 100644 index 000000000..7bae7e247 --- /dev/null +++ b/.github/workflows/python-package-conda.yml @@ -0,0 +1,34 @@ +name: Python Package using Conda + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base + - name: Lint with flake8 + run: | + conda install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + conda install pytest + pytest From 21e47a6919b2f44470b671fee472f87298e91538 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 9 Jan 2021 19:57:20 -0800 Subject: [PATCH 091/260] remove flake8 lint; add dependencies --- .github/workflows/python-package-conda.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 7bae7e247..a58aeac0d 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -20,14 +20,8 @@ jobs: echo $CONDA/bin >> $GITHUB_PATH - name: Install dependencies run: | - conda env update --file environment.yml --name base - - name: Lint with flake8 - run: | - conda install flake8 - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + conda install numpy scipy matplotlib pytest + conda install -c conda-forge slycot - name: Test with pytest run: | conda install pytest From d83e67d0f37f051ea268eab23158e68e98531067 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 9 Jan 2021 22:11:04 -0800 Subject: [PATCH 092/260] skip X11 tests if no DISPLAY env variable --- control/tests/conftest.py | 3 ++- control/tests/rlocus_test.py | 3 +++ control/tests/sisotool_test.py | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/control/tests/conftest.py b/control/tests/conftest.py index b67ef3674..b7fac8fe5 100644 --- a/control/tests/conftest.py +++ b/control/tests/conftest.py @@ -26,7 +26,8 @@ "PendingDeprecationWarning") matrixerrorfilter = pytest.mark.filterwarnings("error:.*matrix subclass:" "PendingDeprecationWarning") - +X11only = pytest.mark.skipif(os.getenv("DISPLAY") is None, + reason="requires X11") @pytest.fixture(scope="session", autouse=True) def control_defaults(): diff --git a/control/tests/rlocus_test.py b/control/tests/rlocus_test.py index cf2b72cd3..47df12d2b 100644 --- a/control/tests/rlocus_test.py +++ b/control/tests/rlocus_test.py @@ -13,6 +13,8 @@ from control.statesp import StateSpace from control.bdalg import feedback +from control.tests.conftest import X11only + class TestRootLocus: """These are tests for the feedback function in rlocus.py.""" @@ -48,6 +50,7 @@ def test_without_gains(self, sys): roots, kvect = root_locus(sys, plot=False) self.check_cl_poles(sys, roots, kvect) + @X11only def test_root_locus_zoom(self): """Check the zooming functionality of the Root locus plot""" system = TransferFunction([1000], [1, 25, 100, 0]) diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index 65f87f28b..c584413ab 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -9,6 +9,7 @@ from control.rlocus import _RLClickDispatcher from control.xferfcn import TransferFunction +from control.tests.conftest import X11only @pytest.mark.usefixtures("mplcleanup") class TestSisotool: @@ -19,6 +20,7 @@ def sys(self): """Return a generic SISO transfer function""" return TransferFunction([1000], [1, 25, 100, 0]) + @X11only def test_sisotool(self, sys): sisotool(sys, Hz=False) fig = plt.gcf() From 627754fd9c4b7bd81cc16b9e8e22da1e85c8f308 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 9 Jan 2021 22:11:12 -0800 Subject: [PATCH 093/260] expand test matrix to match Travis CI --- .github/workflows/python-package-conda.yml | 44 +++++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index a58aeac0d..3121938f2 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -1,28 +1,52 @@ -name: Python Package using Conda +name: Conda-based pytest -on: [push] +on: [push, pull_request] jobs: build-linux: runs-on: ubuntu-latest + strategy: max-parallel: 5 + matrix: + python-version: [2.7, 3.6, 3.9] + slycot: ["", "conda"] + array-and-matrix: [0] + include: + - python-version: 3.9 + slycot: conda + array-and-matrix: 1 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Add conda to system path + - name: Set up conda run: | - # $CONDA is an environment variable pointing to the root of the miniconda directory echo $CONDA/bin >> $GITHUB_PATH + conda create -q -n test-environment python=${{matrix.python-version}} - name: Install dependencies run: | - conda install numpy scipy matplotlib pytest + source $CONDA/bin/activate test-environment + conda install pip coverage pytest + conda install numpy matplotlib scipy + if [[ '${{matrix.python-version}}' == '2.7' ]]; then + # matplotlib for Python 2.7 seems to require X11 to run correctly + sudo apt install -y xvfb + fi + - name: Install slycot via conda (optional) + if: ${{ matrix.slycot == 'conda' }} + run: | + source $CONDA/bin/activate test-environment conda install -c conda-forge slycot - name: Test with pytest + env: + PYTHON_CONTROL_ARRAY_AND_MATRIX: ${{ matrix.array-and-matrix }} run: | - conda install pytest - pytest + source $CONDA/bin/activate test-environment + if [[ '${{matrix.python-version}}' == '2.7' ]]; then + # Run within (virtual) X11 environment for Python 2.7/matplotlib + xvfb-run pytest control/tests + else + coverage run -m pytest control/tests + fi From 47251c655276adbd898e01fb2660cdafeaaa9d58 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 10 Jan 2021 19:02:02 -0800 Subject: [PATCH 094/260] simplify GitHub actions workflow --- .github/workflows/python-package-conda.yml | 36 +++++++++------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 3121938f2..9a3157a8a 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -9,7 +9,7 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: [2.7, 3.6, 3.9] + python-version: [3.6, 3.9] slycot: ["", "conda"] array-and-matrix: [0] include: @@ -19,34 +19,28 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - - name: Set up conda + - name: Install dependencies run: | + # Set up conda echo $CONDA/bin >> $GITHUB_PATH conda create -q -n test-environment python=${{matrix.python-version}} - - name: Install dependencies - run: | source $CONDA/bin/activate test-environment - conda install pip coverage pytest + + # Set up (virtual) X11 + sudo apt install -y xvfb + + # Install test tools + conda install pip coverage pytest + conda install -c conda-forge pytest-xvfb pytest-cov + + # Install python-control dependencies conda install numpy matplotlib scipy - if [[ '${{matrix.python-version}}' == '2.7' ]]; then - # matplotlib for Python 2.7 seems to require X11 to run correctly - sudo apt install -y xvfb + if [[ '${{matrix.slycot}}' == 'conda' ]]; then + conda install -c conda-forge slycot fi - - name: Install slycot via conda (optional) - if: ${{ matrix.slycot == 'conda' }} - run: | - source $CONDA/bin/activate test-environment - conda install -c conda-forge slycot - name: Test with pytest env: PYTHON_CONTROL_ARRAY_AND_MATRIX: ${{ matrix.array-and-matrix }} run: | source $CONDA/bin/activate test-environment - if [[ '${{matrix.python-version}}' == '2.7' ]]; then - # Run within (virtual) X11 environment for Python 2.7/matplotlib - xvfb-run pytest control/tests - else - coverage run -m pytest control/tests - fi + xvfb-run --auto-servernum pytest control/tests From 6ff2e9bdbf5b75abe40f36f324f21b539370d29c Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 10 Jan 2021 21:38:02 -0800 Subject: [PATCH 095/260] pytest with slycot from source --- .github/workflows/control-slycot-src.yml | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/control-slycot-src.yml diff --git a/.github/workflows/control-slycot-src.yml b/.github/workflows/control-slycot-src.yml new file mode 100644 index 000000000..e4455ed4a --- /dev/null +++ b/.github/workflows/control-slycot-src.yml @@ -0,0 +1,36 @@ +name: Slycot from source + +on: [push, pull_request] + +jobs: + build-linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + - name: Install Python dependencies + run: | + # Set up conda + echo $CONDA/bin >> $GITHUB_PATH + + # Install test tools + conda install pip pytest + + # Install python-control dependencies + conda install numpy matplotlib scipy + + - name: Install slycot from source + run: | + # Install compilers, libraries, and development environment + sudo apt-get -y install gfortran cmake --fix-missing + sudo apt-get -y install libblas-dev liblapack-dev + conda install -c conda-forge scikit-build; + + # Compile and install slycot + git clone https://github.com/python-control/Slycot.git slycot + cd slycot; python setup.py build_ext install -DBLA_VENDOR=Generic + + - name: Test with pytest + run: pytest control/tests From 5bb9de40c6ee8443045dd4a42ae8fd9e266cff0f Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 11 Jan 2021 19:33:01 -0800 Subject: [PATCH 096/260] update xvfb configuration; remove X11 marks --- .github/workflows/control-slycot-src.yml | 7 +++++-- .github/workflows/python-package-conda.yml | 8 +++++--- control/tests/conftest.py | 3 +-- control/tests/rlocus_test.py | 3 --- control/tests/sisotool_test.py | 2 -- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/control-slycot-src.yml b/.github/workflows/control-slycot-src.yml index e4455ed4a..41d56bf4a 100644 --- a/.github/workflows/control-slycot-src.yml +++ b/.github/workflows/control-slycot-src.yml @@ -15,8 +15,11 @@ jobs: # Set up conda echo $CONDA/bin >> $GITHUB_PATH + # Set up (virtual) X11 + sudo apt install -y xvfb + # Install test tools - conda install pip pytest + conda install pip pytest # Install python-control dependencies conda install numpy matplotlib scipy @@ -33,4 +36,4 @@ jobs: cd slycot; python setup.py build_ext install -DBLA_VENDOR=Generic - name: Test with pytest - run: pytest control/tests + run: xvfb-run --auto-servernum pytest control/tests diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 9a3157a8a..b8a212b6f 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -23,15 +23,15 @@ jobs: run: | # Set up conda echo $CONDA/bin >> $GITHUB_PATH - conda create -q -n test-environment python=${{matrix.python-version}} + conda create -q -n test-environment python=${{matrix.python-version}} source $CONDA/bin/activate test-environment # Set up (virtual) X11 sudo apt install -y xvfb # Install test tools - conda install pip coverage pytest - conda install -c conda-forge pytest-xvfb pytest-cov + conda install pip coverage pytest + conda install -c conda-forge pytest-cov # Install python-control dependencies conda install numpy matplotlib scipy @@ -43,4 +43,6 @@ jobs: PYTHON_CONTROL_ARRAY_AND_MATRIX: ${{ matrix.array-and-matrix }} run: | source $CONDA/bin/activate test-environment + # Use xvfb-run instead of pytest-xvfb to get proper mpl backend + # See https://github.com/python-control/python-control/pull/504 xvfb-run --auto-servernum pytest control/tests diff --git a/control/tests/conftest.py b/control/tests/conftest.py index b7fac8fe5..b67ef3674 100644 --- a/control/tests/conftest.py +++ b/control/tests/conftest.py @@ -26,8 +26,7 @@ "PendingDeprecationWarning") matrixerrorfilter = pytest.mark.filterwarnings("error:.*matrix subclass:" "PendingDeprecationWarning") -X11only = pytest.mark.skipif(os.getenv("DISPLAY") is None, - reason="requires X11") + @pytest.fixture(scope="session", autouse=True) def control_defaults(): diff --git a/control/tests/rlocus_test.py b/control/tests/rlocus_test.py index 47df12d2b..cf2b72cd3 100644 --- a/control/tests/rlocus_test.py +++ b/control/tests/rlocus_test.py @@ -13,8 +13,6 @@ from control.statesp import StateSpace from control.bdalg import feedback -from control.tests.conftest import X11only - class TestRootLocus: """These are tests for the feedback function in rlocus.py.""" @@ -50,7 +48,6 @@ def test_without_gains(self, sys): roots, kvect = root_locus(sys, plot=False) self.check_cl_poles(sys, roots, kvect) - @X11only def test_root_locus_zoom(self): """Check the zooming functionality of the Root locus plot""" system = TransferFunction([1000], [1, 25, 100, 0]) diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index c584413ab..65f87f28b 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -9,7 +9,6 @@ from control.rlocus import _RLClickDispatcher from control.xferfcn import TransferFunction -from control.tests.conftest import X11only @pytest.mark.usefixtures("mplcleanup") class TestSisotool: @@ -20,7 +19,6 @@ def sys(self): """Return a generic SISO transfer function""" return TransferFunction([1000], [1, 25, 100, 0]) - @X11only def test_sisotool(self, sys): sisotool(sys, Hz=False) fig = plt.gcf() From 36ecea1a94961e4d2c6e8c1fbb9fc119c91360ed Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 11 Jan 2021 19:33:01 -0800 Subject: [PATCH 097/260] update xvfb configuration; remove X11 marks --- .github/workflows/control-slycot-src.yml | 7 +++++-- .github/workflows/python-package-conda.yml | 8 +++++--- control/tests/conftest.py | 3 +-- control/tests/rlocus_test.py | 3 --- control/tests/sisotool_test.py | 2 -- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/control-slycot-src.yml b/.github/workflows/control-slycot-src.yml index e4455ed4a..41d56bf4a 100644 --- a/.github/workflows/control-slycot-src.yml +++ b/.github/workflows/control-slycot-src.yml @@ -15,8 +15,11 @@ jobs: # Set up conda echo $CONDA/bin >> $GITHUB_PATH + # Set up (virtual) X11 + sudo apt install -y xvfb + # Install test tools - conda install pip pytest + conda install pip pytest # Install python-control dependencies conda install numpy matplotlib scipy @@ -33,4 +36,4 @@ jobs: cd slycot; python setup.py build_ext install -DBLA_VENDOR=Generic - name: Test with pytest - run: pytest control/tests + run: xvfb-run --auto-servernum pytest control/tests diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 9a3157a8a..b8a212b6f 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -23,15 +23,15 @@ jobs: run: | # Set up conda echo $CONDA/bin >> $GITHUB_PATH - conda create -q -n test-environment python=${{matrix.python-version}} + conda create -q -n test-environment python=${{matrix.python-version}} source $CONDA/bin/activate test-environment # Set up (virtual) X11 sudo apt install -y xvfb # Install test tools - conda install pip coverage pytest - conda install -c conda-forge pytest-xvfb pytest-cov + conda install pip coverage pytest + conda install -c conda-forge pytest-cov # Install python-control dependencies conda install numpy matplotlib scipy @@ -43,4 +43,6 @@ jobs: PYTHON_CONTROL_ARRAY_AND_MATRIX: ${{ matrix.array-and-matrix }} run: | source $CONDA/bin/activate test-environment + # Use xvfb-run instead of pytest-xvfb to get proper mpl backend + # See https://github.com/python-control/python-control/pull/504 xvfb-run --auto-servernum pytest control/tests diff --git a/control/tests/conftest.py b/control/tests/conftest.py index b7fac8fe5..b67ef3674 100644 --- a/control/tests/conftest.py +++ b/control/tests/conftest.py @@ -26,8 +26,7 @@ "PendingDeprecationWarning") matrixerrorfilter = pytest.mark.filterwarnings("error:.*matrix subclass:" "PendingDeprecationWarning") -X11only = pytest.mark.skipif(os.getenv("DISPLAY") is None, - reason="requires X11") + @pytest.fixture(scope="session", autouse=True) def control_defaults(): diff --git a/control/tests/rlocus_test.py b/control/tests/rlocus_test.py index 47df12d2b..cf2b72cd3 100644 --- a/control/tests/rlocus_test.py +++ b/control/tests/rlocus_test.py @@ -13,8 +13,6 @@ from control.statesp import StateSpace from control.bdalg import feedback -from control.tests.conftest import X11only - class TestRootLocus: """These are tests for the feedback function in rlocus.py.""" @@ -50,7 +48,6 @@ def test_without_gains(self, sys): roots, kvect = root_locus(sys, plot=False) self.check_cl_poles(sys, roots, kvect) - @X11only def test_root_locus_zoom(self): """Check the zooming functionality of the Root locus plot""" system = TransferFunction([1000], [1, 25, 100, 0]) diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index c584413ab..65f87f28b 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -9,7 +9,6 @@ from control.rlocus import _RLClickDispatcher from control.xferfcn import TransferFunction -from control.tests.conftest import X11only @pytest.mark.usefixtures("mplcleanup") class TestSisotool: @@ -20,7 +19,6 @@ def sys(self): """Return a generic SISO transfer function""" return TransferFunction([1000], [1, 25, 100, 0]) - @X11only def test_sisotool(self, sys): sisotool(sys, Hz=False) fig = plt.gcf() From b7b696faee8339840c37d9eaa67e842ef3ecddaf Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 11 Jan 2021 21:50:04 -0800 Subject: [PATCH 098/260] add coveralls --- .coveragerc | 1 + .github/workflows/python-package-conda.yml | 25 +++++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.coveragerc b/.coveragerc index 1a7311855..971e393ef 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,6 +1,7 @@ [run] source = control omit = control/tests/* +relative_files = True [report] exclude_lines = diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index b8a212b6f..a3388af79 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -3,7 +3,7 @@ name: Conda-based pytest on: [push, pull_request] jobs: - build-linux: + test-linux: runs-on: ubuntu-latest strategy: @@ -19,6 +19,7 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install dependencies run: | # Set up conda @@ -31,18 +32,36 @@ jobs: # Install test tools conda install pip coverage pytest - conda install -c conda-forge pytest-cov + pip install coveralls # Install python-control dependencies conda install numpy matplotlib scipy if [[ '${{matrix.slycot}}' == 'conda' ]]; then conda install -c conda-forge slycot fi + - name: Test with pytest env: PYTHON_CONTROL_ARRAY_AND_MATRIX: ${{ matrix.array-and-matrix }} run: | source $CONDA/bin/activate test-environment # Use xvfb-run instead of pytest-xvfb to get proper mpl backend + # Use coverage instead of pytest-cov to get .coverage file # See https://github.com/python-control/python-control/pull/504 - xvfb-run --auto-servernum pytest control/tests + xvfb-run --auto-servernum coverage run -m pytest control/tests + + - name: Coveralls parallel + # https://github.com/coverallsapp/github-action + uses: AndreMiras/coveralls-python-action@develop + with: + parallel: true + + coveralls: + name: coveralls completion + needs: test-linux + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: AndreMiras/coveralls-python-action@develop + with: + parallel-finished: true From e0127c6a07aef7323ea16dcd72cd95e300cd81d9 Mon Sep 17 00:00:00 2001 From: bnavigator Date: Thu, 14 Jan 2021 01:44:23 +0100 Subject: [PATCH 099/260] add names for conda-based pytest jobs --- .github/workflows/python-package-conda.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index a3388af79..6ab0ffb76 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -4,6 +4,7 @@ on: [push, pull_request] jobs: test-linux: + name: Python ${{ matrix.python-version }}${{ matrix.slycot && format(' with Slycot from {0}', matrix.slycot) || ' without Slycot' }}${{ matrix.array-and-matrix == 1 && ', array and matrix' || '' }} runs-on: ubuntu-latest strategy: From feb9fc9bb7412fb32a1fddefafb63af71b6a6db0 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 14 Jan 2021 02:29:03 -0800 Subject: [PATCH 100/260] Use standard time series convention for markov() input data (#508) --- control/modelsimp.py | 14 ++------------ control/tests/modelsimp_test.py | 17 ++++++----------- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/control/modelsimp.py b/control/modelsimp.py index 8f6124481..ec015c16b 100644 --- a/control/modelsimp.py +++ b/control/modelsimp.py @@ -395,7 +395,7 @@ def era(YY, m, n, nin, nout, r): raise NotImplementedError('This function is not implemented yet.') -def markov(Y, U, m=None, transpose=None): +def markov(Y, U, m=None, transpose=False): """Calculate the first `m` Markov parameters [D CB CAB ...] from input `U`, output `Y`. @@ -424,8 +424,7 @@ def markov(Y, U, m=None, transpose=None): Number of Markov parameters to output. Defaults to len(U). transpose : bool, optional Assume that input data is transposed relative to the standard - :ref:`time-series-convention`. The default value is true for - backward compatibility with legacy code. + :ref:`time-series-convention`. Default value is False. Returns ------- @@ -456,15 +455,6 @@ def markov(Y, U, m=None, transpose=None): >>> H = markov(Y, U, 3, transpose=False) """ - # Check on the specified format of the input - if transpose is None: - # For backwards compatibility, assume time series in rows but warn user - warnings.warn( - "Time-series data assumed to be in rows. This will change in a " - "future release. Use `transpose=True` to preserve current " - "behavior.") - transpose = True - # Convert input parameters to 2D arrays (if they aren't already) Umat = np.array(U, ndmin=2) Ymat = np.array(Y, ndmin=2) diff --git a/control/tests/modelsimp_test.py b/control/tests/modelsimp_test.py index 1e06cb4b7..4def0b4d7 100644 --- a/control/tests/modelsimp_test.py +++ b/control/tests/modelsimp_test.py @@ -44,13 +44,9 @@ def testMarkovSignature(self, matarrayout, matarrayin): H = markov(np.transpose(Y), np.transpose(U), m, transpose=True) np.testing.assert_array_almost_equal(H, np.transpose(Htrue)) - # Default (in v0.8.4 and below) should be transpose=True (w/ warning) - with pytest.warns(UserWarning, match="assumed to be in rows.*" - "change in a future release"): - # Generate Markov parameters without any arguments - H = markov(np.transpose(Y), np.transpose(U), m) - np.testing.assert_array_almost_equal(H, np.transpose(Htrue)) - + # Generate Markov parameters without any arguments + H = markov(Y, U, m) + np.testing.assert_array_almost_equal(H, Htrue) # Test example from docstring T = np.linspace(0, 10, 100) @@ -65,9 +61,8 @@ def testMarkovSignature(self, matarrayout, matarrayin): # Make sure MIMO generates an error U = np.ones((2, 100)) # 2 inputs (Y unchanged, with 1 output) - with pytest.warns(UserWarning): - with pytest.raises(ControlMIMONotImplemented): - markov(Y, U, m) + with pytest.raises(ControlMIMONotImplemented): + markov(Y, U, m) # Make sure markov() returns the right answer @pytest.mark.parametrize("k, m, n", @@ -108,7 +103,7 @@ def testMarkovResults(self, k, m, n): T = np.array(range(n)) * Ts U = np.cos(T) + np.sin(T/np.pi) _, Y, _ = forced_response(Hd, T, U, squeeze=True) - Mcomp = markov(Y, U, m, transpose=False) + Mcomp = markov(Y, U, m) # Compare to results from markov() np.testing.assert_array_almost_equal(Mtrue, Mcomp) From 848112d101d2b655e5549642473e6cec4029b155 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 12 Jan 2021 21:39:12 -0800 Subject: [PATCH 101/260] unify use of squeeze keyword in frequency response functions --- control/config.py | 3 ++- control/frdata.py | 26 +++++++++++++++++++------- control/lti.py | 39 +++++++++++++++++++++------------------ control/margins.py | 14 +++++++------- control/statesp.py | 13 +++++++++---- control/xferfcn.py | 11 ++++++++--- 6 files changed, 66 insertions(+), 40 deletions(-) diff --git a/control/config.py b/control/config.py index b4950ae5e..0d7c93ae9 100644 --- a/control/config.py +++ b/control/config.py @@ -15,7 +15,8 @@ # Package level default values _control_defaults = { - 'control.default_dt':0 + 'control.default_dt': 0, + 'control.squeeze': True } defaults = dict(_control_defaults) diff --git a/control/frdata.py b/control/frdata.py index 8f148a3fa..e6792a430 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -51,6 +51,7 @@ real, imag, absolute, eye, linalg, where, dot, sort from scipy.interpolate import splprep, splev from .lti import LTI +from . import config __all__ = ['FrequencyResponseData', 'FRD', 'frd'] @@ -343,7 +344,7 @@ def __pow__(self, other): # G(s) for a transfer function and G(omega) for an FRD object. # update Sawyer B. Fuller 2020.08.14: __call__ added to provide a uniform # interface to systems in general and the lti.frequency_response method - def eval(self, omega, squeeze=True): + def eval(self, omega, squeeze=None): """Evaluate a transfer function at angular frequency omega. Note that a "normal" FRD only returns values for which there is an @@ -355,15 +356,21 @@ def eval(self, omega, squeeze=True): omega : float or array_like Frequencies in radians per second squeeze : bool, optional (default=True) - If True and `sys` is single input single output (SISO), returns a - 1D array rather than a 3D array. + If True and the system is single-input single-output (SISO), + return a 1D array rather than a 3D array. Default value (True) + set by config.defaults['control.squeeze']. Returns ------- fresp : (self.outputs, self.inputs, len(x)) or (len(x), ) complex ndarray - The frequency response of the system. Array is ``len(x)`` if and only - if system is SISO and ``squeeze=True``. + The frequency response of the system. Array is ``len(x)`` + if and only if system is SISO and ``squeeze=True``. + """ + # Set value of squeeze argument if not set + if squeeze is None: + squeeze = config.defaults['control.squeeze'] + omega_array = np.array(omega, ndmin=1) # array-like version of omega if any(omega_array.imag > 0): raise ValueError("FRD.eval can only accept real-valued omega") @@ -406,8 +413,9 @@ def __call__(self, s, squeeze=True): s : complex scalar or array_like Complex frequencies squeeze : bool, optional (default=True) - If True and `sys` is single input single output (SISO), i.e. `m=1`, - `p=1`, return a 1D array rather than a 3D array. + If True and the system is single-input single-output (SISO), + return a 1D array rather than a 3D array. Default value (True) + set by config.defaults['control.squeeze']. Returns ------- @@ -423,6 +431,10 @@ def __call__(self, s, squeeze=True): :class:`FrequencyDomainData` systems are only defined at imaginary frequency values. """ + # Set value of squeeze argument if not set + if squeeze is None: + squeeze = config.defaults['control.squeeze'] + if any(abs(np.array(s, ndmin=1).real) > 0): raise ValueError("__call__: FRD systems can only accept " "purely imaginary frequencies") diff --git a/control/lti.py b/control/lti.py index 152c5c73b..5e15150bf 100644 --- a/control/lti.py +++ b/control/lti.py @@ -111,7 +111,7 @@ def damp(self): Z = -real(splane_poles)/wn return wn, Z, poles - def frequency_response(self, omega, squeeze=True): + def frequency_response(self, omega, squeeze=None): """Evaluate the linear time-invariant system at an array of angular frequencies. @@ -124,18 +124,19 @@ def frequency_response(self, omega, squeeze=True): G(exp(j*omega*dt)) = mag*exp(j*phase). - In general the system may be multiple input, multiple output (MIMO), where - `m = self.inputs` number of inputs and `p = self.outputs` number of - outputs. + In general the system may be multiple input, multiple output (MIMO), + where `m = self.inputs` number of inputs and `p = self.outputs` number + of outputs. Parameters ---------- omega : float or array_like A list, tuple, array, or scalar value of frequencies in radians/sec at which the system will be evaluated. - squeeze : bool, optional (default=True) - If True and the system is single input single output (SISO), i.e. `m=1`, - `p=1`, return a 1D array rather than a 3D array. + squeeze : bool, optional + If True and the system is single-input single-output (SISO), + return a 1D array rather than a 3D array. Default value (True) + set by config.defaults['control.squeeze']. Returns ------- @@ -147,7 +148,7 @@ def frequency_response(self, omega, squeeze=True): The wrapped phase in radians of the system frequency response. omega : ndarray The (sorted) frequencies at which the response was evaluated. - + """ omega = np.sort(np.array(omega, ndmin=1)) if isdtime(self, strict=True): @@ -463,9 +464,8 @@ def damp(sys, doprint=True): (p.real, p.imag, d, w)) return wn, damping, poles -def evalfr(sys, x, squeeze=True): - """ - Evaluate the transfer function of an LTI system for complex frequency x. +def evalfr(sys, x, squeeze=None): + """Evaluate the transfer function of an LTI system for complex frequency x. Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems, with @@ -484,8 +484,9 @@ def evalfr(sys, x, squeeze=True): x : complex scalar or array_like Complex frequency(s) squeeze : bool, optional (default=True) - If True and `sys` is single input single output (SISO), i.e. `m=1`, - `p=1`, return a 1D array rather than a 3D array. + If True and the system is single-input single-output (SISO), return a + 1D array rather than a 3D array. Default value (True) set by + config.defaults['control.squeeze']. Returns ------- @@ -511,12 +512,12 @@ def evalfr(sys, x, squeeze=True): >>> # This is the transfer function matrix evaluated at s = i. .. todo:: Add example with MIMO system + """ return sys.__call__(x, squeeze=squeeze) -def freqresp(sys, omega, squeeze=True): - """ - Frequency response of an LTI system at multiple angular frequencies. +def freqresp(sys, omega, squeeze=None): + """Frequency response of an LTI system at multiple angular frequencies. In general the system may be multiple input, multiple output (MIMO), where `m = sys.inputs` number of inputs and `p = sys.outputs` number of @@ -531,8 +532,9 @@ def freqresp(sys, omega, squeeze=True): evaluated. The list can be either a python list or a numpy array and will be sorted before evaluation. squeeze : bool, optional (default=True) - If True and `sys` is single input, single output (SISO), returns - 1D array rather than a 3D array. + If True and the system is single-input single-output (SISO), return a + 1D array rather than a 3D array. Default value (True) set by + config.defaults['control.squeeze']. Returns ------- @@ -579,6 +581,7 @@ def freqresp(sys, omega, squeeze=True): #>>> # input to the 1st output, and the phase (in radians) of the #>>> # frequency response from the 1st input to the 2nd output, for #>>> # s = 0.1i, i, 10i. + """ return sys.frequency_response(omega, squeeze=squeeze) diff --git a/control/margins.py b/control/margins.py index 20da2a879..0bbf2e30b 100644 --- a/control/margins.py +++ b/control/margins.py @@ -294,25 +294,25 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): # frequency for gain margin: phase crosses -180 degrees w_180 = _poly_iw_real_crossing(num_iw, den_iw, epsw) with np.errstate(all='ignore'): # den=0 is okay - w180_resp = evalfr(sys, 1J * w_180) + w180_resp = evalfr(sys, 1J * w_180, squeeze=True) # frequency for phase margin : gain crosses magnitude 1 wc = _poly_iw_mag1_crossing(num_iw, den_iw, epsw) - wc_resp = evalfr(sys, 1J * wc) + wc_resp = evalfr(sys, 1J * wc, squeeze=True) # stability margin wstab = _poly_iw_wstab(num_iw, den_iw, epsw) - ws_resp = evalfr(sys, 1J * wstab) + ws_resp = evalfr(sys, 1J * wstab, squeeze=True) else: # Discrete Time zargs = _poly_z_invz(sys) # gain margin z, w_180 = _poly_z_real_crossing(*zargs, epsw=epsw) - w180_resp = evalfr(sys, z) + w180_resp = evalfr(sys, z, squeeze=True) # phase margin z, wc = _poly_z_mag1_crossing(*zargs, epsw=epsw) - wc_resp = evalfr(sys, z) + wc_resp = evalfr(sys, z, squeeze=True) # stability margin z, wstab = _poly_z_wstab(*zargs, epsw=epsw) @@ -437,11 +437,11 @@ def phase_crossover_frequencies(sys): omega = _poly_iw_real_crossing(num_iw, den_iw, 0.) # using real() to avoid rounding errors and results like 1+0j - gain = np.real(evalfr(sys, 1J * omega)) + gain = np.real(evalfr(sys, 1J * omega, squeeze=True)) else: zargs = _poly_z_invz(sys) z, omega = _poly_z_real_crossing(*zargs, epsw=0.) - gain = np.real(evalfr(sys, z)) + gain = np.real(evalfr(sys, z, squeeze=True)) return omega, gain diff --git a/control/statesp.py b/control/statesp.py index ff4c73c4e..798eeff06 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -640,7 +640,7 @@ def __rdiv__(self, other): raise NotImplementedError( "StateSpace.__rdiv__ is not implemented yet.") - def __call__(self, x, squeeze=True): + def __call__(self, x, squeeze=None): """Evaluate system's transfer function at complex frequency. Returns the complex frequency response `sys(x)` where `x` is `s` for @@ -659,9 +659,10 @@ def __call__(self, x, squeeze=True): ---------- x : complex or complex array_like Complex frequencies - squeeze : bool, optional (default=True) - If True and `self` is single input single output (SISO), returns a - 1D array rather than a 3D array. + squeeze : bool, optional + If True and the system is single-input single-output (SISO), + return a 1D array rather than a 3D array. Default value (True) + set by config.defaults['control.squeeze']. Returns ------- @@ -670,6 +671,10 @@ def __call__(self, x, squeeze=True): only if system is SISO and ``squeeze=True``. """ + # Set value of squeeze argument if not set + if squeeze is None: + squeeze = config.defaults['control.squeeze'] + # Use Slycot if available out = self.horner(x) if not hasattr(x, '__len__'): diff --git a/control/xferfcn.py b/control/xferfcn.py index 0ff21a42a..f4aa201d7 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -234,7 +234,7 @@ def __init__(self, *args, **kwargs): dt = config.defaults['control.default_dt'] self.dt = dt - def __call__(self, x, squeeze=True): + def __call__(self, x, squeeze=None): """Evaluate system's transfer function at complex frequencies. Returns the complex frequency response `sys(x)` where `x` is `s` for @@ -254,8 +254,9 @@ def __call__(self, x, squeeze=True): x : complex array_like or complex Complex frequencies squeeze : bool, optional (default=True) - If True and `sys` is single input single output (SISO), returns a - 1D array rather than a 3D array. + If True and the system is single-input single-output (SISO), + return a 1D array rather than a 3D array. Default value (True) + set by config.defaults['control.squeeze']. Returns ------- @@ -264,6 +265,10 @@ def __call__(self, x, squeeze=True): only if system is SISO and ``squeeze=True``. """ + # Set value of squeeze argument if not set + if squeeze is None: + squeeze = config.defaults['control.squeeze'] + out = self.horner(x) if not hasattr(x, '__len__'): # received a scalar x, squeeze down the array along last dim From 14079fb3c10502d618f0022895d4d4e97f572d7e Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Thu, 31 Dec 2020 06:00:13 +0200 Subject: [PATCH 102/260] ENH: add bdschur, which calls Slycot mb03rd. Change modal_form to use bdschur The bdschur interface is modelled after the Matlab function of the same name; it can also optionally sort the modal blocks. Added tests for bdschur, and modified tests for modal_form. --- control/canonical.py | 335 +++++++++++++++++++++++++------- control/tests/canonical_test.py | 319 +++++++++++++++++++++++------- 2 files changed, 517 insertions(+), 137 deletions(-) diff --git a/control/canonical.py b/control/canonical.py index bd9ee4a94..b0ec599d8 100644 --- a/control/canonical.py +++ b/control/canonical.py @@ -1,17 +1,21 @@ # canonical.py - functions for converting systems to canonical forms # RMM, 10 Nov 2012 -from .exception import ControlNotImplemented +from .exception import ControlNotImplemented, ControlSlycot from .lti import issiso -from .statesp import StateSpace +from .statesp import StateSpace, _convertToStateSpace from .statefbk import ctrb, obsv +import numpy as np + from numpy import zeros, zeros_like, shape, poly, iscomplex, vstack, hstack, dot, \ - transpose, empty + transpose, empty, finfo, float64 from numpy.linalg import solve, matrix_rank, eig +from scipy.linalg import schur + __all__ = ['canonical_form', 'reachable_form', 'observable_form', 'modal_form', - 'similarity_transform'] + 'similarity_transform', 'bdschur'] def canonical_form(xsys, form='reachable'): """Convert a system into canonical form @@ -149,97 +153,294 @@ def observable_form(xsys): return zsys, Tzx -def modal_form(xsys): - """Convert a system into modal canonical form + +def similarity_transform(xsys, T, timescale=1, inverse=False): + """Perform a similarity transformation, with option time rescaling. + + Transform a linear state space system to a new state space representation + z = T x, or x = T z, where T is an invertible matrix. Parameters ---------- xsys : StateSpace object - System to be transformed, with state `x` + System to transform + T : 2D invertible array + The matrix `T` defines the new set of coordinates z = T x. + timescale : float + If present, also rescale the time unit to tau = timescale * t + inverse: boolean + If True (default), transform so z = T x. If False, transform + so x = T z. Returns ------- zsys : StateSpace object - System in modal canonical form, with state `z` - T : matrix - Coordinate transformation: z = T * x - """ - # Check to make sure we have a SISO system - if not issiso(xsys): - raise ControlNotImplemented( - "Canonical forms for MIMO systems not yet supported") + System in transformed coordinates, with state 'z' + """ # Create a new system, starting with a copy of the old one zsys = StateSpace(xsys) - # Calculate eigenvalues and matrix of eigenvectors Tzx, - eigval, eigvec = eig(xsys.A) + # Define a function to compute the right inverse (solve x M = y) + def rsolve(M, y): + return transpose(solve(transpose(M), transpose(y))) - # Eigenvalues and corresponding eigenvectors are not sorted, - # thus modal transformation is ambiguous - # Sort eigenvalues and vectors from largest to smallest eigenvalue - idx = eigval.argsort()[::-1] - eigval = eigval[idx] - eigvec = eigvec[:,idx] + # Update the system matrices + if not inverse: + zsys.A = rsolve(T, dot(T, zsys.A)) / timescale + zsys.B = dot(T, zsys.B) / timescale + zsys.C = rsolve(T, zsys.C) + else: + zsys.A = solve(T, zsys.A).dot(T) / timescale + zsys.B = solve(T, zsys.B) / timescale + zsys.C = zsys.C.dot(T) + + return zsys + + +_IM_ZERO_TOL = np.finfo(np.float64).eps ** 0.5 +_PMAX_SEARCH_TOL = 1.001 + + +def _bdschur_defective(blksizes, eigvals): + """Check for defective modal decomposition + + Parameters + ---------- + blksizes: size of Schur blocks + eigvals: eigenvalues + + Returns + ------- + True iff Schur blocks are defective + + blksizes, eigvals are 3rd and 4th results returned by mb03rd. + """ + if any(blksizes > 2): + return True + + if all(blksizes == 1): + return False + + # check eigenvalues associated with blocks of size 2 + init_idxs = np.cumsum(np.hstack([0, blksizes[:-1]])) + blk_idx2 = blksizes == 2 + + im = eigvals[init_idxs[blk_idx2]].imag + re = eigvals[init_idxs[blk_idx2]].real + + if any(abs(im) < _IM_ZERO_TOL * abs(re)): + return True + + return False + + +def _bdschur_condmax_search(aschur, tschur, condmax): + """Block-diagonal Schur decomposition search up to condmax + + Iterates mb03rd with different pmax values until: + - result is non-defective; + - or condition number of similarity transform is unchanging despite large pmax; + - or condition number of similarity transform is close to condmax. + + Parameters + ---------- + aschur: (n, n) array + real Schur-form matrix + tschur: (n, n) array + orthogonal transformation giving aschur from some initial matrix a + condmax: positive scalar >= 1 + maximum condition number of final transformation - # If all eigenvalues are real, the matrix of eigenvectors is Tzx directly - if not iscomplex(eigval).any(): - Tzx = eigvec + Returns + ------- + amodal: n, n array + block diagonal Schur form + tmodal: + similarity transformation give amodal from aschur + blksizes: + Array of Schur block sizes + eigvals: + Eigenvalues of amodal (and a, etc.) + + Notes + ----- + Outputs as for slycot.mb03rd + + aschur, tschur are as returned by scipy.linalg.schur. + """ + try: + from slycot import mb03rd + except ImportError: + raise ControlSlycot("can't find slycot module 'mb03rd'") + + # see notes on RuntimeError below + pmaxlower = None + + # get lower bound; try condmax ** 0.5 first + pmaxlower = condmax ** 0.5 + amodal, tmodal, blksizes, eigvals = mb03rd(aschur.shape[0], aschur, tschur, pmax=pmaxlower) + if np.linalg.cond(tmodal) <= condmax: + reslower = amodal, tmodal, blksizes, eigvals else: - # A is an arbitrary semisimple matrix - - # Keep track of complex conjugates (need only one) - lst_conjugates = [] - Tzx = empty((0, xsys.A.shape[0])) # empty zero-height row matrix - for val, vec in zip(eigval, eigvec.T): - if iscomplex(val): - if val not in lst_conjugates: - lst_conjugates.append(val.conjugate()) - Tzx = vstack((Tzx, vec.real, vec.imag)) - else: - # if conjugate has already been seen, skip this eigenvalue - lst_conjugates.remove(val) - else: - Tzx = vstack((Tzx, vec.real)) - Tzx = Tzx.T + pmaxlower = 1.0 + amodal, tmodal, blksizes, eigvals = mb03rd(aschur.shape[0], aschur, tschur, pmax=pmaxlower) + cond = np.linalg.cond(tmodal) + if cond > condmax: + msg = 'minimum cond={} > condmax={}; try increasing condmax'.format(cond, condmax) + raise RuntimeError(msg) + + pmax = pmaxlower + + # phase 1: search for upper bound on pmax + for i in range(50): + amodal, tmodal, blksizes, eigvals = mb03rd(aschur.shape[0], aschur, tschur, pmax=pmax) + cond = np.linalg.cond(tmodal) + if cond < condmax: + pmaxlower = pmax + reslower = amodal, tmodal, blksizes, eigvals + else: + # upper bound found; go to phase 2 + pmaxupper = pmax + break + + if _bdschur_defective(blksizes, eigvals): + pmax *= 2 + else: + return amodal, tmodal, blksizes, eigvals + else: + # no upper bound found; return current result + return reslower + + # phase 2: bisection search + for i in range(50): + pmax = (pmaxlower * pmaxupper) ** 0.5 + amodal, tmodal, blksizes, eigvals = mb03rd(aschur.shape[0], aschur, tschur, pmax=pmax) + cond = np.linalg.cond(tmodal) + + if cond < condmax: + if not _bdschur_defective(blksizes, eigvals): + return amodal, tmodal, blksizes, eigvals + pmaxlower = pmax + reslower = amodal, tmodal, blksizes, eigvals + else: + pmaxupper = pmax + + if pmaxupper / pmaxlower < _PMAX_SEARCH_TOL: + # hit search limit + return reslower + else: + raise ValueError('bisection failed to converge; pmaxlower={}, pmaxupper={}'.format(pmaxlower, pmaxupper)) - # Generate the system matrices for the desired canonical form - zsys.A = solve(Tzx, xsys.A).dot(Tzx) - zsys.B = solve(Tzx, xsys.B) - zsys.C = xsys.C.dot(Tzx) - return zsys, Tzx +def bdschur(a, condmax=None, sort=None): + """Block-diagonal Schur decomposition + Parameters + ---------- + a: real (n, n) array + Matrix to decompose + condmax: real scalar >= 1 + If None (default), use `1/sqrt(eps)`, which is approximately 2e-8 + sort: None, 'continuous', or 'discrete' + See below -def similarity_transform(xsys, T, timescale=1): - """Perform a similarity transformation, with option time rescaling. + Returns + ------- + amodal: (n, n) array, dtype `np.double` + Block-diagonal Schur decomposition of `a` + tmodal: (n, n) array + similarity transform relating `a` and `amodal` + blksizes: + Array of Schur block sizes + + Notes + ----- + If `sort` is None, the blocks are not sorted. + + If `sort` is 'continuous', the blocks are sorted according to + associated eigenvalues. The ordering is first by real part of + eigenvalue, in descending order, then by absolute value of + imaginary part of eigenvalue, also in decreasing order. + + If `sort` is 'discrete', the blocks are sorted as for + 'continuous', but applied to log of eigenvalues + (continuous-equivalent). + """ + if condmax is None: + condmax = np.finfo(np.float64).eps ** -0.5 - Transform a linear state space system to a new state space representation - z = T x, where T is an invertible matrix. + if not (np.isscalar(condmax) and condmax >= 1.0): + raise ValueError('condmax="{}" must be a scalar >= 1.0'.format(condmax)) + + a = np.atleast_2d(a) + if a.shape[0] == 0 or a.shape[1] == 0: + return a.copy(), np.eye(a.shape[1], a.shape[0]), np.array([]) + + aschur, tschur = schur(a) + amodal, tmodal, blksizes, eigvals = _bdschur_condmax_search(aschur, tschur, condmax) + + if sort in ('continuous', 'discrete'): + + idxs = np.cumsum(np.hstack([0, blksizes[:-1]])) + + ev_per_blk = [complex(eigvals[i].real, abs(eigvals[i].imag)) + for i in idxs] + + if sort == 'discrete': + ev_per_blk = np.log(ev_per_blk) + + # put most unstable first + sortidx = np.argsort(ev_per_blk)[::-1] + + # block indices + blkidxs = [np.arange(i0, i0+ilen) + for i0, ilen in zip(idxs, blksizes)] + + # reordered + permidx = np.hstack([blkidxs[i] for i in sortidx]) + rperm = np.eye(amodal.shape[0])[permidx] + + tmodal = tmodal.dot(rperm) + amodal = rperm.dot(amodal).dot(rperm.T) + blksizes = blksizes[sortidx] + + elif sort is None: + pass + + else: + raise ValueError('unknown sort value "{}"'.format(sort)) + + return amodal, tmodal, blksizes + + +def modal_form(xsys, condmax=None, sort=False): + """Convert a system into modal canonical form Parameters ---------- - T : 2D invertible array - The matrix `T` defines the new set of coordinates z = T x. - timescale : float - If present, also rescale the time unit to tau = timescale * t + xsys : StateSpace object + System to be transformed, with state `x` + condmax: real scalar >= 1 + An upper bound on individual transformations. If None, use `bdschur` default. + sort: False (default) + If true, Schur blocks will be sorted. See `bdschur` for sort order. Returns ------- zsys : StateSpace object - System in transformed coordinates, with state 'z' - + System in modal canonical form, with state `z` + T : matrix + Coordinate transformation: z = T * x """ - # Create a new system, starting with a copy of the old one - zsys = StateSpace(xsys) - # Define a function to compute the right inverse (solve x M = y) - def rsolve(M, y): - return transpose(solve(transpose(M), transpose(y))) + if sort: + discrete = xsys.dt is not None and xsys.dt > 0 + bd_sort = 'discrete' if discrete else 'continuous' + else: + bd_sort = None - # Update the system matrices - zsys.A = rsolve(T, dot(T, zsys.A)) / timescale - zsys.B = dot(T, zsys.B) / timescale - zsys.C = rsolve(T, zsys.C) + xsys = _convertToStateSpace(xsys) + amodal, tmodal, _ = bdschur(xsys.A, condmax=condmax, sort=bd_sort) - return zsys + return similarity_transform(xsys, tmodal, inverse=True), tmodal diff --git a/control/tests/canonical_test.py b/control/tests/canonical_test.py index f88f1af56..51ecd87f2 100644 --- a/control/tests/canonical_test.py +++ b/control/tests/canonical_test.py @@ -2,10 +2,11 @@ import numpy as np import pytest +import scipy.linalg from control import ss, tf, tf2ss from control.canonical import canonical_form, reachable_form, \ - observable_form, modal_form, similarity_transform + observable_form, modal_form, similarity_transform, bdschur from control.exception import ControlNotImplemented class TestCanonical: @@ -59,75 +60,6 @@ def test_unreachable_system(self): # Check if an exception is raised np.testing.assert_raises(ValueError, canonical_form, sys, "reachable") - @pytest.mark.parametrize( - "A_true, B_true, C_true, D_true", - [(np.diag([4.0, 3.0, 2.0, 1.0]), # order from largest to smallest - np.array([[1.1, 2.2, 3.3, 4.4]]).T, - np.array([[1.3, 1.4, 1.5, 1.6]]), - np.array([[42.0]])), - (np.array([[-1, 1, 0, 0], - [-1, -1, 0, 0], - [ 0, 0, -2, 0], - [ 0, 0, 0, -3]]), - np.array([[0, 1, 0, 1]]).T, - np.array([[1, 0, 0, 1]]), - np.array([[0]])), - # Reorder rows to get complete coverage (real eigenvalue cxrtvfirst) - (np.array([[-1, 0, 0, 0], - [ 0, -2, 1, 0], - [ 0, -1, -2, 0], - [ 0, 0, 0, -3]]), - np.array([[0, 0, 1, 1]]).T, - np.array([[0, 1, 0, 1]]), - np.array([[0]])), - ], - ids=["sys1", "sys2", "sys3"]) - def test_modal_form(self, A_true, B_true, C_true, D_true): - """Test the modal canonical form""" - # Perform a coordinate transform with a random invertible matrix - T_true = np.array([[-0.27144004, -0.39933167, 0.75634684, 0.44135471], - [-0.74855725, -0.39136285, -0.18142339, -0.50356997], - [-0.40688007, 0.81416369, 0.38002113, -0.16483334], - [-0.44769516, 0.15654653, -0.50060858, 0.72419146]]) - A = np.linalg.solve(T_true, A_true).dot(T_true) - B = np.linalg.solve(T_true, B_true) - C = C_true.dot(T_true) - D = D_true - - # Create a state space system and convert it to modal canonical form - sys_check, T_check = canonical_form(ss(A, B, C, D), "modal") - - # Check against the true values - # TODO: Test in respect to ambiguous transformation - # (system characteristics?) - np.testing.assert_array_almost_equal(sys_check.A, A_true) - #np.testing.assert_array_almost_equal(sys_check.B, B_true) - #np.testing.assert_array_almost_equal(sys_check.C, C_true) - np.testing.assert_array_almost_equal(sys_check.D, D_true) - #np.testing.assert_array_almost_equal(T_check, T_true) - - # Create state space system and convert to modal canonical form - sys_check, T_check = canonical_form(ss(A, B, C, D), 'modal') - - # B matrix should be all ones (or zero if not controllable) - # TODO: need to update modal_form() to implement this - if np.allclose(T_check, T_true): - np.testing.assert_array_almost_equal(sys_check.B, B_true) - np.testing.assert_array_almost_equal(sys_check.C, C_true) - - # Make sure Hankel coefficients are OK - for i in range(A.shape[0]): - np.testing.assert_almost_equal( - np.dot(np.dot(C_true, np.linalg.matrix_power(A_true, i)), - B_true), - np.dot(np.dot(C, np.linalg.matrix_power(A, i)), B)) - - def test_modal_form_MIMO(self): - """Test error because modal form only supports SISO""" - sys = tf([[[1], [1]]], [[[1, 2, 1], [1, 2, 1]]]) - with pytest.raises(ControlNotImplemented): - modal_form(sys) - def test_observable_form(self): """Test the observable canonical form""" # Create a system in the observable canonical form @@ -258,3 +190,250 @@ def test_similarity(self): np.testing.assert_array_almost_equal(mimo_new.C, mimo_ini.C) np.testing.assert_array_almost_equal(mimo_new.D, mimo_ini.D) + +def extract_bdiag(a, blksizes): + """ + Extract block diagonals + + Parameters + ---------- + a - matrix to get blocks from + blksizes - sequence of block diagonal sizes + + Returns + ------- + Block diagonals + + Notes + ----- + Conceptually, inverse of scipy.linalg.block_diag + """ + idx0s = np.hstack([0, np.cumsum(blksizes[:-1], dtype=int)]) + return tuple(a[idx0:idx0+blksize,idx0:idx0+blksize] + for idx0, blksize in zip(idx0s, blksizes)) + + +def companion_from_eig(eigvals): + """ + Find companion matrix for given eigenvalue sequence. + """ + from numpy.polynomial.polynomial import polyfromroots, polycompanion + return polycompanion(polyfromroots(eigvals)).real + + +def block_diag_from_eig(eigvals): + """ + Find block-diagonal matrix for given eigenvalue sequence + + Returns ideal, non-defective, schur block-diagonal form. + """ + blocks = [] + i = 0 + while i < len(eigvals): + e = eigvals[i] + if e.imag == 0: + blocks.append(e.real) + i += 1 + else: + assert e == eigvals[i+1].conjugate() + blocks.append([[e.real, e.imag], + [-e.imag, e.real]]) + i += 2 + return scipy.linalg.block_diag(*blocks) + + +@pytest.mark.parametrize( + "eigvals, condmax, blksizes", + [ + ([-1,-2,-3,-4,-5], None, [1,1,1,1,1]), + ([-1,-2,-3,-4,-5], 1.01, [5]), + ([-1,-1,-2,-2,-2], None, [2,3]), + ([-1+1j,-1-1j,-2+2j,-2-2j,-2], None, [2,2,1]), + ]) +def test_bdschur_ref(eigvals, condmax, blksizes): + # "reference" check + # uses companion form to introduce numerical complications + from numpy.linalg import solve + + a = companion_from_eig(eigvals) + b, t, test_blksizes = bdschur(a, condmax=condmax) + + np.testing.assert_array_equal(np.sort(test_blksizes), np.sort(blksizes)) + + bdiag_b = scipy.linalg.block_diag(*extract_bdiag(b, test_blksizes)) + np.testing.assert_array_almost_equal(bdiag_b, b) + + np.testing.assert_array_almost_equal(solve(t, a).dot(t), b) + + +@pytest.mark.parametrize( + "eigvals, sorted_blk_eigvals, sort", + [ + ([-2,-1,0,1,2], [2,1,0,-1,-2], 'continuous'), + ([-2,-2+2j,-2-2j,-2-3j,-2+3j], [-2+3j,-2+2j,-2], 'continuous'), + (np.exp([-0.2,-0.1,0,0.1,0.2]), np.exp([0.2,0.1,0,-0.1,-0.2]), 'discrete'), + (np.exp([-0.2+0.2j,-0.2-0.2j, -0.01, -0.03-0.3j,-0.03+0.3j,]), + np.exp([-0.01, -0.03+0.3j, -0.2+0.2j]), + 'discrete'), + ]) +def test_bdschur_sort(eigvals, sorted_blk_eigvals, sort): + # use block diagonal form to prevent numerical complications + # for discrete case, exp and log introduce round-off, can't test as compeletely + a = block_diag_from_eig(eigvals) + + b, t, blksizes = bdschur(a, sort=sort) + assert len(blksizes) == len(sorted_blk_eigvals) + + blocks = extract_bdiag(b, blksizes) + for block, blk_eigval in zip(blocks, sorted_blk_eigvals): + test_eigvals = np.linalg.eigvals(block) + np.testing.assert_allclose(test_eigvals.real, + blk_eigval.real) + + np.testing.assert_allclose(abs(test_eigvals.imag), + blk_eigval.imag) + + +def test_bdschur_defective(): + # the eigenvalues of this simple defective matrix cannot be separated + # a previous version of the bdschur would fail on this + a = companion_from_eig([-1, -1]) + amodal, tmodal, blksizes = bdschur(a, condmax=1e200) + + +def test_bdschur_empty(): + # empty matrix in gives empty matrix out + a = np.empty(shape=(0,0)) + b, t, blksizes = bdschur(a) + np.testing.assert_array_equal(b, a) + np.testing.assert_array_equal(t, a) + np.testing.assert_array_equal(blksizes, np.array([])) + + +def test_bdschur_condmax_lt_1(): + # require condmax >= 1.0 + with pytest.raises(ValueError): + bdschur(1, condmax=np.nextafter(1, 0)) + + +def test_bdschur_invalid_sort(): + # sort must be in ('continuous', 'discrete') + with pytest.raises(ValueError): + bdschur(1, sort='no-such-sort') + + +# temp +from control import ss, tf, ControlNotImplemented + + +@pytest.mark.parametrize( + "A_true, B_true, C_true, D_true", + [(np.diag([4.0, 3.0, 2.0, 1.0]), # order from largest to smallest + np.array([[1.1, 2.2, 3.3, 4.4]]).T, + np.array([[1.3, 1.4, 1.5, 1.6]]), + np.array([[42.0]])), + + (np.array([[-1, 1, 0, 0], + [-1, -1, 0, 0], + [ 0, 0, -2, 1], + [ 0, 0, 0, -3]]), + np.array([[0, 1, 0, 0], + [0, 0, 0, 1]]).T, + np.array([[1, 0, 1, 0], + [0, 1, 0, 0], + [0, 0, 0, 1]]), + np.array([[0, 1], + [1, 0], + [0, 0]])), + ], + ids=["sys1", "sys2"]) +def test_modal_form(A_true, B_true, C_true, D_true): + # Check modal_canonical corresponds to bdschur + # Perform a coordinate transform with a random invertible matrix + T_true = np.array([[-0.27144004, -0.39933167, 0.75634684, 0.44135471], + [-0.74855725, -0.39136285, -0.18142339, -0.50356997], + [-0.40688007, 0.81416369, 0.38002113, -0.16483334], + [-0.44769516, 0.15654653, -0.50060858, 0.72419146]]) + A = np.linalg.solve(T_true, A_true).dot(T_true) + B = np.linalg.solve(T_true, B_true) + C = C_true.dot(T_true) + D = D_true + + # Create a state space system and convert it to modal canonical form + sys_check, T_check = modal_form(ss(A, B, C, D)) + + a_bds, t_bds, _ = bdschur(A) + + np.testing.assert_array_almost_equal(sys_check.A, a_bds) + np.testing.assert_array_almost_equal(T_check, t_bds) + np.testing.assert_array_almost_equal(sys_check.B, np.linalg.solve(t_bds, B)) + np.testing.assert_array_almost_equal(sys_check.C, C.dot(t_bds)) + np.testing.assert_array_almost_equal(sys_check.D, D) + + # canonical_form(...,'modal') is the same as modal_form with default parameters + cf_sys, T_cf = canonical_form(ss(A, B, C, D), 'modal') + np.testing.assert_array_almost_equal(cf_sys.A, sys_check.A) + np.testing.assert_array_almost_equal(cf_sys.B, sys_check.B) + np.testing.assert_array_almost_equal(cf_sys.C, sys_check.C) + np.testing.assert_array_almost_equal(cf_sys.D, sys_check.D) + np.testing.assert_array_almost_equal(T_check, T_cf) + + # Make sure Hankel coefficients are OK + for i in range(A.shape[0]): + np.testing.assert_almost_equal( + np.dot(np.dot(C_true, np.linalg.matrix_power(A_true, i)), + B_true), + np.dot(np.dot(C, np.linalg.matrix_power(A, i)), B)) + + +@pytest.mark.parametrize( + "condmax, len_blksizes", + [(1.1, 1), + (None, 5)]) +def test_modal_form_condmax(condmax, len_blksizes): + # condmax passed through as expected + a = companion_from_eig([-1, -2, -3, -4, -5]) + amodal, tmodal, blksizes = bdschur(a, condmax=condmax) + assert len(blksizes) == len_blksizes + xsys = ss(a, [[1],[0],[0],[0],[0]], [0,0,0,0,1], 0) + zsys, t = modal_form(xsys, condmax=condmax) + np.testing.assert_array_almost_equal(zsys.A, amodal) + np.testing.assert_array_almost_equal(t, tmodal) + np.testing.assert_array_almost_equal(zsys.B, np.linalg.solve(tmodal, xsys.B)) + np.testing.assert_array_almost_equal(zsys.C, xsys.C.dot(tmodal)) + np.testing.assert_array_almost_equal(zsys.D, xsys.D) + + +@pytest.mark.parametrize( + "sys_type", + ['continuous', + 'discrete']) +def test_modal_form_sort(sys_type): + a = companion_from_eig([0.1+0.9j,0.1-0.9j, 0.2+0.8j, 0.2-0.8j]) + amodal, tmodal, blksizes = bdschur(a, sort=sys_type) + + dt = 0 if sys_type == 'continuous' else True + + xsys = ss(a, [[1],[0],[0],[0],], [0,0,0,1], 0, dt) + zsys, t = modal_form(xsys, sort=True) + + my_amodal = np.linalg.solve(tmodal, a).dot(tmodal) + np.testing.assert_array_almost_equal(amodal, my_amodal) + + np.testing.assert_array_almost_equal(t, tmodal) + np.testing.assert_array_almost_equal(zsys.A, amodal) + np.testing.assert_array_almost_equal(zsys.B, np.linalg.solve(tmodal, xsys.B)) + np.testing.assert_array_almost_equal(zsys.C, xsys.C.dot(tmodal)) + np.testing.assert_array_almost_equal(zsys.D, xsys.D) + + +def test_modal_form_empty(): + # empty system should be returned as-is + # t empty matrix + insys = ss([], [], [], 123) + outsys, t = modal_form(insys) + np.testing.assert_array_equal(outsys.A, insys.A) + np.testing.assert_array_equal(outsys.B, insys.B) + np.testing.assert_array_equal(outsys.C, insys.C) + np.testing.assert_array_equal(outsys.D, insys.D) + assert t.shape == (0,0) From f630b4ac86956391937726bdd7447cc123160dd2 Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Sat, 2 Jan 2021 07:24:06 +0200 Subject: [PATCH 103/260] Change docstrings to numpydoc conventions; update doc func index --- control/canonical.py | 76 +++++++++++++++++++++++--------------------- doc/control.rst | 2 ++ 2 files changed, 42 insertions(+), 36 deletions(-) diff --git a/control/canonical.py b/control/canonical.py index b0ec599d8..354541b55 100644 --- a/control/canonical.py +++ b/control/canonical.py @@ -24,7 +24,7 @@ def canonical_form(xsys, form='reachable'): ---------- xsys : StateSpace object System to be transformed, with state 'x' - form : String + form : str Canonical form for transformation. Chosen from: * 'reachable' - reachable canonical form * 'observable' - observable canonical form @@ -34,7 +34,7 @@ def canonical_form(xsys, form='reachable'): ------- zsys : StateSpace object System in desired canonical form, with state 'z' - T : matrix + T : (M, M) real ndarray Coordinate transformation matrix, z = T * x """ @@ -63,7 +63,7 @@ def reachable_form(xsys): ------- zsys : StateSpace object System in reachable canonical form, with state `z` - T : matrix + T : (M, M) real ndarray Coordinate transformation: z = T * x """ # Check to make sure we have a SISO system @@ -117,7 +117,7 @@ def observable_form(xsys): ------- zsys : StateSpace object System in observable canonical form, with state `z` - T : matrix + T : (M, M) real ndarray Coordinate transformation: z = T * x """ # Check to make sure we have a SISO system @@ -164,11 +164,11 @@ def similarity_transform(xsys, T, timescale=1, inverse=False): ---------- xsys : StateSpace object System to transform - T : 2D invertible array + T : (M, M) array_like The matrix `T` defines the new set of coordinates z = T x. - timescale : float + timescale : float, optional If present, also rescale the time unit to tau = timescale * t - inverse: boolean + inverse: boolean, optional If True (default), transform so z = T x. If False, transform so x = T z. @@ -181,6 +181,8 @@ def similarity_transform(xsys, T, timescale=1, inverse=False): # Create a new system, starting with a copy of the old one zsys = StateSpace(xsys) + T = np.atleast_2d(T) + # Define a function to compute the right inverse (solve x M = y) def rsolve(M, y): return transpose(solve(transpose(M), transpose(y))) @@ -207,14 +209,16 @@ def _bdschur_defective(blksizes, eigvals): Parameters ---------- - blksizes: size of Schur blocks - eigvals: eigenvalues + blksizes: (N,) int ndarray + size of Schur blocks + eigvals: (M,) real or complex ndarray + Eigenvalues Returns ------- - True iff Schur blocks are defective + True iff Schur blocks are defective. - blksizes, eigvals are 3rd and 4th results returned by mb03rd. + blksizes, eigvals are the 3rd and 4th results returned by mb03rd. """ if any(blksizes > 2): return True @@ -245,22 +249,22 @@ def _bdschur_condmax_search(aschur, tschur, condmax): Parameters ---------- - aschur: (n, n) array - real Schur-form matrix - tschur: (n, n) array - orthogonal transformation giving aschur from some initial matrix a - condmax: positive scalar >= 1 - maximum condition number of final transformation + aschur: (N, N) real ndarray + Real Schur-form matrix + tschur: (N, N) real ndarray + Orthogonal transformation giving aschur from some initial matrix a + condmax: float + Maximum condition number of final transformation. Must be >= 1. Returns ------- - amodal: n, n array + amodal: (N, N) real ndarray block diagonal Schur form - tmodal: + tmodal: (N, N) real ndarray similarity transformation give amodal from aschur - blksizes: + blksizes: (M,) int ndarray Array of Schur block sizes - eigvals: + eigvals: (N,) real or complex ndarray Eigenvalues of amodal (and a, etc.) Notes @@ -338,20 +342,20 @@ def bdschur(a, condmax=None, sort=None): Parameters ---------- - a: real (n, n) array - Matrix to decompose - condmax: real scalar >= 1 - If None (default), use `1/sqrt(eps)`, which is approximately 2e-8 - sort: None, 'continuous', or 'discrete' - See below + a : (M, M) array_like + Real matrix to decompose + condmax : None or float, optional + If None (default), use 1/sqrt(eps), which is approximately 1e8 + sort : {None, 'continuous', 'discrete'} + Block sorting; see below. Returns ------- - amodal: (n, n) array, dtype `np.double` + amodal : (M, M) real ndarray Block-diagonal Schur decomposition of `a` - tmodal: (n, n) array - similarity transform relating `a` and `amodal` - blksizes: + tmodal : (M, M) real ndarray + Similarity transform relating `a` and `amodal` + blksizes : (N,) int ndarray Array of Schur block sizes Notes @@ -365,7 +369,7 @@ def bdschur(a, condmax=None, sort=None): If `sort` is 'discrete', the blocks are sorted as for 'continuous', but applied to log of eigenvalues - (continuous-equivalent). + (i.e., continuous-equivalent eigenvalues). """ if condmax is None: condmax = np.finfo(np.float64).eps ** -0.5 @@ -421,16 +425,16 @@ def modal_form(xsys, condmax=None, sort=False): ---------- xsys : StateSpace object System to be transformed, with state `x` - condmax: real scalar >= 1 + condmax : None or float, optional An upper bound on individual transformations. If None, use `bdschur` default. - sort: False (default) - If true, Schur blocks will be sorted. See `bdschur` for sort order. + sort : bool, optional + If False (default), Schur blocks will not be sorted. See `bdschur` for sort order. Returns ------- zsys : StateSpace object System in modal canonical form, with state `z` - T : matrix + T : (M, M) ndarray Coordinate transformation: z = T * x """ diff --git a/doc/control.rst b/doc/control.rst index a3423e379..80119f691 100644 --- a/doc/control.rst +++ b/doc/control.rst @@ -155,6 +155,7 @@ Utility functions and conversions :toctree: generated/ augw + bdschur canonical_form damp db2mag @@ -163,6 +164,7 @@ Utility functions and conversions issiso issys mag2db + modal_form observable_form pade reachable_form From 7122b0760cc7820bdb5efa8257b48779b895bed7 Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Sat, 2 Jan 2021 07:24:50 +0200 Subject: [PATCH 104/260] Add @slycotonly decorator as needed --- control/tests/canonical_test.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/control/tests/canonical_test.py b/control/tests/canonical_test.py index 51ecd87f2..0db6b924c 100644 --- a/control/tests/canonical_test.py +++ b/control/tests/canonical_test.py @@ -4,6 +4,8 @@ import pytest import scipy.linalg +from control.tests.conftest import slycotonly + from control import ss, tf, tf2ss from control.canonical import canonical_form, reachable_form, \ observable_form, modal_form, similarity_transform, bdschur @@ -242,6 +244,7 @@ def block_diag_from_eig(eigvals): return scipy.linalg.block_diag(*blocks) +@slycotonly @pytest.mark.parametrize( "eigvals, condmax, blksizes", [ @@ -266,6 +269,7 @@ def test_bdschur_ref(eigvals, condmax, blksizes): np.testing.assert_array_almost_equal(solve(t, a).dot(t), b) +@slycotonly @pytest.mark.parametrize( "eigvals, sorted_blk_eigvals, sort", [ @@ -294,6 +298,7 @@ def test_bdschur_sort(eigvals, sorted_blk_eigvals, sort): blk_eigval.imag) +@slycotonly def test_bdschur_defective(): # the eigenvalues of this simple defective matrix cannot be separated # a previous version of the bdschur would fail on this @@ -316,16 +321,14 @@ def test_bdschur_condmax_lt_1(): bdschur(1, condmax=np.nextafter(1, 0)) +@slycotonly def test_bdschur_invalid_sort(): # sort must be in ('continuous', 'discrete') with pytest.raises(ValueError): bdschur(1, sort='no-such-sort') -# temp -from control import ss, tf, ControlNotImplemented - - +@slycotonly @pytest.mark.parametrize( "A_true, B_true, C_true, D_true", [(np.diag([4.0, 3.0, 2.0, 1.0]), # order from largest to smallest @@ -386,6 +389,7 @@ def test_modal_form(A_true, B_true, C_true, D_true): np.dot(np.dot(C, np.linalg.matrix_power(A, i)), B)) +@slycotonly @pytest.mark.parametrize( "condmax, len_blksizes", [(1.1, 1), @@ -404,6 +408,7 @@ def test_modal_form_condmax(condmax, len_blksizes): np.testing.assert_array_almost_equal(zsys.D, xsys.D) +@slycotonly @pytest.mark.parametrize( "sys_type", ['continuous', From 8fc3627840223a37aff863d0b269283a28da3437 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 14 Jan 2021 21:44:48 -0800 Subject: [PATCH 105/260] update _convertToStateSpace to _convert_to_statespace --- control/canonical.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/canonical.py b/control/canonical.py index 354541b55..341ec5da4 100644 --- a/control/canonical.py +++ b/control/canonical.py @@ -3,7 +3,7 @@ from .exception import ControlNotImplemented, ControlSlycot from .lti import issiso -from .statesp import StateSpace, _convertToStateSpace +from .statesp import StateSpace, _convert_to_statespace from .statefbk import ctrb, obsv import numpy as np @@ -444,7 +444,7 @@ def modal_form(xsys, condmax=None, sort=False): else: bd_sort = None - xsys = _convertToStateSpace(xsys) + xsys = _convert_to_statespace(xsys) amodal, tmodal, _ = bdschur(xsys.A, condmax=condmax, sort=bd_sort) return similarity_transform(xsys, tmodal, inverse=True), tmodal From b47ed087d20dc036624964b6b8a4c3642303c6d9 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 15 Jan 2021 12:56:43 -0800 Subject: [PATCH 106/260] change default value of statesp.remove_useless_states to False (#509) --- control/config.py | 3 +++ control/statesp.py | 20 +++++++++++++------- control/tests/statesp_test.py | 11 ++++------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/control/config.py b/control/config.py index b4950ae5e..a81d8347f 100644 --- a/control/config.py +++ b/control/config.py @@ -226,4 +226,7 @@ def use_legacy_defaults(version): linearized_system_name_prefix='', linearized_system_name_suffix='_linearized') + # turned off _remove_useless_states + set_defaults('statesp', remove_useless_states=True) + return (major, minor, patch) diff --git a/control/statesp.py b/control/statesp.py index ff4c73c4e..0be783bce 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -72,7 +72,7 @@ # Define module default parameter values _statesp_defaults = { 'statesp.use_numpy_matrix': False, # False is default in 0.9.0 and above - 'statesp.remove_useless_states': True, + 'statesp.remove_useless_states': False, 'statesp.latex_num_format': '.3g', 'statesp.latex_repr_type': 'partitioned', } @@ -217,8 +217,7 @@ class StateSpace(LTI): __array_priority__ = 11 # override ndarray and matrix types def __init__(self, *args, **kwargs): - """ - StateSpace(A, B, C, D[, dt]) + """StateSpace(A, B, C, D[, dt]) Construct a state space object. @@ -228,6 +227,13 @@ def __init__(self, *args, **kwargs): True for unspecified sampling time). To call the copy constructor, call StateSpace(sys), where sys is a StateSpace object. + The `remove_useless_states` keyword can be used to scan the A, B, and + C matrices for rows or columns of zeros. If the zeros are such that a + particular state has no effect on the input-output dynamics, then that + state is removed from the A, B, and C matrices. If not specified, the + value is read from `config.defaults['statesp.remove_useless_states'] + (default = False). + """ # first get A, B, C, D matrices if len(args) == 4: @@ -251,8 +257,8 @@ def __init__(self, *args, **kwargs): "Expected 1, 4, or 5 arguments; received %i." % len(args)) # Process keyword arguments - remove_useless = kwargs.get( - 'remove_useless', + remove_useless_states = kwargs.get( + 'remove_useless_states', config.defaults['statesp.remove_useless_states']) # Convert all matrices to standard form @@ -321,7 +327,7 @@ def __init__(self, *args, **kwargs): raise ValueError("C and D must have the same number of rows.") # Check for states that don't do anything, and remove them. - if remove_useless: + if remove_useless_states: self._remove_useless_states() def _remove_useless_states(self): @@ -1274,7 +1280,7 @@ def _convert_to_statespace(sys, **kw): # Generate a simple state space system of the desired dimension # The following Doesn't work due to inconsistencies in ltisys: # return StateSpace([[]], [[]], [[]], eye(outputs, inputs)) - return StateSpace(0., zeros((1, inputs)), zeros((outputs, 1)), + return StateSpace([], zeros((0, inputs)), zeros((outputs, 0)), sys * ones((outputs, inputs))) # If this is a matrix, try to create a constant feedthrough diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 8a91da68b..ccbd06881 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -395,9 +395,7 @@ def test_is_static_gain(self): D0 = 0 D1 = np.ones((2,1)) assert StateSpace(A0, B0, C1, D1).is_static_gain() - # TODO: fix this once remove_useless_states is false by default - # should be False when remove_useless is false - # print(StateSpace(A1, B0, C1, D1).is_static_gain()) + assert not StateSpace(A1, B0, C1, D1).is_static_gain() assert not StateSpace(A0, B1, C1, D1).is_static_gain() assert not StateSpace(A1, B1, C1, D1).is_static_gain() assert StateSpace(A0, B0, C0, D0).is_static_gain() @@ -586,10 +584,9 @@ def test_matrix_static_gain(self): def test_remove_useless_states(self): """Regression: _remove_useless_states gives correct ABC sizes.""" - g1 = StateSpace(np.zeros((3, 3)), - np.zeros((3, 4)), - np.zeros((5, 3)), - np.zeros((5, 4))) + g1 = StateSpace(np.zeros((3, 3)), np.zeros((3, 4)), + np.zeros((5, 3)), np.zeros((5, 4)), + remove_useless_states=True) assert (0, 0) == g1.A.shape assert (0, 4) == g1.B.shape assert (5, 0) == g1.C.shape From f367cf657c295e612c53e9208901ed7f4be5ee85 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 17 Jan 2021 08:18:51 -0800 Subject: [PATCH 107/260] unify frequency response processing + unit tests --- control/frdata.py | 14 ++++-------- control/lti.py | 16 +++++++++++++ control/statesp.py | 20 ++++------------ control/tests/lti_test.py | 48 ++++++++++++++++++++++++++++++++++++++- control/xferfcn.py | 15 ++---------- 5 files changed, 75 insertions(+), 38 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index e6792a430..1617daa0a 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -50,7 +50,7 @@ from numpy import angle, array, empty, ones, \ real, imag, absolute, eye, linalg, where, dot, sort from scipy.interpolate import splprep, splev -from .lti import LTI +from .lti import LTI, _process_frequency_response from . import config __all__ = ['FrequencyResponseData', 'FRD', 'frd'] @@ -391,14 +391,10 @@ def eval(self, omega, squeeze=None): for k, w in enumerate(omega_array): frraw = splev(w, self.ifunc[i, j], der=0) out[i, j, k] = frraw[0] + 1.0j * frraw[1] - if not hasattr(omega, '__len__'): - # omega is a scalar, squeeze down array along last dim - out = np.squeeze(out, axis=2) - if squeeze and self.issiso(): - out = out[0][0] - return out - - def __call__(self, s, squeeze=True): + + return _process_frequency_response(self, omega, out, squeeze=squeeze) + + def __call__(self, s, squeeze=None): """Evaluate system's transfer function at complex frequencies. Returns the complex frequency response `sys(s)` of system `sys` with diff --git a/control/lti.py b/control/lti.py index 5e15150bf..d554a2c24 100644 --- a/control/lti.py +++ b/control/lti.py @@ -15,6 +15,7 @@ import numpy as np from numpy import absolute, real, angle, abs from warnings import warn +from . import config __all__ = ['issiso', 'timebase', 'common_timebase', 'timebaseEqual', 'isdtime', 'isctime', 'pole', 'zero', 'damp', 'evalfr', @@ -596,3 +597,18 @@ def dcgain(sys): at the origin """ return sys.dcgain() + + +# Process frequency responses in a uniform way +def _process_frequency_response(sys, omega, out, squeeze=None): + if not hasattr(omega, '__len__'): + # received a scalar x, squeeze down the array along last dim + out = np.squeeze(out, axis=2) + + # Get rid of unneeded dimensions + if squeeze is None: + squeeze = config.defaults['control.squeeze'] + if squeeze and sys.issiso(): + return out[0][0] + else: + return out diff --git a/control/statesp.py b/control/statesp.py index 798eeff06..e48052c04 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -62,7 +62,7 @@ from scipy.signal import cont2discrete from scipy.signal import StateSpace as signalStateSpace from warnings import warn -from .lti import LTI, common_timebase, isdtime +from .lti import LTI, common_timebase, isdtime, _process_frequency_response from . import config from copy import deepcopy @@ -646,9 +646,9 @@ def __call__(self, x, squeeze=None): Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. - In general the system may be multiple input, multiple output (MIMO), where - `m = self.inputs` number of inputs and `p = self.outputs` number of - outputs. + In general the system may be multiple input, multiple output + (MIMO), where `m = self.inputs` number of inputs and `p = + self.outputs` number of outputs. To evaluate at a frequency omega in radians per second, enter ``x = omega * 1j``, for continuous-time systems, or @@ -671,19 +671,9 @@ def __call__(self, x, squeeze=None): only if system is SISO and ``squeeze=True``. """ - # Set value of squeeze argument if not set - if squeeze is None: - squeeze = config.defaults['control.squeeze'] - # Use Slycot if available out = self.horner(x) - if not hasattr(x, '__len__'): - # received a scalar x, squeeze down the array along last dim - out = np.squeeze(out, axis=2) - if squeeze and self.issiso(): - return out[0][0] - else: - return out + return _process_frequency_response(self, x, out, squeeze=squeeze) def slycot_laub(self, x): """Evaluate system's transfer function at complex frequency diff --git a/control/tests/lti_test.py b/control/tests/lti_test.py index ee9d95a09..511d976f5 100644 --- a/control/tests/lti_test.py +++ b/control/tests/lti_test.py @@ -2,12 +2,14 @@ import numpy as np import pytest +from .conftest import editsdefaults +import control as ct from control import c2d, tf, tf2ss, NonlinearIOSystem from control.lti import (LTI, common_timebase, damp, dcgain, isctime, isdtime, issiso, pole, timebaseEqual, zero) from control.tests.conftest import slycotonly - +from control.exception import slycot_check class TestLTI: @@ -153,3 +155,47 @@ def test_isdtime(self, objfun, arg, dt, ref, strictref): strictref = not strictref assert isctime(obj) == ref assert isctime(obj, strict=True) == strictref + + @pytest.mark.usefixtures("editsdefaults") + @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.frd]) + @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape", [ + [1, 1, 1, None, (8,)], # SISO + [2, 1, 1, True, (8,)], + [3, 1, 1, False, (1, 1, 8)], + [1, 2, 1, None, (2, 1, 8)], # SIMO + [2, 2, 1, True, (2, 1, 8)], + [3, 2, 1, False, (2, 1, 8)], + [1, 1, 2, None, (1, 2, 8)], # MISO + [2, 1, 2, True, (1, 2, 8)], + [3, 1, 2, False, (1, 2, 8)], + [1, 2, 2, None, (2, 2, 8)], # MIMO + [2, 2, 2, True, (2, 2, 8)], + [3, 2, 2, False, (2, 2, 8)] + ]) + def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): + # Compute the length of the frequency array + omega = np.logspace(-2, 2, 8) + + # Create the system to be tested + if fcn == ct.frd: + sys = fcn(ct.rss(nstate, nout, ninp), omega) + elif fcn == ct.tf and (nout > 1 or ninp > 1) and not slycot_check(): + pytest.skip("Conversion of MIMO systems to transfer functions " + "requires slycot.") + else: + sys = fcn(ct.rss(nstate, nout, ninp)) + + # Pass squeeze argument and make sure the shape is correct + mag, phase, _ = sys.frequency_response(omega, squeeze=squeeze) + assert mag.shape == shape + assert phase.shape == shape + assert sys(omega * 1j, squeeze=squeeze).shape == shape + assert ct.evalfr(sys, omega * 1j, squeeze=squeeze).shape == shape + + # Changing config.default to False should return 3D frequency response + ct.config.set_defaults('control', squeeze=False) + mag, phase, _ = sys.frequency_response(omega) + assert mag.shape == (sys.outputs, sys.inputs, 8) + assert phase.shape == (sys.outputs, sys.inputs, 8) + assert sys(omega * 1j).shape == (sys.outputs, sys.inputs, 8) + assert ct.evalfr(sys, omega * 1j).shape == (sys.outputs, sys.inputs, 8) diff --git a/control/xferfcn.py b/control/xferfcn.py index f4aa201d7..3dfdb86e7 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -63,7 +63,7 @@ from warnings import warn from itertools import chain from re import sub -from .lti import LTI, common_timebase, isdtime +from .lti import LTI, common_timebase, isdtime, _process_frequency_response from . import config __all__ = ['TransferFunction', 'tf', 'ss2tf', 'tfdata'] @@ -265,19 +265,8 @@ def __call__(self, x, squeeze=None): only if system is SISO and ``squeeze=True``. """ - # Set value of squeeze argument if not set - if squeeze is None: - squeeze = config.defaults['control.squeeze'] - out = self.horner(x) - if not hasattr(x, '__len__'): - # received a scalar x, squeeze down the array along last dim - out = np.squeeze(out, axis=2) - if squeeze and self.issiso(): - # return a scalar/1d array of outputs - return out[0][0] - else: - return out + return _process_frequency_response(self, x, out, squeeze=squeeze) def horner(self, x): """Evaluate system's transfer function at complex frequency From 451d6d20f9d171893c9635c6d311c8b4f26e3051 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 17 Jan 2021 08:28:56 -0800 Subject: [PATCH 108/260] change control.squeeze to control.squeeze_frequency_response --- control/config.py | 2 +- control/frdata.py | 8 ++++---- control/lti.py | 8 ++++---- control/statesp.py | 2 +- control/tests/lti_test.py | 4 ++-- control/xferfcn.py | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/control/config.py b/control/config.py index 0d7c93ae9..026e76240 100644 --- a/control/config.py +++ b/control/config.py @@ -16,7 +16,7 @@ # Package level default values _control_defaults = { 'control.default_dt': 0, - 'control.squeeze': True + 'control.squeeze_frequency_response': True } defaults = dict(_control_defaults) diff --git a/control/frdata.py b/control/frdata.py index 1617daa0a..c2e2ccfa3 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -358,7 +358,7 @@ def eval(self, omega, squeeze=None): squeeze : bool, optional (default=True) If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze']. + set by config.defaults['control.squeeze_frequency_response']. Returns ------- @@ -369,7 +369,7 @@ def eval(self, omega, squeeze=None): """ # Set value of squeeze argument if not set if squeeze is None: - squeeze = config.defaults['control.squeeze'] + squeeze = config.defaults['control.squeeze_frequency_response'] omega_array = np.array(omega, ndmin=1) # array-like version of omega if any(omega_array.imag > 0): @@ -411,7 +411,7 @@ def __call__(self, s, squeeze=None): squeeze : bool, optional (default=True) If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze']. + set by config.defaults['control.squeeze_frequency_response']. Returns ------- @@ -429,7 +429,7 @@ def __call__(self, s, squeeze=None): """ # Set value of squeeze argument if not set if squeeze is None: - squeeze = config.defaults['control.squeeze'] + squeeze = config.defaults['control.squeeze_frequency_response'] if any(abs(np.array(s, ndmin=1).real) > 0): raise ValueError("__call__: FRD systems can only accept " diff --git a/control/lti.py b/control/lti.py index d554a2c24..18904a245 100644 --- a/control/lti.py +++ b/control/lti.py @@ -137,7 +137,7 @@ def frequency_response(self, omega, squeeze=None): squeeze : bool, optional If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze']. + set by config.defaults['control.squeeze_frequency_response']. Returns ------- @@ -487,7 +487,7 @@ def evalfr(sys, x, squeeze=None): squeeze : bool, optional (default=True) If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) set by - config.defaults['control.squeeze']. + config.defaults['control.squeeze_frequency_response']. Returns ------- @@ -535,7 +535,7 @@ def freqresp(sys, omega, squeeze=None): squeeze : bool, optional (default=True) If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) set by - config.defaults['control.squeeze']. + config.defaults['control.squeeze_frequency_response']. Returns ------- @@ -607,7 +607,7 @@ def _process_frequency_response(sys, omega, out, squeeze=None): # Get rid of unneeded dimensions if squeeze is None: - squeeze = config.defaults['control.squeeze'] + squeeze = config.defaults['control.squeeze_frequency_response'] if squeeze and sys.issiso(): return out[0][0] else: diff --git a/control/statesp.py b/control/statesp.py index e48052c04..1561ff21c 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -662,7 +662,7 @@ def __call__(self, x, squeeze=None): squeeze : bool, optional If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze']. + set by config.defaults['control.squeeze_frequency_response']. Returns ------- diff --git a/control/tests/lti_test.py b/control/tests/lti_test.py index 511d976f5..f09daa97e 100644 --- a/control/tests/lti_test.py +++ b/control/tests/lti_test.py @@ -157,7 +157,7 @@ def test_isdtime(self, objfun, arg, dt, ref, strictref): assert isctime(obj, strict=True) == strictref @pytest.mark.usefixtures("editsdefaults") - @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.frd]) + @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.frd, ct.ss2io]) @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape", [ [1, 1, 1, None, (8,)], # SISO [2, 1, 1, True, (8,)], @@ -193,7 +193,7 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): assert ct.evalfr(sys, omega * 1j, squeeze=squeeze).shape == shape # Changing config.default to False should return 3D frequency response - ct.config.set_defaults('control', squeeze=False) + ct.config.set_defaults('control', squeeze_frequency_response=False) mag, phase, _ = sys.frequency_response(omega) assert mag.shape == (sys.outputs, sys.inputs, 8) assert phase.shape == (sys.outputs, sys.inputs, 8) diff --git a/control/xferfcn.py b/control/xferfcn.py index 3dfdb86e7..cea50d3c0 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -256,7 +256,7 @@ def __call__(self, x, squeeze=None): squeeze : bool, optional (default=True) If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze']. + set by config.defaults['control.squeeze_frequency_response']. Returns ------- From 90da4fbdf102f371449fc992d9b80cc611b16533 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 17 Jan 2021 12:33:13 -0800 Subject: [PATCH 109/260] update squeeze processing for freq response + unit tests, doc updates --- control/config.py | 2 +- control/frdata.py | 62 ++++++++++++++--------- control/lti.py | 87 +++++++++++++++++++++----------- control/margins.py | 14 +++--- control/statesp.py | 33 ++++++++---- control/tests/lti_test.py | 103 ++++++++++++++++++++++++++++---------- control/xferfcn.py | 34 +++++++++---- 7 files changed, 230 insertions(+), 105 deletions(-) diff --git a/control/config.py b/control/config.py index 026e76240..8ffe06845 100644 --- a/control/config.py +++ b/control/config.py @@ -16,7 +16,7 @@ # Package level default values _control_defaults = { 'control.default_dt': 0, - 'control.squeeze_frequency_response': True + 'control.squeeze_frequency_response': None } defaults = dict(_control_defaults) diff --git a/control/frdata.py b/control/frdata.py index c2e2ccfa3..b91f2e645 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -353,25 +353,33 @@ def eval(self, omega, squeeze=None): Parameters ---------- - omega : float or array_like + omega : float or 1D array_like Frequencies in radians per second - squeeze : bool, optional (default=True) - If True and the system is single-input single-output (SISO), - return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze_frequency_response']. + squeeze : bool, optional + If squeeze=True, remove single-dimensional entries from the shape + of the output even if the system is not SISO. If squeeze=False, + keep all indices (output, input and, if omega is array_like, + frequency) even if the system is SISO. The default value can be + set using config.defaults['control.squeeze_frequency_response']. Returns ------- - fresp : (self.outputs, self.inputs, len(x)) or (len(x), ) complex ndarray - The frequency response of the system. Array is ``len(x)`` - if and only if system is SISO and ``squeeze=True``. + fresp : complex ndarray + The frequency response of the system. If the system is SISO and + squeeze is not True, the shape of the array matches the shape of + omega. If the system is not SISO or squeeze is False, the first + two dimensions of the array are indices for the output and input + and the remaining dimensions match omega. If ``squeeze`` is True + then single-dimensional axes are removed. """ - # Set value of squeeze argument if not set - if squeeze is None: - squeeze = config.defaults['control.squeeze_frequency_response'] - omega_array = np.array(omega, ndmin=1) # array-like version of omega + + # Make sure that we are operating on a simple list + if len(omega_array.shape) > 1: + raise ValueError("input list must be 1D") + + # Make sure that frequencies are all real-valued if any(omega_array.imag > 0): raise ValueError("FRD.eval can only accept real-valued omega") @@ -396,7 +404,7 @@ def eval(self, omega, squeeze=None): def __call__(self, s, squeeze=None): """Evaluate system's transfer function at complex frequencies. - + Returns the complex frequency response `sys(s)` of system `sys` with `m = sys.inputs` number of inputs and `p = sys.outputs` number of outputs. @@ -406,19 +414,24 @@ def __call__(self, s, squeeze=None): Parameters ---------- - s : complex scalar or array_like + s : complex scalar or 1D array_like Complex frequencies squeeze : bool, optional (default=True) - If True and the system is single-input single-output (SISO), - return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze_frequency_response']. + If squeeze=True, remove single-dimensional entries from the shape + of the output even if the system is not SISO. If squeeze=False, + keep all indices (output, input and, if omega is array_like, + frequency) even if the system is SISO. The default value can be + set using config.defaults['control.squeeze_frequency_response']. Returns ------- - fresp : (p, m, len(s)) complex ndarray or (len(s),) complex ndarray - The frequency response of the system. Array is ``(len(s), )`` if - and only if system is SISO and ``squeeze=True``. - + fresp : complex ndarray + The frequency response of the system. If the system is SISO and + squeeze is not True, the shape of the array matches the shape of + omega. If the system is not SISO or squeeze is False, the first + two dimensions of the array are indices for the output and input + and the remaining dimensions match omega. If ``squeeze`` is True + then single-dimensional axes are removed. Raises ------ @@ -427,13 +440,14 @@ def __call__(self, s, squeeze=None): :class:`FrequencyDomainData` systems are only defined at imaginary frequency values. """ - # Set value of squeeze argument if not set - if squeeze is None: - squeeze = config.defaults['control.squeeze_frequency_response'] + # Make sure that we are operating on a simple list + if len(np.array(s, ndmin=1).shape) > 1: + raise ValueError("input list must be 1D") if any(abs(np.array(s, ndmin=1).real) > 0): raise ValueError("__call__: FRD systems can only accept " "purely imaginary frequencies") + # need to preserve array or scalar status if hasattr(s, '__len__'): return self.eval(np.asarray(s).imag, squeeze=squeeze) diff --git a/control/lti.py b/control/lti.py index 18904a245..514944f75 100644 --- a/control/lti.py +++ b/control/lti.py @@ -131,21 +131,26 @@ def frequency_response(self, omega, squeeze=None): Parameters ---------- - omega : float or array_like + omega : float or 1D array_like A list, tuple, array, or scalar value of frequencies in radians/sec at which the system will be evaluated. squeeze : bool, optional - If True and the system is single-input single-output (SISO), - return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze_frequency_response']. + If squeeze=True, remove single-dimensional entries from the shape + of the output even if the system is not SISO. If squeeze=False, + keep all indices (output, input and, if omega is array_like, + frequency) even if the system is SISO. The default value can be + set using config.defaults['control.squeeze_frequency_response']. Returns ------- - mag : (p, m, len(omega)) ndarray or (len(omega),) ndarray + mag : ndarray The magnitude (absolute value, not dB or log10) of the system - frequency response. Array is ``(len(omega), )`` if - and only if system is SISO and ``squeeze=True``. - phase : (p, m, len(omega)) ndarray or (len(omega),) ndarray + frequency response. If the system is SISO and squeeze is not + True, the array is 1D, indexed by frequency. If the system is not + SISO or squeeze is False, the array is 3D, indexed by the output, + input, and frequency. If ``squeeze`` is True then + single-dimensional axes are removed. + phase : ndarray The wrapped phase in radians of the system frequency response. omega : ndarray The (sorted) frequencies at which the response was evaluated. @@ -482,18 +487,24 @@ def evalfr(sys, x, squeeze=None): ---------- sys: StateSpace or TransferFunction Linear system - x : complex scalar or array_like + x : complex scalar or 1D array_like Complex frequency(s) squeeze : bool, optional (default=True) - If True and the system is single-input single-output (SISO), return a - 1D array rather than a 3D array. Default value (True) set by + If squeeze=True, remove single-dimensional entries from the shape of + the output even if the system is not SISO. If squeeze=False, keep all + indices (output, input and, if omega is array_like, frequency) even if + the system is SISO. The default value can be set using config.defaults['control.squeeze_frequency_response']. Returns ------- - fresp : (p, m, len(x)) complex ndarray or (len(x),) complex ndarray - The frequency response of the system. Array is ``(len(x), )`` if - and only if system is SISO and ``squeeze=True``. + fresp : complex ndarray + The frequency response of the system. If the system is SISO and + squeeze is not True, the shape of the array matches the shape of + omega. If the system is not SISO or squeeze is False, the first two + dimensions of the array are indices for the output and input and the + remaining dimensions match omega. If ``squeeze`` is True then + single-dimensional axes are removed. See Also -------- @@ -519,7 +530,7 @@ def evalfr(sys, x, squeeze=None): def freqresp(sys, omega, squeeze=None): """Frequency response of an LTI system at multiple angular frequencies. - + In general the system may be multiple input, multiple output (MIMO), where `m = sys.inputs` number of inputs and `p = sys.outputs` number of outputs. @@ -528,23 +539,27 @@ def freqresp(sys, omega, squeeze=None): ---------- sys: StateSpace or TransferFunction Linear system - omega : float or array_like + omega : float or 1D array_like A list of frequencies in radians/sec at which the system should be evaluated. The list can be either a python list or a numpy array and will be sorted before evaluation. - squeeze : bool, optional (default=True) - If True and the system is single-input single-output (SISO), return a - 1D array rather than a 3D array. Default value (True) set by + squeeze : bool, optional + If squeeze=True, remove single-dimensional entries from the shape of + the output even if the system is not SISO. If squeeze=False, keep all + indices (output, input and, if omega is array_like, frequency) even if + the system is SISO. The default value can be set using config.defaults['control.squeeze_frequency_response']. Returns ------- - mag : (p, m, len(omega)) ndarray or (len(omega),) ndarray + mag : ndarray The magnitude (absolute value, not dB or log10) of the system - frequency response. Array is ``(len(omega), )`` if and only if system - is SISO and ``squeeze=True``. - - phase : (p, m, len(omega)) ndarray or (len(omega),) ndarray + frequency response. If the system is SISO and squeeze is not True, + the array is 1D, indexed by frequency. If the system is not SISO or + squeeze is False, the array is 3D, indexed by the output, input, and + frequency. If ``squeeze`` is True then single-dimensional axes are + removed. + phase : ndarray The wrapped phase in radians of the system frequency response. omega : ndarray The list of sorted frequencies at which the response was @@ -601,14 +616,30 @@ def dcgain(sys): # Process frequency responses in a uniform way def _process_frequency_response(sys, omega, out, squeeze=None): + # Set value of squeeze argument if not set + if squeeze is None: + squeeze = config.defaults['control.squeeze_frequency_response'] + if not hasattr(omega, '__len__'): # received a scalar x, squeeze down the array along last dim out = np.squeeze(out, axis=2) + # # Get rid of unneeded dimensions - if squeeze is None: - squeeze = config.defaults['control.squeeze_frequency_response'] - if squeeze and sys.issiso(): + # + # There are three possible values for the squeeze keyword at this point: + # + # squeeze=None: squeeze input/output axes iff SISO + # squeeze=True: squeeze all single dimensional axes (ala numpy) + # squeeze-False: don't squeeze any axes + # + if squeeze is True: + # Squeeze everything that we can if that's what the user wants + return np.squeeze(out) + elif squeeze is None and sys.issiso(): + # SISO system output squeezed unless explicitly specified otherwise return out[0][0] - else: + elif squeeze is False or squeeze is None: return out + else: + raise ValueError("unknown squeeze value") diff --git a/control/margins.py b/control/margins.py index 0bbf2e30b..20da2a879 100644 --- a/control/margins.py +++ b/control/margins.py @@ -294,25 +294,25 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): # frequency for gain margin: phase crosses -180 degrees w_180 = _poly_iw_real_crossing(num_iw, den_iw, epsw) with np.errstate(all='ignore'): # den=0 is okay - w180_resp = evalfr(sys, 1J * w_180, squeeze=True) + w180_resp = evalfr(sys, 1J * w_180) # frequency for phase margin : gain crosses magnitude 1 wc = _poly_iw_mag1_crossing(num_iw, den_iw, epsw) - wc_resp = evalfr(sys, 1J * wc, squeeze=True) + wc_resp = evalfr(sys, 1J * wc) # stability margin wstab = _poly_iw_wstab(num_iw, den_iw, epsw) - ws_resp = evalfr(sys, 1J * wstab, squeeze=True) + ws_resp = evalfr(sys, 1J * wstab) else: # Discrete Time zargs = _poly_z_invz(sys) # gain margin z, w_180 = _poly_z_real_crossing(*zargs, epsw=epsw) - w180_resp = evalfr(sys, z, squeeze=True) + w180_resp = evalfr(sys, z) # phase margin z, wc = _poly_z_mag1_crossing(*zargs, epsw=epsw) - wc_resp = evalfr(sys, z, squeeze=True) + wc_resp = evalfr(sys, z) # stability margin z, wstab = _poly_z_wstab(*zargs, epsw=epsw) @@ -437,11 +437,11 @@ def phase_crossover_frequencies(sys): omega = _poly_iw_real_crossing(num_iw, den_iw, 0.) # using real() to avoid rounding errors and results like 1+0j - gain = np.real(evalfr(sys, 1J * omega, squeeze=True)) + gain = np.real(evalfr(sys, 1J * omega)) else: zargs = _poly_z_invz(sys) z, omega = _poly_z_real_crossing(*zargs, epsw=0.) - gain = np.real(evalfr(sys, z, squeeze=True)) + gain = np.real(evalfr(sys, z)) return omega, gain diff --git a/control/statesp.py b/control/statesp.py index 1561ff21c..7c1b311b2 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -645,7 +645,7 @@ def __call__(self, x, squeeze=None): Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. - + In general the system may be multiple input, multiple output (MIMO), where `m = self.inputs` number of inputs and `p = self.outputs` number of outputs. @@ -657,18 +657,24 @@ def __call__(self, x, squeeze=None): Parameters ---------- - x : complex or complex array_like + x : complex or complex 1D array_like Complex frequencies squeeze : bool, optional - If True and the system is single-input single-output (SISO), - return a 1D array rather than a 3D array. Default value (True) - set by config.defaults['control.squeeze_frequency_response']. + If squeeze=True, remove single-dimensional entries from the shape + of the output even if the system is not SISO. If squeeze=False, + keep all indices (output, input and, if omega is array_like, + frequency) even if the system is SISO. The default value can be + set using config.defaults['control.squeeze_frequency_response']. Returns ------- - fresp : (p, m, len(x)) complex ndarray or (len(x),) complex ndarray - The frequency response of the system. Array is ``len(x)`` if and - only if system is SISO and ``squeeze=True``. + fresp : complex ndarray + The frequency response of the system. If the system is SISO and + squeeze is not True, the shape of the array matches the shape of + omega. If the system is not SISO or squeeze is False, the first + two dimensions of the array are indices for the output and input + and the remaining dimensions match omega. If ``squeeze`` is True + then single-dimensional axes are removed. """ # Use Slycot if available @@ -693,9 +699,13 @@ def slycot_laub(self, x): Frequency response """ from slycot import tb05ad + x_arr = np.atleast_1d(x) # array-like version of x + + # Make sure that we are operating on a simple list + if len(x_arr.shape) > 1: + raise ValueError("input list must be 1D") # preallocate - x_arr = np.atleast_1d(x) # array-like version of x n = self.states m = self.inputs p = self.outputs @@ -755,6 +765,11 @@ def horner(self, x): # Fall back because either Slycot unavailable or cannot handle # certain cases. x_arr = np.atleast_1d(x) # force to be an array + + # Make sure that we are operating on a simple list + if len(x_arr.shape) > 1: + raise ValueError("input list must be 1D") + # Preallocate out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) diff --git a/control/tests/lti_test.py b/control/tests/lti_test.py index f09daa97e..e165f9c60 100644 --- a/control/tests/lti_test.py +++ b/control/tests/lti_test.py @@ -158,44 +158,95 @@ def test_isdtime(self, objfun, arg, dt, ref, strictref): @pytest.mark.usefixtures("editsdefaults") @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.frd, ct.ss2io]) - @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape", [ - [1, 1, 1, None, (8,)], # SISO - [2, 1, 1, True, (8,)], - [3, 1, 1, False, (1, 1, 8)], - [1, 2, 1, None, (2, 1, 8)], # SIMO - [2, 2, 1, True, (2, 1, 8)], - [3, 2, 1, False, (2, 1, 8)], - [1, 1, 2, None, (1, 2, 8)], # MISO - [2, 1, 2, True, (1, 2, 8)], - [3, 1, 2, False, (1, 2, 8)], - [1, 2, 2, None, (2, 2, 8)], # MIMO - [2, 2, 2, True, (2, 2, 8)], - [3, 2, 2, False, (2, 2, 8)] + @pytest.mark.parametrize("nstate, nout, ninp, omega, squeeze, shape", [ + [1, 1, 1, 0.1, None, ()], # SISO + [1, 1, 1, [0.1], None, (1,)], + [1, 1, 1, [0.1, 1, 10], None, (3,)], + [2, 1, 1, 0.1, True, ()], + [2, 1, 1, [0.1], True, ()], + [2, 1, 1, [0.1, 1, 10], True, (3,)], + [3, 1, 1, 0.1, False, (1, 1)], + [3, 1, 1, [0.1], False, (1, 1, 1)], + [3, 1, 1, [0.1, 1, 10], False, (1, 1, 3)], + [1, 2, 1, 0.1, None, (2, 1)], # SIMO + [1, 2, 1, [0.1], None, (2, 1, 1)], + [1, 2, 1, [0.1, 1, 10], None, (2, 1, 3)], + [2, 2, 1, 0.1, True, (2,)], + [2, 2, 1, [0.1], True, (2,)], + [3, 2, 1, 0.1, False, (2, 1)], + [3, 2, 1, [0.1], False, (2, 1, 1)], + [3, 2, 1, [0.1, 1, 10], False, (2, 1, 3)], + [1, 1, 2, [0.1, 1, 10], None, (1, 2, 3)], # MISO + [2, 1, 2, [0.1, 1, 10], True, (2, 3)], + [3, 1, 2, [0.1, 1, 10], False, (1, 2, 3)], + [1, 2, 2, [0.1, 1, 10], None, (2, 2, 3)], # MIMO + [2, 2, 2, [0.1, 1, 10], True, (2, 2, 3)], + [3, 2, 2, [0.1, 1, 10], False, (2, 2, 3)] ]) - def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): - # Compute the length of the frequency array - omega = np.logspace(-2, 2, 8) - + def test_squeeze(self, fcn, nstate, nout, ninp, omega, squeeze, shape): # Create the system to be tested if fcn == ct.frd: - sys = fcn(ct.rss(nstate, nout, ninp), omega) + sys = fcn(ct.rss(nstate, nout, ninp), [1e-2, 1e-1, 1, 1e1, 1e2]) elif fcn == ct.tf and (nout > 1 or ninp > 1) and not slycot_check(): pytest.skip("Conversion of MIMO systems to transfer functions " "requires slycot.") else: sys = fcn(ct.rss(nstate, nout, ninp)) - # Pass squeeze argument and make sure the shape is correct - mag, phase, _ = sys.frequency_response(omega, squeeze=squeeze) - assert mag.shape == shape - assert phase.shape == shape + # Convert the frequency list to an array for easy of use + isscalar = not hasattr(omega, '__len__') + omega = np.array(omega) + + # Call the transfer function directly and make sure shape is correct assert sys(omega * 1j, squeeze=squeeze).shape == shape + + # Make sure that evalfr also works as expected assert ct.evalfr(sys, omega * 1j, squeeze=squeeze).shape == shape + # Check frequency response + mag, phase, _ = sys.frequency_response(omega, squeeze=squeeze) + if isscalar and squeeze is not True: + # sys.frequency_response() expects a list as an argument + # Add the shape of the input to the expected shape + assert mag.shape == shape + (1,) + assert phase.shape == shape + (1,) + else: + assert mag.shape == shape + assert phase.shape == shape + + # Make sure the default shape lines up with squeeze=None case + if squeeze is None: + assert sys(omega * 1j).shape == shape + # Changing config.default to False should return 3D frequency response ct.config.set_defaults('control', squeeze_frequency_response=False) mag, phase, _ = sys.frequency_response(omega) - assert mag.shape == (sys.outputs, sys.inputs, 8) - assert phase.shape == (sys.outputs, sys.inputs, 8) - assert sys(omega * 1j).shape == (sys.outputs, sys.inputs, 8) - assert ct.evalfr(sys, omega * 1j).shape == (sys.outputs, sys.inputs, 8) + if isscalar: + assert mag.shape == (sys.outputs, sys.inputs, 1) + assert phase.shape == (sys.outputs, sys.inputs, 1) + assert sys(omega * 1j).shape == (sys.outputs, sys.inputs) + assert ct.evalfr(sys, omega * 1j).shape == (sys.outputs, sys.inputs) + else: + assert mag.shape == (sys.outputs, sys.inputs, len(omega)) + assert phase.shape == (sys.outputs, sys.inputs, len(omega)) + assert sys(omega * 1j).shape == \ + (sys.outputs, sys.inputs, len(omega)) + assert ct.evalfr(sys, omega * 1j).shape == \ + (sys.outputs, sys.inputs, len(omega)) + + @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.frd, ct.ss2io]) + def test_squeeze_exceptions(self, fcn): + if fcn == ct.frd: + sys = fcn(ct.rss(2, 1, 1), [1e-2, 1e-1, 1, 1e1, 1e2]) + else: + sys = fcn(ct.rss(2, 1, 1)) + + with pytest.raises(ValueError, match="unknown squeeze value"): + sys.frequency_response([1], squeeze=1) + sys([1], squeeze='siso') + evalfr(sys, [1], squeeze='siso') + + with pytest.raises(ValueError, match="must be 1D"): + sys.frequency_response([[0.1, 1], [1, 10]]) + sys([[0.1, 1], [1, 10]]) + evalfr(sys, [[0.1, 1], [1, 10]]) diff --git a/control/xferfcn.py b/control/xferfcn.py index cea50d3c0..b732bafc0 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -240,10 +240,10 @@ def __call__(self, x, squeeze=None): Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. - In general the system may be multiple input, multiple output (MIMO), where - `m = self.inputs` number of inputs and `p = self.outputs` number of - outputs. - + In general the system may be multiple input, multiple output + (MIMO), where `m = self.inputs` number of inputs and `p = + self.outputs` number of outputs. + To evaluate at a frequency omega in radians per second, enter ``x = omega * 1j``, for continuous-time systems, or ``x = exp(1j * omega * dt)`` for discrete-time systems. Or use @@ -251,18 +251,27 @@ def __call__(self, x, squeeze=None): Parameters ---------- - x : complex array_like or complex + x : complex or complex 1D array_like Complex frequencies - squeeze : bool, optional (default=True) + squeeze : bool, optional + If squeeze=True, remove single-dimensional entries from the shape + of the output even if the system is not SISO. If squeeze=False, + keep all indices (output, input and, if omega is array_like, + frequency) even if the system is SISO. The default value can be + set using config.defaults['control.squeeze_frequency_response']. If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) set by config.defaults['control.squeeze_frequency_response']. Returns ------- - fresp : (p, m, len(x)) complex ndarray or or (len(x), ) complex ndarray - The frequency response of the system. Array is `len(x)` if and - only if system is SISO and ``squeeze=True``. + fresp : complex ndarray + The frequency response of the system. If the system is SISO and + squeeze is not True, the shape of the array matches the shape of + omega. If the system is not SISO or squeeze is False, the first + two dimensions of the array are indices for the output and input + and the remaining dimensions match omega. If ``squeeze`` is True + then single-dimensional axes are removed. """ out = self.horner(x) @@ -289,7 +298,12 @@ def horner(self, x): Frequency response """ - x_arr = np.atleast_1d(x) # force to be an array + x_arr = np.atleast_1d(x) # force to be an array + + # Make sure that we are operating on a simple list + if len(x_arr.shape) > 1: + raise ValueError("input list must be 1D") + out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) for i in range(self.outputs): for j in range(self.inputs): From b338e32e95ec154d3cb40b58c7d5eb157b6becbf Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 18 Jan 2021 08:31:41 -0800 Subject: [PATCH 110/260] address @sawyerbfuller review comments --- control/frdata.py | 4 ++-- control/statesp.py | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index b91f2e645..844ac9ab9 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -441,10 +441,10 @@ def __call__(self, s, squeeze=None): frequency values. """ # Make sure that we are operating on a simple list - if len(np.array(s, ndmin=1).shape) > 1: + if len(np.atleast_1d(s).shape) > 1: raise ValueError("input list must be 1D") - if any(abs(np.array(s, ndmin=1).real) > 0): + if any(abs(np.atleast_1d(s).real) > 0): raise ValueError("__call__: FRD systems can only accept " "purely imaginary frequencies") diff --git a/control/statesp.py b/control/statesp.py index 7c1b311b2..df4be85e6 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -646,10 +646,6 @@ def __call__(self, x, squeeze=None): Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems. - In general the system may be multiple input, multiple output - (MIMO), where `m = self.inputs` number of inputs and `p = - self.outputs` number of outputs. - To evaluate at a frequency omega in radians per second, enter ``x = omega * 1j``, for continuous-time systems, or ``x = exp(1j * omega * dt)`` for discrete-time systems. Or use From 8bb8e2219081a705e5376cd3d295f2620f353b01 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 16 Jan 2021 15:50:00 -0800 Subject: [PATCH 111/260] standardize time response return values, return_x/squeeze keywords --- control/config.py | 8 +- control/iosys.py | 28 ++-- control/matlab/timeresp.py | 38 +++--- control/tests/config_test.py | 11 +- control/tests/discrete_test.py | 8 +- control/tests/flatsys_test.py | 2 +- control/tests/iosys_test.py | 55 ++++---- control/tests/modelsimp_test.py | 4 +- control/tests/timeresp_test.py | 150 ++++++++++++++++++++- control/timeresp.py | 231 +++++++++++++++++++------------- 10 files changed, 357 insertions(+), 178 deletions(-) diff --git a/control/config.py b/control/config.py index 9ac953e11..6a8fb8db6 100644 --- a/control/config.py +++ b/control/config.py @@ -16,7 +16,9 @@ # Package level default values _control_defaults = { 'control.default_dt': 0, - 'control.squeeze_frequency_response': None + 'control.squeeze_frequency_response': None, + 'control.squeeze_time_response': True, + 'forced_response.return_x': False, } defaults = dict(_control_defaults) @@ -211,6 +213,7 @@ def use_legacy_defaults(version): # # Go backwards through releases and reset defaults # + reset_defaults() # start from a clean slate # Version 0.9.0: if major == 0 and minor < 9: @@ -230,4 +233,7 @@ def use_legacy_defaults(version): # turned off _remove_useless_states set_defaults('statesp', remove_useless_states=True) + # forced_response no longer returns x by default + set_defaults('forced_response', return_x=True) + return (major, minor, patch) diff --git a/control/iosys.py b/control/iosys.py index 913e8d471..8fc17c016 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -37,7 +37,7 @@ from warnings import warn from .statesp import StateSpace, tf2ss -from .timeresp import _check_convert_array +from .timeresp import _check_convert_array, _process_time_response from .lti import isctime, isdtime, common_timebase from . import config @@ -1353,7 +1353,7 @@ def __init__(self, io_sys, ss_sys=None): def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', - return_x=False, squeeze=True): + transpose=False, return_x=False, squeeze=None): """Compute the output response of a system to a given input. @@ -1373,9 +1373,9 @@ def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', return_x : bool, optional If True, return the values of the state at each time (default = False). squeeze : bool, optional - If True (default), squeeze unused dimensions out of the output - response. In particular, for a single output system, return a - vector of shape (nsteps) instead of (nsteps, 1). + If True and if the system has a single output, return the + system output as a 1D array rather than a 2D array. Default + value (True) set by config.defaults['control.squeeze_time_response']. Returns ------- @@ -1420,12 +1420,8 @@ def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', for i in range(len(T)): u = U[i] if len(U.shape) == 1 else U[:, i] y[:, i] = sys._out(T[i], [], u) - if squeeze: - y = np.squeeze(y) - if return_x: - return T, y, [] - else: - return T, y + return _process_time_response(sys, T, y, [], transpose=transpose, + return_x=return_x, squeeze=squeeze) # create X0 if not given, test if X0 has correct shape X0 = _check_convert_array(X0, [(nstates,), (nstates, 1)], @@ -1500,14 +1496,8 @@ def ivp_rhs(t, x): return sys._rhs(t, x, u(t)) else: # Neither ctime or dtime?? raise TypeError("Can't determine system type") - # Get rid of extra dimensions in the output, of desired - if squeeze: - y = np.squeeze(y) - - if return_x: - return soln.t, y, soln.y - else: - return soln.t, y + return _process_time_response(sys, soln.t, y, soln.y, transpose=transpose, + return_x=return_x, squeeze=squeeze) def find_eqpt(sys, x0, u0=[], y0=None, t=0, params={}, diff --git a/control/matlab/timeresp.py b/control/matlab/timeresp.py index 1ba7b2a0a..31b761bcd 100644 --- a/control/matlab/timeresp.py +++ b/control/matlab/timeresp.py @@ -59,15 +59,13 @@ def step(sys, T=None, X0=0., input=0, output=None, return_x=False): ''' from ..timeresp import step_response - T, yout, xout = step_response(sys, T, X0, input, output, - transpose=True, return_x=True) + # Switch output argument order and transpose outputs + out = step_response(sys, T, X0, input, output, + transpose=True, return_x=return_x) + return (out[1], out[0], out[2]) if return_x else (out[1], out[0]) - if return_x: - return yout, T, xout - - return yout, T - -def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9)): +def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, + RiseTimeLimits=(0.1, 0.9)): ''' Step response characteristics (Rise time, Settling Time, Peak and others). @@ -110,6 +108,7 @@ def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9)) ''' from ..timeresp import step_info + # Call step_info with MATLAB defaults S = step_info(sys, T, None, SettlingTimeThreshold, RiseTimeLimits) return S @@ -164,13 +163,11 @@ def impulse(sys, T=None, X0=0., input=0, output=None, return_x=False): >>> yout, T = impulse(sys, T) ''' from ..timeresp import impulse_response - T, yout, xout = impulse_response(sys, T, X0, input, output, - transpose = True, return_x=True) - - if return_x: - return yout, T, xout - return yout, T + # Switch output argument order and transpose outputs + out = impulse_response(sys, T, X0, input, output, + transpose = True, return_x=return_x) + return (out[1], out[0], out[2]) if return_x else (out[1], out[0]) def initial(sys, T=None, X0=0., input=None, output=None, return_x=False): ''' @@ -222,13 +219,12 @@ def initial(sys, T=None, X0=0., input=None, output=None, return_x=False): ''' from ..timeresp import initial_response + + # Switch output argument order and transpose outputs T, yout, xout = initial_response(sys, T, X0, output=output, transpose=True, return_x=True) + return (yout, T, xout) if return_x else (yout, T) - if return_x: - return yout, T, xout - - return yout, T def lsim(sys, U=0., T=None, X0=0.): ''' @@ -273,5 +269,7 @@ def lsim(sys, U=0., T=None, X0=0.): >>> yout, T, xout = lsim(sys, U, T, X0) ''' from ..timeresp import forced_response - T, yout, xout = forced_response(sys, T, U, X0, transpose = True) - return yout, T, xout + + # Switch output argument order and transpose outputs (and always return x) + out = forced_response(sys, T, U, X0, return_x=True, transpose=True) + return out[1], out[0], out[2] diff --git a/control/tests/config_test.py b/control/tests/config_test.py index 0e68ec8a7..02d0ad51c 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -211,12 +211,15 @@ def test_legacy_defaults(self): ct.use_legacy_defaults('0.8.3') assert(isinstance(ct.ss(0, 0, 0, 1).D, np.matrix)) ct.reset_defaults() - assert(isinstance(ct.ss(0, 0, 0, 1).D, np.ndarray)) - assert(not isinstance(ct.ss(0, 0, 0, 1).D, np.matrix)) + assert isinstance(ct.ss(0, 0, 0, 1).D, np.ndarray) + assert not isinstance(ct.ss(0, 0, 0, 1).D, np.matrix) + + ct.use_legacy_defaults('0.8.4') + assert ct.config.defaults['forced_response.return_x'] is True ct.use_legacy_defaults('0.9.0') - assert(isinstance(ct.ss(0, 0, 0, 1).D, np.ndarray)) - assert(not isinstance(ct.ss(0, 0, 0, 1).D, np.matrix)) + assert isinstance(ct.ss(0, 0, 0, 1).D, np.ndarray) + assert not isinstance(ct.ss(0, 0, 0, 1).D, np.matrix) # test that old versions don't raise a problem ct.use_legacy_defaults('REL-0.1') diff --git a/control/tests/discrete_test.py b/control/tests/discrete_test.py index 3dcbb7f3b..379098ff2 100644 --- a/control/tests/discrete_test.py +++ b/control/tests/discrete_test.py @@ -353,9 +353,11 @@ def testSimulation(self, tsys): tout, yout = step_response(tsys.siso_ss1d, T) tout, yout = impulse_response(tsys.siso_ss1d) tout, yout = impulse_response(tsys.siso_ss1d, T) - tout, yout, xout = forced_response(tsys.siso_ss1d, T, U, 0) - tout, yout, xout = forced_response(tsys.siso_ss2d, T, U, 0) - tout, yout, xout = forced_response(tsys.siso_ss3d, T, U, 0) + tout, yout = forced_response(tsys.siso_ss1d, T, U, 0) + tout, yout = forced_response(tsys.siso_ss2d, T, U, 0) + tout, yout = forced_response(tsys.siso_ss3d, T, U, 0) + tout, yout, xout = forced_response(tsys.siso_ss1d, T, U, 0, + return_x=True) def test_sample_system(self, tsys): # Make sure we can convert various types of systems diff --git a/control/tests/flatsys_test.py b/control/tests/flatsys_test.py index 1281c519a..0239d9455 100644 --- a/control/tests/flatsys_test.py +++ b/control/tests/flatsys_test.py @@ -48,7 +48,7 @@ def test_double_integrator(self, xf, uf, Tf): T = np.linspace(0, Tf, 100) xd, ud = traj.eval(T) - t, y, x = ct.forced_response(sys, T, ud, x1) + t, y, x = ct.forced_response(sys, T, ud, x1, return_x=True) np.testing.assert_array_almost_equal(x, xd, decimal=3) def test_kinematic_car(self): diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 0dcbf3325..32e5b102f 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -61,7 +61,7 @@ def test_linear_iosys(self, tsys): # Make sure that simulations also line up T, U, X0 = tsys.T, tsys.U, tsys.X0 - lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) + lti_t, lti_y = ct.forced_response(linsys, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y, atol=0.002, rtol=0.) @@ -75,7 +75,7 @@ def test_tf2io(self, tsys): # Verify correctness via simulation T, U, X0 = tsys.T, tsys.U, tsys.X0 - lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) + lti_t, lti_y = ct.forced_response(linsys, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y, atol=0.002, rtol=0.) @@ -84,7 +84,7 @@ def test_tf2io(self, tsys): tfsys = ct.tf('s') with pytest.raises(ValueError): iosys=ct.tf2io(tfsys) - + def test_ss2io(self, tsys): # Create an input/output system from the linear system linsys = tsys.siso_linsys @@ -162,7 +162,7 @@ def test_nonlinear_iosys(self, tsys): # Make sure that simulations also line up T, U, X0 = tsys.T, tsys.U, tsys.X0 - lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) + lti_t, lti_y = ct.forced_response(linsys, T, U, X0) ios_t, ios_y = ios.input_output_response(nlsys, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) @@ -256,7 +256,7 @@ def test_connect(self, tsys): X0 = np.concatenate((tsys.X0, tsys.X0)) ios_t, ios_y, ios_x = ios.input_output_response( iosys_series, T, U, X0, return_x=True) - lti_t, lti_y, lti_x = ct.forced_response(linsys_series, T, U, X0) + lti_t, lti_y = ct.forced_response(linsys_series, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) @@ -273,7 +273,7 @@ def test_connect(self, tsys): assert ct.isctime(iosys_series, strict=True) ios_t, ios_y, ios_x = ios.input_output_response( iosys_series, T, U, X0, return_x=True) - lti_t, lti_y, lti_x = ct.forced_response(linsys_series, T, U, X0) + lti_t, lti_y = ct.forced_response(linsys_series, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) @@ -288,7 +288,7 @@ def test_connect(self, tsys): ) ios_t, ios_y, ios_x = ios.input_output_response( iosys_feedback, T, U, X0, return_x=True) - lti_t, lti_y, lti_x = ct.forced_response(linsys_feedback, T, U, X0) + lti_t, lti_y = ct.forced_response(linsys_feedback, T, U, X0) np.testing.assert_array_almost_equal(lti_t, ios_t) np.testing.assert_allclose(lti_y, ios_y,atol=0.002,rtol=0.) @@ -325,7 +325,8 @@ def test_connect_spec_variants(self, tsys, connections, inplist, outlist): # Create a simulation run to compare against T, U = tsys.T, tsys.U X0 = np.concatenate((tsys.X0, tsys.X0)) - lti_t, lti_y, lti_x = ct.forced_response(linsys_series, T, U, X0) + lti_t, lti_y, lti_x = ct.forced_response( + linsys_series, T, U, X0, return_x=True) # Create the input/output system with different parameter variations iosys_series = ios.InterconnectedSystem( @@ -360,7 +361,8 @@ def test_connect_spec_warnings(self, tsys, connections, inplist, outlist): # Create a simulation run to compare against T, U = tsys.T, tsys.U X0 = np.concatenate((tsys.X0, tsys.X0)) - lti_t, lti_y, lti_x = ct.forced_response(linsys_series, T, U, X0) + lti_t, lti_y, lti_x = ct.forced_response( + linsys_series, T, U, X0, return_x=True) # Set up multiple gainst and make sure a warning is generated with pytest.warns(UserWarning, match="multiple.*Combining"): @@ -388,7 +390,8 @@ def test_static_nonlinearity(self, tsys): # Make sure saturation works properly by comparing linear system with # saturated input to nonlinear system with saturation composition - lti_t, lti_y, lti_x = ct.forced_response(linsys, T, Usat, X0) + lti_t, lti_y, lti_x = ct.forced_response( + linsys, T, Usat, X0, return_x=True) ios_t, ios_y, ios_x = ios.input_output_response( ioslin * nlsat, T, U, X0, return_x=True) np.testing.assert_array_almost_equal(lti_t, ios_t) @@ -424,7 +427,7 @@ def test_algebraic_loop(self, tsys): # Nonlinear system composed with LTI system (series) -- with states ios_t, ios_y = ios.input_output_response( nlios * lnios * nlios, T, U, X0) - lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U*U, X0) + lti_t, lti_y = ct.forced_response(linsys, T, U*U, X0) np.testing.assert_array_almost_equal(ios_y, lti_y*lti_y, decimal=3) # Nonlinear system in feeback loop with LTI system @@ -480,7 +483,7 @@ def test_summer(self, tsys): U = [np.sin(T), np.cos(T)] X0 = 0 - lin_t, lin_y, lin_x = ct.forced_response(linsys_parallel, T, U, X0) + lin_t, lin_y = ct.forced_response(linsys_parallel, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys_parallel, T, U, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) @@ -502,7 +505,7 @@ def test_rmul(self, tsys): # Make sure we got the right thing (via simulation comparison) ios_t, ios_y = ios.input_output_response(sys2, T, U, X0) - lti_t, lti_y, lti_x = ct.forced_response(ioslin, T, U*U, X0) + lti_t, lti_y = ct.forced_response(ioslin, T, U*U, X0) np.testing.assert_array_almost_equal(ios_y, lti_y*lti_y, decimal=3) @noscipy0 @@ -525,7 +528,7 @@ def test_neg(self, tsys): # Make sure we got the right thing (via simulation comparison) ios_t, ios_y = ios.input_output_response(sys, T, U, X0) - lti_t, lti_y, lti_x = ct.forced_response(ioslin, T, U*U, X0) + lti_t, lti_y = ct.forced_response(ioslin, T, U*U, X0) np.testing.assert_array_almost_equal(ios_y, -lti_y, decimal=3) @noscipy0 @@ -541,7 +544,7 @@ def test_feedback(self, tsys): linsys = ct.feedback(tsys.siso_linsys, 1) ios_t, ios_y = ios.input_output_response(iosys, T, U, X0) - lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) + lti_t, lti_y = ct.forced_response(linsys, T, U, X0) np.testing.assert_allclose(ios_y, lti_y,atol=0.002,rtol=0.) @noscipy0 @@ -561,33 +564,33 @@ def test_bdalg_functions(self, tsys): # Series interconnection linsys_series = ct.series(linsys1, linsys2) iosys_series = ct.series(linio1, linio2) - lin_t, lin_y, lin_x = ct.forced_response(linsys_series, T, U, X0) + lin_t, lin_y = ct.forced_response(linsys_series, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys_series, T, U, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) # Make sure that systems don't commute linsys_series = ct.series(linsys2, linsys1) - lin_t, lin_y, lin_x = ct.forced_response(linsys_series, T, U, X0) + lin_t, lin_y = ct.forced_response(linsys_series, T, U, X0) assert not (np.abs(lin_y - ios_y) < 1e-3).all() # Parallel interconnection linsys_parallel = ct.parallel(linsys1, linsys2) iosys_parallel = ct.parallel(linio1, linio2) - lin_t, lin_y, lin_x = ct.forced_response(linsys_parallel, T, U, X0) + lin_t, lin_y = ct.forced_response(linsys_parallel, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys_parallel, T, U, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) # Negation linsys_negate = ct.negate(linsys1) iosys_negate = ct.negate(linio1) - lin_t, lin_y, lin_x = ct.forced_response(linsys_negate, T, U, X0) + lin_t, lin_y = ct.forced_response(linsys_negate, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys_negate, T, U, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) # Feedback interconnection linsys_feedback = ct.feedback(linsys1, linsys2) iosys_feedback = ct.feedback(linio1, linio2) - lin_t, lin_y, lin_x = ct.forced_response(linsys_feedback, T, U, X0) + lin_t, lin_y = ct.forced_response(linsys_feedback, T, U, X0) ios_t, ios_y = ios.input_output_response(iosys_feedback, T, U, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) @@ -614,13 +617,13 @@ def test_nonsquare_bdalg(self, tsys): # Multiplication linsys_multiply = linsys_3i2o * linsys_2i3o iosys_multiply = iosys_3i2o * iosys_2i3o - lin_t, lin_y, lin_x = ct.forced_response(linsys_multiply, T, U2, X0) + lin_t, lin_y = ct.forced_response(linsys_multiply, T, U2, X0) ios_t, ios_y = ios.input_output_response(iosys_multiply, T, U2, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) linsys_multiply = linsys_2i3o * linsys_3i2o iosys_multiply = iosys_2i3o * iosys_3i2o - lin_t, lin_y, lin_x = ct.forced_response(linsys_multiply, T, U3, X0) + lin_t, lin_y = ct.forced_response(linsys_multiply, T, U3, X0) ios_t, ios_y = ios.input_output_response(iosys_multiply, T, U3, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) @@ -633,7 +636,7 @@ def test_nonsquare_bdalg(self, tsys): # Feedback linsys_multiply = ct.feedback(linsys_3i2o, linsys_2i3o) iosys_multiply = iosys_3i2o.feedback(iosys_2i3o) - lin_t, lin_y, lin_x = ct.forced_response(linsys_multiply, T, U3, X0) + lin_t, lin_y = ct.forced_response(linsys_multiply, T, U3, X0) ios_t, ios_y = ios.input_output_response(iosys_multiply, T, U3, X0) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) @@ -655,7 +658,7 @@ def test_discrete(self, tsys): # Simulate and compare to LTI output ios_t, ios_y = ios.input_output_response(lnios, T, U, X0) - lin_t, lin_y, lin_x = ct.forced_response(linsys, T, U, X0) + lin_t, lin_y = ct.forced_response(linsys, T, U, X0) np.testing.assert_allclose(ios_t, lin_t,atol=0.002,rtol=0.) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) @@ -671,7 +674,7 @@ def test_discrete(self, tsys): # Simulate and compare to LTI output ios_t, ios_y = ios.input_output_response(lnios, T, U, X0) - lin_t, lin_y, lin_x = ct.forced_response(linsys, T, U, X0) + lin_t, lin_y = ct.forced_response(linsys, T, U, X0) np.testing.assert_allclose(ios_t, lin_t,atol=0.002,rtol=0.) np.testing.assert_allclose(ios_y, lin_y,atol=0.002,rtol=0.) @@ -839,7 +842,7 @@ def test_params(self, tsys): linsys = tsys.siso_linsys iosys = ios.LinearIOSystem(linsys) T, U, X0 = tsys.T, tsys.U, tsys.X0 - lti_t, lti_y, lti_x = ct.forced_response(linsys, T, U, X0) + lti_t, lti_y = ct.forced_response(linsys, T, U, X0) with pytest.warns(UserWarning, match="LinearIOSystem.*ignored"): ios_t, ios_y = ios.input_output_response( iosys, T, U, X0, params={'something':0}) diff --git a/control/tests/modelsimp_test.py b/control/tests/modelsimp_test.py index 4def0b4d7..df656e1fc 100644 --- a/control/tests/modelsimp_test.py +++ b/control/tests/modelsimp_test.py @@ -51,7 +51,7 @@ def testMarkovSignature(self, matarrayout, matarrayin): # Test example from docstring T = np.linspace(0, 10, 100) U = np.ones((1, 100)) - T, Y, _ = forced_response(tf([1], [1, 0.5], True), T, U) + T, Y = forced_response(tf([1], [1, 0.5], True), T, U) H = markov(Y, U, 3, transpose=False) # Test example from issue #395 @@ -102,7 +102,7 @@ def testMarkovResults(self, k, m, n): # Generate input/output data T = np.array(range(n)) * Ts U = np.cos(T) + np.sin(T/np.pi) - _, Y, _ = forced_response(Hd, T, U, squeeze=True) + _, Y = forced_response(Hd, T, U, squeeze=True) Mcomp = markov(Y, U, m) # Compare to results from markov() diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 6977973ff..41bf05c4b 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -16,12 +16,14 @@ import scipy as sp +import control as ct from control import (StateSpace, TransferFunction, c2d, isctime, isdtime, ss2tf, tf2ss) from control.timeresp import (_default_time_vector, _ideal_tfinal_and_dt, forced_response, impulse_response, initial_response, step_info, step_response) from control.tests.conftest import slycotonly +from control.exception import slycot_check class TSys: @@ -409,7 +411,7 @@ def test_forced_response_step(self, tsystem): u = np.ones_like(t, dtype=np.float) yref = tsystem.ystep - tout, yout, _xout = forced_response(sys, t, u) + tout, yout = forced_response(sys, t, u) np.testing.assert_array_almost_equal(tout, t) np.testing.assert_array_almost_equal(yout, yref, decimal=4) @@ -424,7 +426,7 @@ def test_forced_response_initial(self, siso_ss1, u): x0 = np.array([[.5], [1.]]) yref = siso_ss1.yinitial - tout, yout, _xout = forced_response(sys, t, u, X0=x0) + tout, yout = forced_response(sys, t, u, X0=x0) np.testing.assert_array_almost_equal(tout, t) np.testing.assert_array_almost_equal(yout, yref, decimal=4) @@ -444,11 +446,31 @@ def test_forced_response_mimo(self, tsystem, useT): yref = np.vstack([tsystem.yinitial, tsystem.ystep]) if useT: - _t, yout, _xout = forced_response(sys, t, u, x0) + _t, yout = forced_response(sys, t, u, x0) else: - _t, yout, _xout = forced_response(sys, U=u, X0=x0) + _t, yout = forced_response(sys, U=u, X0=x0) np.testing.assert_array_almost_equal(yout, yref, decimal=4) + @pytest.mark.usefixtures("editsdefaults") + def test_forced_response_legacy(self): + # Define a system for testing + sys = ct.rss(2, 1, 1) + T = np.linspace(0, 10, 10) + U = np.sin(T) + + """Make sure that legacy version of forced_response works""" + ct.config.use_legacy_defaults("0.8.4") + # forced_response returns x by default + t, y = ct.step_response(sys, T) + t, y, x = ct.forced_response(sys, T, U) + + ct.config.use_legacy_defaults("0.9.0") + # forced_response returns input/output by default + t, y = ct.step_response(sys, T) + t, y = ct.forced_response(sys, T, U) + t, y, x = ct.forced_response(sys, T, U, return_x=True) + + @pytest.mark.parametrize("u, x0, xtrue", [(np.zeros((10,)), np.array([2., 3.]), @@ -475,7 +497,7 @@ def test_lsim_double_integrator(self, u, x0, xtrue): sys = StateSpace(A, B, C, D) t = np.linspace(0, 1, 10) - _t, yout, xout = forced_response(sys, t, u, x0) + _t, yout, xout = forced_response(sys, t, u, x0, return_x=True) np.testing.assert_array_almost_equal(xout, xtrue, decimal=6) ytrue = np.squeeze(np.asarray(C.dot(xtrue))) np.testing.assert_array_almost_equal(yout, ytrue, decimal=6) @@ -643,8 +665,8 @@ def test_time_vector_interpolation(self, siso_dtf2, squeeze): squeezekw = {} if squeeze is None else {"squeeze": squeeze} - tout, yout, xout = forced_response(sys, t, u, x0, - interpolate=True, **squeezekw) + tout, yout = forced_response(sys, t, u, x0, + interpolate=True, **squeezekw) if squeeze is False or sys.outputs > 1: assert yout.shape[0] == sys.outputs assert yout.shape[1] == tout.shape[0] @@ -700,3 +722,117 @@ def test_time_series_data_convention_2D(self, siso_ss1): assert t.ndim == 1 assert y.ndim == 1 # SISO returns "scalar" output assert t.shape == y.shape # Allows direct plotting of output + + @pytest.mark.usefixtures("editsdefaults") + @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.ss2io]) + @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape", [ + [1, 1, 1, None, (8,)], + [2, 1, 1, True, (8,)], + [3, 1, 1, False, (1, 8)], +# [4, 1, 1, 'siso', (8,)], # Use for later 'siso' implementation + [1, 2, 1, None, (2, 8)], + [2, 2, 1, True, (2, 8)], + [3, 2, 1, False, (2, 8)], +# [4, 2, 1, 'siso', (2, 8)], # Use for later 'siso' implementation + [1, 1, 2, None, (8,)], + [2, 1, 2, True, (8,)], + [3, 1, 2, False, (1, 8)], +# [4, 1, 2, 'siso', (1, 8)], # Use for later 'siso' implementation + [1, 2, 2, None, (2, 8)], + [2, 2, 2, True, (2, 8)], + [3, 2, 2, False, (2, 8)], +# [4, 2, 2, 'siso', (2, 8)], # Use for later 'siso' implementation + ]) + def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): + # Figure out if we have SciPy 1+ + scipy0 = StrictVersion(sp.__version__) < '1.0' + + # Define the system + if fcn == ct.tf and (nout > 1 or ninp > 1) and not slycot_check(): + pytest.skip("Conversion of MIMO systems to transfer functions " + "requires slycot.") + else: + sys = fcn(ct.rss(nstate, nout, ninp, strictly_proper=True)) + + # Keep track of expect users warnings + warntype = UserWarning if sys.inputs > 1 else None + + # Generate the time and input vectors + tvec = np.linspace(0, 1, 8) + uvec = np.dot( + np.ones((sys.inputs, 1)), + np.reshape(np.sin(tvec), (1, 8))) + + # Pass squeeze argument and make sure the shape is correct + with pytest.warns(warntype, match="Converting MIMO system"): + _, yvec = ct.impulse_response(sys, tvec, squeeze=squeeze) + assert yvec.shape == shape + + _, yvec = ct.initial_response(sys, tvec, 1, squeeze=squeeze) + assert yvec.shape == shape + + with pytest.warns(warntype, match="Converting MIMO system"): + _, yvec = ct.step_response(sys, tvec, squeeze=squeeze) + assert yvec.shape == shape + + if isinstance(sys, StateSpace): + # Check the states as well + _, yvec, xvec = ct.forced_response( + sys, tvec, uvec, 0, return_x=True, squeeze=squeeze) + assert xvec.shape == (sys.states, 8) + else: + # Just check the input/output response + _, yvec = ct.forced_response(sys, tvec, uvec, 0, squeeze=squeeze) + assert yvec.shape == shape + + # Test cases where we choose a subset of inputs and outputs + _, yvec = ct.step_response( + sys, tvec, input=ninp-1, output=nout-1, squeeze=squeeze) + # Possible code if we implemenet a squeeze='siso' option + # if squeeze is False or (squeeze == 'siso' and not sys.issiso()): + if squeeze is False: + # Shape should be unsqueezed + assert yvec.shape == (1, 8) + else: + # Shape should be squeezed + assert yvec.shape == (8, ) + + # For InputOutputSystems, also test input_output_response + if isinstance(sys, ct.InputOutputSystem) and not scipy0: + _, yvec = ct.input_output_response(sys, tvec, uvec, squeeze=squeeze) + assert yvec.shape == shape + + # + # Changing config.default to False should return 3D frequency response + # + ct.config.set_defaults('control', squeeze_time_response=False) + + with pytest.warns(warntype, match="Converting MIMO system"): + _, yvec = ct.impulse_response(sys, tvec) + assert yvec.shape == (sys.outputs, 8) + + _, yvec = ct.initial_response(sys, tvec, 1) + assert yvec.shape == (sys.outputs, 8) + + with pytest.warns(warntype, match="Converting MIMO system"): + _, yvec = ct.step_response(sys, tvec) + assert yvec.shape == (sys.outputs, 8) + + _, yvec, xvec = ct.forced_response( + sys, tvec, uvec, 0, return_x=True) + assert yvec.shape == (sys.outputs, 8) + if isinstance(sys, ct.StateSpace): + assert xvec.shape == (sys.states, 8) + else: + assert xvec.shape[1] == 8 + + # For InputOutputSystems, also test input_output_response + if isinstance(sys, ct.InputOutputSystem) and not scipy0: + _, yvec = ct.input_output_response(sys, tvec, uvec) + assert yvec.shape == (sys.noutputs, 8) + + @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.ss2io]) + def test_squeeze_exception(self, fcn): + sys = fcn(ct.rss(2, 1, 1)) + with pytest.raises(ValueError, match="unknown squeeze value"): + step_response(sys, squeeze=1) diff --git a/control/timeresp.py b/control/timeresp.py index a5cc245bf..7a48a5c5f 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -79,8 +79,10 @@ atleast_1d) import warnings from .lti import LTI # base class of StateSpace, TransferFunction +from .xferfcn import TransferFunction from .statesp import _convert_to_statespace, _mimo2simo, _mimo2siso, ssdata from .lti import isdtime, isctime +from . import config __all__ = ['forced_response', 'step_response', 'step_info', 'initial_response', 'impulse_response'] @@ -102,10 +104,10 @@ def _check_convert_array(in_obj, legal_shapes, err_msg_start, squeeze=False, Parameters ---------- - in_obj: array like object + in_obj : array like object The array or matrix which is checked. - legal_shapes: list of tuple + legal_shapes : list of tuple A list of shapes that in_obj can legally have. The special value "any" means that there can be any number of elements in a certain dimension. @@ -114,25 +116,26 @@ def _check_convert_array(in_obj, legal_shapes, err_msg_start, squeeze=False, * ``(2, "any")`` describes an array with 2 rows and any number of columns - err_msg_start: str + err_msg_start : str String that is prepended to the error messages, when this function raises an exception. It should be used to identify the argument which is currently checked. - squeeze: bool + squeeze : bool If True, all dimensions with only one element are removed from the array. If False the array's shape is unmodified. For example: ``array([[1,2,3]])`` is converted to ``array([1, 2, 3])`` - transpose: bool + transpose : bool If True, assume that input arrays are transposed for the standard format. Used to convert MATLAB-style inputs to our format. - Returns: + Returns + ------- - out_array: array + out_array : array The checked and converted contents of ``in_obj``. """ # convert nearly everything to an array. @@ -195,7 +198,7 @@ def shape_matches(s_legal, s_actual): # Forced response of a linear system def forced_response(sys, T=None, U=0., X0=0., transpose=False, - interpolate=False, squeeze=True): + interpolate=False, return_x=None, squeeze=None): """Simulate the output of a linear system. As a convenience for parameters `U`, `X0`: @@ -207,45 +210,50 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, Parameters ---------- - sys: LTI (StateSpace or TransferFunction) + sys : LTI (StateSpace or TransferFunction) LTI system to simulate - T: array_like, optional for discrete LTI `sys` + T : array_like, optional for discrete LTI `sys` Time steps at which the input is defined; values must be evenly spaced. - U: array_like or float, optional + U : array_like or float, optional Input array giving input at each time `T` (default = 0). If `U` is ``None`` or ``0``, a special algorithm is used. This special algorithm is faster than the general algorithm, which is used otherwise. - X0: array_like or float, optional + X0 : array_like or float, optional Initial condition (default = 0). - transpose: bool, optional (default=False) + transpose : bool, optional (default=False) If True, transpose all input and output arrays (for backward compatibility with MATLAB and :func:`scipy.signal.lsim`) - interpolate: bool, optional (default=False) + interpolate : bool, optional (default=False) If True and system is a discrete time system, the input will be interpolated between the given time steps and the output will be given at system sampling rate. Otherwise, only return the output at the times given in `T`. No effect on continuous time simulations (default = False). - squeeze: bool, optional (default=True) - If True, remove single-dimensional entries from the shape of - the output. For single output systems, this converts the - output response to a 1D array. + return_x : bool, optional + If True (default), return the the state vector. Set to False to + return only the time and output vectors. + + squeeze : bool, optional + If True (default), remove single-dimensional entries from the shape + of the output. For single output systems, this converts the output + response to a 1D array. The default value can be set using + config.defaults['control.squeeze_time_response']. Returns ------- - T: array + T : array Time values of the output. - yout: array + yout : array Response of the system. - xout: array + xout : array Time evolution of the state vector. See Also @@ -271,6 +279,17 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, if not isinstance(sys, LTI): raise TypeError('Parameter ``sys``: must be a ``LTI`` object. ' '(For example ``StateSpace`` or ``TransferFunction``)') + + # If return_x was not specified, figure out the default + if return_x is None: + return_x = config.defaults['forced_response.return_x'] + + # If return_x is used for TransferFunction, issue a warning + if return_x and not isinstance(sys, TransferFunction): + warnings.warn( + "return_x specified for a transfer function system. Internal " + "conversation to state space used; results may meaningless.") + sys = _convert_to_statespace(sys) A, B, C, D = np.asarray(sys.A), np.asarray(sys.B), np.asarray(sys.C), \ np.asarray(sys.D) @@ -324,6 +343,13 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, X0 = _check_convert_array(X0, [(n_states,), (n_states, 1)], 'Parameter ``X0``: ', squeeze=True) + # If we are passed a transfer function and X0 is non-zero, warn the user + if isinstance(sys, TransferFunction) and np.any(X0 != 0): + warnings.warn( + "Non-zero initial condition given for transfer function system. " + "Internal conversation to state space used; may not be consistent " + "with given X0.") + xout = np.zeros((n_states, n_steps)) xout[:, 0] = X0 yout = np.zeros((n_outputs, n_steps)) @@ -417,10 +443,28 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, xout = np.transpose(xout) yout = np.transpose(yout) - # Get rid of unneeded dimensions - if squeeze: + return _process_time_response(sys, tout, yout, xout, transpose=transpose, + return_x=return_x, squeeze=squeeze) + + +# Process time responses in a uniform way +def _process_time_response(sys, tout, yout, xout, transpose=None, + return_x=False, squeeze=None): + # If squeeze was not specified, figure out the default + if squeeze is None: + squeeze = config.defaults['control.squeeze_time_response'] + + # Figure out whether and now to squeeze output data + if squeeze is True: # squeeze all dimensions yout = np.squeeze(yout) - xout = np.squeeze(xout) + elif squeeze is False: # squeeze no dimensions + pass + # Possible code if we implement a squeeze='siso' option + # elif squeeze == 'siso': # squeeze signals if SISO + # yout = yout[0] if sys.issiso() else yout + else: + # In preparation for more complicated values for squeeze + raise ValueError("unknown squeeze value") # See if we need to transpose the data back into MATLAB form if transpose: @@ -428,30 +472,37 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, yout = np.transpose(yout) xout = np.transpose(xout) - return tout, yout, xout + # Return time, output, and (optionally) state + return (tout, yout, xout) if return_x else (tout, yout) -def _get_ss_simo(sys, input=None, output=None): +def _get_ss_simo(sys, input=None, output=None, squeeze=None): """Return a SISO or SIMO state-space version of sys If input is not specified, select first input and issue warning """ sys_ss = _convert_to_statespace(sys) if sys_ss.issiso(): - return sys_ss + return squeeze, sys_ss + # Possible code if we implement a squeeze='siso' option + # elif squeeze == 'siso': + # # Don't squeeze outputs if resulting system turns out to be siso + # squeeze = False + warn = False if input is None: # issue warning if input is not given warn = True input = 0 + if output is None: - return _mimo2simo(sys_ss, input, warn_conversion=warn) + return squeeze, _mimo2simo(sys_ss, input, warn_conversion=warn) else: - return _mimo2siso(sys_ss, input, output, warn_conversion=warn) + return squeeze, _mimo2siso(sys_ss, input, output, warn_conversion=warn) def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, - transpose=False, return_x=False, squeeze=True): + transpose=False, return_x=False, squeeze=None): # pylint: disable=W0622 """Step response of a linear system @@ -465,10 +516,10 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, Parameters ---------- - sys: StateSpace or TransferFunction + sys : StateSpace or TransferFunction LTI system to simulate - T: array_like or float, optional + T : array_like or float, optional Time vector, or simulation time duration if a number. If T is not provided, an attempt is made to create it automatically from the dynamics of sys. If sys is continuous-time, the time increment dt @@ -479,44 +530,45 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, only tfinal is computed, and final is reduced if it requires too many simulation steps. - X0: array_like or float, optional + X0 : array_like or float, optional Initial condition (default = 0) Numbers are converted to constant arrays with the correct shape. - input: int - Index of the input that will be used in this simulation. + input : int + Index of the input that will be used in this simulation. Default = 0. - output: int + output : int Index of the output that will be used in this simulation. Set to None to not trim outputs - T_num: int, optional + T_num : int, optional Number of time steps to use in simulation if T is not provided as an array (autocomputed if not given); ignored if sys is discrete-time. - transpose: bool + transpose : bool If True, transpose all input and output arrays (for backward compatibility with MATLAB and :func:`scipy.signal.lsim`) - return_x: bool + return_x : bool If True, return the state vector (default = False). - squeeze: bool, optional (default=True) - If True, remove single-dimensional entries from the shape of - the output. For single output systems, this converts the - output response to a 1D array. + squeeze : bool, optional + If True (default), remove single-dimensional entries from the shape + of the output. For single output systems, this converts the output + response to a 1D array. The default value can be set using + config.defaults['control.squeeze_time_response']. Returns ------- - T: array + T : array Time values of the output - yout: array + yout : array Response of the system - xout: array - Individual response of each x variable + xout : array, optional + Individual response of each x variable (if return_x is True) See Also -------- @@ -532,18 +584,13 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, >>> T, yout = step_response(sys, T, X0) """ - sys = _get_ss_simo(sys, input, output) + squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) if T is None or np.asarray(T).size == 1: T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) U = np.ones_like(T) - T, yout, xout = forced_response(sys, T, U, X0, transpose=transpose, - squeeze=squeeze) - - if return_x: - return T, yout, xout - - return T, yout + return forced_response(sys, T, U, X0, transpose=transpose, + return_x=return_x, squeeze=squeeze) def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, @@ -592,7 +639,7 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, -------- >>> info = step_info(sys, T) ''' - sys = _get_ss_simo(sys) + _, sys = _get_ss_simo(sys) if T is None or np.asarray(T).size == 1: T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) @@ -630,7 +677,7 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, - transpose=False, return_x=False, squeeze=True): + transpose=False, return_x=False, squeeze=None): # pylint: disable=W0622 """Initial condition response of a linear system @@ -651,33 +698,34 @@ def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, autocomputed if not given; see :func:`step_response` for more detail) X0 : array_like or float, optional - Initial condition (default = 0) - - Numbers are converted to constant arrays with the correct shape. + Initial condition (default = 0). Numbers are converted to constant + arrays with the correct shape. input : int Ignored, has no meaning in initial condition calculation. Parameter - ensures compatibility with step_response and impulse_response + ensures compatibility with step_response and impulse_response. output : int Index of the output that will be used in this simulation. Set to None - to not trim outputs + to not trim outputs. T_num : int, optional Number of time steps to use in simulation if T is not provided as an array (autocomputed if not given); ignored if sys is discrete-time. - transpose : bool + transpose : bool, optional If True, transpose all input and output arrays (for backward - compatibility with MATLAB and :func:`scipy.signal.lsim`) + compatibility with MATLAB and :func:`scipy.signal.lsim`). Default + value is False. - return_x : bool + return_x : bool, optional If True, return the state vector (default = False). - squeeze : bool, optional (default=True) - If True, remove single-dimensional entries from the shape of - the output. For single output systems, this converts the - output response to a 1D array. + squeeze : bool, optional + If True (default), remove single-dimensional entries from the shape + of the output. For single output systems, this converts the output + response to a 1D array. The default value can be set using + config.defaults['control.squeeze_time_response']. Returns ------- @@ -685,8 +733,8 @@ def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, Time values of the output yout : array Response of the system - xout : array - Individual response of each x variable + xout : array, optional + Individual response of each x variable (if return_x is True) See Also -------- @@ -700,8 +748,9 @@ def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, Examples -------- >>> T, yout = initial_response(sys, T, X0) + """ - sys = _get_ss_simo(sys, input, output) + squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) # Create time and input vectors; checking is done in forced_response(...) # The initial vector X0 is created in forced_response(...) if necessary @@ -709,17 +758,12 @@ def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=False) U = np.zeros_like(T) - T, yout, _xout = forced_response(sys, T, U, X0, transpose=transpose, - squeeze=squeeze) - - if return_x: - return T, yout, _xout - - return T, yout + return forced_response(sys, T, U, X0, transpose=transpose, + return_x=return_x, squeeze=squeeze) -def impulse_response(sys, T=None, X0=0., input=0, output=None, T_num=None, - transpose=False, return_x=False, squeeze=True): +def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, + transpose=False, return_x=False, squeeze=None): # pylint: disable=W0622 """Impulse response of a linear system @@ -746,7 +790,7 @@ def impulse_response(sys, T=None, X0=0., input=0, output=None, T_num=None, Numbers are converted to constant arrays with the correct shape. input : int - Index of the input that will be used in this simulation. + Index of the input that will be used in this simulation. Default = 0. output : int Index of the output that will be used in this simulation. Set to None @@ -763,10 +807,11 @@ def impulse_response(sys, T=None, X0=0., input=0, output=None, T_num=None, return_x : bool If True, return the state vector (default = False). - squeeze : bool, optional (default=True) - If True, remove single-dimensional entries from the shape of - the output. For single output systems, this converts the - output response to a 1D array. + squeeze : bool, optional + If True (default), remove single-dimensional entries from the shape + of the output. For single output systems, this converts the output + response to a 1D array. The default value can be set using + config.defaults['control.squeeze_time_response']. Returns ------- @@ -774,8 +819,8 @@ def impulse_response(sys, T=None, X0=0., input=0, output=None, T_num=None, Time values of the output yout : array Response of the system - xout : array - Individual response of each x variable + xout : array, optional + Individual response of each x variable (if return_x is True) See Also -------- @@ -792,7 +837,7 @@ def impulse_response(sys, T=None, X0=0., input=0, output=None, T_num=None, >>> T, yout = impulse_response(sys, T, X0) """ - sys = _get_ss_simo(sys, input, output) + squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) # if system has direct feedthrough, can't simulate impulse response # numerically @@ -824,13 +869,9 @@ def impulse_response(sys, T=None, X0=0., input=0, output=None, T_num=None, new_X0 = X0 U[0] = 1./sys.dt # unit area impulse - T, yout, _xout = forced_response(sys, T, U, new_X0, transpose=transpose, - squeeze=squeeze) - - if return_x: - return T, yout, _xout + return forced_response(sys, T, U, new_X0, transpose=transpose, + return_x=return_x, squeeze=squeeze) - return T, yout # utility function to find time period and time increment using pole locations def _ideal_tfinal_and_dt(sys, is_step=True): From 05e6fe6797af7ae699ddaed7b9c174f91d779ef8 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 16 Jan 2021 21:48:16 -0800 Subject: [PATCH 112/260] get rid of warnings in unit tests --- control/tests/matlab_test.py | 3 ++- control/tests/timeresp_test.py | 34 +++++++++++++++++----------------- control/timeresp.py | 4 ++-- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/control/tests/matlab_test.py b/control/tests/matlab_test.py index 3a15a5aff..c9ba818cb 100644 --- a/control/tests/matlab_test.py +++ b/control/tests/matlab_test.py @@ -321,7 +321,8 @@ def testLsim(self, siso): yout, tout, _xout = lsim(siso.ss1, u, t) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) np.testing.assert_array_almost_equal(tout, t) - yout, _t, _xout = lsim(siso.tf3, u, t) + with pytest.warns(UserWarning, match="Internal conversion"): + yout, _t, _xout = lsim(siso.tf3, u, t) np.testing.assert_array_almost_equal(yout, youttrue, decimal=4) # test with initial value and special algorithm for ``U=0`` diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 41bf05c4b..b52c9dad7 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -723,26 +723,26 @@ def test_time_series_data_convention_2D(self, siso_ss1): assert y.ndim == 1 # SISO returns "scalar" output assert t.shape == y.shape # Allows direct plotting of output - @pytest.mark.usefixtures("editsdefaults") @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.ss2io]) @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape", [ [1, 1, 1, None, (8,)], [2, 1, 1, True, (8,)], [3, 1, 1, False, (1, 8)], # [4, 1, 1, 'siso', (8,)], # Use for later 'siso' implementation - [1, 2, 1, None, (2, 8)], - [2, 2, 1, True, (2, 8)], - [3, 2, 1, False, (2, 8)], -# [4, 2, 1, 'siso', (2, 8)], # Use for later 'siso' implementation - [1, 1, 2, None, (8,)], - [2, 1, 2, True, (8,)], - [3, 1, 2, False, (1, 8)], -# [4, 1, 2, 'siso', (1, 8)], # Use for later 'siso' implementation - [1, 2, 2, None, (2, 8)], - [2, 2, 2, True, (2, 8)], - [3, 2, 2, False, (2, 8)], -# [4, 2, 2, 'siso', (2, 8)], # Use for later 'siso' implementation + [3, 2, 1, None, (2, 8)], + [4, 2, 1, True, (2, 8)], + [5, 2, 1, False, (2, 8)], +# [6, 2, 1, 'siso', (2, 8)], # Use for later 'siso' implementation + [3, 1, 2, None, (8,)], + [4, 1, 2, True, (8,)], + [5, 1, 2, False, (1, 8)], +# [6, 1, 2, 'siso', (1, 8)], # Use for later 'siso' implementation + [4, 2, 2, None, (2, 8)], + [5, 2, 2, True, (2, 8)], + [6, 2, 2, False, (2, 8)], +# [7, 2, 2, 'siso', (2, 8)], # Use for later 'siso' implementation ]) + @pytest.mark.usefixtures("editsdefaults") def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): # Figure out if we have SciPy 1+ scipy0 = StrictVersion(sp.__version__) < '1.0' @@ -818,13 +818,13 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): _, yvec = ct.step_response(sys, tvec) assert yvec.shape == (sys.outputs, 8) - _, yvec, xvec = ct.forced_response( - sys, tvec, uvec, 0, return_x=True) - assert yvec.shape == (sys.outputs, 8) if isinstance(sys, ct.StateSpace): + _, yvec, xvec = ct.forced_response( + sys, tvec, uvec, 0, return_x=True) assert xvec.shape == (sys.states, 8) else: - assert xvec.shape[1] == 8 + _, yvec = ct.forced_response(sys, tvec, uvec, 0) + assert yvec.shape == (sys.outputs, 8) # For InputOutputSystems, also test input_output_response if isinstance(sys, ct.InputOutputSystem) and not scipy0: diff --git a/control/timeresp.py b/control/timeresp.py index 7a48a5c5f..72013e41f 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -285,10 +285,10 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, return_x = config.defaults['forced_response.return_x'] # If return_x is used for TransferFunction, issue a warning - if return_x and not isinstance(sys, TransferFunction): + if return_x and isinstance(sys, TransferFunction): warnings.warn( "return_x specified for a transfer function system. Internal " - "conversation to state space used; results may meaningless.") + "conversion to state space used; results may meaningless.") sys = _convert_to_statespace(sys) A, B, C, D = np.asarray(sys.A), np.asarray(sys.B), np.asarray(sys.C), \ From 47bbf169b3c291b7fb4c589bd6af0b8dc2ec99df Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 16 Jan 2021 23:17:44 -0800 Subject: [PATCH 113/260] update squeeze processing for time responses + doc updates --- control/config.py | 4 ++ control/iosys.py | 18 ++++-- control/tests/iosys_test.py | 2 +- control/tests/timeresp_test.py | 39 +++++++++--- control/timeresp.py | 107 +++++++++++++++++++++------------ 5 files changed, 119 insertions(+), 51 deletions(-) diff --git a/control/config.py b/control/config.py index 6a8fb8db6..ef3184a5e 100644 --- a/control/config.py +++ b/control/config.py @@ -18,6 +18,7 @@ 'control.default_dt': 0, 'control.squeeze_frequency_response': None, 'control.squeeze_time_response': True, + 'control.squeeze_time_response': None, 'forced_response.return_x': False, } defaults = dict(_control_defaults) @@ -236,4 +237,7 @@ def use_legacy_defaults(version): # forced_response no longer returns x by default set_defaults('forced_response', return_x=True) + # time responses are only squeezed if SISO + set_defaults('control', squeeze_time_response=True) + return (major, minor, patch) diff --git a/control/iosys.py b/control/iosys.py index 8fc17c016..d16cbce93 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -450,6 +450,10 @@ def find_state(self, name): """Find the index for a state given its name (`None` if not found)""" return self.state_index.get(name, None) + def issiso(self): + """Check to see if a system is single input, single output""" + return self.ninputs == 1 and self.noutputs == 1 + def feedback(self, other=1, sign=-1, params={}): """Feedback interconnection between two input/output systems @@ -1373,18 +1377,22 @@ def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', return_x : bool, optional If True, return the values of the state at each time (default = False). squeeze : bool, optional - If True and if the system has a single output, return the - system output as a 1D array rather than a 2D array. Default - value (True) set by config.defaults['control.squeeze_time_response']. + If True and if the system has a single output, return the system + output as a 1D array rather than a 2D array. If False, return the + system output as a 2D array even if the system is SISO. Default value + set by config.defaults['control.squeeze_time_response']. Returns ------- T : array Time values of the output. yout : array - Response of the system. + Response of the system. If the system is SISO and squeeze is not + True, the array is 1D (indexed by time). If the system is not SISO or + squeeze is False, the array is 2D (indexed by the output number and + time). xout : array - Time evolution of the state vector (if return_x=True) + Time evolution of the state vector (if return_x=True). Raises ------ diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index 32e5b102f..acdf43422 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -158,7 +158,7 @@ def test_nonlinear_iosys(self, tsys): nlout = lambda t, x, u, params: \ np.reshape(np.dot(linsys.C, np.reshape(x, (-1, 1))) + np.dot(linsys.D, u), (-1,)) - nlsys = ios.NonlinearIOSystem(nlupd, nlout) + nlsys = ios.NonlinearIOSystem(nlupd, nlout, inputs=1, outputs=1) # Make sure that simulations also line up T, U, X0 = tsys.T, tsys.U, tsys.X0 diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index b52c9dad7..e5c7471b6 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -723,26 +723,22 @@ def test_time_series_data_convention_2D(self, siso_ss1): assert y.ndim == 1 # SISO returns "scalar" output assert t.shape == y.shape # Allows direct plotting of output + @pytest.mark.usefixtures("editsdefaults") @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.ss2io]) @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape", [ [1, 1, 1, None, (8,)], [2, 1, 1, True, (8,)], [3, 1, 1, False, (1, 8)], -# [4, 1, 1, 'siso', (8,)], # Use for later 'siso' implementation [3, 2, 1, None, (2, 8)], [4, 2, 1, True, (2, 8)], [5, 2, 1, False, (2, 8)], -# [6, 2, 1, 'siso', (2, 8)], # Use for later 'siso' implementation - [3, 1, 2, None, (8,)], + [3, 1, 2, None, (1, 8)], [4, 1, 2, True, (8,)], [5, 1, 2, False, (1, 8)], -# [6, 1, 2, 'siso', (1, 8)], # Use for later 'siso' implementation [4, 2, 2, None, (2, 8)], [5, 2, 2, True, (2, 8)], [6, 2, 2, False, (2, 8)], -# [7, 2, 2, 'siso', (2, 8)], # Use for later 'siso' implementation ]) - @pytest.mark.usefixtures("editsdefaults") def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): # Figure out if we have SciPy 1+ scipy0 = StrictVersion(sp.__version__) < '1.0' @@ -789,7 +785,6 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): _, yvec = ct.step_response( sys, tvec, input=ninp-1, output=nout-1, squeeze=squeeze) # Possible code if we implemenet a squeeze='siso' option - # if squeeze is False or (squeeze == 'siso' and not sys.issiso()): if squeeze is False: # Shape should be unsqueezed assert yvec.shape == (1, 8) @@ -836,3 +831,33 @@ def test_squeeze_exception(self, fcn): sys = fcn(ct.rss(2, 1, 1)) with pytest.raises(ValueError, match="unknown squeeze value"): step_response(sys, squeeze=1) + + @pytest.mark.usefixtures("editsdefaults") + @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape", [ + [1, 1, 1, None, (8,)], + [2, 1, 1, True, (8,)], + [3, 1, 1, False, (1, 8)], + [1, 2, 1, None, (2, 8)], + [2, 2, 1, True, (2, 8)], + [3, 2, 1, False, (2, 8)], + [1, 1, 2, None, (8,)], + [2, 1, 2, True, (8,)], + [3, 1, 2, False, (1, 8)], + [1, 2, 2, None, (2, 8)], + [2, 2, 2, True, (2, 8)], + [3, 2, 2, False, (2, 8)], + ]) + def test_squeeze_0_8_4(self, nstate, nout, ninp, squeeze, shape): + # Set defaults to match release 0.8.4 + ct.config.use_legacy_defaults('0.8.4') + ct.config.use_numpy_matrix(False) + + # Generate system, time, and input vectors + sys = ct.rss(nstate, nout, ninp, strictly_proper=True) + tvec = np.linspace(0, 1, 8) + uvec = np.dot( + np.ones((sys.inputs, 1)), + np.reshape(np.sin(tvec), (1, 8))) + + _, yvec = ct.initial_response(sys, tvec, 1, squeeze=squeeze) + assert yvec.shape == shape diff --git a/control/timeresp.py b/control/timeresp.py index 72013e41f..b8dc6631a 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -242,19 +242,27 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, return only the time and output vectors. squeeze : bool, optional - If True (default), remove single-dimensional entries from the shape - of the output. For single output systems, this converts the output - response to a 1D array. The default value can be set using + By default, if a system is single-input, single-output (SISO) then + the output response is returned as a 1D array (indexed by time). If + squeeze=True, remove single-dimensional entries from the shape of + the output even if the system is not SISO. If squeeze=False, keep + the output as a 2D array (indexed by the output number and time) + even if the system is SISO. The default value can be set using config.defaults['control.squeeze_time_response']. Returns ------- T : array Time values of the output. + yout : array - Response of the system. + Response of the system. If the system is SISO and squeeze is not + True, the array is 1D (indexed by time). If the system is not SISO or + squeeze is False, the array is 2D (indexed by the output number and + time). + xout : array - Time evolution of the state vector. + Time evolution of the state vector. Not affected by squeeze. See Also -------- @@ -459,11 +467,9 @@ def _process_time_response(sys, tout, yout, xout, transpose=None, yout = np.squeeze(yout) elif squeeze is False: # squeeze no dimensions pass - # Possible code if we implement a squeeze='siso' option - # elif squeeze == 'siso': # squeeze signals if SISO - # yout = yout[0] if sys.issiso() else yout + elif squeeze is None: # squeeze signals if SISO + yout = yout[0] if sys.issiso() else yout else: - # In preparation for more complicated values for squeeze raise ValueError("unknown squeeze value") # See if we need to transpose the data back into MATLAB form @@ -481,13 +487,17 @@ def _get_ss_simo(sys, input=None, output=None, squeeze=None): If input is not specified, select first input and issue warning """ + # If squeeze was not specified, figure out the default + if squeeze is None: + squeeze = config.defaults['control.squeeze_time_response'] + sys_ss = _convert_to_statespace(sys) if sys_ss.issiso(): return squeeze, sys_ss - # Possible code if we implement a squeeze='siso' option - # elif squeeze == 'siso': - # # Don't squeeze outputs if resulting system turns out to be siso - # squeeze = False + elif squeeze == None and (input is None or output is None): + # Don't squeeze outputs if resulting system turns out to be siso + # Note: if we expand input to allow a tuple, need to update this check + squeeze = False warn = False if input is None: @@ -531,14 +541,13 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, many simulation steps. X0 : array_like or float, optional - Initial condition (default = 0) - - Numbers are converted to constant arrays with the correct shape. + Initial condition (default = 0). Numbers are converted to constant + arrays with the correct shape. - input : int + input : int, optional Index of the input that will be used in this simulation. Default = 0. - output : int + output : int, optional Index of the output that will be used in this simulation. Set to None to not trim outputs @@ -546,17 +555,20 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, Number of time steps to use in simulation if T is not provided as an array (autocomputed if not given); ignored if sys is discrete-time. - transpose : bool + transpose : bool, optional If True, transpose all input and output arrays (for backward compatibility with MATLAB and :func:`scipy.signal.lsim`) - return_x : bool + return_x : bool, optional If True, return the state vector (default = False). squeeze : bool, optional - If True (default), remove single-dimensional entries from the shape - of the output. For single output systems, this converts the output - response to a 1D array. The default value can be set using + By default, if a system is single-input, single-output (SISO) then the + output response is returned as a 1D array (indexed by time). If + squeeze=True, remove single-dimensional entries from the shape of the + output even if the system is not SISO. If squeeze=False, keep the + output as a 2D array (indexed by the output number and time) even if + the system is SISO. The default value can be set using config.defaults['control.squeeze_time_response']. Returns @@ -565,10 +577,13 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, Time values of the output yout : array - Response of the system + Response of the system. If the system is SISO and squeeze is not + True, the array is 1D (indexed by time). If the system is not SISO or + squeeze is False, the array is 2D (indexed by the output number and + time). xout : array, optional - Individual response of each x variable (if return_x is True) + Individual response of each x variable (if return_x is True). See Also -------- @@ -722,19 +737,27 @@ def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, If True, return the state vector (default = False). squeeze : bool, optional - If True (default), remove single-dimensional entries from the shape - of the output. For single output systems, this converts the output - response to a 1D array. The default value can be set using + By default, if a system is single-input, single-output (SISO) then the + output response is returned as a 1D array (indexed by time). If + squeeze=True, remove single-dimensional entries from the shape of the + output even if the system is not SISO. If squeeze=False, keep the + output as a 2D array (indexed by the output number and time) even if + the system is SISO. The default value can be set using config.defaults['control.squeeze_time_response']. Returns ------- T : array Time values of the output + yout : array - Response of the system + Response of the system. If the system is SISO and squeeze is not + True, the array is 1D (indexed by time). If the system is not SISO or + squeeze is False, the array is 2D (indexed by the output number and + time). + xout : array, optional - Individual response of each x variable (if return_x is True) + Individual response of each x variable (if return_x is True). See Also -------- @@ -789,10 +812,10 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, Numbers are converted to constant arrays with the correct shape. - input : int + input : int, optional Index of the input that will be used in this simulation. Default = 0. - output : int + output : int, optional Index of the output that will be used in this simulation. Set to None to not trim outputs @@ -804,23 +827,31 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, If True, transpose all input and output arrays (for backward compatibility with MATLAB and :func:`scipy.signal.lsim`) - return_x : bool + return_x : bool, optional If True, return the state vector (default = False). squeeze : bool, optional - If True (default), remove single-dimensional entries from the shape - of the output. For single output systems, this converts the output - response to a 1D array. The default value can be set using + By default, if a system is single-input, single-output (SISO) then the + output response is returned as a 1D array (indexed by time). If + squeeze=True, remove single-dimensional entries from the shape of the + output even if the system is not SISO. If squeeze=False, keep the + output as a 2D array (indexed by the output number and time) even if + the system is SISO. The default value can be set using config.defaults['control.squeeze_time_response']. Returns ------- T : array Time values of the output + yout : array - Response of the system + Response of the system. If the system is SISO and squeeze is not + True, the array is 1D (indexed by time). If the system is not SISO or + squeeze is False, the array is 2D (indexed by the output number and + time). + xout : array, optional - Individual response of each x variable (if return_x is True) + Individual response of each x variable (if return_x is True). See Also -------- From e838b4bee01baf4814df4dc190ace326b7689c03 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 17 Jan 2021 22:17:56 -0800 Subject: [PATCH 114/260] initial implementation of MIMO step, impulse response --- control/tests/timeresp_test.py | 115 +++++++++++++-------- control/timeresp.py | 184 ++++++++++++++++++++++++++------- 2 files changed, 219 insertions(+), 80 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index e5c7471b6..65d31f72d 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -639,9 +639,10 @@ def test_time_vector(self, tsystem, fun, squeeze, matarrayout): if hasattr(tsystem, 't'): # tout should always match t, which has shape (n, ) np.testing.assert_allclose(tout, tsystem.t) - if squeeze is False or sys.outputs > 1: + + if squeeze is False or not sys.issiso(): assert yout.shape[0] == sys.outputs - assert yout.shape[1] == tout.shape[0] + assert yout.shape[-1] == tout.shape[0] else: assert yout.shape == tout.shape @@ -725,21 +726,22 @@ def test_time_series_data_convention_2D(self, siso_ss1): @pytest.mark.usefixtures("editsdefaults") @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.ss2io]) - @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape", [ - [1, 1, 1, None, (8,)], - [2, 1, 1, True, (8,)], - [3, 1, 1, False, (1, 8)], - [3, 2, 1, None, (2, 8)], - [4, 2, 1, True, (2, 8)], - [5, 2, 1, False, (2, 8)], - [3, 1, 2, None, (1, 8)], - [4, 1, 2, True, (8,)], - [5, 1, 2, False, (1, 8)], - [4, 2, 2, None, (2, 8)], - [5, 2, 2, True, (2, 8)], - [6, 2, 2, False, (2, 8)], + @pytest.mark.parametrize("nstate, nout, ninp, squeeze, shape1, shape2", [ + # state out in squeeze in/out out-only + [1, 1, 1, None, (8,), (8,)], + [2, 1, 1, True, (8,), (8,)], + [3, 1, 1, False, (1, 1, 8), (1, 8)], + [3, 2, 1, None, (2, 1, 8), (2, 8)], + [4, 2, 1, True, (2, 8), (2, 8)], + [5, 2, 1, False, (2, 1, 8), (2, 8)], + [3, 1, 2, None, (1, 2, 8), (1, 8)], + [4, 1, 2, True, (2, 8), (8,)], + [5, 1, 2, False, (1, 2, 8), (1, 8)], + [4, 2, 2, None, (2, 2, 8), (2, 8)], + [5, 2, 2, True, (2, 2, 8), (2, 8)], + [6, 2, 2, False, (2, 2, 8), (2, 8)], ]) - def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): + def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): # Figure out if we have SciPy 1+ scipy0 = StrictVersion(sp.__version__) < '1.0' @@ -750,27 +752,56 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): else: sys = fcn(ct.rss(nstate, nout, ninp, strictly_proper=True)) - # Keep track of expect users warnings - warntype = UserWarning if sys.inputs > 1 else None - # Generate the time and input vectors tvec = np.linspace(0, 1, 8) uvec = np.dot( np.ones((sys.inputs, 1)), np.reshape(np.sin(tvec), (1, 8))) + # # Pass squeeze argument and make sure the shape is correct - with pytest.warns(warntype, match="Converting MIMO system"): - _, yvec = ct.impulse_response(sys, tvec, squeeze=squeeze) - assert yvec.shape == shape + # + # For responses that are indexed by the input, check against shape1 + # For responses that have no/fixed input, check against shape2 + # - _, yvec = ct.initial_response(sys, tvec, 1, squeeze=squeeze) - assert yvec.shape == shape + # Impulse response + if isinstance(sys, StateSpace): + # Check the states as well + _, yvec, xvec = ct.impulse_response( + sys, tvec, squeeze=squeeze, return_x=True) + if sys.issiso() and squeeze is not False: + assert xvec.shape == (sys.states, 8) + else: + assert xvec.shape == (sys.states, sys.inputs, 8) + else: + _, yvec = ct.impulse_response(sys, tvec, squeeze=squeeze) + assert yvec.shape == shape1 - with pytest.warns(warntype, match="Converting MIMO system"): + # Step response + if isinstance(sys, StateSpace): + # Check the states as well + _, yvec, xvec = ct.step_response( + sys, tvec, squeeze=squeeze, return_x=True) + if sys.issiso() and squeeze is not False: + assert xvec.shape == (sys.states, 8) + else: + assert xvec.shape == (sys.states, sys.inputs, 8) + else: _, yvec = ct.step_response(sys, tvec, squeeze=squeeze) - assert yvec.shape == shape + assert yvec.shape == shape1 + + # Initial response (only indexed by output) + if isinstance(sys, StateSpace): + # Check the states as well + _, yvec, xvec = ct.initial_response( + sys, tvec, 1, squeeze=squeeze, return_x=True) + assert xvec.shape == (sys.states, 8) + else: + _, yvec = ct.initial_response(sys, tvec, 1, squeeze=squeeze) + assert yvec.shape == shape2 + # Forced response (only indexed by output) if isinstance(sys, StateSpace): # Check the states as well _, yvec, xvec = ct.forced_response( @@ -779,39 +810,39 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): else: # Just check the input/output response _, yvec = ct.forced_response(sys, tvec, uvec, 0, squeeze=squeeze) - assert yvec.shape == shape + assert yvec.shape == shape2 # Test cases where we choose a subset of inputs and outputs _, yvec = ct.step_response( sys, tvec, input=ninp-1, output=nout-1, squeeze=squeeze) - # Possible code if we implemenet a squeeze='siso' option if squeeze is False: # Shape should be unsqueezed - assert yvec.shape == (1, 8) + assert yvec.shape == (1, 1, 8) else: # Shape should be squeezed assert yvec.shape == (8, ) - # For InputOutputSystems, also test input_output_response + # For InputOutputSystems, also test input/output response if isinstance(sys, ct.InputOutputSystem) and not scipy0: _, yvec = ct.input_output_response(sys, tvec, uvec, squeeze=squeeze) - assert yvec.shape == shape + assert yvec.shape == shape2 # # Changing config.default to False should return 3D frequency response # ct.config.set_defaults('control', squeeze_time_response=False) - with pytest.warns(warntype, match="Converting MIMO system"): - _, yvec = ct.impulse_response(sys, tvec) - assert yvec.shape == (sys.outputs, 8) + _, yvec = ct.impulse_response(sys, tvec) + if squeeze is not True or sys.inputs > 1 or sys.outputs > 1: + assert yvec.shape == (sys.outputs, sys.inputs, 8) - _, yvec = ct.initial_response(sys, tvec, 1) - assert yvec.shape == (sys.outputs, 8) + _, yvec = ct.step_response(sys, tvec) + if squeeze is not True or sys.inputs > 1 or sys.outputs > 1: + assert yvec.shape == (sys.outputs, sys.inputs, 8) - with pytest.warns(warntype, match="Converting MIMO system"): - _, yvec = ct.step_response(sys, tvec) - assert yvec.shape == (sys.outputs, 8) + _, yvec = ct.initial_response(sys, tvec, 1) + if squeeze is not True or sys.outputs > 1: + assert yvec.shape == (sys.outputs, 8) if isinstance(sys, ct.StateSpace): _, yvec, xvec = ct.forced_response( @@ -819,12 +850,14 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape): assert xvec.shape == (sys.states, 8) else: _, yvec = ct.forced_response(sys, tvec, uvec, 0) - assert yvec.shape == (sys.outputs, 8) + if squeeze is not True or sys.outputs > 1: + assert yvec.shape == (sys.outputs, 8) # For InputOutputSystems, also test input_output_response if isinstance(sys, ct.InputOutputSystem) and not scipy0: _, yvec = ct.input_output_response(sys, tvec, uvec) - assert yvec.shape == (sys.noutputs, 8) + if squeeze is not True or sys.outputs > 1: + assert yvec.shape == (sys.outputs, 8) @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.ss2io]) def test_squeeze_exception(self, fcn): diff --git a/control/timeresp.py b/control/timeresp.py index b8dc6631a..0aa675454 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -514,12 +514,13 @@ def _get_ss_simo(sys, input=None, output=None, squeeze=None): def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, transpose=False, return_x=False, squeeze=None): # pylint: disable=W0622 - """Step response of a linear system + """Compute the step response for a linear system. - If the system has multiple inputs or outputs (MIMO), one input has - to be selected for the simulation. Optionally, one output may be - selected. The parameters `input` and `output` do this. All other - inputs are set to 0, all other outputs are ignored. + If the system has multiple inputs and/or multiple outputs, the step + response is computed for each input/output pair, with all other inputs set + to zero. Optionally, a single input and/or single output can be selected, + in which case all other inputs are set to 0 and all other outputs are + ignored. For information on the **shape** of parameters `T`, `X0` and return values `T`, `yout`, see :ref:`time-series-convention`. @@ -545,11 +546,12 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, arrays with the correct shape. input : int, optional - Index of the input that will be used in this simulation. Default = 0. + Only compute the step response for the listed input. If not + specified, the step responses for each independent input are computed. output : int, optional - Index of the output that will be used in this simulation. Set to None - to not trim outputs + Only report the step response for the listed output. If not + specified, all outputs are reported. T_num : int, optional Number of time steps to use in simulation if T is not provided as an @@ -567,23 +569,27 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, output response is returned as a 1D array (indexed by time). If squeeze=True, remove single-dimensional entries from the shape of the output even if the system is not SISO. If squeeze=False, keep the - output as a 2D array (indexed by the output number and time) even if + output as a 3D array (indexed by the output, input, and time) even if the system is SISO. The default value can be set using config.defaults['control.squeeze_time_response']. Returns ------- - T : array + T : 1D array Time values of the output - yout : array + yout : ndarray Response of the system. If the system is SISO and squeeze is not True, the array is 1D (indexed by time). If the system is not SISO or - squeeze is False, the array is 2D (indexed by the output number and + squeeze is False, the array is 3D (indexed by the input, output, and time). xout : array, optional - Individual response of each x variable (if return_x is True). + Individual response of each x variable (if return_x is True). For a + SISO system (or if a single input is specified), xout is a 2D array + indexed by the state index and time. For a non-SISO system, xout is a + 3D array indexed by the state, the input, and time. The shape of xout + is not affected by the ``squeeze`` keyword. See Also -------- @@ -599,13 +605,52 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, >>> T, yout = step_response(sys, T, X0) """ - squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) + # Convert to state space so that we can simulate + sys = _convert_to_statespace(sys) + + # Create the time and input vectors if T is None or np.asarray(T).size == 1: T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) U = np.ones_like(T) - return forced_response(sys, T, U, X0, transpose=transpose, - return_x=return_x, squeeze=squeeze) + # If squeeze was not specified, figure out the default + if squeeze is None: + squeeze = config.defaults['control.squeeze_time_response'] + + # Figure out what type of step response to compute (SISO, SIMO, MIMO) + if squeeze is False: + # Drop through to MIMO case + pass + elif sys.issiso() or isinstance(input, int) or isinstance(output, int): + # Get the system we need to simulate + squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) + return forced_response(sys, T, U, X0, transpose=transpose, + return_x=return_x, squeeze=squeeze) + elif input is not None or output is not None: + raise ValueError("input and output must either be integers or None") + + # Simulate the response for each input + ninputs = sys.inputs if input is None else 1 + noutputs = sys.outputs if output is None else 1 + yout = np.empty((noutputs, ninputs, len(T))) + xout = np.empty((sys.states, ninputs, len(T))) + for i in range(sys.inputs): + # If input keyword was specified, only handle that case + if isinstance(input, int) and i != input: + continue + + # Create a set of single inputs system for simulation + squeeze, simo = _get_ss_simo(sys, i, output, squeeze=squeeze) + + out = forced_response(simo, T, U, X0, transpose=False, + return_x=return_x, squeeze=True) + inpidx = i if input is None else 0 + yout[:, inpidx, :] = out[1] + if return_x: + xout[:, i, :] = out[2] + + return _process_time_response(sys, out[0], yout, xout, transpose=transpose, + return_x=return_x, squeeze=squeeze) def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, @@ -788,12 +833,13 @@ def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, transpose=False, return_x=False, squeeze=None): # pylint: disable=W0622 - """Impulse response of a linear system + """Compute the impulse response for a linear system. - If the system has multiple inputs or outputs (MIMO), one input has - to be selected for the simulation. Optionally, one output may be - selected. The parameters `input` and `output` do this. All other - inputs are set to 0, all other outputs are ignored. + If the system has multiple inputs and/or multiple outputs, the impulse + response is computed for each input/output pair, with all other inputs set + to zero. Optionally, a single input and/or single output can be selected, + in which case all other inputs are set to 0 and all other outputs are + ignored. For information on the **shape** of parameters `T`, `X0` and return values `T`, `yout`, see :ref:`time-series-convention`. @@ -813,11 +859,13 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, Numbers are converted to constant arrays with the correct shape. input : int, optional - Index of the input that will be used in this simulation. Default = 0. + Only compute the impulse response for the listed input. If not + specified, the impulse responses for each independent input are + computed. output : int, optional - Index of the output that will be used in this simulation. Set to None - to not trim outputs + Only report the step response for the listed output. If not + specified, all outputs are reported. T_num : int, optional Number of time steps to use in simulation if T is not provided as an @@ -851,7 +899,11 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, time). xout : array, optional - Individual response of each x variable (if return_x is True). + Individual response of each x variable (if return_x is True). For a + SISO system (or if a single input is specified), xout is a 2D array + indexed by the state index and time. For a non-SISO system, xout is a + 3D array indexed by the state, the input, and time. The shape of xout + is not affected by the ``squeeze`` keyword. See Also -------- @@ -868,10 +920,12 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, >>> T, yout = impulse_response(sys, T, X0) """ - squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) - # if system has direct feedthrough, can't simulate impulse response # numerically + # Convert to state space so that we can simulate + sys = _convert_to_statespace(sys) + + # Check to make sure there is not a direct term if np.any(sys.D != 0) and isctime(sys): warnings.warn("System has direct feedthrough: ``D != 0``. The " "infinite impulse at ``t=0`` does not appear in the " @@ -889,19 +943,71 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=False) U = np.zeros_like(T) - # Compute new X0 that contains the impulse - # We can't put the impulse into U because there is no numerical - # representation for it (infinitesimally short, infinitely high). - # See also: http://www.mathworks.com/support/tech-notes/1900/1901.html - if isctime(sys): - B = np.asarray(sys.B).squeeze() - new_X0 = B + X0 - else: - new_X0 = X0 - U[0] = 1./sys.dt # unit area impulse + # If squeeze was not specified, figure out the default + if squeeze is None: + squeeze = config.defaults['control.squeeze_time_response'] + + # Figure out what type of step response to compute (SISO, SIMO, MIMO) + if squeeze is False: + # Drop through to MIMO case + pass + elif sys.issiso() or isinstance(input, int) or isinstance(output, int): + # Get the system we need to simulate + squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) + + # + # Compute new X0 that contains the impulse + # + # We can't put the impulse into U because there is no numerical + # representation for it (infinitesimally short, infinitely high). + # See also: http://www.mathworks.com/support/tech-notes/1900/1901.html + # + if isctime(sys): + B = np.asarray(sys.B).squeeze() + new_X0 = B + X0 + else: + new_X0 = X0 + U[0] = 1./sys.dt # unit area impulse + + return forced_response(sys, T, U, new_X0, transpose=transpose, + return_x=return_x, squeeze=squeeze) + elif input is not None or output is not None: + raise ValueError("input and output must either be integers or None") + + # Simulate the response for each input + ninputs = sys.inputs if input is None else 1 + noutputs = sys.outputs if output is None else 1 + yout = np.empty((noutputs, ninputs, len(T))) + xout = np.empty((sys.states, ninputs, len(T))) + for i in range(sys.inputs): + # If input keyword was specified, only handle that case + if isinstance(input, int) and i != input: + continue + + # Get the system we need to simulate + squeeze, simo = _get_ss_simo(sys, i, output, squeeze=squeeze) + + # Compute new X0 that contains the impulse + if isctime(simo): + B = np.asarray(simo.B).squeeze() + new_X0 = B + X0 + else: + new_X0 = X0 + U[0] = 1./simo.dt # unit area impulse + + # Simulate the impulse response fo this input + out = forced_response(simo, T, U, new_X0, transpose=transpose, + return_x=return_x, squeeze=squeeze) + + # Store the output (and states) + inpidx = i if input is None else 0 + yout[:, inpidx, :] = out[1] + if return_x: + xout[:, i, :] = out[2] + + return _process_time_response(sys, out[0], yout, xout, transpose=transpose, + return_x=return_x, squeeze=squeeze) - return forced_response(sys, T, U, new_X0, transpose=transpose, - return_x=return_x, squeeze=squeeze) # utility function to find time period and time increment using pole locations From 85a480c8edbe76d9ff4dc3cc5ffafd8e9c892577 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 18 Jan 2021 08:17:01 -0800 Subject: [PATCH 115/260] finalize MIMO implementation: remove duplicate code, unit test updates --- control/iosys.py | 5 +- control/tests/matlab2_test.py | 14 +-- control/tests/timeresp_test.py | 40 +++++- control/timeresp.py | 220 +++++++++++++++++++++------------ 4 files changed, 186 insertions(+), 93 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index d16cbce93..66ca20ebb 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -1428,8 +1428,9 @@ def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', for i in range(len(T)): u = U[i] if len(U.shape) == 1 else U[:, i] y[:, i] = sys._out(T[i], [], u) - return _process_time_response(sys, T, y, [], transpose=transpose, - return_x=return_x, squeeze=squeeze) + return _process_time_response( + sys, T, y, np.array((0, 0, np.asarray(T).size)), + transpose=transpose, return_x=return_x, squeeze=squeeze) # create X0 if not given, test if X0 has correct shape X0 = _check_convert_array(X0, [(nstates,), (nstates, 1)], diff --git a/control/tests/matlab2_test.py b/control/tests/matlab2_test.py index 5db4156df..633ceef6f 100644 --- a/control/tests/matlab2_test.py +++ b/control/tests/matlab2_test.py @@ -121,25 +121,25 @@ def test_step(self, SISO_mats, MIMO_mats, mplcleanup): #print("gain:", dcgain(sys)) subplot2grid(plot_shape, (0, 0)) - t, y = step(sys) + y, t = step(sys) plot(t, y) subplot2grid(plot_shape, (0, 1)) T = linspace(0, 2, 100) X0 = array([1, 1]) - t, y = step(sys, T, X0) + y, t = step(sys, T, X0) plot(t, y) # Test output of state vector - t, y, x = step(sys, return_x=True) + y, t, x = step(sys, return_x=True) #Test MIMO system A, B, C, D = MIMO_mats sys = ss(A, B, C, D) subplot2grid(plot_shape, (0, 2)) - t, y = step(sys) - plot(t, y) + y, t = step(sys) + plot(t, y[:, 0, 0]) def test_impulse(self, SISO_mats, mplcleanup): A, B, C, D = SISO_mats @@ -168,8 +168,8 @@ def test_impulse_mimo(self, MIMO_mats, mplcleanup): #Test MIMO system A, B, C, D = MIMO_mats sys = ss(A, B, C, D) - t, y = impulse(sys) - plot(t, y, label='MIMO System') + y, t = impulse(sys) + plot(t, y[:, :, 0], label='MIMO System') legend(loc='best') #show() diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 65d31f72d..4bf52b498 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -347,7 +347,7 @@ def test_impulse_response_mimo(self, mimo_ss2): yref_notrim = np.zeros((2, len(t))) yref_notrim[:1, :] = yref _t, yy = impulse_response(sys, T=t, input=0) - np.testing.assert_array_almost_equal(yy, yref_notrim, decimal=4) + np.testing.assert_array_almost_equal(yy[:,0,:], yref_notrim, decimal=4) @pytest.mark.skipif(StrictVersion(sp.__version__) < "1.3", reason="requires SciPy 1.3 or greater") @@ -770,7 +770,7 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): # Check the states as well _, yvec, xvec = ct.impulse_response( sys, tvec, squeeze=squeeze, return_x=True) - if sys.issiso() and squeeze is not False: + if sys.issiso(): assert xvec.shape == (sys.states, 8) else: assert xvec.shape == (sys.states, sys.inputs, 8) @@ -783,7 +783,7 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): # Check the states as well _, yvec, xvec = ct.step_response( sys, tvec, squeeze=squeeze, return_x=True) - if sys.issiso() and squeeze is not False: + if sys.issiso(): assert xvec.shape == (sys.states, 8) else: assert xvec.shape == (sys.states, sys.inputs, 8) @@ -894,3 +894,37 @@ def test_squeeze_0_8_4(self, nstate, nout, ninp, squeeze, shape): _, yvec = ct.initial_response(sys, tvec, 1, squeeze=squeeze) assert yvec.shape == shape + + @pytest.mark.parametrize( + "nstate, nout, ninp, squeeze, ysh_in, ysh_no, xsh_in", [ + [4, 1, 1, None, (8,), (8,), (8, 4)], + [4, 1, 1, True, (8,), (8,), (8, 4)], + [4, 1, 1, False, (8, 1, 1), (8, 1), (8, 4)], + [4, 2, 1, None, (8, 2, 1), (8, 2), (8, 4, 1)], + [4, 2, 1, True, (8, 2), (8, 2), (8, 4, 1)], + [4, 2, 1, False, (8, 2, 1), (8, 2), (8, 4, 1)], + [4, 1, 2, None, (8, 1, 2), (8, 1), (8, 4, 2)], + [4, 1, 2, True, (8, 2), (8,), (8, 4, 2)], + [4, 1, 2, False, (8, 1, 2), (8, 1), (8, 4, 2)], + [4, 2, 2, None, (8, 2, 2), (8, 2), (8, 4, 2)], + [4, 2, 2, True, (8, 2, 2), (8, 2), (8, 4, 2)], + [4, 2, 2, False, (8, 2, 2), (8, 2), (8, 4, 2)], + ]) + def test_response_transpose( + self, nstate, nout, ninp, squeeze, ysh_in, ysh_no, xsh_in): + sys = ct.rss(nstate, nout, ninp) + T = np.linspace(0, 1, 8) + + # Step response - input indexed + t, y, x = ct.step_response( + sys, T, transpose=True, return_x=True, squeeze=squeeze) + assert t.shape == (T.size, ) + assert y.shape == ysh_in + assert x.shape == xsh_in + + # Initial response - no input indexing + t, y, x = ct.initial_response( + sys, T, 1, transpose=True, return_x=True, squeeze=squeeze) + assert t.shape == (T.size, ) + assert y.shape == ysh_no + assert x.shape == (T.size, sys.states) diff --git a/control/timeresp.py b/control/timeresp.py index 0aa675454..98e1729b7 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -91,8 +91,7 @@ # Helper function for checking array-like parameters def _check_convert_array(in_obj, legal_shapes, err_msg_start, squeeze=False, transpose=False): - """ - Helper function for checking array_like parameters. + """Helper function for checking array_like parameters. * Check type and shape of ``in_obj``. * Convert ``in_obj`` to an array if necessary. @@ -128,8 +127,8 @@ def _check_convert_array(in_obj, legal_shapes, err_msg_start, squeeze=False, For example: ``array([[1,2,3]])`` is converted to ``array([1, 2, 3])`` - transpose : bool - If True, assume that input arrays are transposed for the standard + transpose : bool, optional + If True, assume that 2D input arrays are transposed from the standard format. Used to convert MATLAB-style inputs to our format. Returns @@ -137,6 +136,7 @@ def _check_convert_array(in_obj, legal_shapes, err_msg_start, squeeze=False, out_array : array The checked and converted contents of ``in_obj``. + """ # convert nearly everything to an array. out_array = np.asarray(in_obj) @@ -226,9 +226,10 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, X0 : array_like or float, optional Initial condition (default = 0). - transpose : bool, optional (default=False) + transpose : bool, optional If True, transpose all input and output arrays (for backward - compatibility with MATLAB and :func:`scipy.signal.lsim`) + compatibility with MATLAB and :func:`scipy.signal.lsim`). Default + value is False. interpolate : bool, optional (default=False) If True and system is a discrete time system, the input will @@ -456,36 +457,122 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, # Process time responses in a uniform way -def _process_time_response(sys, tout, yout, xout, transpose=None, - return_x=False, squeeze=None): - # If squeeze was not specified, figure out the default +def _process_time_response( + sys, tout, yout, xout, transpose=None, return_x=False, + squeeze=None, input=None, output=None): + """Process time response signals. + + This function processes the outputs of the time response functions and + processes the transpose and squeeze keywords. + + Parameters + ---------- + T : 1D array + Time values of the output + + yout : ndarray + Response of the system. This can either be a 1D array indexed by time + (for SISO systems), a 2D array indexed by output and time (for MIMO + systems with no input indexing, such as initial_response or forced + response) or a 3D array indexed by output, input, and time. + + xout : array, optional + Individual response of each x variable (if return_x is True). For a + SISO system (or if a single input is specified), This should be a 2D + array indexed by the state index and time (for single input systems) + or a 3D array indexed by state, input, and time. + + transpose : bool, optional + If True, transpose all input and output arrays (for backward + compatibility with MATLAB and :func:`scipy.signal.lsim`). Default + value is False. + + return_x : bool, optional + If True, return the state vector (default = False). + + squeeze : bool, optional + By default, if a system is single-input, single-output (SISO) then the + output response is returned as a 1D array (indexed by time). If + squeeze=True, remove single-dimensional entries from the shape of the + output even if the system is not SISO. If squeeze=False, keep the + output as a 3D array (indexed by the output, input, and time) even if + the system is SISO. The default value can be set using + config.defaults['control.squeeze_time_response']. + + input : int, optional + If present, the response represents ony the listed input. + + output : int, optional + If present, the response represents ony the listed input. + + Returns + ------- + T : 1D array + Time values of the output + + yout : ndarray + Response of the system. If the system is SISO and squeeze is not + True, the array is 1D (indexed by time). If the system is not SISO or + squeeze is False, the array is either 2D (indexed by output and time) + or 3D (indexed by input, output, and time). + + xout : array, optional + Individual response of each x variable (if return_x is True). For a + SISO system (or if a single input is specified), xout is a 2D array + indexed by the state index and time. For a non-SISO system, xout is a + 3D array indexed by the state, the input, and time. The shape of xout + is not affected by the ``squeeze`` keyword. + """ + # If squeeze was not specified, figure out the default (might remain None) if squeeze is None: squeeze = config.defaults['control.squeeze_time_response'] - # Figure out whether and now to squeeze output data + # Determine if the system is SISO + issiso = sys.issiso() or (input is not None and output is not None) + + # Figure out whether and how to squeeze output data if squeeze is True: # squeeze all dimensions yout = np.squeeze(yout) elif squeeze is False: # squeeze no dimensions pass elif squeeze is None: # squeeze signals if SISO - yout = yout[0] if sys.issiso() else yout + if issiso: + if len(yout.shape) == 3: + yout = yout[0][0] # remove input and output + else: + yout = yout[0] # remove input else: raise ValueError("unknown squeeze value") + # Figure out whether and how to squeeze the state data + if issiso and len(xout.shape) > 2: + xout = xout[:, 0, :] # remove input + # See if we need to transpose the data back into MATLAB form if transpose: + # Transpose time vector in case we are using np.matrix tout = np.transpose(tout) - yout = np.transpose(yout) - xout = np.transpose(xout) + + # For signals, put the last index (time) into the first slot + yout = np.transpose(yout, np.roll(range(yout.ndim), 1)) + xout = np.transpose(xout, np.roll(range(xout.ndim), 1)) # Return time, output, and (optionally) state return (tout, yout, xout) if return_x else (tout, yout) def _get_ss_simo(sys, input=None, output=None, squeeze=None): - """Return a SISO or SIMO state-space version of sys + """Return a SISO or SIMO state-space version of sys. + + This function converts the given system to a state space system in + preparation for simulation and sets the system matrixes to match the + desired input and output. + + If input is not specified, select first input and issue warning (legacy + behavior that should eventually not be used). + + If the output is not specified, report on all outputs. - If input is not specified, select first input and issue warning """ # If squeeze was not specified, figure out the default if squeeze is None: @@ -559,7 +646,8 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, transpose : bool, optional If True, transpose all input and output arrays (for backward - compatibility with MATLAB and :func:`scipy.signal.lsim`) + compatibility with MATLAB and :func:`scipy.signal.lsim`). Default + value is False. return_x : bool, optional If True, return the state vector (default = False). @@ -605,37 +693,30 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, >>> T, yout = step_response(sys, T, X0) """ - # Convert to state space so that we can simulate - sys = _convert_to_statespace(sys) - # Create the time and input vectors if T is None or np.asarray(T).size == 1: T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) U = np.ones_like(T) - # If squeeze was not specified, figure out the default - if squeeze is None: - squeeze = config.defaults['control.squeeze_time_response'] + # If we are passed a transfer function and X0 is non-zero, warn the user + if isinstance(sys, TransferFunction) and np.any(X0 != 0): + warnings.warn( + "Non-zero initial condition given for transfer function system. " + "Internal conversation to state space used; may not be consistent " + "with given X0.") - # Figure out what type of step response to compute (SISO, SIMO, MIMO) - if squeeze is False: - # Drop through to MIMO case - pass - elif sys.issiso() or isinstance(input, int) or isinstance(output, int): - # Get the system we need to simulate - squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) - return forced_response(sys, T, U, X0, transpose=transpose, - return_x=return_x, squeeze=squeeze) - elif input is not None or output is not None: - raise ValueError("input and output must either be integers or None") + # Convert to state space so that we can simulate + sys = _convert_to_statespace(sys) - # Simulate the response for each input + # Set up arrays to handle the output ninputs = sys.inputs if input is None else 1 noutputs = sys.outputs if output is None else 1 - yout = np.empty((noutputs, ninputs, len(T))) - xout = np.empty((sys.states, ninputs, len(T))) + yout = np.empty((noutputs, ninputs, np.asarray(T).size)) + xout = np.empty((sys.states, ninputs, np.asarray(T).size)) + + # Simulate the response for each input for i in range(sys.inputs): - # If input keyword was specified, only handle that case + # If input keyword was specified, only simulate for that input if isinstance(input, int) and i != input: continue @@ -649,8 +730,9 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, if return_x: xout[:, i, :] = out[2] - return _process_time_response(sys, out[0], yout, xout, transpose=transpose, - return_x=return_x, squeeze=squeeze) + return _process_time_response( + sys, out[0], yout, xout, transpose=transpose, return_x=return_x, + squeeze=squeeze, input=input, output=output) def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, @@ -871,9 +953,10 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, Number of time steps to use in simulation if T is not provided as an array (autocomputed if not given); ignored if sys is discrete-time. - transpose : bool + transpose : bool, optional If True, transpose all input and output arrays (for backward - compatibility with MATLAB and :func:`scipy.signal.lsim`) + compatibility with MATLAB and :func:`scipy.signal.lsim`). Default + value is False. return_x : bool, optional If True, return the state vector (default = False). @@ -920,8 +1003,6 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, >>> T, yout = impulse_response(sys, T, X0) """ - # if system has direct feedthrough, can't simulate impulse response - # numerically # Convert to state space so that we can simulate sys = _convert_to_statespace(sys) @@ -943,42 +1024,13 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=False) U = np.zeros_like(T) - # If squeeze was not specified, figure out the default - if squeeze is None: - squeeze = config.defaults['control.squeeze_time_response'] - - # Figure out what type of step response to compute (SISO, SIMO, MIMO) - if squeeze is False: - # Drop through to MIMO case - pass - elif sys.issiso() or isinstance(input, int) or isinstance(output, int): - # Get the system we need to simulate - squeeze, sys = _get_ss_simo(sys, input, output, squeeze=squeeze) - - # - # Compute new X0 that contains the impulse - # - # We can't put the impulse into U because there is no numerical - # representation for it (infinitesimally short, infinitely high). - # See also: http://www.mathworks.com/support/tech-notes/1900/1901.html - # - if isctime(sys): - B = np.asarray(sys.B).squeeze() - new_X0 = B + X0 - else: - new_X0 = X0 - U[0] = 1./sys.dt # unit area impulse - - return forced_response(sys, T, U, new_X0, transpose=transpose, - return_x=return_x, squeeze=squeeze) - elif input is not None or output is not None: - raise ValueError("input and output must either be integers or None") - - # Simulate the response for each input + # Set up arrays to handle the output ninputs = sys.inputs if input is None else 1 noutputs = sys.outputs if output is None else 1 - yout = np.empty((noutputs, ninputs, len(T))) - xout = np.empty((sys.states, ninputs, len(T))) + yout = np.empty((noutputs, ninputs, np.asarray(T).size)) + xout = np.empty((sys.states, ninputs, np.asarray(T).size)) + + # Simulate the response for each input for i in range(sys.inputs): # If input keyword was specified, only handle that case if isinstance(input, int) and i != input: @@ -987,7 +1039,13 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, # Get the system we need to simulate squeeze, simo = _get_ss_simo(sys, i, output, squeeze=squeeze) + # # Compute new X0 that contains the impulse + # + # We can't put the impulse into U because there is no numerical + # representation for it (infinitesimally short, infinitely high). + # See also: http://www.mathworks.com/support/tech-notes/1900/1901.html + # if isctime(simo): B = np.asarray(simo.B).squeeze() new_X0 = B + X0 @@ -996,7 +1054,7 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, U[0] = 1./simo.dt # unit area impulse # Simulate the impulse response fo this input - out = forced_response(simo, T, U, new_X0, transpose=transpose, + out = forced_response(simo, T, U, new_X0, transpose=False, return_x=return_x, squeeze=squeeze) # Store the output (and states) @@ -1005,9 +1063,9 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, if return_x: xout[:, i, :] = out[2] - return _process_time_response(sys, out[0], yout, xout, transpose=transpose, - return_x=return_x, squeeze=squeeze) - + return _process_time_response( + sys, out[0], yout, xout, transpose=transpose, return_x=return_x, + squeeze=squeeze, input=input, output=output) # utility function to find time period and time increment using pole locations From 28bbe7f220adfca82714ed77fa10162e430e74bb Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 19 Jan 2021 22:53:32 -0800 Subject: [PATCH 116/260] fixes for @sawyerbfuller review --- control/config.py | 1 - control/timeresp.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/control/config.py b/control/config.py index ef3184a5e..a713e33d2 100644 --- a/control/config.py +++ b/control/config.py @@ -17,7 +17,6 @@ _control_defaults = { 'control.default_dt': 0, 'control.squeeze_frequency_response': None, - 'control.squeeze_time_response': True, 'control.squeeze_time_response': None, 'forced_response.return_x': False, } diff --git a/control/timeresp.py b/control/timeresp.py index 98e1729b7..bfa2ec149 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -500,10 +500,10 @@ def _process_time_response( config.defaults['control.squeeze_time_response']. input : int, optional - If present, the response represents ony the listed input. + If present, the response represents only the listed input. output : int, optional - If present, the response represents ony the listed input. + If present, the response represents only the listed output. Returns ------- From 5a4c3ab18f8d0129dfd90d92f6a04eadcbbf5fb8 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 19 Jan 2021 20:17:19 -0800 Subject: [PATCH 117/260] convert inputs, outputs, ... to ninputs... w/ getter/setter warning --- control/bdalg.py | 16 +-- control/canonical.py | 14 +-- control/frdata.py | 54 ++++---- control/freqplot.py | 6 +- control/iosys.py | 22 ++-- control/lti.py | 49 +++++++- control/robust.py | 26 ++-- control/statefbk.py | 4 +- control/statesp.py | 217 ++++++++++++++++++--------------- control/tests/convert_test.py | 16 +-- control/tests/freqresp_test.py | 2 +- control/tests/iosys_test.py | 8 +- control/tests/lti_test.py | 16 +-- control/tests/matlab_test.py | 6 +- control/tests/minreal_test.py | 8 +- control/tests/robust_test.py | 32 ++--- control/tests/statesp_test.py | 30 ++--- control/tests/timeresp_test.py | 54 ++++---- control/tests/xferfcn_test.py | 46 +++---- control/timeresp.py | 16 +-- control/xferfcn.py | 188 ++++++++++++++-------------- 21 files changed, 445 insertions(+), 385 deletions(-) diff --git a/control/bdalg.py b/control/bdalg.py index e00dcfa3c..20c9f4b09 100644 --- a/control/bdalg.py +++ b/control/bdalg.py @@ -76,7 +76,7 @@ def series(sys1, *sysn): Raises ------ ValueError - if `sys2.inputs` does not equal `sys1.outputs` + if `sys2.ninputs` does not equal `sys1.noutputs` if `sys1.dt` is not compatible with `sys2.dt` See Also @@ -336,25 +336,25 @@ def connect(sys, Q, inputv, outputv): """ inputv, outputv, Q = np.asarray(inputv), np.asarray(outputv), np.asarray(Q) # check indices - index_errors = (inputv - 1 > sys.inputs) | (inputv < 1) + index_errors = (inputv - 1 > sys.ninputs) | (inputv < 1) if np.any(index_errors): raise IndexError( "inputv index %s out of bounds" % inputv[np.where(index_errors)]) - index_errors = (outputv - 1 > sys.outputs) | (outputv < 1) + index_errors = (outputv - 1 > sys.noutputs) | (outputv < 1) if np.any(index_errors): raise IndexError( "outputv index %s out of bounds" % outputv[np.where(index_errors)]) - index_errors = (Q[:,0:1] - 1 > sys.inputs) | (Q[:,0:1] < 1) + index_errors = (Q[:,0:1] - 1 > sys.ninputs) | (Q[:,0:1] < 1) if np.any(index_errors): raise IndexError( "Q input index %s out of bounds" % Q[np.where(index_errors)]) - index_errors = (np.abs(Q[:,1:]) - 1 > sys.outputs) + index_errors = (np.abs(Q[:,1:]) - 1 > sys.noutputs) if np.any(index_errors): raise IndexError( "Q output index %s out of bounds" % Q[np.where(index_errors)]) # first connect - K = np.zeros((sys.inputs, sys.outputs)) + K = np.zeros((sys.ninputs, sys.noutputs)) for r in np.array(Q).astype(int): inp = r[0]-1 for outp in r[1:]: @@ -365,8 +365,8 @@ def connect(sys, Q, inputv, outputv): sys = sys.feedback(np.array(K), sign=1) # now trim - Ytrim = np.zeros((len(outputv), sys.outputs)) - Utrim = np.zeros((sys.inputs, len(inputv))) + Ytrim = np.zeros((len(outputv), sys.noutputs)) + Utrim = np.zeros((sys.ninputs, len(inputv))) for i,u in enumerate(inputv): Utrim[u-1,i] = 1. for i,y in enumerate(outputv): diff --git a/control/canonical.py b/control/canonical.py index 341ec5da4..45846147f 100644 --- a/control/canonical.py +++ b/control/canonical.py @@ -79,16 +79,16 @@ def reachable_form(xsys): zsys.B[0, 0] = 1.0 zsys.A = zeros_like(xsys.A) Apoly = poly(xsys.A) # characteristic polynomial - for i in range(0, xsys.states): + for i in range(0, xsys.nstates): zsys.A[0, i] = -Apoly[i+1] / Apoly[0] - if (i+1 < xsys.states): + if (i+1 < xsys.nstates): zsys.A[i+1, i] = 1.0 # Compute the reachability matrices for each set of states Wrx = ctrb(xsys.A, xsys.B) Wrz = ctrb(zsys.A, zsys.B) - if matrix_rank(Wrx) != xsys.states: + if matrix_rank(Wrx) != xsys.nstates: raise ValueError("System not controllable to working precision.") # Transformation from one form to another @@ -96,7 +96,7 @@ def reachable_form(xsys): # Check to make sure inversion was OK. Note that since we are inverting # Wrx and we already checked its rank, this exception should never occur - if matrix_rank(Tzx) != xsys.states: # pragma: no cover + if matrix_rank(Tzx) != xsys.nstates: # pragma: no cover raise ValueError("Transformation matrix singular to working precision.") # Finally, compute the output matrix @@ -133,9 +133,9 @@ def observable_form(xsys): zsys.C[0, 0] = 1 zsys.A = zeros_like(xsys.A) Apoly = poly(xsys.A) # characteristic polynomial - for i in range(0, xsys.states): + for i in range(0, xsys.nstates): zsys.A[i, 0] = -Apoly[i+1] / Apoly[0] - if (i+1 < xsys.states): + if (i+1 < xsys.nstates): zsys.A[i, i+1] = 1 # Compute the observability matrices for each set of states @@ -145,7 +145,7 @@ def observable_form(xsys): # Transformation from one form to another Tzx = solve(Wrz, Wrx) # matrix left division, Tzx = inv(Wrz) * Wrx - if matrix_rank(Tzx) != xsys.states: + if matrix_rank(Tzx) != xsys.nstates: raise ValueError("Transformation matrix singular to working precision.") # Finally, compute the output matrix diff --git a/control/frdata.py b/control/frdata.py index 844ac9ab9..3398bfbee 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -155,11 +155,11 @@ def __init__(self, *args, **kwargs): def __str__(self): """String representation of the transfer function.""" - mimo = self.inputs > 1 or self.outputs > 1 + mimo = self.ninputs > 1 or self.noutputs > 1 outstr = ['Frequency response data'] - for i in range(self.inputs): - for j in range(self.outputs): + for i in range(self.ninputs): + for j in range(self.noutputs): if mimo: outstr.append("Input %i to output %i:" % (i + 1, j + 1)) outstr.append('Freq [rad/s] Response') @@ -201,12 +201,12 @@ def __add__(self, other): other = _convert_to_FRD(other, omega=self.omega) # Check that the input-output sizes are consistent. - if self.inputs != other.inputs: + if self.ninputs != other.ninputs: raise ValueError("The first summand has %i input(s), but the \ -second has %i." % (self.inputs, other.inputs)) - if self.outputs != other.outputs: +second has %i." % (self.ninputs, other.ninputs)) + if self.noutputs != other.noutputs: raise ValueError("The first summand has %i output(s), but the \ -second has %i." % (self.outputs, other.outputs)) +second has %i." % (self.noutputs, other.noutputs)) return FRD(self.fresp + other.fresp, other.omega) @@ -236,14 +236,14 @@ def __mul__(self, other): other = _convert_to_FRD(other, omega=self.omega) # Check that the input-output sizes are consistent. - if self.inputs != other.outputs: + if self.ninputs != other.noutputs: raise ValueError( "H = G1*G2: input-output size mismatch: " "G1 has %i input(s), G2 has %i output(s)." % - (self.inputs, other.outputs)) + (self.ninputs, other.noutputs)) - inputs = other.inputs - outputs = self.outputs + inputs = other.ninputs + outputs = self.noutputs fresp = empty((outputs, inputs, len(self.omega)), dtype=self.fresp.dtype) for i in range(len(self.omega)): @@ -263,14 +263,14 @@ def __rmul__(self, other): other = _convert_to_FRD(other, omega=self.omega) # Check that the input-output sizes are consistent. - if self.outputs != other.inputs: + if self.noutputs != other.ninputs: raise ValueError( "H = G1*G2: input-output size mismatch: " "G1 has %i input(s), G2 has %i output(s)." % - (other.inputs, self.outputs)) + (other.ninputs, self.noutputs)) - inputs = self.inputs - outputs = other.outputs + inputs = self.ninputs + outputs = other.noutputs fresp = empty((outputs, inputs, len(self.omega)), dtype=self.fresp.dtype) @@ -290,8 +290,8 @@ def __truediv__(self, other): else: other = _convert_to_FRD(other, omega=self.omega) - if (self.inputs > 1 or self.outputs > 1 or - other.inputs > 1 or other.outputs > 1): + if (self.ninputs > 1 or self.noutputs > 1 or + other.ninputs > 1 or other.noutputs > 1): raise NotImplementedError( "FRD.__truediv__ is currently only implemented for SISO " "systems.") @@ -313,8 +313,8 @@ def __rtruediv__(self, other): else: other = _convert_to_FRD(other, omega=self.omega) - if (self.inputs > 1 or self.outputs > 1 or - other.inputs > 1 or other.outputs > 1): + if (self.ninputs > 1 or self.noutputs > 1 or + other.ninputs > 1 or other.noutputs > 1): raise NotImplementedError( "FRD.__rtruediv__ is currently only implemented for " "SISO systems.") @@ -392,10 +392,10 @@ def eval(self, omega, squeeze=None): else: out = self.fresp[:, :, elements] else: - out = empty((self.outputs, self.inputs, len(omega_array)), + out = empty((self.noutputs, self.ninputs, len(omega_array)), dtype=complex) - for i in range(self.outputs): - for j in range(self.inputs): + for i in range(self.noutputs): + for j in range(self.ninputs): for k, w in enumerate(omega_array): frraw = splev(w, self.ifunc[i, j], der=0) out[i, j, k] = frraw[0] + 1.0j * frraw[1] @@ -406,7 +406,7 @@ def __call__(self, s, squeeze=None): """Evaluate system's transfer function at complex frequencies. Returns the complex frequency response `sys(s)` of system `sys` with - `m = sys.inputs` number of inputs and `p = sys.outputs` number of + `m = sys.ninputs` number of inputs and `p = sys.noutputs` number of outputs. To evaluate at a frequency omega in radians per second, enter @@ -474,10 +474,10 @@ def feedback(self, other=1, sign=-1): other = _convert_to_FRD(other, omega=self.omega) - if (self.outputs != other.inputs or self.inputs != other.outputs): + if (self.noutputs != other.ninputs or self.ninputs != other.noutputs): raise ValueError( "FRD.feedback, inputs/outputs mismatch") - fresp = empty((self.outputs, self.inputs, len(other.omega)), + fresp = empty((self.noutputs, self.ninputs, len(other.omega)), dtype=complex) # TODO: vectorize this # TODO: handle omega re-mapping @@ -487,9 +487,9 @@ def feedback(self, other=1, sign=-1): fresp[:, :, k] = np.dot( self.fresp[:, :, k], linalg.solve( - eye(self.inputs) + eye(self.ninputs) + np.dot(other.fresp[:, :, k], self.fresp[:, :, k]), - eye(self.inputs)) + eye(self.ninputs)) ) return FRD(fresp, other.omega, smooth=(self.ifunc is not None)) diff --git a/control/freqplot.py b/control/freqplot.py index 38b525aec..ef4263bbe 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -214,7 +214,7 @@ def bode_plot(syslist, omega=None, mags, phases, omegas, nyquistfrqs = [], [], [], [] for sys in syslist: - if sys.inputs > 1 or sys.outputs > 1: + if sys.ninputs > 1 or sys.noutputs > 1: # TODO: Add MIMO bode plots. raise NotImplementedError( "Bode is currently only implemented for SISO systems.") @@ -582,7 +582,7 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, num=50, endpoint=True, base=10.0) for sys in syslist: - if sys.inputs > 1 or sys.outputs > 1: + if sys.ninputs > 1 or sys.noutputs > 1: # TODO: Add MIMO nyquist plots. raise NotImplementedError( "Nyquist is currently only implemented for SISO systems.") @@ -672,7 +672,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): ------- None """ - if P.inputs > 1 or P.outputs > 1 or C.inputs > 1 or C.outputs > 1: + if P.ninputs > 1 or P.noutputs > 1 or C.ninputs > 1 or C.noutputs > 1: # TODO: Add MIMO go4 plots. raise NotImplementedError( "Gang of four is currently only implemented for SISO systems.") diff --git a/control/iosys.py b/control/iosys.py index 66ca20ebb..1021861b0 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -659,8 +659,8 @@ def __init__(self, linsys, inputs=None, outputs=None, states=None, # Create the I/O system object super(LinearIOSystem, self).__init__( - inputs=linsys.inputs, outputs=linsys.outputs, - states=linsys.states, params={}, dt=linsys.dt, name=name) + inputs=linsys.ninputs, outputs=linsys.noutputs, + states=linsys.nstates, params={}, dt=linsys.dt, name=name) # Initalize additional state space variables StateSpace.__init__(self, linsys, remove_useless=False) @@ -668,16 +668,16 @@ def __init__(self, linsys, inputs=None, outputs=None, states=None, # Process input, output, state lists, if given # Make sure they match the size of the linear system ninputs, self.input_index = self._process_signal_list( - inputs if inputs is not None else linsys.inputs, prefix='u') - if ninputs is not None and linsys.inputs != ninputs: + inputs if inputs is not None else linsys.ninputs, prefix='u') + if ninputs is not None and linsys.ninputs != ninputs: raise ValueError("Wrong number/type of inputs given.") noutputs, self.output_index = self._process_signal_list( - outputs if outputs is not None else linsys.outputs, prefix='y') - if noutputs is not None and linsys.outputs != noutputs: + outputs if outputs is not None else linsys.noutputs, prefix='y') + if noutputs is not None and linsys.noutputs != noutputs: raise ValueError("Wrong number/type of outputs given.") nstates, self.state_index = self._process_signal_list( - states if states is not None else linsys.states, prefix='x') - if nstates is not None and linsys.states != nstates: + states if states is not None else linsys.nstates, prefix='x') + if nstates is not None and linsys.nstates != nstates: raise ValueError("Wrong number/type of states given.") def _update_params(self, params={}, warning=True): @@ -1345,9 +1345,9 @@ def __init__(self, io_sys, ss_sys=None): # Initialize the state space attributes if isinstance(ss_sys, StateSpace): # Make sure the dimension match - if io_sys.ninputs != ss_sys.inputs or \ - io_sys.noutputs != ss_sys.outputs or \ - io_sys.nstates != ss_sys.states: + if io_sys.ninputs != ss_sys.ninputs or \ + io_sys.noutputs != ss_sys.noutputs or \ + io_sys.nstates != ss_sys.nstates: raise ValueError("System dimensions for first and second " "arguments must match.") StateSpace.__init__(self, ss_sys, remove_useless=False) diff --git a/control/lti.py b/control/lti.py index 514944f75..04f495838 100644 --- a/control/lti.py +++ b/control/lti.py @@ -47,10 +47,47 @@ def __init__(self, inputs=1, outputs=1, dt=None): """Assign the LTI object's numbers of inputs and ouputs.""" # Data members common to StateSpace and TransferFunction. - self.inputs = inputs - self.outputs = outputs + self.ninputs = inputs + self.noutputs = outputs self.dt = dt + # + # Getter and setter functions for legacy input/output attributes + # + # For this iteration, generate a warning whenever the getter/setter is + # called. For a future iteration, turn it iinto a pending deprecation and + # then deprecation warning (commented out for now). + # + + @property + def inputs(self): + raise PendingDeprecationWarning( + "The LTI `inputs` attribute will be deprecated in a future " + "release. Use `ninputs` instead.") + return self.ninputs + + @inputs.setter + def inputs(self, value): + raise PendingDeprecationWarning( + "The LTI `inputs` attribute will be deprecated in a future " + "release. Use `ninputs` instead.") + + self.ninputs = value + + @property + def outputs(self): + raise PendingDeprecationWarning( + "The LTI `outputs` attribute will be deprecated in a future " + "release. Use `noutputs` instead.") + return self.noutputs + + @outputs.setter + def outputs(self, value): + raise PendingDeprecationWarning( + "The LTI `outputs` attribute will be deprecated in a future " + "release. Use `noutputs` instead.") + self.noutputs = value + def isdtime(self, strict=False): """ Check to see if a system is a discrete-time system @@ -88,7 +125,7 @@ def isctime(self, strict=False): def issiso(self): '''Check to see if a system is single input, single output''' - return self.inputs == 1 and self.outputs == 1 + return self.ninputs == 1 and self.noutputs == 1 def damp(self): '''Natural frequency, damping ratio of system poles @@ -126,7 +163,7 @@ def frequency_response(self, omega, squeeze=None): G(exp(j*omega*dt)) = mag*exp(j*phase). In general the system may be multiple input, multiple output (MIMO), - where `m = self.inputs` number of inputs and `p = self.outputs` number + where `m = self.ninputs` number of inputs and `p = self.noutputs` number of outputs. Parameters @@ -475,7 +512,7 @@ def evalfr(sys, x, squeeze=None): Returns the complex frequency response `sys(x)` where `x` is `s` for continuous-time systems and `z` for discrete-time systems, with - `m = sys.inputs` number of inputs and `p = sys.outputs` number of + `m = sys.ninputs` number of inputs and `p = sys.noutputs` number of outputs. To evaluate at a frequency omega in radians per second, enter @@ -532,7 +569,7 @@ def freqresp(sys, omega, squeeze=None): """Frequency response of an LTI system at multiple angular frequencies. In general the system may be multiple input, multiple output (MIMO), where - `m = sys.inputs` number of inputs and `p = sys.outputs` number of + `m = sys.ninputs` number of inputs and `p = sys.noutputs` number of outputs. Parameters diff --git a/control/robust.py b/control/robust.py index 2584339ac..aa5c922dc 100644 --- a/control/robust.py +++ b/control/robust.py @@ -206,12 +206,12 @@ def _size_as_needed(w, wname, n): if w is not None: if not isinstance(w, StateSpace): w = ss(w) - if 1 == w.inputs and 1 == w.outputs: + if 1 == w.ninputs and 1 == w.noutputs: w = append(*(w,) * n) else: - if w.inputs != n: + if w.ninputs != n: msg = ("{}: weighting function has {} inputs, expected {}". - format(wname, w.inputs, n)) + format(wname, w.ninputs, n)) raise ValueError(msg) else: w = ss([], [], [], []) @@ -253,8 +253,8 @@ def augw(g, w1=None, w2=None, w3=None): if w1 is None and w2 is None and w3 is None: raise ValueError("At least one weighting must not be None") - ny = g.outputs - nu = g.inputs + ny = g.noutputs + nu = g.ninputs w1, w2, w3 = [_size_as_needed(w, wname, n) for w, wname, n in zip((w1, w2, w3), @@ -278,13 +278,13 @@ def augw(g, w1=None, w2=None, w3=None): sysall = append(w1, w2, w3, Ie, g, Iu) - niw1 = w1.inputs - niw2 = w2.inputs - niw3 = w3.inputs + niw1 = w1.ninputs + niw2 = w2.ninputs + niw3 = w3.ninputs - now1 = w1.outputs - now2 = w2.outputs - now3 = w3.outputs + now1 = w1.noutputs + now2 = w2.noutputs + now3 = w3.noutputs q = np.zeros((niw1 + niw2 + niw3 + ny + nu, 2)) q[:, 0] = np.arange(1, q.shape[0] + 1) @@ -358,8 +358,8 @@ def mixsyn(g, w1=None, w2=None, w3=None): -------- hinfsyn, augw """ - nmeas = g.outputs - ncon = g.inputs + nmeas = g.noutputs + ncon = g.ninputs p = augw(g, w1, w2, w3) k, cl, gamma, rcond = hinfsyn(p, nmeas, ncon) diff --git a/control/statefbk.py b/control/statefbk.py index 1d51cfc61..7106449ae 100644 --- a/control/statefbk.py +++ b/control/statefbk.py @@ -624,7 +624,7 @@ def gram(sys, type): elif type == 'o': tra = 'N' C = -np.dot(sys.C.transpose(), sys.C) - n = sys.states + n = sys.nstates U = np.zeros((n, n)) A = np.array(sys.A) # convert to NumPy array for slycot X, scale, sep, ferr, w = sb03md( @@ -639,7 +639,7 @@ def gram(sys, type): except ImportError: raise ControlSlycot("can't find slycot module 'sb03od'") tra = 'N' - n = sys.states + n = sys.nstates Q = np.zeros((n, n)) A = np.array(sys.A) # convert to NumPy array for slycot if type == 'cf': diff --git a/control/statesp.py b/control/statesp.py index 0ee83cb7d..a6851e531 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -305,31 +305,54 @@ def __init__(self, *args, **kwargs): else: dt = config.defaults['control.default_dt'] self.dt = dt - self.states = A.shape[1] + self.nstates = A.shape[1] - if 0 == self.states: + if 0 == self.nstates: # static gain # matrix's default "empty" shape is 1x0 A.shape = (0, 0) - B.shape = (0, self.inputs) - C.shape = (self.outputs, 0) + B.shape = (0, self.ninputs) + C.shape = (self.noutputs, 0) # Check that the matrix sizes are consistent. - if self.states != A.shape[0]: + if self.nstates != A.shape[0]: raise ValueError("A must be square.") - if self.states != B.shape[0]: + if self.nstates != B.shape[0]: raise ValueError("A and B must have the same number of rows.") - if self.states != C.shape[1]: + if self.nstates != C.shape[1]: raise ValueError("A and C must have the same number of columns.") - if self.inputs != B.shape[1]: + if self.ninputs != B.shape[1]: raise ValueError("B and D must have the same number of columns.") - if self.outputs != C.shape[0]: + if self.noutputs != C.shape[0]: raise ValueError("C and D must have the same number of rows.") # Check for states that don't do anything, and remove them. if remove_useless_states: self._remove_useless_states() + # + # Getter and setter functions for legacy state attributes + # + # For this iteration, generate a warning whenever the getter/setter is + # called. For a future iteration, turn it iinto a pending deprecation and + # then deprecation warning (commented out for now). + # + + @property + def states(self): + raise PendingDeprecationWarning( + "The StateSpace `states` attribute will be deprecated in a future " + "release. Use `nstates` instead.") + return self.nstates + + @states.setter + def states(self, value): + raise PendingDeprecationWarning( + "The StateSpace `states` attribute will be deprecated in a future " + "release. Use `nstates` instead.") + # raise PendingDeprecationWarning( + self.nstates = value + def _remove_useless_states(self): """Check for states that don't do anything, and remove them. @@ -358,9 +381,9 @@ def _remove_useless_states(self): self.B = delete(self.B, useless, 0) self.C = delete(self.C, useless, 1) - self.states = self.A.shape[0] - self.inputs = self.B.shape[1] - self.outputs = self.C.shape[0] + self.nstates = self.A.shape[0] + self.ninputs = self.B.shape[1] + self.noutputs = self.C.shape[0] def __str__(self): """Return string representation of the state space system.""" @@ -398,7 +421,7 @@ def _latex_partitioned_stateless(self): r'\[', r'\left(', (r'\begin{array}' - + r'{' + 'rll' * self.inputs + '}') + + r'{' + 'rll' * self.ninputs + '}') ] for Di in asarray(self.D): @@ -422,14 +445,14 @@ def _latex_partitioned(self): ------- s : string with LaTeX representation of model """ - if self.states == 0: + if self.nstates == 0: return self._latex_partitioned_stateless() lines = [ r'\[', r'\left(', (r'\begin{array}' - + r'{' + 'rll' * self.states + '|' + 'rll' * self.inputs + '}') + + r'{' + 'rll' * self.nstates + '|' + 'rll' * self.ninputs + '}') ] for Ai, Bi in zip(asarray(self.A), asarray(self.B)): @@ -476,7 +499,7 @@ def fmt_matrix(matrix, name): r'\right)']) return matlines - if self.states > 0: + if self.nstates > 0: lines.extend(fmt_matrix(self.A, 'A')) lines.append('&') lines.extend(fmt_matrix(self.B, 'B')) @@ -536,8 +559,8 @@ def __add__(self, other): other = _convert_to_statespace(other) # Check to make sure the dimensions are OK - if ((self.inputs != other.inputs) or - (self.outputs != other.outputs)): + if ((self.ninputs != other.ninputs) or + (self.noutputs != other.noutputs)): raise ValueError("Systems have different shapes.") dt = common_timebase(self.dt, other.dt) @@ -586,9 +609,9 @@ def __mul__(self, other): other = _convert_to_statespace(other) # Check to make sure the dimensions are OK - if self.inputs != other.outputs: + if self.ninputs != other.noutputs: raise ValueError("C = A * B: A has %i column(s) (input(s)), \ - but B has %i row(s)\n(output(s))." % (self.inputs, other.outputs)) + but B has %i row(s)\n(output(s))." % (self.ninputs, other.noutputs)) dt = common_timebase(self.dt, other.dt) # Concatenate the various arrays @@ -708,9 +731,9 @@ def slycot_laub(self, x): raise ValueError("input list must be 1D") # preallocate - n = self.states - m = self.inputs - p = self.outputs + n = self.nstates + m = self.ninputs + p = self.noutputs out = np.empty((p, m, len(x_arr)), dtype=complex) # The first call both evaluates C(sI-A)^-1 B and also returns # Hessenberg transformed matrices at, bt, ct. @@ -753,7 +776,7 @@ def horner(self, x): Returns ------- - output : (self.outputs, self.inputs, len(x)) complex ndarray + output : (self.noutputs, self.ninputs, len(x)) complex ndarray Frequency response Notes @@ -773,13 +796,13 @@ def horner(self, x): raise ValueError("input list must be 1D") # Preallocate - out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) + out = empty((self.noutputs, self.ninputs, len(x_arr)), dtype=complex) #TODO: can this be vectorized? for idx, x_idx in enumerate(x_arr): out[:,:,idx] = \ np.dot(self.C, - solve(x_idx * eye(self.states) - self.A, self.B)) \ + solve(x_idx * eye(self.nstates) - self.A, self.B)) \ + self.D return out @@ -801,12 +824,12 @@ def freqresp(self, omega): def pole(self): """Compute the poles of a state space system.""" - return eigvals(self.A) if self.states else np.array([]) + return eigvals(self.A) if self.nstates else np.array([]) def zero(self): """Compute the zeros of a state space system.""" - if not self.states: + if not self.nstates: return np.array([]) # Use AB08ND from Slycot if it's available, otherwise use @@ -854,7 +877,7 @@ def feedback(self, other=1, sign=-1): other = _convert_to_statespace(other) # Check to make sure the dimensions are OK - if (self.inputs != other.outputs) or (self.outputs != other.inputs): + if (self.ninputs != other.noutputs) or (self.noutputs != other.ninputs): raise ValueError("State space systems don't have compatible " "inputs/outputs for feedback.") dt = common_timebase(self.dt, other.dt) @@ -868,8 +891,8 @@ def feedback(self, other=1, sign=-1): C2 = other.C D2 = other.D - F = eye(self.inputs) - sign * np.dot(D2, D1) - if matrix_rank(F) != self.inputs: + F = eye(self.ninputs) - sign * np.dot(D2, D1) + if matrix_rank(F) != self.ninputs: raise ValueError( "I - sign * D2 * D1 is singular to working precision.") @@ -879,11 +902,11 @@ def feedback(self, other=1, sign=-1): # decomposition (cubic runtime complexity) of F only once! # The remaining back substitutions are only quadratic in runtime. E_D2_C2 = solve(F, concatenate((D2, C2), axis=1)) - E_D2 = E_D2_C2[:, :other.inputs] - E_C2 = E_D2_C2[:, other.inputs:] + E_D2 = E_D2_C2[:, :other.ninputs] + E_C2 = E_D2_C2[:, other.ninputs:] - T1 = eye(self.outputs) + sign * np.dot(D1, E_D2) - T2 = eye(self.inputs) + sign * np.dot(E_D2, D1) + T1 = eye(self.noutputs) + sign * np.dot(D1, E_D2) + T2 = eye(self.ninputs) + sign * np.dot(E_D2, D1) A = concatenate( (concatenate( @@ -922,9 +945,9 @@ def lft(self, other, nu=-1, ny=-1): other = _convert_to_statespace(other) # maximal values for nu, ny if ny == -1: - ny = min(other.inputs, self.outputs) + ny = min(other.ninputs, self.noutputs) if nu == -1: - nu = min(other.outputs, self.inputs) + nu = min(other.noutputs, self.ninputs) # dimension check # TODO @@ -932,14 +955,14 @@ def lft(self, other, nu=-1, ny=-1): # submatrices A = self.A - B1 = self.B[:, :self.inputs - nu] - B2 = self.B[:, self.inputs - nu:] - C1 = self.C[:self.outputs - ny, :] - C2 = self.C[self.outputs - ny:, :] - D11 = self.D[:self.outputs - ny, :self.inputs - nu] - D12 = self.D[:self.outputs - ny, self.inputs - nu:] - D21 = self.D[self.outputs - ny:, :self.inputs - nu] - D22 = self.D[self.outputs - ny:, self.inputs - nu:] + B1 = self.B[:, :self.ninputs - nu] + B2 = self.B[:, self.ninputs - nu:] + C1 = self.C[:self.noutputs - ny, :] + C2 = self.C[self.noutputs - ny:, :] + D11 = self.D[:self.noutputs - ny, :self.ninputs - nu] + D12 = self.D[:self.noutputs - ny, self.ninputs - nu:] + D21 = self.D[self.noutputs - ny:, :self.ninputs - nu] + D22 = self.D[self.noutputs - ny:, self.ninputs - nu:] # submatrices Abar = other.A @@ -960,21 +983,21 @@ def lft(self, other, nu=-1, ny=-1): # solve for the resulting ss by solving for [y, u] using [x, # xbar] and [w1, w2]. TH = np.linalg.solve(F, np.block( - [[C2, np.zeros((ny, other.states)), - D21, np.zeros((ny, other.inputs - ny))], - [np.zeros((nu, self.states)), Cbar1, - np.zeros((nu, self.inputs - nu)), Dbar12]] + [[C2, np.zeros((ny, other.nstates)), + D21, np.zeros((ny, other.ninputs - ny))], + [np.zeros((nu, self.nstates)), Cbar1, + np.zeros((nu, self.ninputs - nu)), Dbar12]] )) - T11 = TH[:ny, :self.states] - T12 = TH[:ny, self.states: self.states + other.states] - T21 = TH[ny:, :self.states] - T22 = TH[ny:, self.states: self.states + other.states] - H11 = TH[:ny, self.states + other.states:self.states + - other.states + self.inputs - nu] - H12 = TH[:ny, self.states + other.states + self.inputs - nu:] - H21 = TH[ny:, self.states + other.states:self.states + - other.states + self.inputs - nu] - H22 = TH[ny:, self.states + other.states + self.inputs - nu:] + T11 = TH[:ny, :self.nstates] + T12 = TH[:ny, self.nstates: self.nstates + other.nstates] + T21 = TH[ny:, :self.nstates] + T22 = TH[ny:, self.nstates: self.nstates + other.nstates] + H11 = TH[:ny, self.nstates + other.nstates:self.nstates + + other.nstates + self.ninputs - nu] + H12 = TH[:ny, self.nstates + other.nstates + self.ninputs - nu:] + H21 = TH[ny:, self.nstates + other.nstates:self.nstates + + other.nstates + self.ninputs - nu] + H22 = TH[ny:, self.nstates + other.nstates + self.ninputs - nu:] Ares = np.block([ [A + B2.dot(T21), B2.dot(T22)], @@ -1000,17 +1023,17 @@ def lft(self, other, nu=-1, ny=-1): def minreal(self, tol=0.0): """Calculate a minimal realization, removes unobservable and uncontrollable states""" - if self.states: + if self.nstates: try: from slycot import tb01pd - B = empty((self.states, max(self.inputs, self.outputs))) - B[:, :self.inputs] = self.B - C = empty((max(self.outputs, self.inputs), self.states)) - C[:self.outputs, :] = self.C - A, B, C, nr = tb01pd(self.states, self.inputs, self.outputs, + B = empty((self.nstates, max(self.ninputs, self.noutputs))) + B[:, :self.ninputs] = self.B + C = empty((max(self.noutputs, self.ninputs), self.nstates)) + C[:self.noutputs, :] = self.C + A, B, C, nr = tb01pd(self.nstates, self.ninputs, self.noutputs, self.A, B, C, tol=tol) - return StateSpace(A[:nr, :nr], B[:nr, :self.inputs], - C[:self.outputs, :nr], self.D) + return StateSpace(A[:nr, :nr], B[:nr, :self.ninputs], + C[:self.noutputs, :nr], self.D) except ImportError: raise TypeError("minreal requires slycot tb01pd") else: @@ -1055,10 +1078,10 @@ def returnScipySignalLTI(self, strict=True): kwdt = {} # Preallocate the output. - out = [[[] for _ in range(self.inputs)] for _ in range(self.outputs)] + out = [[[] for _ in range(self.ninputs)] for _ in range(self.noutputs)] - for i in range(self.outputs): - for j in range(self.inputs): + for i in range(self.noutputs): + for j in range(self.ninputs): out[i][j] = signalStateSpace(asarray(self.A), asarray(self.B[:, j:j + 1]), asarray(self.C[i:i + 1, :]), @@ -1077,21 +1100,21 @@ def append(self, other): self.dt = common_timebase(self.dt, other.dt) - n = self.states + other.states - m = self.inputs + other.inputs - p = self.outputs + other.outputs + n = self.nstates + other.nstates + m = self.ninputs + other.ninputs + p = self.noutputs + other.noutputs A = zeros((n, n)) B = zeros((n, m)) C = zeros((p, n)) D = zeros((p, m)) - A[:self.states, :self.states] = self.A - A[self.states:, self.states:] = other.A - B[:self.states, :self.inputs] = self.B - B[self.states:, self.inputs:] = other.B - C[:self.outputs, :self.states] = self.C - C[self.outputs:, self.states:] = other.C - D[:self.outputs, :self.inputs] = self.D - D[self.outputs:, self.inputs:] = other.D + A[:self.nstates, :self.nstates] = self.A + A[self.nstates:, self.nstates:] = other.A + B[:self.nstates, :self.ninputs] = self.B + B[self.nstates:, self.ninputs:] = other.B + C[:self.noutputs, :self.nstates] = self.C + C[self.noutputs:, self.nstates:] = other.C + D[:self.noutputs, :self.ninputs] = self.D + D[self.noutputs:, self.ninputs:] = other.D return StateSpace(A, B, C, D, self.dt) def __getitem__(self, indices): @@ -1188,7 +1211,7 @@ def dcgain(self): gain = np.squeeze(self.horner(1)) except LinAlgError: # eigenvalue at DC - gain = np.tile(np.nan, (self.outputs, self.inputs)) + gain = np.tile(np.nan, (self.noutputs, self.ninputs)) return np.squeeze(gain) def is_static_gain(self): @@ -1241,13 +1264,13 @@ def _convert_to_statespace(sys, **kw): num, den, denorder = sys.minreal()._common_den() # transfer function to state space conversion now should work! - ssout = td04ad('C', sys.inputs, sys.outputs, + ssout = td04ad('C', sys.ninputs, sys.noutputs, denorder, den, num, tol=0) states = ssout[0] return StateSpace(ssout[1][:states, :states], - ssout[2][:states, :sys.inputs], - ssout[3][:sys.outputs, :states], ssout[4], + ssout[2][:states, :sys.ninputs], + ssout[3][:sys.noutputs, :states], ssout[4], sys.dt) except ImportError: # No Slycot. Scipy tf->ss can't handle MIMO, but static @@ -1257,13 +1280,13 @@ def _convert_to_statespace(sys, **kw): maxd = max(max(len(d) for d in drow) for drow in sys.den) if 1 == maxn and 1 == maxd: - D = empty((sys.outputs, sys.inputs), dtype=float) - for i, j in itertools.product(range(sys.outputs), - range(sys.inputs)): + D = empty((sys.noutputs, sys.ninputs), dtype=float) + for i, j in itertools.product(range(sys.noutputs), + range(sys.ninputs)): D[i, j] = sys.num[i][j][0] / sys.den[i][j][0] return StateSpace([], [], [], D, sys.dt) else: - if sys.inputs != 1 or sys.outputs != 1: + if sys.ninputs != 1 or sys.noutputs != 1: raise TypeError("No support for MIMO without slycot") # TODO: do we want to squeeze first and check dimenations? @@ -1446,18 +1469,18 @@ def _mimo2siso(sys, input, output, warn_conversion=False): if not (isinstance(input, int) and isinstance(output, int)): raise TypeError("Parameters ``input`` and ``output`` must both " "be integer numbers.") - if not (0 <= input < sys.inputs): + if not (0 <= input < sys.ninputs): raise ValueError("Selected input does not exist. " "Selected input: {sel}, " "number of system inputs: {ext}." - .format(sel=input, ext=sys.inputs)) - if not (0 <= output < sys.outputs): + .format(sel=input, ext=sys.ninputs)) + if not (0 <= output < sys.noutputs): raise ValueError("Selected output does not exist. " "Selected output: {sel}, " "number of system outputs: {ext}." - .format(sel=output, ext=sys.outputs)) + .format(sel=output, ext=sys.noutputs)) # Convert sys to SISO if necessary - if sys.inputs > 1 or sys.outputs > 1: + if sys.ninputs > 1 or sys.noutputs > 1: if warn_conversion: warn("Converting MIMO system to SISO system. " "Only input {i} and output {o} are used." @@ -1502,13 +1525,13 @@ def _mimo2simo(sys, input, warn_conversion=False): """ if not (isinstance(input, int)): raise TypeError("Parameter ``input`` be an integer number.") - if not (0 <= input < sys.inputs): + if not (0 <= input < sys.ninputs): raise ValueError("Selected input does not exist. " "Selected input: {sel}, " "number of system inputs: {ext}." - .format(sel=input, ext=sys.inputs)) + .format(sel=input, ext=sys.ninputs)) # Convert sys to SISO if necessary - if sys.inputs > 1: + if sys.ninputs > 1: if warn_conversion: warn("Converting MIMO system to SIMO system. " "Only input {i} is used." .format(i=input)) diff --git a/control/tests/convert_test.py b/control/tests/convert_test.py index f92029fe3..de9c340f0 100644 --- a/control/tests/convert_test.py +++ b/control/tests/convert_test.py @@ -85,9 +85,9 @@ def testConvert(self, fixedseed, states, inputs, outputs): self.printSys(tfTransformed, 4) # Check to see if the state space systems have same dim - if (ssOriginal.states != ssTransformed.states) and verbose: + if (ssOriginal.nstates != ssTransformed.nstates) and verbose: print("WARNING: state space dimension mismatch: %d versus %d" % - (ssOriginal.states, ssTransformed.states)) + (ssOriginal.nstates, ssTransformed.nstates)) # Now make sure the frequency responses match # Since bode() only handles SISO, go through each I/O pair @@ -181,9 +181,9 @@ def testConvertMIMO(self): def testTf2ssStaticSiso(self): """Regression: tf2ss for SISO static gain""" gsiso = tf2ss(tf(23, 46)) - assert 0 == gsiso.states - assert 1 == gsiso.inputs - assert 1 == gsiso.outputs + assert 0 == gsiso.nstates + assert 1 == gsiso.ninputs + assert 1 == gsiso.noutputs # in all cases ratios are exactly representable, so assert_array_equal # is fine np.testing.assert_array_equal([[0.5]], gsiso.D) @@ -194,9 +194,9 @@ def testTf2ssStaticMimo(self): gmimo = tf2ss(tf( [[ [23], [3], [5] ], [ [-1], [0.125], [101.3] ]], [[ [46], [0.1], [80] ], [ [2], [-0.1], [1] ]])) - assert 0 == gmimo.states - assert 3 == gmimo.inputs - assert 2 == gmimo.outputs + assert 0 == gmimo.nstates + assert 3 == gmimo.ninputs + assert 2 == gmimo.noutputs d = np.array([[0.5, 30, 0.0625], [-0.5, -1.25, 101.3]]) np.testing.assert_array_equal(d, gmimo.D) diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 8da10a372..5c7c2cd80 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -231,7 +231,7 @@ def test_discrete(dsystem_type): dsys.frequency_response(omega_bad) # Test bode plots (currently only implemented for SISO) - if (dsys.inputs == 1 and dsys.outputs == 1): + if (dsys.ninputs == 1 and dsys.noutputs == 1): # Generic call (frequency range calculated automatically) bode(dsys) diff --git a/control/tests/iosys_test.py b/control/tests/iosys_test.py index acdf43422..9a15e83f4 100644 --- a/control/tests/iosys_test.py +++ b/control/tests/iosys_test.py @@ -863,7 +863,7 @@ def test_named_signals(self, tsys): ).reshape(-1,), inputs = ['u[0]', 'u[1]'], outputs = ['y[0]', 'y[1]'], - states = tsys.mimo_linsys1.states, + states = tsys.mimo_linsys1.nstates, name = 'sys1') sys2 = ios.LinearIOSystem(tsys.mimo_linsys2, inputs = ['u[0]', 'u[1]'], @@ -974,7 +974,7 @@ def test_sys_naming_convention(self, tsys): outfcn=lambda t, x, u, params: u, inputs=('u[0]', 'u[1]'), outputs=('y[0]', 'y[1]'), - states=tsys.mimo_linsys1.states, + states=tsys.mimo_linsys1.nstates, name='namedsys') unnamedsys1 = ct.NonlinearIOSystem( lambda t, x, u, params: x, inputs=2, outputs=2, states=2 @@ -1107,7 +1107,7 @@ def outfcn(t, x, u, params): outfcn=outfcn, inputs=inputs, outputs=outputs, - states=tsys.mimo_linsys1.states, + states=tsys.mimo_linsys1.nstates, name='sys1') with pytest.raises(ValueError): sys1.linearize([0, 0], [0, 0]) @@ -1116,7 +1116,7 @@ def outfcn(t, x, u, params): outfcn=outfcn, inputs=('u[0]', 'u[1]'), outputs=('y[0]', 'y[1]'), - states=tsys.mimo_linsys1.states, + states=tsys.mimo_linsys1.nstates, name='sys1') for x0, u0 in [([0], [0, 0]), ([0, 0, 0], [0, 0]), diff --git a/control/tests/lti_test.py b/control/tests/lti_test.py index e165f9c60..b4a168841 100644 --- a/control/tests/lti_test.py +++ b/control/tests/lti_test.py @@ -222,17 +222,17 @@ def test_squeeze(self, fcn, nstate, nout, ninp, omega, squeeze, shape): ct.config.set_defaults('control', squeeze_frequency_response=False) mag, phase, _ = sys.frequency_response(omega) if isscalar: - assert mag.shape == (sys.outputs, sys.inputs, 1) - assert phase.shape == (sys.outputs, sys.inputs, 1) - assert sys(omega * 1j).shape == (sys.outputs, sys.inputs) - assert ct.evalfr(sys, omega * 1j).shape == (sys.outputs, sys.inputs) + assert mag.shape == (sys.noutputs, sys.ninputs, 1) + assert phase.shape == (sys.noutputs, sys.ninputs, 1) + assert sys(omega * 1j).shape == (sys.noutputs, sys.ninputs) + assert ct.evalfr(sys, omega * 1j).shape == (sys.noutputs, sys.ninputs) else: - assert mag.shape == (sys.outputs, sys.inputs, len(omega)) - assert phase.shape == (sys.outputs, sys.inputs, len(omega)) + assert mag.shape == (sys.noutputs, sys.ninputs, len(omega)) + assert phase.shape == (sys.noutputs, sys.ninputs, len(omega)) assert sys(omega * 1j).shape == \ - (sys.outputs, sys.inputs, len(omega)) + (sys.noutputs, sys.ninputs, len(omega)) assert ct.evalfr(sys, omega * 1j).shape == \ - (sys.outputs, sys.inputs, len(omega)) + (sys.noutputs, sys.ninputs, len(omega)) @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.frd, ct.ss2io]) def test_squeeze_exceptions(self, fcn): diff --git a/control/tests/matlab_test.py b/control/tests/matlab_test.py index c9ba818cb..dd595be0f 100644 --- a/control/tests/matlab_test.py +++ b/control/tests/matlab_test.py @@ -697,9 +697,9 @@ def testMinreal(self, verbose=False): sys = ss(A, B, C, D) sysr = minreal(sys, verbose=verbose) - assert sysr.states == 2 - assert sysr.inputs == sys.inputs - assert sysr.outputs == sys.outputs + assert sysr.nstates == 2 + assert sysr.ninputs == sys.ninputs + assert sysr.noutputs == sys.noutputs np.testing.assert_array_almost_equal( eigvals(sysr.A), [-2.136154, -0.1638459]) diff --git a/control/tests/minreal_test.py b/control/tests/minreal_test.py index b2d166d5a..466f9384d 100644 --- a/control/tests/minreal_test.py +++ b/control/tests/minreal_test.py @@ -46,7 +46,7 @@ def testMinrealBrute(self): for n, m, p in permutations(range(1,6), 3): s = rss(n, p, m) sr = s.minreal() - if s.states > sr.states: + if s.nstates > sr.nstates: nreductions += 1 else: # Check to make sure that poles and zeros match @@ -98,9 +98,9 @@ def testMinrealSS(self): sys = StateSpace(A, B, C, D) sysr = sys.minreal() - assert sysr.states == 2 - assert sysr.inputs == sys.inputs - assert sysr.outputs == sys.outputs + assert sysr.nstates == 2 + assert sysr.ninputs == sys.ninputs + assert sysr.noutputs == sys.noutputs np.testing.assert_array_almost_equal( eigvals(sysr.A), [-2.136154, -0.1638459]) diff --git a/control/tests/robust_test.py b/control/tests/robust_test.py index 2c1a03ef6..146ae9e41 100644 --- a/control/tests/robust_test.py +++ b/control/tests/robust_test.py @@ -76,8 +76,8 @@ def testSisoW1(self): g = ss([-1.], [1.], [1.], [1.]) w1 = ss([-2], [2.], [1.], [2.]) p = augw(g, w1) - assert p.outputs == 2 - assert p.inputs == 2 + assert p.noutputs == 2 + assert p.ninputs == 2 # w->z1 should be w1 self.siso_almost_equal(w1, p[0, 0]) # w->v should be 1 @@ -93,8 +93,8 @@ def testSisoW2(self): g = ss([-1.], [1.], [1.], [1.]) w2 = ss([-2], [1.], [1.], [2.]) p = augw(g, w2=w2) - assert p.outputs == 2 - assert p.inputs == 2 + assert p.noutputs == 2 + assert p.ninputs == 2 # w->z2 should be 0 self.siso_almost_equal(ss([], [], [], 0), p[0, 0]) # w->v should be 1 @@ -110,8 +110,8 @@ def testSisoW3(self): g = ss([-1.], [1.], [1.], [1.]) w3 = ss([-2], [1.], [1.], [2.]) p = augw(g, w3=w3) - assert p.outputs == 2 - assert p.inputs == 2 + assert p.noutputs == 2 + assert p.ninputs == 2 # w->z3 should be 0 self.siso_almost_equal(ss([], [], [], 0), p[0, 0]) # w->v should be 1 @@ -129,8 +129,8 @@ def testSisoW123(self): w2 = ss([-3.], [3.], [1.], [3.]) w3 = ss([-4.], [4.], [1.], [4.]) p = augw(g, w1, w2, w3) - assert p.outputs == 4 - assert p.inputs == 2 + assert p.noutputs == 4 + assert p.ninputs == 2 # w->z1 should be w1 self.siso_almost_equal(w1, p[0, 0]) # w->z2 should be 0 @@ -157,8 +157,8 @@ def testMimoW1(self): [[1., 0.], [0., 1.]]) w1 = ss([-2], [2.], [1.], [2.]) p = augw(g, w1) - assert p.outputs == 4 - assert p.inputs == 4 + assert p.noutputs == 4 + assert p.ninputs == 4 # w->z1 should be diag(w1,w1) self.siso_almost_equal(w1, p[0, 0]) self.siso_almost_equal(0, p[0, 1]) @@ -189,8 +189,8 @@ def testMimoW2(self): [[1., 0.], [0., 1.]]) w2 = ss([-2], [2.], [1.], [2.]) p = augw(g, w2=w2) - assert p.outputs == 4 - assert p.inputs == 4 + assert p.noutputs == 4 + assert p.ninputs == 4 # w->z2 should be 0 self.siso_almost_equal(0, p[0, 0]) self.siso_almost_equal(0, p[0, 1]) @@ -221,8 +221,8 @@ def testMimoW3(self): [[1., 0.], [0., 1.]]) w3 = ss([-2], [2.], [1.], [2.]) p = augw(g, w3=w3) - assert p.outputs == 4 - assert p.inputs == 4 + assert p.noutputs == 4 + assert p.ninputs == 4 # w->z3 should be 0 self.siso_almost_equal(0, p[0, 0]) self.siso_almost_equal(0, p[0, 1]) @@ -261,8 +261,8 @@ def testMimoW123(self): [[11., 13.], [17., 19.]], [[23., 29.], [31., 37.]]) p = augw(g, w1, w2, w3) - assert p.outputs == 8 - assert p.inputs == 4 + assert p.noutputs == 8 + assert p.ninputs == 4 # w->z1 should be w1 self.siso_almost_equal(w1, p[0, 0]) self.siso_almost_equal(0, p[0, 1]) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index ccbd06881..9030b850a 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -417,9 +417,9 @@ def test_minreal(self): sys = StateSpace(A, B, C, D) sysr = sys.minreal() - assert sysr.states == 2 - assert sysr.inputs == sys.inputs - assert sysr.outputs == sys.outputs + assert sysr.nstates == 2 + assert sysr.ninputs == sys.ninputs + assert sysr.noutputs == sys.noutputs np.testing.assert_array_almost_equal( eigvals(sysr.A), [-2.136154, -0.1638459]) @@ -591,7 +591,7 @@ def test_remove_useless_states(self): assert (0, 4) == g1.B.shape assert (5, 0) == g1.C.shape assert (5, 4) == g1.D.shape - assert 0 == g1.states + assert 0 == g1.nstates @pytest.mark.parametrize("A, B, C, D", [([1], [], [], [1]), @@ -619,9 +619,9 @@ def test_minreal_static_gain(self): def test_empty(self): """Regression: can we create an empty StateSpace object?""" g1 = StateSpace([], [], [], []) - assert 0 == g1.states - assert 0 == g1.inputs - assert 0 == g1.outputs + assert 0 == g1.nstates + assert 0 == g1.ninputs + assert 0 == g1.noutputs def test_matrix_to_state_space(self): """_convert_to_statespace(matrix) gives ss([],[],[],D)""" @@ -758,9 +758,9 @@ class TestRss: def test_shape(self, states, outputs, inputs): """Test that rss outputs have the right state, input, and output size.""" sys = rss(states, outputs, inputs) - assert sys.states == states - assert sys.inputs == inputs - assert sys.outputs == outputs + assert sys.nstates == states + assert sys.ninputs == inputs + assert sys.noutputs == outputs @pytest.mark.parametrize('states', range(1, maxStates)) @pytest.mark.parametrize('outputs', range(1, maxIO)) @@ -787,9 +787,9 @@ class TestDrss: def test_shape(self, states, outputs, inputs): """Test that drss outputs have the right state, input, and output size.""" sys = drss(states, outputs, inputs) - assert sys.states == states - assert sys.inputs == inputs - assert sys.outputs == outputs + assert sys.nstates == states + assert sys.ninputs == inputs + assert sys.noutputs == outputs @pytest.mark.parametrize('states', range(1, maxStates)) @pytest.mark.parametrize('outputs', range(1, maxIO)) @@ -830,8 +830,8 @@ def mimoss(self, request): def test_returnScipySignalLTI(self, mimoss): """Test returnScipySignalLTI method with strict=False""" sslti = mimoss.returnScipySignalLTI(strict=False) - for i in range(mimoss.outputs): - for j in range(mimoss.inputs): + for i in range(mimoss.noutputs): + for j in range(mimoss.ninputs): np.testing.assert_allclose(sslti[i][j].A, mimoss.A) np.testing.assert_allclose(sslti[i][j].B, mimoss.B[:, j:j + 1]) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 4bf52b498..f6c15f691 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -622,12 +622,12 @@ def test_time_vector(self, tsystem, fun, squeeze, matarrayout): t = tsystem.t kw['T'] = t if fun == forced_response: - kw['U'] = np.vstack([np.sin(t) for i in range(sys.inputs)]) + kw['U'] = np.vstack([np.sin(t) for i in range(sys.ninputs)]) elif fun == forced_response and isctime(sys): pytest.skip("No continuous forced_response without time vector.") - if hasattr(tsystem.sys, "states"): - kw['X0'] = np.arange(sys.states) + 1 - if sys.inputs > 1 and fun in [step_response, impulse_response]: + if hasattr(tsystem.sys, "nstates"): + kw['X0'] = np.arange(sys.nstates) + 1 + if sys.ninputs > 1 and fun in [step_response, impulse_response]: kw['input'] = 1 if squeeze is not None: kw['squeeze'] = squeeze @@ -641,7 +641,7 @@ def test_time_vector(self, tsystem, fun, squeeze, matarrayout): np.testing.assert_allclose(tout, tsystem.t) if squeeze is False or not sys.issiso(): - assert yout.shape[0] == sys.outputs + assert yout.shape[0] == sys.noutputs assert yout.shape[-1] == tout.shape[0] else: assert yout.shape == tout.shape @@ -668,8 +668,8 @@ def test_time_vector_interpolation(self, siso_dtf2, squeeze): tout, yout = forced_response(sys, t, u, x0, interpolate=True, **squeezekw) - if squeeze is False or sys.outputs > 1: - assert yout.shape[0] == sys.outputs + if squeeze is False or sys.noutputs > 1: + assert yout.shape[0] == sys.noutputs assert yout.shape[1] == tout.shape[0] else: assert yout.shape == tout.shape @@ -755,7 +755,7 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): # Generate the time and input vectors tvec = np.linspace(0, 1, 8) uvec = np.dot( - np.ones((sys.inputs, 1)), + np.ones((sys.ninputs, 1)), np.reshape(np.sin(tvec), (1, 8))) # @@ -771,9 +771,9 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): _, yvec, xvec = ct.impulse_response( sys, tvec, squeeze=squeeze, return_x=True) if sys.issiso(): - assert xvec.shape == (sys.states, 8) + assert xvec.shape == (sys.nstates, 8) else: - assert xvec.shape == (sys.states, sys.inputs, 8) + assert xvec.shape == (sys.nstates, sys.ninputs, 8) else: _, yvec = ct.impulse_response(sys, tvec, squeeze=squeeze) assert yvec.shape == shape1 @@ -784,9 +784,9 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): _, yvec, xvec = ct.step_response( sys, tvec, squeeze=squeeze, return_x=True) if sys.issiso(): - assert xvec.shape == (sys.states, 8) + assert xvec.shape == (sys.nstates, 8) else: - assert xvec.shape == (sys.states, sys.inputs, 8) + assert xvec.shape == (sys.nstates, sys.ninputs, 8) else: _, yvec = ct.step_response(sys, tvec, squeeze=squeeze) assert yvec.shape == shape1 @@ -796,7 +796,7 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): # Check the states as well _, yvec, xvec = ct.initial_response( sys, tvec, 1, squeeze=squeeze, return_x=True) - assert xvec.shape == (sys.states, 8) + assert xvec.shape == (sys.nstates, 8) else: _, yvec = ct.initial_response(sys, tvec, 1, squeeze=squeeze) assert yvec.shape == shape2 @@ -806,7 +806,7 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): # Check the states as well _, yvec, xvec = ct.forced_response( sys, tvec, uvec, 0, return_x=True, squeeze=squeeze) - assert xvec.shape == (sys.states, 8) + assert xvec.shape == (sys.nstates, 8) else: # Just check the input/output response _, yvec = ct.forced_response(sys, tvec, uvec, 0, squeeze=squeeze) @@ -833,31 +833,31 @@ def test_squeeze(self, fcn, nstate, nout, ninp, squeeze, shape1, shape2): ct.config.set_defaults('control', squeeze_time_response=False) _, yvec = ct.impulse_response(sys, tvec) - if squeeze is not True or sys.inputs > 1 or sys.outputs > 1: - assert yvec.shape == (sys.outputs, sys.inputs, 8) + if squeeze is not True or sys.ninputs > 1 or sys.noutputs > 1: + assert yvec.shape == (sys.noutputs, sys.ninputs, 8) _, yvec = ct.step_response(sys, tvec) - if squeeze is not True or sys.inputs > 1 or sys.outputs > 1: - assert yvec.shape == (sys.outputs, sys.inputs, 8) + if squeeze is not True or sys.ninputs > 1 or sys.noutputs > 1: + assert yvec.shape == (sys.noutputs, sys.ninputs, 8) _, yvec = ct.initial_response(sys, tvec, 1) - if squeeze is not True or sys.outputs > 1: - assert yvec.shape == (sys.outputs, 8) + if squeeze is not True or sys.noutputs > 1: + assert yvec.shape == (sys.noutputs, 8) if isinstance(sys, ct.StateSpace): _, yvec, xvec = ct.forced_response( sys, tvec, uvec, 0, return_x=True) - assert xvec.shape == (sys.states, 8) + assert xvec.shape == (sys.nstates, 8) else: _, yvec = ct.forced_response(sys, tvec, uvec, 0) - if squeeze is not True or sys.outputs > 1: - assert yvec.shape == (sys.outputs, 8) + if squeeze is not True or sys.noutputs > 1: + assert yvec.shape == (sys.noutputs, 8) # For InputOutputSystems, also test input_output_response if isinstance(sys, ct.InputOutputSystem) and not scipy0: _, yvec = ct.input_output_response(sys, tvec, uvec) - if squeeze is not True or sys.outputs > 1: - assert yvec.shape == (sys.outputs, 8) + if squeeze is not True or sys.noutputs > 1: + assert yvec.shape == (sys.noutputs, 8) @pytest.mark.parametrize("fcn", [ct.ss, ct.tf, ct.ss2io]) def test_squeeze_exception(self, fcn): @@ -889,7 +889,7 @@ def test_squeeze_0_8_4(self, nstate, nout, ninp, squeeze, shape): sys = ct.rss(nstate, nout, ninp, strictly_proper=True) tvec = np.linspace(0, 1, 8) uvec = np.dot( - np.ones((sys.inputs, 1)), + np.ones((sys.ninputs, 1)), np.reshape(np.sin(tvec), (1, 8))) _, yvec = ct.initial_response(sys, tvec, 1, squeeze=squeeze) @@ -927,4 +927,4 @@ def test_response_transpose( sys, T, 1, transpose=True, return_x=True, squeeze=squeeze) assert t.shape == (T.size, ) assert y.shape == ysh_no - assert x.shape == (T.size, sys.states) + assert x.shape == (T.size, sys.nstates) diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 4fc88c42e..73498ea44 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -187,8 +187,8 @@ def test_reverse_sign_mimo(self): sys2 = - sys1 sys3 = TransferFunction(num3, den1) - for i in range(sys3.outputs): - for j in range(sys3.inputs): + for i in range(sys3.noutputs): + for j in range(sys3.ninputs): np.testing.assert_array_equal(sys2.num[i][j], sys3.num[i][j]) np.testing.assert_array_equal(sys2.den[i][j], sys3.den[i][j]) @@ -233,8 +233,8 @@ def test_add_mimo(self): sys2 = TransferFunction(num2, den2) sys3 = sys1 + sys2 - for i in range(sys3.outputs): - for j in range(sys3.inputs): + for i in range(sys3.noutputs): + for j in range(sys3.ninputs): np.testing.assert_array_equal(sys3.num[i][j], num3[i][j]) np.testing.assert_array_equal(sys3.den[i][j], den3[i][j]) @@ -281,8 +281,8 @@ def test_subtract_mimo(self): sys2 = TransferFunction(num2, den2) sys3 = sys1 - sys2 - for i in range(sys3.outputs): - for j in range(sys3.inputs): + for i in range(sys3.noutputs): + for j in range(sys3.ninputs): np.testing.assert_array_equal(sys3.num[i][j], num3[i][j]) np.testing.assert_array_equal(sys3.den[i][j], den3[i][j]) @@ -337,8 +337,8 @@ def test_multiply_mimo(self): sys2 = TransferFunction(num2, den2) sys3 = sys1 * sys2 - for i in range(sys3.outputs): - for j in range(sys3.inputs): + for i in range(sys3.noutputs): + for j in range(sys3.ninputs): np.testing.assert_array_equal(sys3.num[i][j], num3[i][j]) np.testing.assert_array_equal(sys3.den[i][j], den3[i][j]) @@ -394,16 +394,16 @@ def test_slice(self): [ [ [1], [2], [3]], [ [3], [4], [5]] ], [ [[1, 2], [1, 3], [1, 4]], [[1, 4], [1, 5], [1, 6]] ]) sys1 = sys[1:, 1:] - assert (sys1.inputs, sys1.outputs) == (2, 1) + assert (sys1.ninputs, sys1.noutputs) == (2, 1) sys2 = sys[:2, :2] - assert (sys2.inputs, sys2.outputs) == (2, 2) + assert (sys2.ninputs, sys2.noutputs) == (2, 2) sys = TransferFunction( [ [ [1], [2], [3]], [ [3], [4], [5]] ], [ [[1, 2], [1, 3], [1, 4]], [[1, 4], [1, 5], [1, 6]] ], 0.5) sys1 = sys[1:, 1:] - assert (sys1.inputs, sys1.outputs) == (2, 1) + assert (sys1.ninputs, sys1.noutputs) == (2, 1) assert sys1.dt == 0.5 def test_is_static_gain(self): @@ -645,11 +645,11 @@ def test_convert_to_transfer_function(self): num = [[np.array([1., -7., 10.]), np.array([-1., 10.])], [np.array([2., -8.]), np.array([1., -2., -8.])], [np.array([1., 1., -30.]), np.array([7., -22.])]] - den = [[np.array([1., -5., -2.]) for _ in range(sys.inputs)] - for _ in range(sys.outputs)] + den = [[np.array([1., -5., -2.]) for _ in range(sys.ninputs)] + for _ in range(sys.noutputs)] - for i in range(sys.outputs): - for j in range(sys.inputs): + for i in range(sys.noutputs): + for j in range(sys.ninputs): np.testing.assert_array_almost_equal(tfsys.num[i][j], num[i][j]) np.testing.assert_array_almost_equal(tfsys.den[i][j], @@ -770,10 +770,10 @@ def test_matrix_array_multiply(self, matarrayin, X_, ij): # XH = X @ H XH = np.matmul(X, H) XH = XH.minreal() - assert XH.inputs == n - assert XH.outputs == X.shape[0] - assert len(XH.num) == XH.outputs - assert len(XH.den) == XH.outputs + assert XH.ninputs == n + assert XH.noutputs == X.shape[0] + assert len(XH.num) == XH.noutputs + assert len(XH.den) == XH.noutputs assert len(XH.num[0]) == n assert len(XH.den[0]) == n np.testing.assert_allclose(2. * H.num[ij][0], XH.num[0][0], rtol=1e-4) @@ -787,12 +787,12 @@ def test_matrix_array_multiply(self, matarrayin, X_, ij): # HXt = H @ X.T HXt = np.matmul(H, X.T) HXt = HXt.minreal() - assert HXt.inputs == X.T.shape[1] - assert HXt.outputs == n + assert HXt.ninputs == X.T.shape[1] + assert HXt.noutputs == n assert len(HXt.num) == n assert len(HXt.den) == n - assert len(HXt.num[0]) == HXt.inputs - assert len(HXt.den[0]) == HXt.inputs + assert len(HXt.num[0]) == HXt.ninputs + assert len(HXt.den[0]) == HXt.ninputs np.testing.assert_allclose(2. * H.num[0][ij], HXt.num[0][0], rtol=1e-4) np.testing.assert_allclose( H.den[0][ij], HXt.den[0][0], rtol=1e-4) np.testing.assert_allclose(2. * H.num[1][ij], HXt.num[1][0], rtol=1e-4) diff --git a/control/timeresp.py b/control/timeresp.py index bfa2ec149..4be0afbfd 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -709,13 +709,13 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, sys = _convert_to_statespace(sys) # Set up arrays to handle the output - ninputs = sys.inputs if input is None else 1 - noutputs = sys.outputs if output is None else 1 + ninputs = sys.ninputs if input is None else 1 + noutputs = sys.noutputs if output is None else 1 yout = np.empty((noutputs, ninputs, np.asarray(T).size)) - xout = np.empty((sys.states, ninputs, np.asarray(T).size)) + xout = np.empty((sys.nstates, ninputs, np.asarray(T).size)) # Simulate the response for each input - for i in range(sys.inputs): + for i in range(sys.ninputs): # If input keyword was specified, only simulate for that input if isinstance(input, int) and i != input: continue @@ -1025,13 +1025,13 @@ def impulse_response(sys, T=None, X0=0., input=None, output=None, T_num=None, U = np.zeros_like(T) # Set up arrays to handle the output - ninputs = sys.inputs if input is None else 1 - noutputs = sys.outputs if output is None else 1 + ninputs = sys.ninputs if input is None else 1 + noutputs = sys.noutputs if output is None else 1 yout = np.empty((noutputs, ninputs, np.asarray(T).size)) - xout = np.empty((sys.states, ninputs, np.asarray(T).size)) + xout = np.empty((sys.nstates, ninputs, np.asarray(T).size)) # Simulate the response for each input - for i in range(sys.inputs): + for i in range(sys.ninputs): # If input keyword was specified, only handle that case if isinstance(input, int) and i != input: continue diff --git a/control/xferfcn.py b/control/xferfcn.py index b732bafc0..5efee302f 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -241,8 +241,8 @@ def __call__(self, x, squeeze=None): continuous-time systems and `z` for discrete-time systems. In general the system may be multiple input, multiple output - (MIMO), where `m = self.inputs` number of inputs and `p = - self.outputs` number of outputs. + (MIMO), where `m = self.ninputs` number of inputs and `p = + self.noutputs` number of outputs. To evaluate at a frequency omega in radians per second, enter ``x = omega * 1j``, for continuous-time systems, or @@ -294,7 +294,7 @@ def horner(self, x): Returns ------- - output : (self.outputs, self.inputs, len(x)) complex ndarray + output : (self.noutputs, self.ninputs, len(x)) complex ndarray Frequency response """ @@ -304,9 +304,9 @@ def horner(self, x): if len(x_arr.shape) > 1: raise ValueError("input list must be 1D") - out = empty((self.outputs, self.inputs, len(x_arr)), dtype=complex) - for i in range(self.outputs): - for j in range(self.inputs): + out = empty((self.noutputs, self.ninputs, len(x_arr)), dtype=complex) + for i in range(self.noutputs): + for j in range(self.ninputs): out[i][j] = (polyval(self.num[i][j], x) / polyval(self.den[i][j], x)) return out @@ -323,8 +323,8 @@ def _truncatecoeff(self): # Beware: this is a shallow copy. This should be okay. data = [self.num, self.den] for p in range(len(data)): - for i in range(self.outputs): - for j in range(self.inputs): + for i in range(self.noutputs): + for j in range(self.ninputs): # Find the first nontrivial coefficient. nonzero = None for k in range(data[p][i][j].size): @@ -343,14 +343,14 @@ def _truncatecoeff(self): def __str__(self, var=None): """String representation of the transfer function.""" - mimo = self.inputs > 1 or self.outputs > 1 + mimo = self.ninputs > 1 or self.noutputs > 1 if var is None: # TODO: replace with standard calls to lti functions var = 's' if self.dt is None or self.dt == 0 else 'z' outstr = "" - for i in range(self.inputs): - for j in range(self.outputs): + for i in range(self.ninputs): + for j in range(self.noutputs): if mimo: outstr += "\nInput %i to output %i:" % (i + 1, j + 1) @@ -392,7 +392,7 @@ def __repr__(self): def _repr_latex_(self, var=None): """LaTeX representation of transfer function, for Jupyter notebook""" - mimo = self.inputs > 1 or self.outputs > 1 + mimo = self.ninputs > 1 or self.noutputs > 1 if var is None: # ! TODO: replace with standard calls to lti functions @@ -403,8 +403,8 @@ def _repr_latex_(self, var=None): if mimo: out.append(r"\begin{bmatrix}") - for i in range(self.outputs): - for j in range(self.inputs): + for i in range(self.noutputs): + for j in range(self.ninputs): # Convert the numerator and denominator polynomials to strings. numstr = _tf_polynomial_to_string(self.num[i][j], var=var) denstr = _tf_polynomial_to_string(self.den[i][j], var=var) @@ -414,7 +414,7 @@ def _repr_latex_(self, var=None): out += [r"\frac{", numstr, "}{", denstr, "}"] - if mimo and j < self.outputs - 1: + if mimo and j < self.noutputs - 1: out.append("&") if mimo: @@ -435,8 +435,8 @@ def __neg__(self): """Negate a transfer function.""" num = deepcopy(self.num) - for i in range(self.outputs): - for j in range(self.inputs): + for i in range(self.noutputs): + for j in range(self.ninputs): num[i][j] *= -1 return TransferFunction(num, self.den, self.dt) @@ -449,27 +449,27 @@ def __add__(self, other): if isinstance(other, StateSpace): other = _convert_to_transfer_function(other) elif not isinstance(other, TransferFunction): - other = _convert_to_transfer_function(other, inputs=self.inputs, - outputs=self.outputs) + other = _convert_to_transfer_function(other, inputs=self.ninputs, + outputs=self.noutputs) # Check that the input-output sizes are consistent. - if self.inputs != other.inputs: + if self.ninputs != other.ninputs: raise ValueError( "The first summand has %i input(s), but the second has %i." - % (self.inputs, other.inputs)) - if self.outputs != other.outputs: + % (self.ninputs, other.ninputs)) + if self.noutputs != other.noutputs: raise ValueError( "The first summand has %i output(s), but the second has %i." - % (self.outputs, other.outputs)) + % (self.noutputs, other.noutputs)) dt = common_timebase(self.dt, other.dt) # Preallocate the numerator and denominator of the sum. - num = [[[] for j in range(self.inputs)] for i in range(self.outputs)] - den = [[[] for j in range(self.inputs)] for i in range(self.outputs)] + num = [[[] for j in range(self.ninputs)] for i in range(self.noutputs)] + den = [[[] for j in range(self.ninputs)] for i in range(self.noutputs)] - for i in range(self.outputs): - for j in range(self.inputs): + for i in range(self.noutputs): + for j in range(self.ninputs): num[i][j], den[i][j] = _add_siso( self.num[i][j], self.den[i][j], other.num[i][j], other.den[i][j]) @@ -492,19 +492,19 @@ def __mul__(self, other): """Multiply two LTI objects (serial connection).""" # Convert the second argument to a transfer function. if isinstance(other, (int, float, complex, np.number)): - other = _convert_to_transfer_function(other, inputs=self.inputs, - outputs=self.inputs) + other = _convert_to_transfer_function(other, inputs=self.ninputs, + outputs=self.ninputs) else: other = _convert_to_transfer_function(other) # Check that the input-output sizes are consistent. - if self.inputs != other.outputs: + if self.ninputs != other.noutputs: raise ValueError( "C = A * B: A has %i column(s) (input(s)), but B has %i " - "row(s)\n(output(s))." % (self.inputs, other.outputs)) + "row(s)\n(output(s))." % (self.ninputs, other.noutputs)) - inputs = other.inputs - outputs = self.outputs + inputs = other.ninputs + outputs = self.noutputs dt = common_timebase(self.dt, other.dt) @@ -514,13 +514,13 @@ def __mul__(self, other): # Temporary storage for the summands needed to find the (i, j)th # element of the product. - num_summand = [[] for k in range(self.inputs)] - den_summand = [[] for k in range(self.inputs)] + num_summand = [[] for k in range(self.ninputs)] + den_summand = [[] for k in range(self.ninputs)] # Multiply & add. for row in range(outputs): for col in range(inputs): - for k in range(self.inputs): + for k in range(self.ninputs): num_summand[k] = polymul( self.num[row][k], other.num[k][col]) den_summand[k] = polymul( @@ -536,19 +536,19 @@ def __rmul__(self, other): # Convert the second argument to a transfer function. if isinstance(other, (int, float, complex, np.number)): - other = _convert_to_transfer_function(other, inputs=self.inputs, - outputs=self.inputs) + other = _convert_to_transfer_function(other, inputs=self.ninputs, + outputs=self.ninputs) else: other = _convert_to_transfer_function(other) # Check that the input-output sizes are consistent. - if other.inputs != self.outputs: + if other.ninputs != self.noutputs: raise ValueError( "C = A * B: A has %i column(s) (input(s)), but B has %i " - "row(s)\n(output(s))." % (other.inputs, self.outputs)) + "row(s)\n(output(s))." % (other.ninputs, self.noutputs)) - inputs = self.inputs - outputs = other.outputs + inputs = self.ninputs + outputs = other.noutputs dt = common_timebase(self.dt, other.dt) @@ -559,12 +559,12 @@ def __rmul__(self, other): # Temporary storage for the summands needed to find the # (i, j)th element # of the product. - num_summand = [[] for k in range(other.inputs)] - den_summand = [[] for k in range(other.inputs)] + num_summand = [[] for k in range(other.ninputs)] + den_summand = [[] for k in range(other.ninputs)] for i in range(outputs): # Iterate through rows of product. for j in range(inputs): # Iterate through columns of product. - for k in range(other.inputs): # Multiply & add. + for k in range(other.ninputs): # Multiply & add. num_summand[k] = polymul(other.num[i][k], self.num[k][j]) den_summand[k] = polymul(other.den[i][k], self.den[k][j]) num[i][j], den[i][j] = _add_siso( @@ -579,13 +579,13 @@ def __truediv__(self, other): if isinstance(other, (int, float, complex, np.number)): other = _convert_to_transfer_function( - other, inputs=self.inputs, - outputs=self.inputs) + other, inputs=self.ninputs, + outputs=self.ninputs) else: other = _convert_to_transfer_function(other) - if (self.inputs > 1 or self.outputs > 1 or - other.inputs > 1 or other.outputs > 1): + if (self.ninputs > 1 or self.noutputs > 1 or + other.ninputs > 1 or other.noutputs > 1): raise NotImplementedError( "TransferFunction.__truediv__ is currently \ implemented only for SISO systems.") @@ -606,13 +606,13 @@ def __rtruediv__(self, other): """Right divide two LTI objects.""" if isinstance(other, (int, float, complex, np.number)): other = _convert_to_transfer_function( - other, inputs=self.inputs, - outputs=self.inputs) + other, inputs=self.ninputs, + outputs=self.ninputs) else: other = _convert_to_transfer_function(other) - if (self.inputs > 1 or self.outputs > 1 or - other.inputs > 1 or other.outputs > 1): + if (self.ninputs > 1 or self.noutputs > 1 or + other.ninputs > 1 or other.noutputs > 1): raise NotImplementedError( "TransferFunction.__rtruediv__ is currently implemented only " "for SISO systems.") @@ -697,7 +697,7 @@ def pole(self): def zero(self): """Compute the zeros of a transfer function.""" - if self.inputs > 1 or self.outputs > 1: + if self.ninputs > 1 or self.noutputs > 1: raise NotImplementedError( "TransferFunction.zero is currently only implemented " "for SISO systems.") @@ -709,8 +709,8 @@ def feedback(self, other=1, sign=-1): """Feedback interconnection between two LTI objects.""" other = _convert_to_transfer_function(other) - if (self.inputs > 1 or self.outputs > 1 or - other.inputs > 1 or other.outputs > 1): + if (self.ninputs > 1 or self.noutputs > 1 or + other.ninputs > 1 or other.noutputs > 1): # TODO: MIMO feedback raise NotImplementedError( "TransferFunction.feedback is currently only implemented " @@ -741,11 +741,11 @@ def minreal(self, tol=None): sqrt_eps = sqrt(float_info.epsilon) # pre-allocate arrays - num = [[[] for j in range(self.inputs)] for i in range(self.outputs)] - den = [[[] for j in range(self.inputs)] for i in range(self.outputs)] + num = [[[] for j in range(self.ninputs)] for i in range(self.noutputs)] + den = [[[] for j in range(self.ninputs)] for i in range(self.noutputs)] - for i in range(self.outputs): - for j in range(self.inputs): + for i in range(self.noutputs): + for j in range(self.ninputs): # split up in zeros, poles and gain newzeros = [] @@ -811,10 +811,10 @@ def returnScipySignalLTI(self, strict=True): kwdt = {} # Preallocate the output. - out = [[[] for j in range(self.inputs)] for i in range(self.outputs)] + out = [[[] for j in range(self.ninputs)] for i in range(self.noutputs)] - for i in range(self.outputs): - for j in range(self.inputs): + for i in range(self.noutputs): + for j in range(self.ninputs): out[i][j] = signalTransferFunction(self.num[i][j], self.den[i][j], **kwdt) @@ -843,7 +843,7 @@ def _common_den(self, imag_tol=None, allow_nonproper=False): Returns ------- num: array - n by n by kd where n = max(sys.outputs,sys.inputs) + n by n by kd where n = max(sys.noutputs,sys.ninputs) kd = max(denorder)+1 Multi-dimensional array of numerator coefficients. num[i,j] gives the numerator coefficient array for the ith output and jth @@ -853,7 +853,7 @@ def _common_den(self, imag_tol=None, allow_nonproper=False): order of the common denominator, num will be returned as None den: array - sys.inputs by kd + sys.ninputs by kd Multi-dimensional array of coefficients for common denominator polynomial, one row per input. The array is prepared for use in slycot td04ad, the first element is the highest-order polynomial @@ -872,7 +872,7 @@ def _common_den(self, imag_tol=None, allow_nonproper=False): # Machine precision for floats. eps = finfo(float).eps - real_tol = sqrt(eps * self.inputs * self.outputs) + real_tol = sqrt(eps * self.ninputs * self.noutputs) # The tolerance to use in deciding if a pole is complex if (imag_tol is None): @@ -880,7 +880,7 @@ def _common_den(self, imag_tol=None, allow_nonproper=False): # A list to keep track of cumulative poles found as we scan # self.den[..][..] - poles = [[] for j in range(self.inputs)] + poles = [[] for j in range(self.ninputs)] # RvP, new implementation 180526, issue #194 # BG, modification, issue #343, PR #354 @@ -891,9 +891,9 @@ def _common_den(self, imag_tol=None, allow_nonproper=False): # do not calculate minreal. Rory's hint .minreal() poleset = [] - for i in range(self.outputs): + for i in range(self.noutputs): poleset.append([]) - for j in range(self.inputs): + for j in range(self.ninputs): if abs(self.num[i][j]).max() <= eps: poleset[-1].append([array([], dtype=float), roots(self.den[i][j]), 0.0, [], 0]) @@ -902,8 +902,8 @@ def _common_den(self, imag_tol=None, allow_nonproper=False): poleset[-1].append([z, p, k, [], 0]) # collect all individual poles - for j in range(self.inputs): - for i in range(self.outputs): + for j in range(self.ninputs): + for i in range(self.noutputs): currentpoles = poleset[i][j][1] nothave = ones(currentpoles.shape, dtype=bool) for ip, p in enumerate(poles[j]): @@ -928,20 +928,20 @@ def _common_den(self, imag_tol=None, allow_nonproper=False): # figure out maximum number of poles, for sizing the den maxindex = max([len(p) for p in poles]) - den = zeros((self.inputs, maxindex + 1), dtype=float) - num = zeros((max(1, self.outputs, self.inputs), - max(1, self.outputs, self.inputs), + den = zeros((self.ninputs, maxindex + 1), dtype=float) + num = zeros((max(1, self.noutputs, self.ninputs), + max(1, self.noutputs, self.ninputs), maxindex + 1), dtype=float) - denorder = zeros((self.inputs,), dtype=int) + denorder = zeros((self.ninputs,), dtype=int) havenonproper = False - for j in range(self.inputs): + for j in range(self.ninputs): if not len(poles[j]): # no poles matching this input; only one or more gains den[j, 0] = 1.0 - for i in range(self.outputs): + for i in range(self.noutputs): num[i, j, 0] = poleset[i][j][2] else: # create the denominator matching this input @@ -951,7 +951,7 @@ def _common_den(self, imag_tol=None, allow_nonproper=False): denorder[j] = maxindex # now create the numerator, also padded on the right - for i in range(self.outputs): + for i in range(self.noutputs): # start with the current set of zeros for this output nwzeros = list(poleset[i][j][0]) # add all poles not found in the original denominator, @@ -1068,9 +1068,9 @@ def _dcgain_cont(self): """_dcgain_cont() -> DC gain as matrix or scalar Special cased evaluation at 0 for continuous-time systems.""" - gain = np.empty((self.outputs, self.inputs), dtype=float) - for i in range(self.outputs): - for j in range(self.inputs): + gain = np.empty((self.noutputs, self.ninputs), dtype=float) + for i in range(self.noutputs): + for j in range(self.ninputs): num = self.num[i][j][-1] den = self.den[i][j][-1] if den: @@ -1228,14 +1228,14 @@ def _convert_to_transfer_function(sys, **kw): return sys elif isinstance(sys, StateSpace): - if 0 == sys.states: + if 0 == sys.nstates: # Slycot doesn't like static SS->TF conversion, so handle # it first. Can't join this with the no-Slycot branch, # since that doesn't handle general MIMO systems - num = [[[sys.D[i, j]] for j in range(sys.inputs)] - for i in range(sys.outputs)] - den = [[[1.] for j in range(sys.inputs)] - for i in range(sys.outputs)] + num = [[[sys.D[i, j]] for j in range(sys.ninputs)] + for i in range(sys.noutputs)] + den = [[[1.] for j in range(sys.ninputs)] + for i in range(sys.noutputs)] else: try: from slycot import tb04ad @@ -1247,17 +1247,17 @@ def _convert_to_transfer_function(sys, **kw): # Use Slycot to make the transformation # Make sure to convert system matrices to numpy arrays tfout = tb04ad( - sys.states, sys.inputs, sys.outputs, array(sys.A), + sys.nstates, sys.ninputs, sys.noutputs, array(sys.A), array(sys.B), array(sys.C), array(sys.D), tol1=0.0) # Preallocate outputs. - num = [[[] for j in range(sys.inputs)] - for i in range(sys.outputs)] - den = [[[] for j in range(sys.inputs)] - for i in range(sys.outputs)] + num = [[[] for j in range(sys.ninputs)] + for i in range(sys.noutputs)] + den = [[[] for j in range(sys.ninputs)] + for i in range(sys.noutputs)] - for i in range(sys.outputs): - for j in range(sys.inputs): + for i in range(sys.noutputs): + for j in range(sys.ninputs): num[i][j] = list(tfout[6][i, j, :]) # Each transfer function matrix row # has a common denominator. @@ -1265,7 +1265,7 @@ def _convert_to_transfer_function(sys, **kw): except ImportError: # If slycot is not available, use signal.lti (SISO only) - if sys.inputs != 1 or sys.outputs != 1: + if sys.ninputs != 1 or sys.noutputs != 1: raise TypeError("No support for MIMO without slycot.") # Do the conversion using sp.signal.ss2tf From 9d469f196eccda759a99e175729080c8ecf912f3 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 20 Jan 2021 22:33:11 -0800 Subject: [PATCH 118/260] update getter/setter comments to match code --- control/lti.py | 6 +++--- control/statesp.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/control/lti.py b/control/lti.py index 04f495838..97a1e9b7f 100644 --- a/control/lti.py +++ b/control/lti.py @@ -54,9 +54,9 @@ def __init__(self, inputs=1, outputs=1, dt=None): # # Getter and setter functions for legacy input/output attributes # - # For this iteration, generate a warning whenever the getter/setter is - # called. For a future iteration, turn it iinto a pending deprecation and - # then deprecation warning (commented out for now). + # For this iteration, generate a pending deprecation warning whenever + # the getter/setter is called. For a future iteration, turn it into a + # deprecation warning. # @property diff --git a/control/statesp.py b/control/statesp.py index a6851e531..8a47f3e74 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -333,9 +333,9 @@ def __init__(self, *args, **kwargs): # # Getter and setter functions for legacy state attributes # - # For this iteration, generate a warning whenever the getter/setter is - # called. For a future iteration, turn it iinto a pending deprecation and - # then deprecation warning (commented out for now). + # For this iteration, generate a pending deprecation warning whenever + # the getter/setter is called. For a future iteration, turn it into a + # deprecation warning. # @property From f633874054a9811412633cf4647fc3a1f449d2c8 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 22 Jan 2021 08:17:36 -0800 Subject: [PATCH 119/260] add unit test for input/output/state deprecation warning --- control/tests/lti_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/control/tests/lti_test.py b/control/tests/lti_test.py index b4a168841..5c5b65e4a 100644 --- a/control/tests/lti_test.py +++ b/control/tests/lti_test.py @@ -250,3 +250,14 @@ def test_squeeze_exceptions(self, fcn): sys.frequency_response([[0.1, 1], [1, 10]]) sys([[0.1, 1], [1, 10]]) evalfr(sys, [[0.1, 1], [1, 10]]) + + with pytest.raises(PendingDeprecationWarning, match="LTI `inputs`"): + assert sys.inputs == sys.ninputs + + with pytest.raises(PendingDeprecationWarning, match="LTI `outputs`"): + assert sys.outputs == sys.noutputs + + if isinstance(sys, ct.StateSpace): + with pytest.raises( + PendingDeprecationWarning, match="StateSpace `states`"): + assert sys.states == sys.nstates From 012d1d0d4b1c7451ec039e85c5c48132224b34db Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 23 Jan 2021 10:39:13 -0800 Subject: [PATCH 120/260] add summation_block + implicit signal interconnection --- control/iosys.py | 213 +++++++++++++++++++++++++++-- control/tests/interconnect_test.py | 131 ++++++++++++++++++ 2 files changed, 335 insertions(+), 9 deletions(-) create mode 100644 control/tests/interconnect_test.py diff --git a/control/iosys.py b/control/iosys.py index 66ca20ebb..8c3418b77 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -36,14 +36,15 @@ import copy from warnings import warn -from .statesp import StateSpace, tf2ss +from .statesp import StateSpace, tf2ss, _convert_to_statespace from .timeresp import _check_convert_array, _process_time_response from .lti import isctime, isdtime, common_timebase from . import config __all__ = ['InputOutputSystem', 'LinearIOSystem', 'NonlinearIOSystem', 'InterconnectedSystem', 'LinearICSystem', 'input_output_response', - 'find_eqpt', 'linearize', 'ss2io', 'tf2io', 'interconnect'] + 'find_eqpt', 'linearize', 'ss2io', 'tf2io', 'interconnect', + 'summation_block'] # Define module default parameter values _iosys_defaults = { @@ -481,9 +482,14 @@ def feedback(self, other=1, sign=-1, params={}): """ # TODO: add conversion to I/O system when needed if not isinstance(other, InputOutputSystem): - raise TypeError("Feedback around I/O system must be I/O system.") - - return new_io_sys + # Try converting to a state space system + try: + other = _convert_to_statespace(other) + except TypeError: + raise TypeError( + "Feedback around I/O system must be an I/O system " + "or convertable to an I/O system.") + other = LinearIOSystem(other) # Make sure systems can be interconnected if self.noutputs != other.ninputs or other.noutputs != self.ninputs: @@ -1846,7 +1852,7 @@ def tf2io(*args, **kwargs): # Function to create an interconnected system -def interconnect(syslist, connections=[], inplist=[], outlist=[], +def interconnect(syslist, connections=None, inplist=[], outlist=[], inputs=None, outputs=None, states=None, params={}, dt=None, name=None): """Interconnect a set of input/output systems. @@ -1893,8 +1899,18 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], and the special form '-sys.sig' can be used to specify a signal with gain -1. - If omitted, the connection map (matrix) can be specified using the - :func:`~control.InterconnectedSystem.set_connect_map` method. + If omitted, all the `interconnect` function will attempt to create the + interconneciton map by connecting all signals with the same base names + (ignoring the system name). Specifically, for each input signal name + in the list of systems, if that signal name corresponds to the output + signal in any of the systems, it will be connected to that input (with + a summation across all signals if the output name occurs in more than + one system). + + The `connections` keyword can also be set to `False`, which will leave + the connection map empty and it can be specified instead using the + low-level :func:`~control.InterconnectedSystem.set_connect_map` + method. inplist : list of input connections, optional List of connections for how the inputs for the overall system are @@ -1983,7 +1999,7 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], a warning is generated a copy of the system is created with the name of the new system determined by adding the prefix and suffix strings in config.defaults['iosys.linearized_system_name_prefix'] - and config.defaults['iosys.linearized_system_name_suffix'], with the + and config.defaults['iosys.linearized_system_name_suffix'], with the default being to add the suffix '$copy'$ to the system name. It is possible to replace lists in most of arguments with tuples instead, @@ -2001,6 +2017,78 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], :class:`~control.InputOutputSystem`. """ + # If connections was not specified, set up default connection list + if connections is None: + # For each system input, look for outputs with the same name + connections = [] + for input_sys in syslist: + for input_name in input_sys.input_index.keys(): + connect = [input_sys.name + "." + input_name] + for output_sys in syslist: + if input_name in output_sys.output_index.keys(): + connect.append(output_sys.name + "." + input_name) + if len(connect) > 1: + connections.append(connect) + elif connections is False: + # Use an empty connections list + connections = [] + + # Process input list + if not isinstance(inplist, (list, tuple)): + inplist = [inplist] + new_inplist = [] + for signal in inplist: + # Check for signal names without a system name + if isinstance(signal, str) and len(signal.split('.')) == 1: + # Get the signal name + name = signal[1:] if signal[0] == '-' else signal + sign = '-' if signal[0] == '-' else "" + + # Look for the signal name as a system input + new_name = None + for sys in syslist: + if name in sys.input_index.keys(): + if new_name is not None: + raise ValueError("signal %s is not unique" % name) + new_name = sign + sys.name + "." + name + + # Make sure we found the name + if new_name is None: + raise ValueError("could not find signal %s" % name) + else: + new_inplist.append(new_name) + else: + new_inplist.append(signal) + inplist = new_inplist + + # Process output list + if not isinstance(outlist, (list, tuple)): + outlist = [outlist] + new_outlist = [] + for signal in outlist: + # Check for signal names without a system name + if isinstance(signal, str) and len(signal.split('.')) == 1: + # Get the signal name + name = signal[1:] if signal[0] == '-' else signal + sign = '-' if signal[0] == '-' else "" + + # Look for the signal name as a system output + new_name = None + for sys in syslist: + if name in sys.output_index.keys(): + if new_name is not None: + raise ValueError("signal %s is not unique" % name) + new_name = sign + sys.name + "." + name + + # Make sure we found the name + if new_name is None: + raise ValueError("could not find signal %s" % name) + else: + new_outlist.append(new_name) + else: + new_outlist.append(signal) + outlist = new_outlist + newsys = InterconnectedSystem( syslist, connections=connections, inplist=inplist, outlist=outlist, inputs=inputs, outputs=outputs, states=states, @@ -2011,3 +2099,110 @@ def interconnect(syslist, connections=[], inplist=[], outlist=[], return LinearICSystem(newsys, None) return newsys + + +# Summation block +def summation_block(inputs, output='y', dimension=None, name=None, prefix='u'): + """Create a summation block as an input/output system. + + This function creates a static input/output system that outputs the sum of + the inputs, potentially with a change in sign for each individual input. + The input/output system that is created by this function can be used as a + component in the :func:`~control.interconnect` function. + + Parameters + ---------- + inputs : int, string or list of strings + Description of the inputs to the summation block. This can be given + as an integer count, a string, or a list of strings. If an integer + count is specified, the names of the input signals will be of the form + `u[i]`. + output : string, optional + Name of the system output. If not specified, the output will be 'y'. + dimension : int, optional + The dimension of the summing block. If the dimension is set to a + positive integer, a multi-input, multi-output summation block will be + created. The input and output signal names will be of the form + `[i]` where `signal` is the input/output signal name specified + by the `inputs` and `output` keywords. Default value is `None`. + name : string, optional + System name (used for specifying signals). If unspecified, a generic + name is generated with a unique integer id. + prefix : string, optional + If `inputs` is an integer, create the names of the states using the + given prefix (default = 'u'). The names of the input will be of the + form `prefix[i]`. + + Returns + ------- + sys : static LinearIOSystem + Linear input/output system object with no states and only a direct + term that implements the summation block. + + """ + # Utility function to parse input and output signal lists + def _parse_list(signals, signame='input', prefix='u'): + # Parse signals, including gains + if isinstance(signals, int): + nsignals = signals + names = ["%s[%d]" % (prefix, i) for i in range(nsignals)] + gains = np.ones((nsignals,)) + elif isinstance(signals, str): + nsignals = 1 + gains = [-1 if signals[0] == '-' else 1] + names = [signals[1:] if signals[0] == '-' else signals] + elif isinstance(signals, list) and \ + all([isinstance(x, str) for x in signals]): + nsignals = len(signals) + gains = np.ones((nsignals,)) + names = [] + for i in range(nsignals): + if signals[i][0] == '-': + gains[i] = -1 + names.append(signals[i][1:]) + else: + names.append(signals[i]) + else: + raise ValueError( + "could not parse %s description '%s'" + % (signame, str(signals))) + + # Return the parsed list + return nsignals, names, gains + + # Read the input list + ninputs, input_names, input_gains = _parse_list( + inputs, signame="input", prefix=prefix) + noutputs, output_names, output_gains = _parse_list( + output, signame="output", prefix='y') + if noutputs > 1: + raise NotImplementedError("vector outputs not yet supported") + + # If the dimension keyword is present, vectorize inputs and outputs + if isinstance(dimension, int) and dimension >= 1: + # Create a new list of input/output names and update parameters + input_names = ["%s[%d]" % (name, dim) + for name in input_names + for dim in range(dimension)] + ninputs = ninputs * dimension + + output_names = ["%s[%d]" % (name, dim) + for name in output_names + for dim in range(dimension)] + noutputs = noutputs * dimension + elif dimension is not None: + raise ValueError( + "unrecognized dimension value '%s'" % str(dimension)) + else: + dimension = 1 + + # Create the direct term + D = np.kron(input_gains * output_gains[0], np.eye(dimension)) + + # Create a linear system of the appropriate size + ss_sys = StateSpace( + np.zeros((0, 0)), np.ones((0, ninputs)), np.ones((noutputs, 0)), D) + + # Create a LinearIOSystem + return LinearIOSystem( + ss_sys, inputs=input_names, outputs=output_names, name=name) diff --git a/control/tests/interconnect_test.py b/control/tests/interconnect_test.py new file mode 100644 index 000000000..dcc588dad --- /dev/null +++ b/control/tests/interconnect_test.py @@ -0,0 +1,131 @@ +"""interconnect_test.py - test input/output interconnect function + +RMM, 22 Jan 2021 + +This set of unit tests covers the various operatons of the interconnect() +function, as well as some of the support functions associated with +interconnect(). + +Note: additional tests are available in iosys_test.py, which focuses on the +raw InterconnectedSystem constructor. This set of unit tests focuses on +functionality implemented in the interconnect() function itself. + +""" + +import pytest + +import numpy as np +import scipy as sp + +import control as ct + +@pytest.mark.parametrize("inputs, output, dimension, D", [ + [1, 1, None, [[1]] ], + ['u', 'y', None, [[1]] ], + [['u'], ['y'], None, [[1]] ], + [2, 1, None, [[1, 1]] ], + [['r', '-y'], ['e'], None, [[1, -1]] ], + [5, 1, None, np.ones((1, 5)) ], + ['u', 'y', 1, [[1]] ], + ['u', 'y', 2, [[1, 0], [0, 1]] ], + [['r', '-y'], ['e'], 2, [[1, 0, -1, 0], [0, 1, 0, -1]] ], +]) +def test_summation_block(inputs, output, dimension, D): + ninputs = 1 if isinstance(inputs, str) else \ + inputs if isinstance(inputs, int) else len(inputs) + sum = ct.summation_block( + inputs=inputs, output=output, dimension=dimension) + dim = 1 if dimension is None else dimension + np.testing.assert_array_equal(sum.A, np.ndarray((0, 0))) + np.testing.assert_array_equal(sum.B, np.ndarray((0, ninputs*dim))) + np.testing.assert_array_equal(sum.C, np.ndarray((dim, 0))) + np.testing.assert_array_equal(sum.D, D) + + +def test_summation_exceptions(): + # Bad input description + with pytest.raises(ValueError, match="could not parse input"): + sumblk = ct.summation_block(None, 'y') + + # Bad output description + with pytest.raises(ValueError, match="could not parse output"): + sumblk = ct.summation_block('u', None) + + # Bad input dimension + with pytest.raises(ValueError, match="unrecognized dimension"): + sumblk = ct.summation_block('u', 'y', dimension=False) + + +def test_interconnect_implicit(): + """Test the use of implicit connections in interconnect()""" + import random + + # System definition + P = ct.ss2io( + ct.rss(2, 1, 1, strictly_proper=True), + inputs='u', outputs='y', name='P') + kp = ct.tf(random.uniform(1, 10), [1]) + ki = ct.tf(random.uniform(1, 10), [1, 0]) + C = ct.tf2io(kp + ki, inputs='e', outputs='u', name='C') + + # Block diagram computation + Tss = ct.feedback(P * C, 1) + + # Construct the interconnection explicitly + Tio_exp = ct.interconnect( + (C, P), + connections = [['P.u', 'C.u'], ['C.e', '-P.y']], + inplist='C.e', outlist='P.y') + + # Compare to bdalg computation + np.testing.assert_almost_equal(Tio_exp.A, Tss.A) + np.testing.assert_almost_equal(Tio_exp.B, Tss.B) + np.testing.assert_almost_equal(Tio_exp.C, Tss.C) + np.testing.assert_almost_equal(Tio_exp.D, Tss.D) + + # Construct the interconnection via a summation block + sumblk = ct.summation_block(inputs=['r', '-y'], output='e', name="sum") + Tio_sum = ct.interconnect( + (C, P, sumblk), inplist=['r'], outlist=['y']) + + np.testing.assert_almost_equal(Tio_sum.A, Tss.A) + np.testing.assert_almost_equal(Tio_sum.B, Tss.B) + np.testing.assert_almost_equal(Tio_sum.C, Tss.C) + np.testing.assert_almost_equal(Tio_sum.D, Tss.D) + + # Setting connections to False should lead to an empty connection map + empty = ct.interconnect( + (C, P, sumblk), connections=False, inplist=['r'], outlist=['y']) + np.testing.assert_array_equal(empty.connect_map, np.zeros((4, 3))) + + # Implicit summation across repeated signals + kp_io = ct.tf2io(kp, inputs='e', outputs='u', name='kp') + ki_io = ct.tf2io(ki, inputs='e', outputs='u', name='ki') + Tio_sum = ct.interconnect( + (kp_io, ki_io, P, sumblk), inplist=['r'], outlist=['y']) + np.testing.assert_almost_equal(Tio_sum.A, Tss.A) + np.testing.assert_almost_equal(Tio_sum.B, Tss.B) + np.testing.assert_almost_equal(Tio_sum.C, Tss.C) + np.testing.assert_almost_equal(Tio_sum.D, Tss.D) + + # Make sure that repeated inplist/outlist names generate an error + # Input not unique + Cbad = ct.tf2io(ct.tf(10, [1, 1]), inputs='r', outputs='x', name='C') + with pytest.raises(ValueError, match="not unique"): + Tio_sum = ct.interconnect( + (Cbad, P, sumblk), inplist=['r'], outlist=['y']) + + # Output not unique + Cbad = ct.tf2io(ct.tf(10, [1, 1]), inputs='e', outputs='y', name='C') + with pytest.raises(ValueError, match="not unique"): + Tio_sum = ct.interconnect( + (Cbad, P, sumblk), inplist=['r'], outlist=['y']) + + # Signal not found + with pytest.raises(ValueError, match="could not find"): + Tio_sum = ct.interconnect( + (C, P, sumblk), inplist=['x'], outlist=['y']) + + with pytest.raises(ValueError, match="could not find"): + Tio_sum = ct.interconnect( + (C, P, sumblk), inplist=['r'], outlist=['x']) From f63323c9a3e419e3564fab91388f51166d8c48ea Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Sun, 24 Jan 2021 13:56:52 +0200 Subject: [PATCH 121/260] Correct plotting of robust MIMO example Done by passing `squeeze=True` to `step_response`. --- examples/robust_mimo.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/robust_mimo.py b/examples/robust_mimo.py index 9cc5a1c3b..d790b4053 100644 --- a/examples/robust_mimo.py +++ b/examples/robust_mimo.py @@ -54,11 +54,8 @@ def analysis(): g = plant() t = np.linspace(0, 10, 101) - _, yu1 = step_response(g, t, input=0) - _, yu2 = step_response(g, t, input=1) - - yu1 = yu1 - yu2 = yu2 + _, yu1 = step_response(g, t, input=0, squeeze=True) + _, yu2 = step_response(g, t, input=1, squeeze=True) # linear system, so scale and sum previous results to get the # [1,-1] response @@ -112,8 +109,8 @@ def synth(wb1, wb2): def step_opposite(g, t): """reponse to step of [-1,1]""" - _, yu1 = step_response(g, t, input=0) - _, yu2 = step_response(g, t, input=1) + _, yu1 = step_response(g, t, input=0, squeeze=True) + _, yu2 = step_response(g, t, input=1, squeeze=True) return yu1 - yu2 From fea51c0674e6d3e59b2979c2f1c833c2b0570ad7 Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Sun, 24 Jan 2021 13:58:04 +0200 Subject: [PATCH 122/260] Don't used deprecated `Plot` keyword in secord-matlab.py example --- examples/secord-matlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/secord-matlab.py b/examples/secord-matlab.py index 25bf1ff79..5473adb0a 100644 --- a/examples/secord-matlab.py +++ b/examples/secord-matlab.py @@ -24,7 +24,7 @@ # Bode plot for the system plt.figure(2) -mag, phase, om = bode(sys, logspace(-2, 2), Plot=True) +mag, phase, om = bode(sys, logspace(-2, 2), plot=True) plt.show(block=False) # Nyquist plot for the system From 4084ae8c77243e455293d10a13e281583c1ae4af Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Sun, 24 Jan 2021 13:58:33 +0200 Subject: [PATCH 123/260] Fix warnings in test-reponse.py example --- examples/test-response.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/examples/test-response.py b/examples/test-response.py index 0ccc70b6c..359d1c3ea 100644 --- a/examples/test-response.py +++ b/examples/test-response.py @@ -4,7 +4,9 @@ import os import matplotlib.pyplot as plt # MATLAB plotting functions from control.matlab import * # Load the controls systems library -from scipy import arange # function to create range of numbers +from numpy import arange # function to create range of numbers + +from control import reachable_form # Create several systems for testing sys1 = tf([1], [1, 2, 1]) @@ -13,10 +15,18 @@ # Generate step responses (y1a, T1a) = step(sys1) (y1b, T1b) = step(sys1, T=arange(0, 10, 0.1)) -(y1c, T1c) = step(sys1, X0=[1, 0]) +# convert to reachable canonical SS to specify initial state +sys1_ss = reachable_form(ss(sys1))[0] +(y1c, T1c) = step(sys1_ss, X0=[1, 0]) (y2a, T2a) = step(sys2, T=arange(0, 10, 0.1)) -plt.plot(T1a, y1a, T1b, y1b, T1c, y1c, T2a, y2a) +plt.plot(T1a, y1a, label='$g_1$ (default)', linewidth=5) +plt.plot(T1b, y1b, label='$g_1$ (w/ spec. times)', linestyle='--') +plt.plot(T1c, y1c, label='$g_1$ (w/ init cond.)') +plt.plot(T2a, y2a, label='$g_2$ (w/ spec. times)') +plt.xlabel('time') +plt.ylabel('output') +plt.legend() if 'PYCONTROL_TEST_EXAMPLES' not in os.environ: - plt.show() \ No newline at end of file + plt.show() From 43f6403a43f77dd345166c6e99399e4df80cfc7a Mon Sep 17 00:00:00 2001 From: Rory Yorke Date: Sun, 24 Jan 2021 14:02:39 +0200 Subject: [PATCH 124/260] Minor doc fix ("conversation -> conversion") --- control/tests/convert_test.py | 2 +- control/timeresp.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/control/tests/convert_test.py b/control/tests/convert_test.py index f92029fe3..2cca3cdd5 100644 --- a/control/tests/convert_test.py +++ b/control/tests/convert_test.py @@ -155,7 +155,7 @@ def testConvert(self, fixedseed, states, inputs, outputs): def testConvertMIMO(self): """Test state space to transfer function conversion. - Do a MIMO conversation and make sure that it is processed + Do a MIMO conversion and make sure that it is processed correctly both with and without slycot Example from issue gh-120, jgoppert diff --git a/control/timeresp.py b/control/timeresp.py index bfa2ec149..01b51b208 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -356,7 +356,7 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, if isinstance(sys, TransferFunction) and np.any(X0 != 0): warnings.warn( "Non-zero initial condition given for transfer function system. " - "Internal conversation to state space used; may not be consistent " + "Internal conversion to state space used; may not be consistent " "with given X0.") xout = np.zeros((n_states, n_steps)) @@ -702,7 +702,7 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, if isinstance(sys, TransferFunction) and np.any(X0 != 0): warnings.warn( "Non-zero initial condition given for transfer function system. " - "Internal conversation to state space used; may not be consistent " + "Internal conversion to state space used; may not be consistent " "with given X0.") # Convert to state space so that we can simulate From cd3e4b65649b77d4d8a488ecd2a7a718dd5ba540 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 24 Jan 2021 10:01:43 -0800 Subject: [PATCH 125/260] change name to summing_junction + updated documentation and examples --- control/iosys.py | 43 ++++++++++------- control/statesp.py | 4 +- control/tests/interconnect_test.py | 57 +++++++++++++++++++--- doc/control.rst | 1 + doc/iosys.rst | 77 ++++++++++++++++++++++++++++-- 5 files changed, 154 insertions(+), 28 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 8c3418b77..cb360bad4 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -3,16 +3,11 @@ # RMM, 28 April 2019 # # Additional features to add -# * Improve support for signal names, specially in operator overloads -# - Figure out how to handle "nested" names (icsys.sys[1].x[1]) -# - Use this to implement signal names for operators? # * Allow constant inputs for MIMO input_output_response (w/out ones) # * Add support for constants/matrices as part of operators (1 + P) # * Add unit tests (and example?) for time-varying systems # * Allow time vector for discrete time simulations to be multiples of dt # * Check the way initial outputs for discrete time systems are handled -# * Rename 'connections' as 'conlist' to match 'inplist' and 'outlist'? -# * Allow signal summation in InterconnectedSystem diagrams (via new output?) # """The :mod:`~control.iosys` module contains the @@ -44,7 +39,7 @@ __all__ = ['InputOutputSystem', 'LinearIOSystem', 'NonlinearIOSystem', 'InterconnectedSystem', 'LinearICSystem', 'input_output_response', 'find_eqpt', 'linearize', 'ss2io', 'tf2io', 'interconnect', - 'summation_block'] + 'summing_junction'] # Define module default parameter values _iosys_defaults = { @@ -1982,17 +1977,26 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], Example ------- >>> P = control.LinearIOSystem( - >>> ct.rss(2, 2, 2, strictly_proper=True), name='P') + >>> control.rss(2, 2, 2, strictly_proper=True), name='P') >>> C = control.LinearIOSystem(control.rss(2, 2, 2), name='C') - >>> S = control.InterconnectedSystem( + >>> T = control.interconnect( >>> [P, C], >>> connections = [ - >>> ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[0]'], + >>> ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[1]'], >>> ['C.u[0]', '-P.y[0]'], ['C.u[1]', '-P.y[1]']], >>> inplist = ['C.u[0]', 'C.u[1]'], >>> outlist = ['P.y[0]', 'P.y[1]'], >>> ) + For a SISO system, this example can be simplified by using the + :func:`~control.summing_block` function and the ability to automatically + interconnect signals with the same names: + + >>> P = control.tf2io(control.tf(1, [1, 0]), inputs='u', outputs='y') + >>> C = control.tf2io(control.tf(10, [1, 1]), inputs='e', outputs='u') + >>> sumblk = control.summing_junction(inputs=['r', '-y'], output='e') + >>> T = control.interconnect([P, C, sumblk], inplist='r', outlist='y') + Notes ----- If a system is duplicated in the list of systems to be connected, @@ -2101,9 +2105,9 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], return newsys -# Summation block -def summation_block(inputs, output='y', dimension=None, name=None, prefix='u'): - """Create a summation block as an input/output system. +# Summing junction +def summing_junction(inputs, output='y', dimension=None, name=None, prefix='u'): + """Create a summing junction as an input/output system. This function creates a static input/output system that outputs the sum of the inputs, potentially with a change in sign for each individual input. @@ -2113,15 +2117,15 @@ def summation_block(inputs, output='y', dimension=None, name=None, prefix='u'): Parameters ---------- inputs : int, string or list of strings - Description of the inputs to the summation block. This can be given + Description of the inputs to the summing junction. This can be given as an integer count, a string, or a list of strings. If an integer count is specified, the names of the input signals will be of the form `u[i]`. output : string, optional Name of the system output. If not specified, the output will be 'y'. dimension : int, optional - The dimension of the summing block. If the dimension is set to a - positive integer, a multi-input, multi-output summation block will be + The dimension of the summing junction. If the dimension is set to a + positive integer, a multi-input, multi-output summing junction will be created. The input and output signal names will be of the form `[i]` where `signal` is the input/output signal name specified by the `inputs` and `output` keywords. Default value is `None`. @@ -2137,7 +2141,14 @@ def summation_block(inputs, output='y', dimension=None, name=None, prefix='u'): ------- sys : static LinearIOSystem Linear input/output system object with no states and only a direct - term that implements the summation block. + term that implements the summing junction. + + Example + ------- + >>> P = control.tf2io(ct.tf(1, [1, 0]), inputs='u', outputs='y') + >>> C = control.tf2io(ct.tf(10, [1, 1]), inputs='e', outputs='u') + >>> sumblk = control.summing_junction(inputs=['r', '-y'], output='e') + >>> T = control.interconnect((P, C, sumblk), inplist='r', outlist='y') """ # Utility function to parse input and output signal lists diff --git a/control/statesp.py b/control/statesp.py index 0ee83cb7d..cac3ecb39 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -223,7 +223,7 @@ def __init__(self, *args, **kwargs): The default constructor is StateSpace(A, B, C, D), where A, B, C, D are matrices or equivalent objects. To create a discrete time system, - use StateSpace(A, B, C, D, dt) where 'dt' is the sampling time (or + use StateSpace(A, B, C, D, dt) where `dt` is the sampling time (or True for unspecified sampling time). To call the copy constructor, call StateSpace(sys), where sys is a StateSpace object. @@ -231,7 +231,7 @@ def __init__(self, *args, **kwargs): C matrices for rows or columns of zeros. If the zeros are such that a particular state has no effect on the input-output dynamics, then that state is removed from the A, B, and C matrices. If not specified, the - value is read from `config.defaults['statesp.remove_useless_states'] + value is read from `config.defaults['statesp.remove_useless_states']` (default = False). """ diff --git a/control/tests/interconnect_test.py b/control/tests/interconnect_test.py index dcc588dad..34daffb75 100644 --- a/control/tests/interconnect_test.py +++ b/control/tests/interconnect_test.py @@ -30,10 +30,10 @@ ['u', 'y', 2, [[1, 0], [0, 1]] ], [['r', '-y'], ['e'], 2, [[1, 0, -1, 0], [0, 1, 0, -1]] ], ]) -def test_summation_block(inputs, output, dimension, D): +def test_summing_junction(inputs, output, dimension, D): ninputs = 1 if isinstance(inputs, str) else \ inputs if isinstance(inputs, int) else len(inputs) - sum = ct.summation_block( + sum = ct.summing_junction( inputs=inputs, output=output, dimension=dimension) dim = 1 if dimension is None else dimension np.testing.assert_array_equal(sum.A, np.ndarray((0, 0))) @@ -45,15 +45,15 @@ def test_summation_block(inputs, output, dimension, D): def test_summation_exceptions(): # Bad input description with pytest.raises(ValueError, match="could not parse input"): - sumblk = ct.summation_block(None, 'y') + sumblk = ct.summing_junction(None, 'y') # Bad output description with pytest.raises(ValueError, match="could not parse output"): - sumblk = ct.summation_block('u', None) + sumblk = ct.summing_junction('u', None) # Bad input dimension with pytest.raises(ValueError, match="unrecognized dimension"): - sumblk = ct.summation_block('u', 'y', dimension=False) + sumblk = ct.summing_junction('u', 'y', dimension=False) def test_interconnect_implicit(): @@ -83,8 +83,8 @@ def test_interconnect_implicit(): np.testing.assert_almost_equal(Tio_exp.C, Tss.C) np.testing.assert_almost_equal(Tio_exp.D, Tss.D) - # Construct the interconnection via a summation block - sumblk = ct.summation_block(inputs=['r', '-y'], output='e', name="sum") + # Construct the interconnection via a summing junction + sumblk = ct.summing_junction(inputs=['r', '-y'], output='e', name="sum") Tio_sum = ct.interconnect( (C, P, sumblk), inplist=['r'], outlist=['y']) @@ -108,6 +108,17 @@ def test_interconnect_implicit(): np.testing.assert_almost_equal(Tio_sum.C, Tss.C) np.testing.assert_almost_equal(Tio_sum.D, Tss.D) + # TODO: interconnect a MIMO system using implicit connections + # P = control.ss2io( + # control.rss(2, 2, 2, strictly_proper=True), + # input_prefix='u', output_prefix='y', name='P') + # C = control.ss2io( + # control.rss(2, 2, 2), + # input_prefix='e', output_prefix='u', name='C') + # sumblk = control.summing_junction( + # inputs=['r', '-y'], output='e', dimension=2) + # S = control.interconnect([P, C, sumblk], inplist='r', outlist='y') + # Make sure that repeated inplist/outlist names generate an error # Input not unique Cbad = ct.tf2io(ct.tf(10, [1, 1]), inputs='r', outputs='x', name='C') @@ -129,3 +140,35 @@ def test_interconnect_implicit(): with pytest.raises(ValueError, match="could not find"): Tio_sum = ct.interconnect( (C, P, sumblk), inplist=['r'], outlist=['x']) + +def test_interconnect_docstring(): + """Test the examples from the interconnect() docstring""" + + # MIMO interconnection (note: use [C, P] instead of [P, C] for state order) + P = ct.LinearIOSystem( + ct.rss(2, 2, 2, strictly_proper=True), name='P') + C = ct.LinearIOSystem(ct.rss(2, 2, 2), name='C') + T = ct.interconnect( + [C, P], + connections = [ + ['P.u[0]', 'C.y[0]'], ['P.u[1]', 'C.y[1]'], + ['C.u[0]', '-P.y[0]'], ['C.u[1]', '-P.y[1]']], + inplist = ['C.u[0]', 'C.u[1]'], + outlist = ['P.y[0]', 'P.y[1]'], + ) + T_ss = ct.feedback(P * C, ct.ss([], [], [], np.eye(2))) + np.testing.assert_almost_equal(T.A, T_ss.A) + np.testing.assert_almost_equal(T.B, T_ss.B) + np.testing.assert_almost_equal(T.C, T_ss.C) + np.testing.assert_almost_equal(T.D, T_ss.D) + + # Implicit interconnection (note: use [C, P, sumblk] for proper state order) + P = ct.tf2io(ct.tf(1, [1, 0]), inputs='u', outputs='y') + C = ct.tf2io(ct.tf(10, [1, 1]), inputs='e', outputs='u') + sumblk = ct.summing_junction(inputs=['r', '-y'], output='e') + T = ct.interconnect([C, P, sumblk], inplist='r', outlist='y') + T_ss = ct.feedback(P * C, 1) + np.testing.assert_almost_equal(T.A, T_ss.A) + np.testing.assert_almost_equal(T.B, T_ss.B) + np.testing.assert_almost_equal(T.C, T_ss.C) + np.testing.assert_almost_equal(T.D, T_ss.D) diff --git a/doc/control.rst b/doc/control.rst index 80119f691..500f6db3c 100644 --- a/doc/control.rst +++ b/doc/control.rst @@ -144,6 +144,7 @@ Nonlinear system support linearize input_output_response ss2io + summing_junction tf2io flatsys.point_to_point diff --git a/doc/iosys.rst b/doc/iosys.rst index b2ac752af..1b160bad1 100644 --- a/doc/iosys.rst +++ b/doc/iosys.rst @@ -156,7 +156,8 @@ The input to the controller is `u`, consisting of the vector of hare and lynx populations followed by the desired lynx population. To connect the controller to the predatory-prey model, we create an -:class:`~control.InterconnectedSystem`: +:class:`~control.InterconnectedSystem` using the :func:`~control.interconnect` +function: .. code-block:: python @@ -189,13 +190,83 @@ Finally, we simulate the closed loop system: plt.legend(['input']) plt.show(block=False) +Additional features +=================== + +The I/O systems module has a number of other features that can be used to +simplify the creation of interconnected input/output systems. + +Summing junction +---------------- + +The :func:`~control.summing_junction` function can be used to create an +input/output system that takes the sum of an arbitrary number of inputs. For +ezample, to create an input/output system that takes the sum of three inputs, +use the command + +.. code-block:: python + + sumblk = ct.summing_junction(3) + +By default, the name of the inputs will be of the form ``u[i]`` and the output +will be ``y``. This can be changed by giving an explicit list of names:: + + sumblk = ct.summing_junction(inputs=['a', 'b', 'c'], output='d') + +A more typical usage would be to define an input/output system that compares a +reference signal to the output of the process and computes the error:: + + sumblk = ct.summing_junction(inputs=['r', '-y'], output='e') + +Note the use of the minus sign as a means of setting the sign of the input 'y' +to be negative instead of positive. + +It is also possible to define "vector" summing blocks that take +multi-dimensional inputs and produce a multi-dimensional output. For example, +the command + +.. code-block:: python + + sumblk = ct.summing_junction(inputs=['r', '-y'], output='e', dimension=2) + +will produce an input/output block that implements ``e[0] = r[0] - y[0]`` and +``e[1] = r[1] - y[1]``. + +Automatic connections using signal names +---------------------------------------- + +The :func:`~control.interconnect` function allows the interconnection of +multiple systems by using signal names of the form ``sys.signal``. In many +situations, it can be cumbersome to explicitly connect all of the appropriate +inputs and outputs. As an alternative, if the ``connections`` keyword is +omitted, the :func:`~control.interconnect` function will connect all signals +of the same name to each other. This can allow for simplified methods of +interconnecting systems, especially when combined with the +:func:`~control.summing_junction` function. For example, the following code +will create a unity gain, negative feedback system:: + + P = control.tf2io(control.tf(1, [1, 0]), inputs='u', outputs='y') + C = control.tf2io(control.tf(10, [1, 1]), inputs='e', outputs='u') + sumblk = control.summing_junction(inputs=['r', '-y'], output='e') + T = control.interconnect([P, C, sumblk], inplist='r', outlist='y') + +If a signal name appears in multiple outputs then that signal will be summed +when it is interconnected. Similarly, if a signal name appears in multiple +inputs then all systems using that signal name will receive the same input. +The :func:`~control.interconnect` function will generate an error if an signal +listed in ``inplist`` or ``outlist`` (corresponding to the inputs and outputs +of the interconnected system) is not found, but inputs and outputs of +individual systems that are not connected to other systems are left +unconnected (so be careful!). + + Module classes and functions ============================ Input/output system classes --------------------------- .. autosummary:: - + ~control.InputOutputSystem ~control.InterconnectedSystem ~control.LinearICSystem @@ -211,5 +282,5 @@ Input/output system functions ~control.input_output_response ~control.interconnect ~control.ss2io + ~control.summing_junction ~control.tf2io - From eb401a94e426dc3cc9c30108fa8841682144a6c0 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 24 Jan 2021 08:38:51 -0800 Subject: [PATCH 126/260] fix up deprecation warnings in response to @bnavigator review --- control/lti.py | 33 ++++++++++++++++----------------- control/statesp.py | 19 +++++++++---------- control/tests/lti_test.py | 17 ++++++++++------- 3 files changed, 35 insertions(+), 34 deletions(-) diff --git a/control/lti.py b/control/lti.py index 97a1e9b7f..445775f5f 100644 --- a/control/lti.py +++ b/control/lti.py @@ -52,40 +52,39 @@ def __init__(self, inputs=1, outputs=1, dt=None): self.dt = dt # - # Getter and setter functions for legacy input/output attributes + # Getter and setter functions for legacy state attributes # - # For this iteration, generate a pending deprecation warning whenever - # the getter/setter is called. For a future iteration, turn it into a - # deprecation warning. + # For this iteration, generate a deprecation warning whenever the + # getter/setter is called. For a future iteration, turn it into a + # future warning, so that users will see it. # @property def inputs(self): - raise PendingDeprecationWarning( - "The LTI `inputs` attribute will be deprecated in a future " - "release. Use `ninputs` instead.") + warn("The LTI `inputs` attribute will be deprecated in a future " + "release. Use `ninputs` instead.", + DeprecationWarning, stacklevel=2) return self.ninputs @inputs.setter def inputs(self, value): - raise PendingDeprecationWarning( - "The LTI `inputs` attribute will be deprecated in a future " - "release. Use `ninputs` instead.") - + warn("The LTI `inputs` attribute will be deprecated in a future " + "release. Use `ninputs` instead.", + DeprecationWarning, stacklevel=2) self.ninputs = value @property def outputs(self): - raise PendingDeprecationWarning( - "The LTI `outputs` attribute will be deprecated in a future " - "release. Use `noutputs` instead.") + warn("The LTI `outputs` attribute will be deprecated in a future " + "release. Use `noutputs` instead.", + DeprecationWarning, stacklevel=2) return self.noutputs @outputs.setter def outputs(self, value): - raise PendingDeprecationWarning( - "The LTI `outputs` attribute will be deprecated in a future " - "release. Use `noutputs` instead.") + warn("The LTI `outputs` attribute will be deprecated in a future " + "release. Use `noutputs` instead.", + DeprecationWarning, stacklevel=2) self.noutputs = value def isdtime(self, strict=False): diff --git a/control/statesp.py b/control/statesp.py index 8a47f3e74..47018b497 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -333,24 +333,23 @@ def __init__(self, *args, **kwargs): # # Getter and setter functions for legacy state attributes # - # For this iteration, generate a pending deprecation warning whenever - # the getter/setter is called. For a future iteration, turn it into a - # deprecation warning. + # For this iteration, generate a deprecation warning whenever the + # getter/setter is called. For a future iteration, turn it into a + # future warning, so that users will see it. # @property def states(self): - raise PendingDeprecationWarning( - "The StateSpace `states` attribute will be deprecated in a future " - "release. Use `nstates` instead.") + warn("The StateSpace `states` attribute will be deprecated in a " + "future release. Use `nstates` instead.", + DeprecationWarning, stacklevel=2) return self.nstates @states.setter def states(self, value): - raise PendingDeprecationWarning( - "The StateSpace `states` attribute will be deprecated in a future " - "release. Use `nstates` instead.") - # raise PendingDeprecationWarning( + warn("The StateSpace `states` attribute will be deprecated in a " + "future release. Use `nstates` instead.", + DeprecationWarning, stacklevel=2) self.nstates = value def _remove_useless_states(self): diff --git a/control/tests/lti_test.py b/control/tests/lti_test.py index 5c5b65e4a..1bf633e84 100644 --- a/control/tests/lti_test.py +++ b/control/tests/lti_test.py @@ -251,13 +251,16 @@ def test_squeeze_exceptions(self, fcn): sys([[0.1, 1], [1, 10]]) evalfr(sys, [[0.1, 1], [1, 10]]) - with pytest.raises(PendingDeprecationWarning, match="LTI `inputs`"): - assert sys.inputs == sys.ninputs + with pytest.warns(DeprecationWarning, match="LTI `inputs`"): + ninputs = sys.inputs + assert ninputs == sys.ninputs - with pytest.raises(PendingDeprecationWarning, match="LTI `outputs`"): - assert sys.outputs == sys.noutputs + with pytest.warns(DeprecationWarning, match="LTI `outputs`"): + noutputs = sys.outputs + assert noutputs == sys.noutputs if isinstance(sys, ct.StateSpace): - with pytest.raises( - PendingDeprecationWarning, match="StateSpace `states`"): - assert sys.states == sys.nstates + with pytest.warns( + DeprecationWarning, match="StateSpace `states`"): + nstates = sys.states + assert nstates == sys.nstates From 791f7a677db500731697bdde7a82ca391f9a2b37 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 25 Jan 2021 22:18:55 -0800 Subject: [PATCH 127/260] TRV: docstring typo --- control/iosys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index cb360bad4..afee5088c 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -1894,8 +1894,8 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], and the special form '-sys.sig' can be used to specify a signal with gain -1. - If omitted, all the `interconnect` function will attempt to create the - interconneciton map by connecting all signals with the same base names + If omitted, the `interconnect` function will attempt to create the + interconnection map by connecting all signals with the same base names (ignoring the system name). Specifically, for each input signal name in the list of systems, if that signal name corresponds to the output signal in any of the systems, it will be connected to that input (with From 52db75246b1dd66a2b8d7296f32a0d23092f25ea Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 26 Jan 2021 19:15:28 -0800 Subject: [PATCH 128/260] GitHub action workflow to install python-control and run examples --- .github/workflows/install_examples.yml | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/install_examples.yml diff --git a/.github/workflows/install_examples.yml b/.github/workflows/install_examples.yml new file mode 100644 index 000000000..6e28bb48e --- /dev/null +++ b/.github/workflows/install_examples.yml @@ -0,0 +1,34 @@ +name: setup.py, examples + +on: [push, pull_request] + +jobs: + build-linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + - name: Install Python dependencies + run: | + # Set up conda + echo $CONDA/bin >> $GITHUB_PATH + + # Set up (virtual) X11 + sudo apt install -y xvfb + + # Install test tools + conda install pip pytest + + # Install python-control dependencies + conda install numpy matplotlib scipy + conda install -c conda-forge slycot pmw + + - name: Install with setup.py + run: python setup.py install + + - name: Run examples + run: | + cd examples + ./run_examples.sh From b6e73c709f3605ef320659a53a86ac4b19f6b368 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 26 Jan 2021 21:30:02 -0800 Subject: [PATCH 129/260] add run_notebooks script + fix Jupyter notebook errors --- .github/workflows/install_examples.yml | 3 ++- examples/bode-and-nyquist-plots.ipynb | 5 ++--- examples/run_notebooks.sh | 29 ++++++++++++++++++++++++++ examples/steering.ipynb | 10 ++++----- 4 files changed, 38 insertions(+), 9 deletions(-) create mode 100755 examples/run_notebooks.sh diff --git a/.github/workflows/install_examples.yml b/.github/workflows/install_examples.yml index 6e28bb48e..b36ff3e7f 100644 --- a/.github/workflows/install_examples.yml +++ b/.github/workflows/install_examples.yml @@ -22,7 +22,7 @@ jobs: conda install pip pytest # Install python-control dependencies - conda install numpy matplotlib scipy + conda install numpy matplotlib scipy jupyter conda install -c conda-forge slycot pmw - name: Install with setup.py @@ -32,3 +32,4 @@ jobs: run: | cd examples ./run_examples.sh + ./run_notebooks.sh diff --git a/examples/bode-and-nyquist-plots.ipynb b/examples/bode-and-nyquist-plots.ipynb index 8aa0df822..e66ec98dc 100644 --- a/examples/bode-and-nyquist-plots.ipynb +++ b/examples/bode-and-nyquist-plots.ipynb @@ -6,7 +6,6 @@ "metadata": {}, "outputs": [], "source": [ - "import seaborn as sns\n", "import scipy as sp\n", "import matplotlib.pyplot as plt\n", "import control as ct" @@ -10025,9 +10024,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python (pctest)", + "display_name": "Python 3", "language": "python", - "name": "pctest" + "name": "python3" }, "language_info": { "codemirror_mode": { diff --git a/examples/run_notebooks.sh b/examples/run_notebooks.sh new file mode 100755 index 000000000..55d9e563b --- /dev/null +++ b/examples/run_notebooks.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# run_notbooks.sh - run Jupyter notebooks +# RMM, 26 Jan 2021 +# +# This script runs all of the Jupyter notebooks to make sure that there +# are no errors. + +# Keep track of files that generate errors +notebook_errors="" + +# Go through each Jupyter notebook +for example in *.ipynb; do + echo "Running ${example}" + if ! jupyter nbconvert --to notebook --execute ${example}; then + notebook_errors="${notebook_errors} ${example}" + fi +done + +# Get rid of the output files +rm *.nbconvert.ipynb + +# List any files that generated errors +if [ -n "${notebook_errors}" ]; then + echo These examples had errors: + echo "${notebook_errors}" + exit 1 +else + echo All examples ran successfully +fi diff --git a/examples/steering.ipynb b/examples/steering.ipynb index c0d277f43..1e6b022a1 100644 --- a/examples/steering.ipynb +++ b/examples/steering.ipynb @@ -312,7 +312,7 @@ " clsys = ct.StateSpace(A - B @ K, B, lateral_normalized.C, 0)\n", " \n", " # Compute the feedforward gain based on the zero frequency gain of the closed loop\n", - " kf = np.real(1/clsys.evalfr(0))\n", + " kf = np.real(1/clsys(0))\n", "\n", " # Scale the input by the feedforward gain\n", " clsys *= kf\n", @@ -488,7 +488,7 @@ "tau = v0 * T_curvy / b\n", "\n", "# Simulate the estimator, with a small initial error in y position\n", - "t, y_est, x_est = ct.forced_response(est, tau, [delta_curvy, y_ref], [0.5, 0])\n", + "t, y_est, x_est = ct.forced_response(est, tau, [delta_curvy, y_ref], [0.5, 0], return_x=True)\n", "\n", "# Configure matplotlib plots to be a bit bigger and optimize layout\n", "plt.figure(figsize=[9, 4.5])\n", @@ -596,7 +596,7 @@ " np.zeros((2,1)))\n", "\n", "# Simulate the system\n", - "t, y, x = ct.forced_response(clsys, tau, y_ref, [0.4, 0, 0.0, 0])\n", + "t, y, x = ct.forced_response(clsys, tau, y_ref, [0.4, 0, 0.0, 0], return_x=True)\n", "\n", "# Calcaluate the input used to generate the control response\n", "u_sfb = kf * y_ref - K @ x[0:2]\n", @@ -1081,7 +1081,7 @@ "zc = 0.707\n", "eigs = np.roots([1, 2*zc*wc, wc**2])\n", "K = ct.place(A, B, eigs)\n", - "kr = np.real(1/clsys.evalfr(0))\n", + "kr = np.real(1/clsys(0))\n", "print(\"K = \", np.squeeze(K))\n", "\n", "# Compute the estimator gain using eigenvalue placement\n", @@ -1126,7 +1126,7 @@ "zc = 2.6\n", "eigs = np.roots([1, 2*zc*wc, wc**2])\n", "K = ct.place(A, B, eigs)\n", - "kr = np.real(1/clsys.evalfr(0))\n", + "kr = np.real(1/clsys(0))\n", "print(\"K = \", np.squeeze(K))\n", "\n", "# Construct an output-based controller for the system\n", From bab9f7bebbc279b9e484e146f23c436d7c0c7354 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 08:28:06 -0800 Subject: [PATCH 130/260] removed backspace character in margins plot title because it shows as an empty glyph (on mac) --- control/freqplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/freqplot.py b/control/freqplot.py index ef4263bbe..1a3f6402a 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -457,7 +457,7 @@ def bode_plot(syslist, omega=None, "Gm = %.2f %s(at %.2f %s), " "Pm = %.2f %s (at %.2f %s)" % (20*np.log10(gm) if dB else gm, - 'dB ' if dB else '\b', + 'dB ' if dB else '', Wcg, 'Hz' if Hz else 'rad/s', pm if deg else math.radians(pm), 'deg' if deg else 'rad', From 72c5e069fb21b26f8a366f71df49103c94d369c9 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 08:50:05 -0800 Subject: [PATCH 131/260] evalfr(sys,s) -> sys(s); mimo errors specified as ControlMIMONotImplemented in a few places --- control/freqplot.py | 13 +++++++------ control/margins.py | 14 +++++++------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 1a3f6402a..159c1c4cd 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -50,6 +50,7 @@ from .ctrlutil import unwrap from .bdalg import feedback from .margins import stability_margins +from .exception import ControlMIMONotImplemented from . import config __all__ = ['bode_plot', 'nyquist_plot', 'gangof4_plot', @@ -214,9 +215,9 @@ def bode_plot(syslist, omega=None, mags, phases, omegas, nyquistfrqs = [], [], [], [] for sys in syslist: - if sys.ninputs > 1 or sys.noutputs > 1: + if not sys.issiso(): # TODO: Add MIMO bode plots. - raise NotImplementedError( + raise ControlMIMONotImplemented( "Bode is currently only implemented for SISO systems.") else: omega_sys = np.array(omega) @@ -582,9 +583,9 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, num=50, endpoint=True, base=10.0) for sys in syslist: - if sys.ninputs > 1 or sys.noutputs > 1: + if not sys.issiso(): # TODO: Add MIMO nyquist plots. - raise NotImplementedError( + raise ControlMIMONotImplemented( "Nyquist is currently only implemented for SISO systems.") else: # Get the magnitude and phase of the system @@ -672,9 +673,9 @@ def gangof4_plot(P, C, omega=None, **kwargs): ------- None """ - if P.ninputs > 1 or P.noutputs > 1 or C.ninputs > 1 or C.noutputs > 1: + if not P.issiso() or not C.issiso(): # TODO: Add MIMO go4 plots. - raise NotImplementedError( + raise ControlMIMONotImplemented( "Gang of four is currently only implemented for SISO systems.") # Get the default parameter values diff --git a/control/margins.py b/control/margins.py index 20da2a879..af7c63c56 100644 --- a/control/margins.py +++ b/control/margins.py @@ -207,7 +207,7 @@ def fun(wdt): # Took the framework for the old function by -# Sawyer B. Fuller , removed a lot of the innards +# Sawyer B. Fuller , removed a lot of the innards # and replaced with analytical polynomial functions for LTI systems. # # idea for the frequency data solution copied/adapted from @@ -294,29 +294,29 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): # frequency for gain margin: phase crosses -180 degrees w_180 = _poly_iw_real_crossing(num_iw, den_iw, epsw) with np.errstate(all='ignore'): # den=0 is okay - w180_resp = evalfr(sys, 1J * w_180) + w180_resp = sys(1J * w_180) # frequency for phase margin : gain crosses magnitude 1 wc = _poly_iw_mag1_crossing(num_iw, den_iw, epsw) - wc_resp = evalfr(sys, 1J * wc) + wc_resp = sys(1J * wc) # stability margin wstab = _poly_iw_wstab(num_iw, den_iw, epsw) - ws_resp = evalfr(sys, 1J * wstab) + ws_resp = sys(1J * wstab) else: # Discrete Time zargs = _poly_z_invz(sys) # gain margin z, w_180 = _poly_z_real_crossing(*zargs, epsw=epsw) - w180_resp = evalfr(sys, z) + w180_resp = sys(z) # phase margin z, wc = _poly_z_mag1_crossing(*zargs, epsw=epsw) - wc_resp = evalfr(sys, z) + wc_resp = sys(z) # stability margin z, wstab = _poly_z_wstab(*zargs, epsw=epsw) - ws_resp = evalfr(sys, z) + ws_resp = sys(z) # only keep frequencies where the negative real axis is crossed w_180 = w_180[w180_resp <= 0.] From ddaeb6db1b1c060b285425b81d3205f95f389610 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 09:37:15 -0800 Subject: [PATCH 132/260] freqplot: use reasonable number of frequency points rather than default of 50 for logspace; unify frequency range specification for bode and nyquist --- control/freqplot.py | 173 ++++++++++++++++++++++++-------------------- 1 file changed, 95 insertions(+), 78 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 159c1c4cd..c9d9d2899 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -59,7 +59,7 @@ # Default values for module parameter variables _freqplot_defaults = { 'freqplot.feature_periphery_decades': 1, - 'freqplot.number_of_samples': None, + 'freqplot.number_of_samples': 1000, } # @@ -94,7 +94,7 @@ def bode_plot(syslist, omega=None, ---------- syslist : linsys List of linear input/output systems (single system is OK) - omega : list + omega : array_like List of frequencies in rad/sec to be used for frequency response dB : bool If True, plot result in dB. Default is false. @@ -106,10 +106,10 @@ def bode_plot(syslist, omega=None, config.defaults['bode.deg'] plot : bool If True (default), plot magnitude and phase - omega_limits: tuple, list, ... of two values + omega_limits : array_like of two values Limits of the to generate frequency vector. If Hz=True the limits are in Hz otherwise in rad/s. - omega_num: int + omega_num : int Number of samples to plot. Defaults to config.defaults['freqplot.number_of_samples']. margins : bool @@ -200,18 +200,18 @@ def bode_plot(syslist, omega=None, omega = default_frequency_range(syslist, Hz=Hz, number_of_samples=omega_num) else: - omega_limits = np.array(omega_limits) + omega_limits = np.asarray(omega_limits) + if len(omega_limits) != 2: + raise ValueError("len(omega_limits) must be 2") if Hz: omega_limits *= 2. * math.pi if omega_num: - omega = np.logspace(np.log10(omega_limits[0]), - np.log10(omega_limits[1]), - num=omega_num, - endpoint=True) + num = omega_num else: - omega = np.logspace(np.log10(omega_limits[0]), - np.log10(omega_limits[1]), - endpoint=True) + num = config.defaults['freqplot.number_of_samples'] + omega = np.logspace(np.log10(omega_limits[0]), + np.log10(omega_limits[1]), num=num, + endpoint=True) mags, phases, omegas, nyquistfrqs = [], [], [], [] for sys in syslist: @@ -507,9 +507,9 @@ def gen_zero_centered_series(val_min, val_max, period): # Nyquist plot # -def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, - arrowhead_length=0.1, arrowhead_width=0.1, - color=None, *args, **kwargs): +def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, + omega_num=None, label_freq=0, arrowhead_length=0.1, + arrowhead_width=0.1, color=None, *args, **kwargs): """ Nyquist plot for a system @@ -519,16 +519,23 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, ---------- syslist : list of LTI List of linear input/output systems (single system is OK) - omega : freq_range - Range of frequencies (list or bounds) in rad/sec - Plot : boolean + plot : boolean If True, plot magnitude + omega : array_like + Range of frequencies in rad/sec + omega_limits : array_like of two values + Limits of the to generate frequency vector. + omega_num : int + Number of samples to plot. Defaults to + config.defaults['freqplot.number_of_samples']. color : string - Used to specify the color of the plot + Used to specify the color of the line and arrowhead label_freq : int Label every nth frequency on the plot - arrowhead_width : arrow head width - arrowhead_length : arrow head length + arrowhead_width : float + Arrow head width + arrowhead_length : float + Arrow head length *args : :func:`matplotlib.pyplot.plot` positional properties, optional Additional arguments for `matplotlib` plots (color, linestyle, etc) **kwargs : :func:`matplotlib.pyplot.plot` keyword properties, optional @@ -536,12 +543,12 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, Returns ------- - real : array + real : ndarray real part of the frequency response array - imag : array + imag : ndarray imaginary part of the frequency response array - freq : array - frequencies + freq : ndarray + frequencies in rad/s Examples -------- @@ -571,7 +578,21 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, # Select a default range if none is provided if omega is None: - omega = default_frequency_range(syslist) + if omega_limits is None: + # Select a default range if none is provided + omega = default_frequency_range(syslist, Hz=False, + number_of_samples=omega_num) + else: + omega_limits = np.asarray(omega_limits) + if len(omega_limits) != 2: + raise ValueError("len(omega_limits) must be 2") + if omega_num: + num = omega_num + else: + num = config.defaults['freqplot.number_of_samples'] + omega = np.logspace(np.log10(omega_limits[0]), + np.log10(omega_limits[1]), num=num, + endpoint=True) # Interpolate between wmin and wmax if a tuple or list are provided elif isinstance(omega, list) or isinstance(omega, tuple): @@ -580,65 +601,61 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, raise ValueError("Supported frequency arguments are (wmin,wmax)" "tuple or list, or frequency vector. ") omega = np.logspace(np.log10(omega[0]), np.log10(omega[1]), - num=50, endpoint=True, base=10.0) + num=500, endpoint=True, base=10.0) for sys in syslist: if not sys.issiso(): # TODO: Add MIMO nyquist plots. raise ControlMIMONotImplemented( "Nyquist is currently only implemented for SISO systems.") - else: - # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega = sys.frequency_response(omega) - mag = np.squeeze(mag_tmp) - phase = np.squeeze(phase_tmp) - - # Compute the primary curve - x = np.multiply(mag, np.cos(phase)) - y = np.multiply(mag, np.sin(phase)) - if plot: - # Plot the primary curve and mirror image - p = plt.plot(x, y, '-', color=color, *args, **kwargs) - c = p[0].get_color() - ax = plt.gca() - # Plot arrow to indicate Nyquist encirclement orientation - ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, fc=c, ec=c, - head_width=arrowhead_width, - head_length=arrowhead_length) - - plt.plot(x, -y, '-', color=c, *args, **kwargs) - ax.arrow( - x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, - fc=c, ec=c, head_width=arrowhead_width, - head_length=arrowhead_length) - - # Mark the -1 point - plt.plot([-1], [0], 'r+') - - # Label the frequencies of the points - if label_freq: - ind = slice(None, None, label_freq) - for xpt, ypt, omegapt in zip(x[ind], y[ind], omega[ind]): - # Convert to Hz - f = omegapt / (2 * np.pi) - - # Factor out multiples of 1000 and limit the - # result to the range [-8, 8]. - pow1000 = max(min(get_pow1000(f), 8), -8) - - # Get the SI prefix. - prefix = gen_prefix(pow1000) - - # Apply the text. (Use a space before the text to - # prevent overlap with the data.) - # - # np.round() is used because 0.99... appears - # instead of 1.0, and this would otherwise be - # truncated to 0. - plt.text(xpt, ypt, ' ' + - str(int(np.round(f / 1000 ** pow1000, 0))) + ' ' + - prefix + 'Hz') + # Get the magnitude and phase of the system + mag, phase, omega = sys.frequency_response(omega) + + # Compute the primary curve + x = mag * np.cos(phase) + y = mag * np.sin(phase) + + if plot: + # Plot the primary curve and mirror image + p = plt.plot(np.hstack((x,x)), np.hstack((y,-y)), + '-', color=color, *args, **kwargs) + c = p[0].get_color() + ax = plt.gca() + # Plot arrow to indicate Nyquist encirclement orientation + ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, + fc=c, ec=c, head_width=arrowhead_width, + head_length=arrowhead_length, label=None) + ax.arrow(x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, + fc=c, ec=c, head_width=arrowhead_width, + head_length=arrowhead_length, label=None) + + # Mark the -1 point + plt.plot([-1], [0], 'r+') + + # Label the frequencies of the points + if label_freq: + ind = slice(None, None, label_freq) + for xpt, ypt, omegapt in zip(x[ind], y[ind], omega[ind]): + # Convert to Hz + f = omegapt / (2 * np.pi) + + # Factor out multiples of 1000 and limit the + # result to the range [-8, 8]. + pow1000 = max(min(get_pow1000(f), 8), -8) + + # Get the SI prefix. + prefix = gen_prefix(pow1000) + + # Apply the text. (Use a space before the text to + # prevent overlap with the data.) + # + # np.round() is used because 0.99... appears + # instead of 1.0, and this would otherwise be + # truncated to 0. + plt.text(xpt, ypt, ' ' + + str(int(np.round(f / 1000 ** pow1000, 0))) + ' ' + + prefix + 'Hz') if plot: ax = plt.gca() From 70c9855dd43dd74b0f4596b5f8a3f69148ddb2e2 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 10:11:02 -0800 Subject: [PATCH 133/260] convert first system passed to append into ss if necessary --- control/bdalg.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/control/bdalg.py b/control/bdalg.py index 20c9f4b09..10d49f130 100644 --- a/control/bdalg.py +++ b/control/bdalg.py @@ -54,6 +54,7 @@ """ import numpy as np +from scipy.signal.ltisys import StateSpace from . import xferfcn as tf from . import statesp as ss from . import frdata as frd @@ -280,7 +281,10 @@ def append(*sys): >>> sys = append(sys1, sys2) """ - s1 = sys[0] + if not isinstance(sys[0], StateSpace): + s1 = ss._convert_to_statespace(sys[0]) + else: + s1 = sys[0] for s in sys[1:]: s1 = s1.append(s) return s1 From 65171d3cda41b358b6ef6efa2a489431519df63f Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 13:23:01 -0800 Subject: [PATCH 134/260] a few small code cleanups --- control/freqplot.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index c9d9d2899..2e476483e 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -220,18 +220,17 @@ def bode_plot(syslist, omega=None, raise ControlMIMONotImplemented( "Bode is currently only implemented for SISO systems.") else: - omega_sys = np.array(omega) - if sys.isdtime(True): + omega_sys = np.asarray(omega) + if sys.isdtime(strict=True): nyquistfrq = 2. * math.pi * 1. / sys.dt / 2. omega_sys = omega_sys[omega_sys < nyquistfrq] # TODO: What distance to the Nyquist frequency is appropriate? else: nyquistfrq = None - # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega_sys = sys.frequency_response(omega_sys) - mag = np.atleast_1d(np.squeeze(mag_tmp)) - phase = np.atleast_1d(np.squeeze(phase_tmp)) + mag, phase, omega_sys = sys.frequency_response(omega_sys) + mag = np.atleast_1d(mag) + phase = np.atleast_1d(phase) # # Post-process the phase to handle initial value and wrapping @@ -352,8 +351,7 @@ def bode_plot(syslist, omega=None, # Show the phase and gain margins in the plot if margins: # Compute stability margins for the system - margin = stability_margins(sys) - gm, pm, Wcg, Wcp = (margin[i] for i in (0, 1, 3, 4)) + gm, pm, Wcg, Wcp = stability_margins(sys)[0:4] # Figure out sign of the phase at the first gain crossing # (needed if phase_wrap is True) From 060b2f0793e9955c679195330f2768615b8ed7bf Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 13:55:06 -0800 Subject: [PATCH 135/260] fixes to pass tests --- control/freqplot.py | 3 ++- control/tests/config_test.py | 2 +- control/tests/sisotool_test.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 2e476483e..8a4e41d30 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -351,7 +351,8 @@ def bode_plot(syslist, omega=None, # Show the phase and gain margins in the plot if margins: # Compute stability margins for the system - gm, pm, Wcg, Wcp = stability_margins(sys)[0:4] + margin = stability_margins(sys) + gm, pm, Wcg, Wcp = (margin[i] for i in (0, 1, 3, 4)) # Figure out sign of the phase at the first gain crossing # (needed if phase_wrap is True) diff --git a/control/tests/config_test.py b/control/tests/config_test.py index 02d0ad51c..b64240064 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -203,7 +203,7 @@ def test_reset_defaults(self): assert not ct.config.defaults['bode.dB'] assert ct.config.defaults['bode.deg'] assert not ct.config.defaults['bode.Hz'] - assert ct.config.defaults['freqplot.number_of_samples'] is None + assert ct.config.defaults['freqplot.number_of_samples'] is 1000 assert ct.config.defaults['freqplot.feature_periphery_decades'] == 1.0 def test_legacy_defaults(self): diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index 65f87f28b..09c73179f 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -78,8 +78,8 @@ def test_sisotool(self, sys): # Check if the bode_mag line has moved bode_mag_moved = np.array( - [111.83321224, 92.29238035, 76.02822315, 62.46884113, 51.14108703, - 41.6554004, 33.69409534, 27.00237344, 21.38086717, 16.67791585]) + [674.0242, 667.8354, 661.7033, 655.6275, 649.6074, 643.6426, + 637.7324, 631.8765, 626.0742, 620.3252]) assert_array_almost_equal(ax_mag.lines[0].get_data()[1][10:20], bode_mag_moved, 4) From 151fb6c99ff8ea6b89d808d307d2654eff01cdef Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 08:28:06 -0800 Subject: [PATCH 136/260] removed backspace character in margins plot title because it shows as an empty glyph (on mac) --- control/freqplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/freqplot.py b/control/freqplot.py index ef4263bbe..1a3f6402a 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -457,7 +457,7 @@ def bode_plot(syslist, omega=None, "Gm = %.2f %s(at %.2f %s), " "Pm = %.2f %s (at %.2f %s)" % (20*np.log10(gm) if dB else gm, - 'dB ' if dB else '\b', + 'dB ' if dB else '', Wcg, 'Hz' if Hz else 'rad/s', pm if deg else math.radians(pm), 'deg' if deg else 'rad', From ee6a72e638ef738e17aeb87d7595be0b7e87d2fc Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 08:50:05 -0800 Subject: [PATCH 137/260] evalfr(sys,s) -> sys(s); mimo errors specified as ControlMIMONotImplemented in a few places --- control/freqplot.py | 13 +++++++------ control/margins.py | 14 +++++++------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 1a3f6402a..159c1c4cd 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -50,6 +50,7 @@ from .ctrlutil import unwrap from .bdalg import feedback from .margins import stability_margins +from .exception import ControlMIMONotImplemented from . import config __all__ = ['bode_plot', 'nyquist_plot', 'gangof4_plot', @@ -214,9 +215,9 @@ def bode_plot(syslist, omega=None, mags, phases, omegas, nyquistfrqs = [], [], [], [] for sys in syslist: - if sys.ninputs > 1 or sys.noutputs > 1: + if not sys.issiso(): # TODO: Add MIMO bode plots. - raise NotImplementedError( + raise ControlMIMONotImplemented( "Bode is currently only implemented for SISO systems.") else: omega_sys = np.array(omega) @@ -582,9 +583,9 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, num=50, endpoint=True, base=10.0) for sys in syslist: - if sys.ninputs > 1 or sys.noutputs > 1: + if not sys.issiso(): # TODO: Add MIMO nyquist plots. - raise NotImplementedError( + raise ControlMIMONotImplemented( "Nyquist is currently only implemented for SISO systems.") else: # Get the magnitude and phase of the system @@ -672,9 +673,9 @@ def gangof4_plot(P, C, omega=None, **kwargs): ------- None """ - if P.ninputs > 1 or P.noutputs > 1 or C.ninputs > 1 or C.noutputs > 1: + if not P.issiso() or not C.issiso(): # TODO: Add MIMO go4 plots. - raise NotImplementedError( + raise ControlMIMONotImplemented( "Gang of four is currently only implemented for SISO systems.") # Get the default parameter values diff --git a/control/margins.py b/control/margins.py index 20da2a879..af7c63c56 100644 --- a/control/margins.py +++ b/control/margins.py @@ -207,7 +207,7 @@ def fun(wdt): # Took the framework for the old function by -# Sawyer B. Fuller , removed a lot of the innards +# Sawyer B. Fuller , removed a lot of the innards # and replaced with analytical polynomial functions for LTI systems. # # idea for the frequency data solution copied/adapted from @@ -294,29 +294,29 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): # frequency for gain margin: phase crosses -180 degrees w_180 = _poly_iw_real_crossing(num_iw, den_iw, epsw) with np.errstate(all='ignore'): # den=0 is okay - w180_resp = evalfr(sys, 1J * w_180) + w180_resp = sys(1J * w_180) # frequency for phase margin : gain crosses magnitude 1 wc = _poly_iw_mag1_crossing(num_iw, den_iw, epsw) - wc_resp = evalfr(sys, 1J * wc) + wc_resp = sys(1J * wc) # stability margin wstab = _poly_iw_wstab(num_iw, den_iw, epsw) - ws_resp = evalfr(sys, 1J * wstab) + ws_resp = sys(1J * wstab) else: # Discrete Time zargs = _poly_z_invz(sys) # gain margin z, w_180 = _poly_z_real_crossing(*zargs, epsw=epsw) - w180_resp = evalfr(sys, z) + w180_resp = sys(z) # phase margin z, wc = _poly_z_mag1_crossing(*zargs, epsw=epsw) - wc_resp = evalfr(sys, z) + wc_resp = sys(z) # stability margin z, wstab = _poly_z_wstab(*zargs, epsw=epsw) - ws_resp = evalfr(sys, z) + ws_resp = sys(z) # only keep frequencies where the negative real axis is crossed w_180 = w_180[w180_resp <= 0.] From 1c0764deaae0e6966ac6c8ddabf9457c84421e5d Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 09:37:15 -0800 Subject: [PATCH 138/260] freqplot: use reasonable number of frequency points rather than default of 50 for logspace; unify frequency range specification for bode and nyquist --- control/freqplot.py | 173 ++++++++++++++++++++++++-------------------- 1 file changed, 95 insertions(+), 78 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 159c1c4cd..c9d9d2899 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -59,7 +59,7 @@ # Default values for module parameter variables _freqplot_defaults = { 'freqplot.feature_periphery_decades': 1, - 'freqplot.number_of_samples': None, + 'freqplot.number_of_samples': 1000, } # @@ -94,7 +94,7 @@ def bode_plot(syslist, omega=None, ---------- syslist : linsys List of linear input/output systems (single system is OK) - omega : list + omega : array_like List of frequencies in rad/sec to be used for frequency response dB : bool If True, plot result in dB. Default is false. @@ -106,10 +106,10 @@ def bode_plot(syslist, omega=None, config.defaults['bode.deg'] plot : bool If True (default), plot magnitude and phase - omega_limits: tuple, list, ... of two values + omega_limits : array_like of two values Limits of the to generate frequency vector. If Hz=True the limits are in Hz otherwise in rad/s. - omega_num: int + omega_num : int Number of samples to plot. Defaults to config.defaults['freqplot.number_of_samples']. margins : bool @@ -200,18 +200,18 @@ def bode_plot(syslist, omega=None, omega = default_frequency_range(syslist, Hz=Hz, number_of_samples=omega_num) else: - omega_limits = np.array(omega_limits) + omega_limits = np.asarray(omega_limits) + if len(omega_limits) != 2: + raise ValueError("len(omega_limits) must be 2") if Hz: omega_limits *= 2. * math.pi if omega_num: - omega = np.logspace(np.log10(omega_limits[0]), - np.log10(omega_limits[1]), - num=omega_num, - endpoint=True) + num = omega_num else: - omega = np.logspace(np.log10(omega_limits[0]), - np.log10(omega_limits[1]), - endpoint=True) + num = config.defaults['freqplot.number_of_samples'] + omega = np.logspace(np.log10(omega_limits[0]), + np.log10(omega_limits[1]), num=num, + endpoint=True) mags, phases, omegas, nyquistfrqs = [], [], [], [] for sys in syslist: @@ -507,9 +507,9 @@ def gen_zero_centered_series(val_min, val_max, period): # Nyquist plot # -def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, - arrowhead_length=0.1, arrowhead_width=0.1, - color=None, *args, **kwargs): +def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, + omega_num=None, label_freq=0, arrowhead_length=0.1, + arrowhead_width=0.1, color=None, *args, **kwargs): """ Nyquist plot for a system @@ -519,16 +519,23 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, ---------- syslist : list of LTI List of linear input/output systems (single system is OK) - omega : freq_range - Range of frequencies (list or bounds) in rad/sec - Plot : boolean + plot : boolean If True, plot magnitude + omega : array_like + Range of frequencies in rad/sec + omega_limits : array_like of two values + Limits of the to generate frequency vector. + omega_num : int + Number of samples to plot. Defaults to + config.defaults['freqplot.number_of_samples']. color : string - Used to specify the color of the plot + Used to specify the color of the line and arrowhead label_freq : int Label every nth frequency on the plot - arrowhead_width : arrow head width - arrowhead_length : arrow head length + arrowhead_width : float + Arrow head width + arrowhead_length : float + Arrow head length *args : :func:`matplotlib.pyplot.plot` positional properties, optional Additional arguments for `matplotlib` plots (color, linestyle, etc) **kwargs : :func:`matplotlib.pyplot.plot` keyword properties, optional @@ -536,12 +543,12 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, Returns ------- - real : array + real : ndarray real part of the frequency response array - imag : array + imag : ndarray imaginary part of the frequency response array - freq : array - frequencies + freq : ndarray + frequencies in rad/s Examples -------- @@ -571,7 +578,21 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, # Select a default range if none is provided if omega is None: - omega = default_frequency_range(syslist) + if omega_limits is None: + # Select a default range if none is provided + omega = default_frequency_range(syslist, Hz=False, + number_of_samples=omega_num) + else: + omega_limits = np.asarray(omega_limits) + if len(omega_limits) != 2: + raise ValueError("len(omega_limits) must be 2") + if omega_num: + num = omega_num + else: + num = config.defaults['freqplot.number_of_samples'] + omega = np.logspace(np.log10(omega_limits[0]), + np.log10(omega_limits[1]), num=num, + endpoint=True) # Interpolate between wmin and wmax if a tuple or list are provided elif isinstance(omega, list) or isinstance(omega, tuple): @@ -580,65 +601,61 @@ def nyquist_plot(syslist, omega=None, plot=True, label_freq=0, raise ValueError("Supported frequency arguments are (wmin,wmax)" "tuple or list, or frequency vector. ") omega = np.logspace(np.log10(omega[0]), np.log10(omega[1]), - num=50, endpoint=True, base=10.0) + num=500, endpoint=True, base=10.0) for sys in syslist: if not sys.issiso(): # TODO: Add MIMO nyquist plots. raise ControlMIMONotImplemented( "Nyquist is currently only implemented for SISO systems.") - else: - # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega = sys.frequency_response(omega) - mag = np.squeeze(mag_tmp) - phase = np.squeeze(phase_tmp) - - # Compute the primary curve - x = np.multiply(mag, np.cos(phase)) - y = np.multiply(mag, np.sin(phase)) - if plot: - # Plot the primary curve and mirror image - p = plt.plot(x, y, '-', color=color, *args, **kwargs) - c = p[0].get_color() - ax = plt.gca() - # Plot arrow to indicate Nyquist encirclement orientation - ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, fc=c, ec=c, - head_width=arrowhead_width, - head_length=arrowhead_length) - - plt.plot(x, -y, '-', color=c, *args, **kwargs) - ax.arrow( - x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, - fc=c, ec=c, head_width=arrowhead_width, - head_length=arrowhead_length) - - # Mark the -1 point - plt.plot([-1], [0], 'r+') - - # Label the frequencies of the points - if label_freq: - ind = slice(None, None, label_freq) - for xpt, ypt, omegapt in zip(x[ind], y[ind], omega[ind]): - # Convert to Hz - f = omegapt / (2 * np.pi) - - # Factor out multiples of 1000 and limit the - # result to the range [-8, 8]. - pow1000 = max(min(get_pow1000(f), 8), -8) - - # Get the SI prefix. - prefix = gen_prefix(pow1000) - - # Apply the text. (Use a space before the text to - # prevent overlap with the data.) - # - # np.round() is used because 0.99... appears - # instead of 1.0, and this would otherwise be - # truncated to 0. - plt.text(xpt, ypt, ' ' + - str(int(np.round(f / 1000 ** pow1000, 0))) + ' ' + - prefix + 'Hz') + # Get the magnitude and phase of the system + mag, phase, omega = sys.frequency_response(omega) + + # Compute the primary curve + x = mag * np.cos(phase) + y = mag * np.sin(phase) + + if plot: + # Plot the primary curve and mirror image + p = plt.plot(np.hstack((x,x)), np.hstack((y,-y)), + '-', color=color, *args, **kwargs) + c = p[0].get_color() + ax = plt.gca() + # Plot arrow to indicate Nyquist encirclement orientation + ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, + fc=c, ec=c, head_width=arrowhead_width, + head_length=arrowhead_length, label=None) + ax.arrow(x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, + fc=c, ec=c, head_width=arrowhead_width, + head_length=arrowhead_length, label=None) + + # Mark the -1 point + plt.plot([-1], [0], 'r+') + + # Label the frequencies of the points + if label_freq: + ind = slice(None, None, label_freq) + for xpt, ypt, omegapt in zip(x[ind], y[ind], omega[ind]): + # Convert to Hz + f = omegapt / (2 * np.pi) + + # Factor out multiples of 1000 and limit the + # result to the range [-8, 8]. + pow1000 = max(min(get_pow1000(f), 8), -8) + + # Get the SI prefix. + prefix = gen_prefix(pow1000) + + # Apply the text. (Use a space before the text to + # prevent overlap with the data.) + # + # np.round() is used because 0.99... appears + # instead of 1.0, and this would otherwise be + # truncated to 0. + plt.text(xpt, ypt, ' ' + + str(int(np.round(f / 1000 ** pow1000, 0))) + ' ' + + prefix + 'Hz') if plot: ax = plt.gca() From 08dfca560cc4d3029023dfc35e2e3532c7508943 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 10:11:02 -0800 Subject: [PATCH 139/260] convert first system passed to append into ss if necessary --- control/bdalg.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/control/bdalg.py b/control/bdalg.py index 20c9f4b09..10d49f130 100644 --- a/control/bdalg.py +++ b/control/bdalg.py @@ -54,6 +54,7 @@ """ import numpy as np +from scipy.signal.ltisys import StateSpace from . import xferfcn as tf from . import statesp as ss from . import frdata as frd @@ -280,7 +281,10 @@ def append(*sys): >>> sys = append(sys1, sys2) """ - s1 = sys[0] + if not isinstance(sys[0], StateSpace): + s1 = ss._convert_to_statespace(sys[0]) + else: + s1 = sys[0] for s in sys[1:]: s1 = s1.append(s) return s1 From d8b70ed9fd97ac20098992b54f4f1c7e1931cbb9 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 13:23:01 -0800 Subject: [PATCH 140/260] a few small code cleanups --- control/freqplot.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index c9d9d2899..2e476483e 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -220,18 +220,17 @@ def bode_plot(syslist, omega=None, raise ControlMIMONotImplemented( "Bode is currently only implemented for SISO systems.") else: - omega_sys = np.array(omega) - if sys.isdtime(True): + omega_sys = np.asarray(omega) + if sys.isdtime(strict=True): nyquistfrq = 2. * math.pi * 1. / sys.dt / 2. omega_sys = omega_sys[omega_sys < nyquistfrq] # TODO: What distance to the Nyquist frequency is appropriate? else: nyquistfrq = None - # Get the magnitude and phase of the system - mag_tmp, phase_tmp, omega_sys = sys.frequency_response(omega_sys) - mag = np.atleast_1d(np.squeeze(mag_tmp)) - phase = np.atleast_1d(np.squeeze(phase_tmp)) + mag, phase, omega_sys = sys.frequency_response(omega_sys) + mag = np.atleast_1d(mag) + phase = np.atleast_1d(phase) # # Post-process the phase to handle initial value and wrapping @@ -352,8 +351,7 @@ def bode_plot(syslist, omega=None, # Show the phase and gain margins in the plot if margins: # Compute stability margins for the system - margin = stability_margins(sys) - gm, pm, Wcg, Wcp = (margin[i] for i in (0, 1, 3, 4)) + gm, pm, Wcg, Wcp = stability_margins(sys)[0:4] # Figure out sign of the phase at the first gain crossing # (needed if phase_wrap is True) From 5e3c2bb344d391fa1ff2187be16bac8b92b0e9b4 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 13:55:06 -0800 Subject: [PATCH 141/260] fixes to pass tests --- control/freqplot.py | 3 ++- control/tests/config_test.py | 2 +- control/tests/sisotool_test.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 2e476483e..8a4e41d30 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -351,7 +351,8 @@ def bode_plot(syslist, omega=None, # Show the phase and gain margins in the plot if margins: # Compute stability margins for the system - gm, pm, Wcg, Wcp = stability_margins(sys)[0:4] + margin = stability_margins(sys) + gm, pm, Wcg, Wcp = (margin[i] for i in (0, 1, 3, 4)) # Figure out sign of the phase at the first gain crossing # (needed if phase_wrap is True) diff --git a/control/tests/config_test.py b/control/tests/config_test.py index 02d0ad51c..b64240064 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -203,7 +203,7 @@ def test_reset_defaults(self): assert not ct.config.defaults['bode.dB'] assert ct.config.defaults['bode.deg'] assert not ct.config.defaults['bode.Hz'] - assert ct.config.defaults['freqplot.number_of_samples'] is None + assert ct.config.defaults['freqplot.number_of_samples'] is 1000 assert ct.config.defaults['freqplot.feature_periphery_decades'] == 1.0 def test_legacy_defaults(self): diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index 65f87f28b..09c73179f 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -78,8 +78,8 @@ def test_sisotool(self, sys): # Check if the bode_mag line has moved bode_mag_moved = np.array( - [111.83321224, 92.29238035, 76.02822315, 62.46884113, 51.14108703, - 41.6554004, 33.69409534, 27.00237344, 21.38086717, 16.67791585]) + [674.0242, 667.8354, 661.7033, 655.6275, 649.6074, 643.6426, + 637.7324, 631.8765, 626.0742, 620.3252]) assert_array_almost_equal(ax_mag.lines[0].get_data()[1][10:20], bode_mag_moved, 4) From 41193c6255a450996012b5880253ab2cc6d15691 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 14:43:09 -0800 Subject: [PATCH 142/260] test bug, changed is to == --- control/tests/config_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/tests/config_test.py b/control/tests/config_test.py index b64240064..b36b6b313 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -203,7 +203,7 @@ def test_reset_defaults(self): assert not ct.config.defaults['bode.dB'] assert ct.config.defaults['bode.deg'] assert not ct.config.defaults['bode.Hz'] - assert ct.config.defaults['freqplot.number_of_samples'] is 1000 + assert ct.config.defaults['freqplot.number_of_samples'] == 1000 assert ct.config.defaults['freqplot.feature_periphery_decades'] == 1.0 def test_legacy_defaults(self): From d195e06a6e652e9ca9409f300c20f20b60d62329 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 15:18:37 -0800 Subject: [PATCH 143/260] revert some freqplot.nyquist_plot changes because they turned out to be unneccesary and to avoid a merge conbflict with #521 --- control/freqplot.py | 99 +++++++++++++++++++++------------------------ 1 file changed, 46 insertions(+), 53 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 8a4e41d30..5c1360835 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -593,66 +593,59 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, np.log10(omega_limits[1]), num=num, endpoint=True) - # Interpolate between wmin and wmax if a tuple or list are provided - elif isinstance(omega, list) or isinstance(omega, tuple): - # Only accept tuple or list of length 2 - if len(omega) != 2: - raise ValueError("Supported frequency arguments are (wmin,wmax)" - "tuple or list, or frequency vector. ") - omega = np.logspace(np.log10(omega[0]), np.log10(omega[1]), - num=500, endpoint=True, base=10.0) for sys in syslist: if not sys.issiso(): # TODO: Add MIMO nyquist plots. raise ControlMIMONotImplemented( "Nyquist is currently only implemented for SISO systems.") + else: + # Get the magnitude and phase of the system + mag, phase, omega = sys.frequency_response(omega) - # Get the magnitude and phase of the system - mag, phase, omega = sys.frequency_response(omega) - - # Compute the primary curve - x = mag * np.cos(phase) - y = mag * np.sin(phase) - - if plot: - # Plot the primary curve and mirror image - p = plt.plot(np.hstack((x,x)), np.hstack((y,-y)), - '-', color=color, *args, **kwargs) - c = p[0].get_color() - ax = plt.gca() - # Plot arrow to indicate Nyquist encirclement orientation - ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, - fc=c, ec=c, head_width=arrowhead_width, - head_length=arrowhead_length, label=None) - ax.arrow(x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, - fc=c, ec=c, head_width=arrowhead_width, - head_length=arrowhead_length, label=None) - - # Mark the -1 point - plt.plot([-1], [0], 'r+') - - # Label the frequencies of the points - if label_freq: - ind = slice(None, None, label_freq) - for xpt, ypt, omegapt in zip(x[ind], y[ind], omega[ind]): - # Convert to Hz - f = omegapt / (2 * np.pi) - - # Factor out multiples of 1000 and limit the - # result to the range [-8, 8]. - pow1000 = max(min(get_pow1000(f), 8), -8) - - # Get the SI prefix. - prefix = gen_prefix(pow1000) - - # Apply the text. (Use a space before the text to - # prevent overlap with the data.) - # - # np.round() is used because 0.99... appears - # instead of 1.0, and this would otherwise be - # truncated to 0. - plt.text(xpt, ypt, ' ' + + # Compute the primary curve + x = mag * np.cos(phase) + y = mag * np.sin(phase) + + if plot: + # Plot the primary curve and mirror image + p = plt.plot(x, y, '-', color=color, *args, **kwargs) + c = p[0].get_color() + ax = plt.gca() + # Plot arrow to indicate Nyquist encirclement orientation + ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, fc=c, ec=c, + head_width=arrowhead_width, + head_length=arrowhead_length) + + plt.plot(x, -y, '-', color=c, *args, **kwargs) + ax.arrow( + x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, + fc=c, ec=c, head_width=arrowhead_width, + head_length=arrowhead_length) + # Mark the -1 point + plt.plot([-1], [0], 'r+') + + # Label the frequencies of the points + if label_freq: + ind = slice(None, None, label_freq) + for xpt, ypt, omegapt in zip(x[ind], y[ind], omega[ind]): + # Convert to Hz + f = omegapt / (2 * np.pi) + + # Factor out multiples of 1000 and limit the + # result to the range [-8, 8]. + pow1000 = max(min(get_pow1000(f), 8), -8) + + # Get the SI prefix. + prefix = gen_prefix(pow1000) + + # Apply the text. (Use a space before the text to + # prevent overlap with the data.) + # + # np.round() is used because 0.99... appears + # instead of 1.0, and this would otherwise be + # truncated to 0. + plt.text(xpt, ypt, ' ' + str(int(np.round(f / 1000 ** pow1000, 0))) + ' ' + prefix + 'Hz') From eaf5b160388a1bc0ca47f5e180769581bfa34db9 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 19:10:15 -0800 Subject: [PATCH 144/260] docstring fixes, nyquist now outputs frequency response as specified in docstring --- control/freqplot.py | 87 ++++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 41 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 5c1360835..73508a4f7 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -121,11 +121,11 @@ def bode_plot(syslist, omega=None, Returns ------- - mag : array (list if len(syslist) > 1) + mag : ndarray (or list of ndarray if len(syslist) > 1)) magnitude - phase : array (list if len(syslist) > 1) + phase : ndarray (or list of ndarray if len(syslist) > 1)) phase in radians - omega : array (list if len(syslist) > 1) + omega : ndarray (or list of ndarray if len(syslist) > 1)) frequency in rad/sec Other Parameters @@ -190,8 +190,8 @@ def bode_plot(syslist, omega=None, initial_phase = config._get_param( 'bode', 'initial_phase', kwargs, None, pop=True) - # If argument was a singleton, turn it into a list - if not getattr(syslist, '__iter__', False): + # If argument was a singleton, turn it into a tuple + if not hasattr(syslist, '__iter__'): syslist = (syslist,) if omega is None: @@ -542,11 +542,11 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, Returns ------- - real : ndarray + real : ndarray (or list of ndarray if len(syslist) > 1)) real part of the frequency response array - imag : ndarray + imag : ndarray (or list of ndarray if len(syslist) > 1)) imaginary part of the frequency response array - freq : ndarray + omega : ndarray (or list of ndarray if len(syslist) > 1)) frequencies in rad/s Examples @@ -572,7 +572,7 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, label_freq = kwargs.pop('labelFreq') # If argument was a singleton, turn it into a list - if not getattr(syslist, '__iter__', False): + if not hasattr(syslist, '__iter__'): syslist = (syslist,) # Select a default range if none is provided @@ -593,37 +593,40 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, np.log10(omega_limits[1]), num=num, endpoint=True) - + xs, ys, omegas = [], [], [] for sys in syslist: - if not sys.issiso(): - # TODO: Add MIMO nyquist plots. - raise ControlMIMONotImplemented( - "Nyquist is currently only implemented for SISO systems.") - else: - # Get the magnitude and phase of the system - mag, phase, omega = sys.frequency_response(omega) - - # Compute the primary curve - x = mag * np.cos(phase) - y = mag * np.sin(phase) - - if plot: - # Plot the primary curve and mirror image - p = plt.plot(x, y, '-', color=color, *args, **kwargs) - c = p[0].get_color() - ax = plt.gca() - # Plot arrow to indicate Nyquist encirclement orientation - ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, fc=c, ec=c, - head_width=arrowhead_width, - head_length=arrowhead_length) - - plt.plot(x, -y, '-', color=c, *args, **kwargs) - ax.arrow( - x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, - fc=c, ec=c, head_width=arrowhead_width, - head_length=arrowhead_length) - # Mark the -1 point - plt.plot([-1], [0], 'r+') + mag, phase, omega = sys.frequency_response(omega) + + # Compute the primary curve + x = mag * np.cos(phase) + y = mag * np.sin(phase) + + xs.append(x) + ys.append(y) + omegas.append(omega) + + if plot: + if not sys.issiso(): + # TODO: Add MIMO nyquist plots. + raise ControlMIMONotImplemented( + "Nyquist plot currently supports SISO systems.") + + # Plot the primary curve and mirror image + p = plt.plot(x, y, '-', color=color, *args, **kwargs) + c = p[0].get_color() + ax = plt.gca() + # Plot arrow to indicate Nyquist encirclement orientation + ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, fc=c, ec=c, + head_width=arrowhead_width, + head_length=arrowhead_length) + + plt.plot(x, -y, '-', color=c, *args, **kwargs) + ax.arrow( + x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, + fc=c, ec=c, head_width=arrowhead_width, + head_length=arrowhead_length) + # Mark the -1 point + plt.plot([-1], [0], 'r+') # Label the frequencies of the points if label_freq: @@ -655,8 +658,10 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, ax.set_ylabel("Imaginary axis") ax.grid(color="lightgray") - return x, y, omega - + if len(syslist) == 1: + return xs[0], ys[0], omegas[0] + else: + return xs, ys, omegas # # Gang of Four plot From e8d233f083b9c5f6bdbf221fda6daf9badf22555 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 22:42:43 -0800 Subject: [PATCH 145/260] added a few unit tests for frequency range parameter to nyquist and bode --- control/tests/freqresp_test.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 5c7c2cd80..86de0e77a 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -16,6 +16,7 @@ from control.statesp import StateSpace from control.xferfcn import TransferFunction from control.matlab import ss, tf, bode, rss +from control.freqplot import bode_plot, nyquist_plot from control.tests.conftest import slycotonly pytestmark = pytest.mark.usefixtures("mplcleanup") @@ -61,6 +62,24 @@ def test_bode_basic(ss_siso): tf_siso = tf(ss_siso) bode(ss_siso) bode(tf_siso) + assert len(bode_plot(tf_siso, plot=False, omega_num=20)[0] == 20) + omega = bode_plot(tf_siso, plot=False, omega_limits=(1, 100))[2] + assert_allclose(omega[0], 1) + assert_allclose(omega[-1], 100) + assert len(bode_plot(tf_siso, plot=False, omega=np.logspace(-1,1,10))[0])\ + == 10 + +def test_nyquist_basic(ss_siso): + """Test nyquist plot call (Very basic)""" + # TODO: proper test + tf_siso = tf(ss_siso) + nyquist_plot(ss_siso) + nyquist_plot(tf_siso) + assert len(nyquist_plot(tf_siso, plot=False, omega_num=20)[0] == 20) + omega = nyquist_plot(tf_siso, plot=False, omega_limits=(1, 100))[2] + assert_allclose(omega[0], 1) + assert_allclose(omega[-1], 100) + assert len(nyquist_plot(tf_siso, plot=False, omega=np.logspace(-1, 1, 10))[0])==10 @pytest.mark.filterwarnings("ignore:.*non-positive left xlim:UserWarning") From fa4378580b9a8fda2dfc18dc80cc48ac28b657d9 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 28 Jan 2021 23:41:30 -0800 Subject: [PATCH 146/260] plot vertical nyquist freq line at same time as data for legend convenience eg legend(('sys1','sys2')) --- control/freqplot.py | 114 ++++++++++++++++++++++++-------------------- 1 file changed, 63 insertions(+), 51 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 73508a4f7..e2d1b6eb7 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -194,7 +194,9 @@ def bode_plot(syslist, omega=None, if not hasattr(syslist, '__iter__'): syslist = (syslist,) + if omega is None: + omega_was_given = False # used do decide whether to include nyq. freq if omega_limits is None: # Select a default range if none is provided omega = default_frequency_range(syslist, Hz=Hz, @@ -212,6 +214,46 @@ def bode_plot(syslist, omega=None, omega = np.logspace(np.log10(omega_limits[0]), np.log10(omega_limits[1]), num=num, endpoint=True) + else: + omega_was_given = True + + if plot: + # Set up the axes with labels so that multiple calls to + # bode_plot will superimpose the data. This was implicit + # before matplotlib 2.1, but changed after that (See + # https://github.com/matplotlib/matplotlib/issues/9024). + # The code below should work on all cases. + + # Get the current figure + + if 'sisotool' in kwargs: + fig = kwargs['fig'] + ax_mag = fig.axes[0] + ax_phase = fig.axes[2] + sisotool = kwargs['sisotool'] + del kwargs['fig'] + del kwargs['sisotool'] + else: + fig = plt.gcf() + ax_mag = None + ax_phase = None + sisotool = False + + # Get the current axes if they already exist + for ax in fig.axes: + if ax.get_label() == 'control-bode-magnitude': + ax_mag = ax + elif ax.get_label() == 'control-bode-phase': + ax_phase = ax + + # If no axes present, create them from scratch + if ax_mag is None or ax_phase is None: + plt.clf() + ax_mag = plt.subplot(211, + label='control-bode-magnitude') + ax_phase = plt.subplot(212, + label='control-bode-phase', + sharex=ax_mag) mags, phases, omegas, nyquistfrqs = [], [], [], [] for sys in syslist: @@ -223,8 +265,11 @@ def bode_plot(syslist, omega=None, omega_sys = np.asarray(omega) if sys.isdtime(strict=True): nyquistfrq = 2. * math.pi * 1. / sys.dt / 2. - omega_sys = omega_sys[omega_sys < nyquistfrq] - # TODO: What distance to the Nyquist frequency is appropriate? + if not omega_was_given: + # include nyquist frequency + omega_sys = np.hstack(( + omega_sys[omega_sys < nyquistfrq], + nyquistfrq)) else: nyquistfrq = None @@ -285,56 +330,28 @@ def bode_plot(syslist, omega=None, omega_plot = omega_sys if nyquistfrq: nyquistfrq_plot = nyquistfrq - - # Set up the axes with labels so that multiple calls to - # bode_plot will superimpose the data. This was implicit - # before matplotlib 2.1, but changed after that (See - # https://github.com/matplotlib/matplotlib/issues/9024). - # The code below should work on all cases. - - # Get the current figure - - if 'sisotool' in kwargs: - fig = kwargs['fig'] - ax_mag = fig.axes[0] - ax_phase = fig.axes[2] - sisotool = kwargs['sisotool'] - del kwargs['fig'] - del kwargs['sisotool'] - else: - fig = plt.gcf() - ax_mag = None - ax_phase = None - sisotool = False - - # Get the current axes if they already exist - for ax in fig.axes: - if ax.get_label() == 'control-bode-magnitude': - ax_mag = ax - elif ax.get_label() == 'control-bode-phase': - ax_phase = ax - - # If no axes present, create them from scratch - if ax_mag is None or ax_phase is None: - plt.clf() - ax_mag = plt.subplot(211, - label='control-bode-magnitude') - ax_phase = plt.subplot(212, - label='control-bode-phase', - sharex=ax_mag) - + phase_plot = phase * 180. / math.pi if deg else phase + mag_plot = mag # # Magnitude plot # + + if nyquistfrq_plot: + # add data for vertical nyquist freq indicator line + # so it is a single plot action. This preserves line + # order when creating legend eg. legend('sys1', 'sys2) + omega_plot = np.hstack((omega_plot, nyquistfrq,nyquistfrq)) + mag_plot = np.hstack((mag_plot, + 0.7*min(mag_plot),1.3*max(mag_plot))) + phase_range = max(phase_plot) - min(phase_plot) + phase_plot = np.hstack((phase_plot, + min(phase_plot) - 0.2 * phase_range, + max(phase_plot) + 0.2 * phase_range)) if dB: - pltline = ax_mag.semilogx(omega_plot, 20 * np.log10(mag), + ax_mag.semilogx(omega_plot, 20 * np.log10(mag_plot), *args, **kwargs) else: - pltline = ax_mag.loglog(omega_plot, mag, *args, **kwargs) - - if nyquistfrq_plot: - ax_mag.axvline(nyquistfrq_plot, - color=pltline[0].get_color()) + ax_mag.loglog(omega_plot, mag_plot, *args, **kwargs) # Add a grid to the plot + labeling ax_mag.grid(grid and not margins, which='both') @@ -343,7 +360,6 @@ def bode_plot(syslist, omega=None, # # Phase plot # - phase_plot = phase * 180. / math.pi if deg else phase # Plot the data ax_phase.semilogx(omega_plot, phase_plot, *args, **kwargs) @@ -463,10 +479,6 @@ def bode_plot(syslist, omega=None, 'deg' if deg else 'rad', Wcp, 'Hz' if Hz else 'rad/s')) - if nyquistfrq_plot: - ax_phase.axvline( - nyquistfrq_plot, color=pltline[0].get_color()) - # Add a grid to the plot + labeling ax_phase.set_ylabel("Phase (deg)" if deg else "Phase (rad)") From adec95e5c371dd472789e24c6f03da8b1c0e7390 Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Thu, 28 Jan 2021 23:45:59 -0800 Subject: [PATCH 147/260] Update control/freqplot.py --- control/freqplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/freqplot.py b/control/freqplot.py index e2d1b6eb7..e6f73bdb5 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -533,7 +533,7 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, plot : boolean If True, plot magnitude omega : array_like - Range of frequencies in rad/sec + Set of frequencies to be evaluated in rad/sec. omega_limits : array_like of two values Limits of the to generate frequency vector. omega_num : int From b7653f866eb0b31cad22419d973b94cf9e467f6e Mon Sep 17 00:00:00 2001 From: sawyerbfuller <58706249+sawyerbfuller@users.noreply.github.com> Date: Thu, 28 Jan 2021 23:46:09 -0800 Subject: [PATCH 148/260] Update control/freqplot.py --- control/freqplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/freqplot.py b/control/freqplot.py index e6f73bdb5..09e839ac8 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -535,7 +535,8 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, omega : array_like Set of frequencies to be evaluated in rad/sec. omega_limits : array_like of two values - Limits of the to generate frequency vector. + Limits to the range of frequencies. Ignored if omega + is provided, and auto-generated if omitted. omega_num : int Number of samples to plot. Defaults to config.defaults['freqplot.number_of_samples']. From acaea54e259f0dd2a8d892ba4e97ab50fa39af6a Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 29 Jan 2021 00:04:31 -0800 Subject: [PATCH 149/260] @murrayrm suggested changes e.g change default_frequency_range to private --- control/bdalg.py | 8 ++------ control/freqplot.py | 16 +++++++--------- control/nichols.py | 4 ++-- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/control/bdalg.py b/control/bdalg.py index 10d49f130..2c5c12642 100644 --- a/control/bdalg.py +++ b/control/bdalg.py @@ -54,7 +54,6 @@ """ import numpy as np -from scipy.signal.ltisys import StateSpace from . import xferfcn as tf from . import statesp as ss from . import frdata as frd @@ -175,7 +174,7 @@ def negate(sys): >>> sys2 = negate(sys1) # Same as sys2 = -sys1. """ - return -sys; + return -sys #! TODO: expand to allow sys2 default to work in MIMO case? def feedback(sys1, sys2=1, sign=-1): @@ -281,10 +280,7 @@ def append(*sys): >>> sys = append(sys1, sys2) """ - if not isinstance(sys[0], StateSpace): - s1 = ss._convert_to_statespace(sys[0]) - else: - s1 = sys[0] + s1 = ss._convert_to_statespace(sys[0]) for s in sys[1:]: s1 = s1.append(s) return s1 diff --git a/control/freqplot.py b/control/freqplot.py index e2d1b6eb7..7247270e2 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -199,7 +199,7 @@ def bode_plot(syslist, omega=None, omega_was_given = False # used do decide whether to include nyq. freq if omega_limits is None: # Select a default range if none is provided - omega = default_frequency_range(syslist, Hz=Hz, + omega = _default_frequency_range(syslist, Hz=Hz, number_of_samples=omega_num) else: omega_limits = np.asarray(omega_limits) @@ -591,16 +591,14 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, if omega is None: if omega_limits is None: # Select a default range if none is provided - omega = default_frequency_range(syslist, Hz=False, + omega = _default_frequency_range(syslist, Hz=False, number_of_samples=omega_num) else: omega_limits = np.asarray(omega_limits) if len(omega_limits) != 2: raise ValueError("len(omega_limits) must be 2") - if omega_num: - num = omega_num - else: - num = config.defaults['freqplot.number_of_samples'] + num = \ + ct.config._get_param('freqplot','number_of_samples', omega_num) omega = np.logspace(np.log10(omega_limits[0]), np.log10(omega_limits[1]), num=num, endpoint=True) @@ -717,7 +715,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): # Select a default range if none is provided # TODO: This needs to be made more intelligent if omega is None: - omega = default_frequency_range((P, C, S)) + omega = _default_frequency_range((P, C, S)) # Set up the axes with labels so that multiple calls to # gangof4_plot will superimpose the data. See details in bode_plot. @@ -798,7 +796,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): # # Compute reasonable defaults for axes -def default_frequency_range(syslist, Hz=None, number_of_samples=None, +def _default_frequency_range(syslist, Hz=None, number_of_samples=None, feature_periphery_decades=None): """Compute a reasonable default frequency range for frequency domain plots. @@ -832,7 +830,7 @@ def default_frequency_range(syslist, Hz=None, number_of_samples=None, -------- >>> from matlab import ss >>> sys = ss("1. -2; 3. -4", "5.; 7", "6. 8", "9.") - >>> omega = default_frequency_range(sys) + >>> omega = _default_frequency_range(sys) """ # This code looks at the poles and zeros of all of the systems that diff --git a/control/nichols.py b/control/nichols.py index c1d8ff9b6..a643d8580 100644 --- a/control/nichols.py +++ b/control/nichols.py @@ -52,7 +52,7 @@ import numpy as np import matplotlib.pyplot as plt from .ctrlutil import unwrap -from .freqplot import default_frequency_range +from .freqplot import _default_frequency_range from . import config __all__ = ['nichols_plot', 'nichols', 'nichols_grid'] @@ -91,7 +91,7 @@ def nichols_plot(sys_list, omega=None, grid=None): # Select a default range if none is provided if omega is None: - omega = default_frequency_range(sys_list) + omega = _default_frequency_range(sys_list) for sys in sys_list: # Get the magnitude and phase of the system From 73ce1a67be9e8e341441241e11a6f9ae3d0f23c5 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 29 Jan 2021 09:31:09 -0800 Subject: [PATCH 150/260] allow specified frequency range to exceed nyquist frequency if desired --- control/freqplot.py | 84 ++++++++++++++++++++++++++------------------- 1 file changed, 48 insertions(+), 36 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 450770b03..ce337844a 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -194,28 +194,25 @@ def bode_plot(syslist, omega=None, if not hasattr(syslist, '__iter__'): syslist = (syslist,) + # decide whether to go above nyquist. freq + omega_range_given = True if omega is not None else False if omega is None: - omega_was_given = False # used do decide whether to include nyq. freq + omega_num = config._get_param('freqplot','number_of_samples', omega_num) if omega_limits is None: # Select a default range if none is provided - omega = _default_frequency_range(syslist, Hz=Hz, - number_of_samples=omega_num) + omega = _default_frequency_range(syslist, + number_of_samples=omega_num) else: + omega_range_given = True omega_limits = np.asarray(omega_limits) if len(omega_limits) != 2: raise ValueError("len(omega_limits) must be 2") if Hz: omega_limits *= 2. * math.pi - if omega_num: - num = omega_num - else: - num = config.defaults['freqplot.number_of_samples'] omega = np.logspace(np.log10(omega_limits[0]), - np.log10(omega_limits[1]), num=num, + np.log10(omega_limits[1]), num=omega_num, endpoint=True) - else: - omega_was_given = True if plot: # Set up the axes with labels so that multiple calls to @@ -264,12 +261,11 @@ def bode_plot(syslist, omega=None, else: omega_sys = np.asarray(omega) if sys.isdtime(strict=True): - nyquistfrq = 2. * math.pi * 1. / sys.dt / 2. - if not omega_was_given: - # include nyquist frequency + nyquistfrq = math.pi / sys.dt + if not omega_range_given: + # limit up to and including nyquist frequency omega_sys = np.hstack(( - omega_sys[omega_sys < nyquistfrq], - nyquistfrq)) + omega_sys[omega_sys < nyquistfrq], nyquistfrq)) else: nyquistfrq = None @@ -332,21 +328,27 @@ def bode_plot(syslist, omega=None, nyquistfrq_plot = nyquistfrq phase_plot = phase * 180. / math.pi if deg else phase mag_plot = mag - # - # Magnitude plot - # if nyquistfrq_plot: - # add data for vertical nyquist freq indicator line - # so it is a single plot action. This preserves line - # order when creating legend eg. legend('sys1', 'sys2) - omega_plot = np.hstack((omega_plot, nyquistfrq,nyquistfrq)) - mag_plot = np.hstack((mag_plot, - 0.7*min(mag_plot),1.3*max(mag_plot))) + # append data for vertical nyquist freq indicator line. + # if this extra nyquist lime is is plotted in a single plot + # command then line order is preserved when + # creating a legend eg. legend(('sys1', 'sys2')) + omega_nyq_line = np.array((np.nan, nyquistfrq, nyquistfrq)) + omega_plot = np.hstack((omega_plot, omega_nyq_line)) + mag_nyq_line = np.array(( + np.nan, 0.7*min(mag_plot), 1.3*max(mag_plot))) + mag_plot = np.hstack((mag_plot, mag_nyq_line)) phase_range = max(phase_plot) - min(phase_plot) - phase_plot = np.hstack((phase_plot, + phase_nyq_line = np.array((np.nan, min(phase_plot) - 0.2 * phase_range, max(phase_plot) + 0.2 * phase_range)) + phase_plot = np.hstack((phase_plot, phase_nyq_line)) + + # + # Magnitude plot + # + if dB: ax_mag.semilogx(omega_plot, 20 * np.log10(mag_plot), *args, **kwargs) @@ -535,8 +537,8 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, omega : array_like Set of frequencies to be evaluated in rad/sec. omega_limits : array_like of two values - Limits to the range of frequencies. Ignored if omega - is provided, and auto-generated if omitted. + Limits to the range of frequencies. Ignored if omega + is provided, and auto-generated if omitted. omega_num : int Number of samples to plot. Defaults to config.defaults['freqplot.number_of_samples']. @@ -588,25 +590,35 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, if not hasattr(syslist, '__iter__'): syslist = (syslist,) - # Select a default range if none is provided + # decide whether to go above nyquist. freq + omega_range_given = True if omega is not None else False + if omega is None: + omega_num = config._get_param('freqplot','number_of_samples',omega_num) if omega_limits is None: # Select a default range if none is provided - omega = _default_frequency_range(syslist, Hz=False, - number_of_samples=omega_num) + omega = _default_frequency_range(syslist, + number_of_samples=omega_num) else: + omega_range_given = True omega_limits = np.asarray(omega_limits) if len(omega_limits) != 2: raise ValueError("len(omega_limits) must be 2") - num = \ - ct.config._get_param('freqplot','number_of_samples', omega_num) omega = np.logspace(np.log10(omega_limits[0]), - np.log10(omega_limits[1]), num=num, + np.log10(omega_limits[1]), num=omega_num, endpoint=True) xs, ys, omegas = [], [], [] for sys in syslist: - mag, phase, omega = sys.frequency_response(omega) + omega_sys = np.asarray(omega) + if sys.isdtime(strict=True): + nyquistfrq = math.pi / sys.dt + if not omega_range_given: + # limit up to and including nyquist frequency + omega_sys = np.hstack(( + omega_sys[omega_sys < nyquistfrq], nyquistfrq)) + + mag, phase, omega_sys = sys.frequency_response(omega_sys) # Compute the primary curve x = mag * np.cos(phase) @@ -614,7 +626,7 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, xs.append(x) ys.append(y) - omegas.append(omega) + omegas.append(omega_sys) if plot: if not sys.issiso(): @@ -642,7 +654,7 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, # Label the frequencies of the points if label_freq: ind = slice(None, None, label_freq) - for xpt, ypt, omegapt in zip(x[ind], y[ind], omega[ind]): + for xpt, ypt, omegapt in zip(x[ind], y[ind], omega_sys[ind]): # Convert to Hz f = omegapt / (2 * np.pi) From 96cc1245b92239e02af33e9190b83cc1f2bca74b Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Sat, 30 Jan 2021 01:46:01 +0100 Subject: [PATCH 151/260] fix #523: finding z for |H(z)|=1 computed the wrong polynomials --- control/margins.py | 11 ++++++----- control/tests/margin_test.py | 24 +++++++++++++----------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/control/margins.py b/control/margins.py index 20da2a879..fc2a20d7c 100644 --- a/control/margins.py +++ b/control/margins.py @@ -156,13 +156,14 @@ def _poly_z_real_crossing(num, den, num_inv_zp, den_inv_zq, p_q, dt, epsw): return z, w -def _poly_z_mag1_crossing(num, den, num_inv, den_inv, p_q, dt, epsw): +def _poly_z_mag1_crossing(num, den, num_inv_zp, den_inv_zq, p_q, dt, epsw): # |H(z)| = 1, H(z)*H(1/z)=1, num(z)*num(1/z) == den(z)*den(1/z) - p1 = np.polymul(num, num_inv) - p2 = np.polymul(den, den_inv) + p1 = np.polymul(num, num_inv_zp) + p2 = np.polymul(den, den_inv_zq) if p_q < 0: + # * z**(-p_q) x = [1] + [0] * (-p_q) - p2 = np.polymul(p2, x) + p1 = np.polymul(p1, x) z = np.roots(np.polysub(p1, p2)) eps = np.finfo(float).eps**(1 / len(p2)) z, w = _z_filter(z, dt, eps) @@ -171,7 +172,7 @@ def _poly_z_mag1_crossing(num, den, num_inv, den_inv, p_q, dt, epsw): return z, w -def _poly_z_wstab(num, den, num_inv, den_inv, p_q, dt, epsw): +def _poly_z_wstab(num, den, num_inv_zp, den_inv_zq, p_q, dt, epsw): # Stability margin: Minimum distance to -1 # TODO: Find a way to solve for z or omega analytically with given diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index 4965bbe89..6f4c3e41a 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -336,17 +336,19 @@ def test_zmore_stability_margins(tsys_zmore): @pytest.mark.parametrize( 'cnum, cden, dt,' - 'ref,' - 'rtol', - [([2], [1, 3, 2, 0], 1e-2, # gh-465 - (2.9558, 32.8170, 0.43584, 1.4037, 0.74953, 0.97079), - 0.1 # very crude tolerance, because the gradients are not great - ), - ([2], [1, 3, 3, 1], .1, # 2/(s+1)**3 - [3.4927, 69.9996, 0.5763, 1.6283, 0.7631, 1.2019], - 1e-3)]) -def test_stability_margins_discrete(cnum, cden, dt, ref, rtol): + 'ref,', + [( # gh-465 + [2], [1, 3, 2, 0], 1e-2, + (2.9558, 32.390, 0.43584, 1.4037, 0.74951, 0.97079)), + ( # 2/(s+1)**3 + [2], [1, 3, 3, 1], .1, + [3.4927, 65.4212, 0.5763, 1.6283, 0.76625, 1.2019]), + ( # gh-523 + [1.1 * 4 * np.pi**2], [1, 2 * 0.2 * 2 * np.pi, 4 * np.pi**2], .05, + [2.3842, 18.161, 0.26953, 11.712, 8.7478, 9.1504]), + ]) +def test_stability_margins_discrete(cnum, cden, dt, ref): """Test stability_margins with discrete TF input""" tf = TransferFunction(cnum, cden).sample(dt) out = stability_margins(tf) - assert_allclose(out, ref, rtol=rtol) + assert_allclose(out, ref, rtol=1e-4) From 48a18d6218b9b17befdd5d84f6d0b612bdc34815 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Sat, 30 Jan 2021 01:54:09 +0100 Subject: [PATCH 152/260] revert the removal of rtol for discrete margin test: conda on python3.6 is not as precise --- control/tests/margin_test.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index 6f4c3e41a..fbd79c60b 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -336,19 +336,23 @@ def test_zmore_stability_margins(tsys_zmore): @pytest.mark.parametrize( 'cnum, cden, dt,' - 'ref,', + 'ref,' + 'rtol', [( # gh-465 [2], [1, 3, 2, 0], 1e-2, - (2.9558, 32.390, 0.43584, 1.4037, 0.74951, 0.97079)), + [2.9558, 32.390, 0.43584, 1.4037, 0.74951, 0.97079], + 2e-3), # the gradient of the function reduces numerical precision ( # 2/(s+1)**3 [2], [1, 3, 3, 1], .1, - [3.4927, 65.4212, 0.5763, 1.6283, 0.76625, 1.2019]), + [3.4927, 65.4212, 0.5763, 1.6283, 0.76625, 1.2019], + 1e-4), ( # gh-523 [1.1 * 4 * np.pi**2], [1, 2 * 0.2 * 2 * np.pi, 4 * np.pi**2], .05, - [2.3842, 18.161, 0.26953, 11.712, 8.7478, 9.1504]), + [2.3842, 18.161, 0.26953, 11.712, 8.7478, 9.1504], + 1e-4), ]) -def test_stability_margins_discrete(cnum, cden, dt, ref): +def test_stability_margins_discrete(cnum, cden, dt, ref, rtol): """Test stability_margins with discrete TF input""" tf = TransferFunction(cnum, cden).sample(dt) out = stability_margins(tf) - assert_allclose(out, ref, rtol=1e-4) + assert_allclose(out, ref, rtol=rtol) From 26a595ff624871d7ca6b7faa5d7d50c9cb3813a5 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 4 Feb 2021 12:48:44 -0800 Subject: [PATCH 153/260] bdalg.connect now works with scalar inputv and outputv --- control/bdalg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/bdalg.py b/control/bdalg.py index 2c5c12642..9650955a3 100644 --- a/control/bdalg.py +++ b/control/bdalg.py @@ -334,7 +334,8 @@ def connect(sys, Q, inputv, outputv): interconnecting multiple systems. """ - inputv, outputv, Q = np.asarray(inputv), np.asarray(outputv), np.asarray(Q) + inputv, outputv, Q = \ + np.atleast_1d(inputv), np.atleast_1d(outputv), np.atleast_1d(Q) # check indices index_errors = (inputv - 1 > sys.ninputs) | (inputv < 1) if np.any(index_errors): From 9b1012137e88233f7e16d854dff7ddddc555d7bf Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 4 Feb 2021 12:52:08 -0800 Subject: [PATCH 154/260] sisotool's step response plot can be something other than feedback(K*sys) by providing a 2-input, 2-output system; some visual cleanup --- control/rlocus.py | 6 ++--- control/sisotool.py | 53 ++++++++++++++++++++++++++++++++++----------- 2 files changed, 43 insertions(+), 16 deletions(-) diff --git a/control/rlocus.py b/control/rlocus.py index dbab96f97..5d24748ca 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -241,12 +241,12 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None, else: _sgrid_func() else: - ax.axhline(0., linestyle=':', color='k', zorder=-20) - ax.axvline(0., linestyle=':', color='k', zorder=-20) + ax.axhline(0., linestyle=':', color='k', linewidth=.75, zorder=-20) + ax.axvline(0., linestyle=':', color='k', linewidth=.75, zorder=-20) if isdtime(sys, strict=True): ax.add_patch(plt.Circle( (0, 0), radius=1.0, linestyle=':', edgecolor='k', - linewidth=1.5, fill=False, zorder=-20)) + linewidth=0.75, fill=False, zorder=-20)) return mymat, kvect diff --git a/control/sisotool.py b/control/sisotool.py index 32853971a..6d473df1f 100644 --- a/control/sisotool.py +++ b/control/sisotool.py @@ -1,8 +1,11 @@ __all__ = ['sisotool'] +from control.exception import ControlMIMONotImplemented from .freqplot import bode_plot from .timeresp import step_response from .lti import issiso, isdtime +from .xferfcn import TransferFunction +from .bdalg import append, connect import matplotlib import matplotlib.pyplot as plt import warnings @@ -22,7 +25,11 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, Parameters ---------- sys : LTI object - Linear input/output systems (SISO only) + Linear input/output systems. If sys is SISO, use the same + system for the root locus and step response. If sys is + two-input, two-output, insert the selected gain between the + first output and first input and use the second input and output + for computing the step response. kvect : list or ndarray, optional List of gains to use for plotting root locus xlim_rlocus : tuple or list, optional @@ -60,8 +67,14 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, """ from .rlocus import root_locus - # Check if it is a single SISO system - issiso(sys,strict=True) + # sys as loop transfer function if SISO + if sys.issiso(): + sys_loop = sys + else: + if not sys.ninputs == 2 and sys.noutputs == 2: + raise ControlMIMONotImplemented( + 'sys must be SISO or 2-input, 2-output') + sys_loop = sys[0,0] # Setup sisotool figure or superimpose if one is already present fig = plt.gcf() @@ -84,12 +97,15 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, } # First time call to setup the bode and step response plots - _SisotoolUpdate(sys, fig,1 if kvect is None else kvect[0],bode_plot_params) + _SisotoolUpdate(sys, fig, + 1 if kvect is None else kvect[0], bode_plot_params) # Setup the root-locus plot window - root_locus(sys,kvect=kvect,xlim=xlim_rlocus,ylim = ylim_rlocus,plotstr=plotstr_rlocus,grid = rlocus_grid,fig=fig,bode_plot_params=bode_plot_params,tvect=tvect,sisotool=True) + root_locus(sys_loop, kvect=kvect, xlim=xlim_rlocus, + ylim=ylim_rlocus, plotstr=plotstr_rlocus, grid=rlocus_grid, + fig=fig, bode_plot_params=bode_plot_params, tvect=tvect, sisotool=True) -def _SisotoolUpdate(sys,fig,K,bode_plot_params,tvect=None): +def _SisotoolUpdate(sys, fig, K, bode_plot_params, tvect=None): if int(matplotlib.__version__[0]) == 1: title_font_size = 12 @@ -99,49 +115,60 @@ def _SisotoolUpdate(sys,fig,K,bode_plot_params,tvect=None): label_font_size = 8 # Get the subaxes and clear them - ax_mag,ax_rlocus,ax_phase,ax_step = fig.axes[0],fig.axes[1],fig.axes[2],fig.axes[3] + ax_mag, ax_rlocus, ax_phase, ax_step = \ + fig.axes[0], fig.axes[1], fig.axes[2], fig.axes[3] # Catch matplotlib 2.1.x and higher userwarnings when clearing a log axis with warnings.catch_warnings(): warnings.simplefilter("ignore") ax_step.clear(), ax_mag.clear(), ax_phase.clear() + sys_loop = sys if sys.issiso() else sys[0,0] + # Update the bodeplot - bode_plot_params['syslist'] = sys*K.real + bode_plot_params['syslist'] = sys_loop*K.real bode_plot(**bode_plot_params) # Set the titles and labels ax_mag.set_title('Bode magnitude',fontsize = title_font_size) ax_mag.set_ylabel(ax_mag.get_ylabel(), fontsize=label_font_size) + ax_mag.tick_params(axis='both', which='major', labelsize=label_font_size) ax_phase.set_title('Bode phase',fontsize=title_font_size) ax_phase.set_xlabel(ax_phase.get_xlabel(),fontsize=label_font_size) ax_phase.set_ylabel(ax_phase.get_ylabel(),fontsize=label_font_size) ax_phase.get_xaxis().set_label_coords(0.5, -0.15) ax_phase.get_shared_x_axes().join(ax_phase, ax_mag) + ax_phase.tick_params(axis='both', which='major', labelsize=label_font_size) ax_step.set_title('Step response',fontsize = title_font_size) ax_step.set_xlabel('Time (seconds)',fontsize=label_font_size) ax_step.set_ylabel('Amplitude',fontsize=label_font_size) ax_step.get_xaxis().set_label_coords(0.5, -0.15) ax_step.get_yaxis().set_label_coords(-0.15, 0.5) + ax_step.tick_params(axis='both', which='major', labelsize=label_font_size) ax_rlocus.set_title('Root locus',fontsize = title_font_size) ax_rlocus.set_ylabel('Imag', fontsize=label_font_size) ax_rlocus.set_xlabel('Real', fontsize=label_font_size) ax_rlocus.get_xaxis().set_label_coords(0.5, -0.15) ax_rlocus.get_yaxis().set_label_coords(-0.15, 0.5) - - + ax_rlocus.tick_params(axis='both', which='major',labelsize=label_font_size) # Generate the step response and plot it - sys_closed = (K*sys).feedback(1) + if sys.issiso(): + sys_closed = (K*sys).feedback(1) + else: + sys_closed = append(sys, K) + connects = [[1, 3], + [3, 1]] + sys_closed = connect(sys_closed, connects, (2,), (2,)) if tvect is None: tvect, yout = step_response(sys_closed, T_num=100) else: - tvect, yout = step_response(sys_closed,tvect) + tvect, yout = step_response(sys_closed, tvect) if isdtime(sys_closed, strict=True): - ax_step.plot(tvect, yout, 'o') + ax_step.plot(tvect, yout, '.') else: ax_step.plot(tvect, yout) ax_step.axhline(1.,linestyle=':',color='k',zorder=-20) From 76b0507339739471b03fc0c259075102d3d4cbba Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 4 Feb 2021 13:03:39 -0800 Subject: [PATCH 155/260] relaxed fiddly click size threshold in rlocus --- control/rlocus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/rlocus.py b/control/rlocus.py index 5d24748ca..9dded7a66 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -577,8 +577,8 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False): xlim = ax_rlocus.get_xlim() ylim = ax_rlocus.get_ylim() - x_tolerance = 0.05 * abs((xlim[1] - xlim[0])) - y_tolerance = 0.05 * abs((ylim[1] - ylim[0])) + x_tolerance = 0.1 * abs((xlim[1] - xlim[0])) + y_tolerance = 0.1 * abs((ylim[1] - ylim[0])) gain_tolerance = np.mean([x_tolerance, y_tolerance])*0.1 # Catch type error when event click is in the figure but not in an axis From 77bc5c57ef4a33a5ccdf0589e15b1be2ef68928c Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 4 Feb 2021 14:03:44 -0800 Subject: [PATCH 156/260] fixed that full 2x2 system wasn't being passed around correctly, giving wrong step response --- control/rlocus.py | 17 +++++++++++------ control/sisotool.py | 11 ++++------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/control/rlocus.py b/control/rlocus.py index 9dded7a66..c00c39680 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -137,8 +137,10 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None, print_gain = config._get_param( 'rlocus', 'print_gain', print_gain, _rlocus_defaults) + sys_loop = sys if sys.issiso() else sys[0,0] + # Convert numerator and denominator to polynomials if they aren't - (nump, denp) = _systopoly1d(sys) + (nump, denp) = _systopoly1d(sys_loop) # if discrete-time system and if xlim and ylim are not given, # that we a view of the unit circle @@ -540,8 +542,9 @@ def _RLSortRoots(mymat): def _RLZoomDispatcher(event, sys, ax_rlocus, plotstr): """Rootlocus plot zoom dispatcher""" + sys_loop = sys if sys.issiso() else sys[0,0] - nump, denp = _systopoly1d(sys) + nump, denp = _systopoly1d(sys_loop) xlim, ylim = ax_rlocus.get_xlim(), ax_rlocus.get_ylim() kvect, mymat, xlim, ylim = _default_gains( @@ -573,7 +576,9 @@ def _RLClickDispatcher(event, sys, fig, ax_rlocus, plotstr, sisotool=False, def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False): """Display root-locus gain feedback point for clicks on root-locus plot""" - (nump, denp) = _systopoly1d(sys) + sys_loop = sys if sys.issiso() else sys[0,0] + + (nump, denp) = _systopoly1d(sys_loop) xlim = ax_rlocus.get_xlim() ylim = ax_rlocus.get_ylim() @@ -584,10 +589,10 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False): # Catch type error when event click is in the figure but not in an axis try: s = complex(event.xdata, event.ydata) - K = -1. / sys(s) - K_xlim = -1. / sys( + K = -1. / sys_loop(s) + K_xlim = -1. / sys_loop( complex(event.xdata + 0.05 * abs(xlim[1] - xlim[0]), event.ydata)) - K_ylim = -1. / sys( + K_ylim = -1. / sys_loop( complex(event.xdata, event.ydata + 0.05 * abs(ylim[1] - ylim[0]))) except TypeError: diff --git a/control/sisotool.py b/control/sisotool.py index 6d473df1f..8da996902 100644 --- a/control/sisotool.py +++ b/control/sisotool.py @@ -68,13 +68,10 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, from .rlocus import root_locus # sys as loop transfer function if SISO - if sys.issiso(): - sys_loop = sys - else: + if not sys.issiso(): if not sys.ninputs == 2 and sys.noutputs == 2: raise ControlMIMONotImplemented( 'sys must be SISO or 2-input, 2-output') - sys_loop = sys[0,0] # Setup sisotool figure or superimpose if one is already present fig = plt.gcf() @@ -101,7 +98,7 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, 1 if kvect is None else kvect[0], bode_plot_params) # Setup the root-locus plot window - root_locus(sys_loop, kvect=kvect, xlim=xlim_rlocus, + root_locus(sys, kvect=kvect, xlim=xlim_rlocus, ylim=ylim_rlocus, plotstr=plotstr_rlocus, grid=rlocus_grid, fig=fig, bode_plot_params=bode_plot_params, tvect=tvect, sisotool=True) @@ -159,10 +156,10 @@ def _SisotoolUpdate(sys, fig, K, bode_plot_params, tvect=None): if sys.issiso(): sys_closed = (K*sys).feedback(1) else: - sys_closed = append(sys, K) + sys_closed = append(sys, -K) connects = [[1, 3], [3, 1]] - sys_closed = connect(sys_closed, connects, (2,), (2,)) + sys_closed = connect(sys_closed, connects, 2, 2) if tvect is None: tvect, yout = step_response(sys_closed, T_num=100) else: From 03cdab7a2396df36d592ba955a544c418879d1f3 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 4 Feb 2021 15:55:01 -0800 Subject: [PATCH 157/260] added the unit tests, which caught a bug : ) and docstring cleanup --- control/sisotool.py | 28 ++++++++++++++----------- control/tests/sisotool_test.py | 38 ++++++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 14 deletions(-) diff --git a/control/sisotool.py b/control/sisotool.py index 8da996902..db5e004e9 100644 --- a/control/sisotool.py +++ b/control/sisotool.py @@ -27,9 +27,11 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, sys : LTI object Linear input/output systems. If sys is SISO, use the same system for the root locus and step response. If sys is - two-input, two-output, insert the selected gain between the - first output and first input and use the second input and output - for computing the step response. + two-input, two-output, insert the negative of the selected gain + between the first output and first input and use the second input + and output for computing the step response. This allows you to see + the step responses of more complex systems while using sisotool, + for example, systems with a feedforward path into the plant. kvect : list or ndarray, optional List of gains to use for plotting root locus xlim_rlocus : tuple or list, optional @@ -39,21 +41,23 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, control of y-axis range plotstr_rlocus : :func:`matplotlib.pyplot.plot` format string, optional plotting style for the root locus plot(color, linestyle, etc) - rlocus_grid: boolean (default = False) - If True plot s-plane grid. - omega : freq_range - Range of frequencies in rad/sec for the bode plot + rlocus_grid : boolean (default = False) + If True plot s- or z-plane grid. + omega : array_like + List of frequencies in rad/sec to be used for bode plot dB : boolean If True, plot result in dB for the bode plot Hz : boolean If True, plot frequency in Hz for the bode plot (omega must be provided in rad/sec) deg : boolean If True, plot phase in degrees for the bode plot (else radians) - omega_limits: tuple, list, ... of two values + omega_limits : array_like of two values Limits of the to generate frequency vector. - If Hz=True the limits are in Hz otherwise in rad/s. - omega_num: int - number of samples + If Hz=True the limits are in Hz otherwise in rad/s. Ignored if omega + is provided, and auto-generated if omitted. + omega_num : int + Number of samples to plot. Defaults to + config.defaults['freqplot.number_of_samples']. margins_bode : boolean If True, plot gain and phase margin in the bode plot tvect : list or ndarray, optional @@ -69,7 +73,7 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, # sys as loop transfer function if SISO if not sys.issiso(): - if not sys.ninputs == 2 and sys.noutputs == 2: + if not (sys.ninputs == 2 and sys.noutputs == 2): raise ControlMIMONotImplemented( 'sys must be SISO or 2-input, 2-output') diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index 09c73179f..8b4ea65bb 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -1,5 +1,6 @@ """sisotool_test.py""" +from control.exception import ControlMIMONotImplemented import matplotlib.pyplot as plt import numpy as np from numpy.testing import assert_array_almost_equal @@ -8,6 +9,7 @@ from control.sisotool import sisotool from control.rlocus import _RLClickDispatcher from control.xferfcn import TransferFunction +from control.statesp import StateSpace @pytest.mark.usefixtures("mplcleanup") @@ -19,7 +21,31 @@ def sys(self): """Return a generic SISO transfer function""" return TransferFunction([1000], [1, 25, 100, 0]) - def test_sisotool(self, sys): + @pytest.fixture + def sys222(self): + """2-states square system (2 inputs x 2 outputs)""" + A222 = [[4., 1.], + [2., -3]] + B222 = [[5., 2.], + [-3., -3.]] + C222 = [[2., -4], + [0., 1.]] + D222 = [[3., 2.], + [1., -1.]] + return StateSpace(A222, B222, C222, D222) + + @pytest.fixture + def sys221(self): + """2-states, 2 inputs x 1 output""" + A222 = [[4., 1.], + [2., -3]] + B222 = [[5., 2.], + [-3., -3.]] + C221 = [[0., 1.]] + D221 = [[1., -1.]] + return StateSpace(A222, B222, C221, D221) + + def test_sisotool(self, sys, sys222, sys221): sisotool(sys, Hz=False) fig = plt.gcf() ax_mag, ax_rlocus, ax_phase, ax_step = fig.axes[:4] @@ -27,7 +53,7 @@ def test_sisotool(self, sys): # Check the initial root locus plot points initial_point_0 = (np.array([-22.53155977]), np.array([0.])) initial_point_1 = (np.array([-1.23422011]), np.array([-6.54667031])) - initial_point_2 = (np.array([-1.23422011]), np.array([06.54667031])) + initial_point_2 = (np.array([-1.23422011]), np.array([6.54667031])) assert_array_almost_equal(ax_rlocus.lines[0].get_data(), initial_point_0, 4) assert_array_almost_equal(ax_rlocus.lines[1].get_data(), @@ -92,3 +118,11 @@ def test_sisotool(self, sys): # 1.9121, 2.2989, 2.4686, 2.353]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_moved, 4) + + # test MIMO compatibility + # sys must be siso or 2 input, 2 output + with pytest.raises(ControlMIMONotImplemented): + sisotool(sys221) + # does not raise an error: + sisotool(sys222) + From ff7d82728b81c3dbb8d735d6e09a69424fb09722 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 30 Jan 2021 12:55:06 -0800 Subject: [PATCH 158/260] fix rlocus timeout due to inefficient _default_wn calculation --- control/rlocus.py | 28 ++++++++++++++++++---------- control/tests/rlocus_test.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 10 deletions(-) diff --git a/control/rlocus.py b/control/rlocus.py index dbab96f97..fdf31787c 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -646,8 +646,9 @@ def _sgrid_func(fig=None, zeta=None, wn=None): else: ax = fig.axes[1] - # Get locator function for x-axis tick marks + # Get locator function for x-axis, y-axis tick marks xlocator = ax.get_xaxis().get_major_locator() + ylocator = ax.get_yaxis().get_major_locator() # Decide on the location for the labels (?) ylim = ax.get_ylim() @@ -690,7 +691,7 @@ def _sgrid_func(fig=None, zeta=None, wn=None): # omega-constant lines angles = np.linspace(-90, 90, 20) * np.pi/180 if wn is None: - wn = _default_wn(xlocator(), ylim) + wn = _default_wn(xlocator(), ylocator()) for om in wn: if om < 0: @@ -746,7 +747,7 @@ def _default_zetas(xlim, ylim): return zeta.tolist() -def _default_wn(xloc, ylim): +def _default_wn(xloc, yloc, max_lines=7): """Return default wn for root locus plot This function computes a list of natural frequencies based on the grid @@ -758,6 +759,8 @@ def _default_wn(xloc, ylim): List of x-axis tick values ylim : array_like List of y-axis limits [min, max] + max_lines : int, optional + Maximum number of frequencies to generate (default = 7) Returns ------- @@ -765,16 +768,21 @@ def _default_wn(xloc, ylim): List of default natural frequencies for the plot """ + sep = xloc[1]-xloc[0] # separation between x-ticks + + # Decide whether to use the x or y axis for determining wn + if yloc[-1] / sep > max_lines*10: + # y-axis scale >> x-axis scale + wn = yloc # one frequency per y-axis tick mark + else: + wn = xloc # one frequency per x-axis tick mark - wn = xloc # one frequency per x-axis tick mark - sep = xloc[1]-xloc[0] # separation between ticks - - # Insert additional frequencies to span the y-axis - while np.abs(wn[0]) < ylim[1]: - wn = np.insert(wn, 0, wn[0]-sep) + # Insert additional frequencies to span the y-axis + while np.abs(wn[0]) < yloc[-1]: + wn = np.insert(wn, 0, wn[0]-sep) # If there are too many values, cut them in half - while len(wn) > 7: + while len(wn) > max_lines: wn = wn[0:-1:2] return wn diff --git a/control/tests/rlocus_test.py b/control/tests/rlocus_test.py index cf2b72cd3..799d45784 100644 --- a/control/tests/rlocus_test.py +++ b/control/tests/rlocus_test.py @@ -8,6 +8,7 @@ from numpy.testing import assert_array_almost_equal import pytest +import control as ct from control.rlocus import root_locus, _RLClickDispatcher from control.xferfcn import TransferFunction from control.statesp import StateSpace @@ -74,3 +75,31 @@ def test_root_locus_zoom(self): assert_array_almost_equal(zoom_x, zoom_x_valid) assert_array_almost_equal(zoom_y, zoom_y_valid) + + def test_rlocus_default_wn(self): + """Check that default wn calculation works properly""" + # + # System that triggers use of y-axis as basis for wn (for coverage) + # + # This system generates a root locus plot that used to cause the + # creation (and subsequent deletion) of a large number of natural + # frequency contours within the `_default_wn` function in `rlocus.py`. + # This unit test makes sure that is fixed by generating a test case + # that will take a long time to do the calculation (minutes). + # + import scipy as sp + import signal + + # Define a system that exhibits this behavior + sys = ct.tf(*sp.signal.zpk2tf( + [-1e-2, 1-1e7j, 1+1e7j], [0, -1e7j, 1e7j], 1)) + + # Set up a timer to catch execution time + def signal_handler(signum, frame): + raise Exception("rlocus took too long to complete") + signal.signal(signal.SIGALRM, signal_handler) + + # Run the command and reset the alarm + signal.alarm(2) # 2 second timeout + ct.root_locus(sys) + signal.alarm(0) # reset the alarm From d75c395083d38244fcb1ebb568c0ef61860284ad Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 29 Jan 2021 09:45:29 -0800 Subject: [PATCH 159/260] rename is_static_gain method in LTI systems to _isstatic because it should be private and to be consistent with iosys --- control/statesp.py | 6 +++--- control/tests/statesp_test.py | 16 ++++++++-------- control/tests/xferfcn_test.py | 18 +++++++++--------- control/timeresp.py | 2 +- control/xferfcn.py | 6 +++--- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index e3e491690..abd55ad15 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -288,7 +288,7 @@ def __init__(self, *args, **kwargs): if len(args) == 4: if 'dt' in kwargs: dt = kwargs['dt'] - elif self.is_static_gain(): + elif self._isstatic(): dt = None else: dt = config.defaults['control.default_dt'] @@ -300,7 +300,7 @@ def __init__(self, *args, **kwargs): try: dt = args[0].dt except AttributeError: - if self.is_static_gain(): + if self._isstatic(): dt = None else: dt = config.defaults['control.default_dt'] @@ -1213,7 +1213,7 @@ def dcgain(self): gain = np.tile(np.nan, (self.noutputs, self.ninputs)) return np.squeeze(gain) - def is_static_gain(self): + def _isstatic(self): """True if and only if the system has no dynamics, that is, if A and B are zero. """ return not np.any(self.A) and not np.any(self.B) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 9030b850a..1c76efbc0 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -383,7 +383,7 @@ def test_freq_resp(self): mag, phase, omega = sys.freqresp(true_omega) np.testing.assert_almost_equal(mag, true_mag) - def test_is_static_gain(self): + def test__isstatic(self): A0 = np.zeros((2,2)) A1 = A0.copy() A1[0,1] = 1.1 @@ -394,13 +394,13 @@ def test_is_static_gain(self): C1 = np.eye(2) D0 = 0 D1 = np.ones((2,1)) - assert StateSpace(A0, B0, C1, D1).is_static_gain() - assert not StateSpace(A1, B0, C1, D1).is_static_gain() - assert not StateSpace(A0, B1, C1, D1).is_static_gain() - assert not StateSpace(A1, B1, C1, D1).is_static_gain() - assert StateSpace(A0, B0, C0, D0).is_static_gain() - assert StateSpace(A0, B0, C0, D1).is_static_gain() - assert StateSpace(A0, B0, C1, D0).is_static_gain() + assert StateSpace(A0, B0, C1, D1)._isstatic() + assert not StateSpace(A1, B0, C1, D1)._isstatic() + assert not StateSpace(A0, B1, C1, D1)._isstatic() + assert not StateSpace(A1, B1, C1, D1)._isstatic() + assert StateSpace(A0, B0, C0, D0)._isstatic() + assert StateSpace(A0, B0, C0, D1)._isstatic() + assert StateSpace(A0, B0, C1, D0)._isstatic() @slycotonly def test_minreal(self): diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 73498ea44..782fcaa13 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -406,7 +406,7 @@ def test_slice(self): assert (sys1.ninputs, sys1.noutputs) == (2, 1) assert sys1.dt == 0.5 - def test_is_static_gain(self): + def test__isstatic(self): numstatic = 1.1 denstatic = 1.2 numdynamic = [1, 1] @@ -415,18 +415,18 @@ def test_is_static_gain(self): denstaticmimo = [[[1.9,], [1.2,]], [[1.2,], [0.8,]]] numdynamicmimo = [[[1.1, 0.9], [1.2]], [[1.2], [0.8]]] dendynamicmimo = [[[1.1, 0.7], [0.2]], [[1.2], [0.8]]] - assert TransferFunction(numstatic, denstatic).is_static_gain() - assert TransferFunction(numstaticmimo, denstaticmimo).is_static_gain() + assert TransferFunction(numstatic, denstatic)._isstatic() + assert TransferFunction(numstaticmimo, denstaticmimo)._isstatic() - assert not TransferFunction(numstatic, dendynamic).is_static_gain() - assert not TransferFunction(numdynamic, dendynamic).is_static_gain() - assert not TransferFunction(numdynamic, denstatic).is_static_gain() - assert not TransferFunction(numstatic, dendynamic).is_static_gain() + assert not TransferFunction(numstatic, dendynamic)._isstatic() + assert not TransferFunction(numdynamic, dendynamic)._isstatic() + assert not TransferFunction(numdynamic, denstatic)._isstatic() + assert not TransferFunction(numstatic, dendynamic)._isstatic() assert not TransferFunction(numstaticmimo, - dendynamicmimo).is_static_gain() + dendynamicmimo)._isstatic() assert not TransferFunction(numdynamicmimo, - denstaticmimo).is_static_gain() + denstaticmimo)._isstatic() @pytest.mark.parametrize("omega, resp", [(1, np.array([[-0.5 - 0.5j]])), diff --git a/control/timeresp.py b/control/timeresp.py index 405a4b582..55ced8302 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -1122,7 +1122,7 @@ def _ideal_tfinal_and_dt(sys, is_step=True): pts_per_cycle = 25 # Number of points divide a period of oscillation log_decay_percent = np.log(100) # Factor of reduction for real pole decays - if sys.is_static_gain(): + if sys._isstatic(): tfinal = default_tfinal dt = sys.dt if isdtime(sys, strict=True) else default_dt elif isdtime(sys, strict=True): diff --git a/control/xferfcn.py b/control/xferfcn.py index 5efee302f..157ac6212 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -214,7 +214,7 @@ def __init__(self, *args, **kwargs): # no dt given in positional arguments if 'dt' in kwargs: dt = kwargs['dt'] - elif self.is_static_gain(): + elif self._isstatic(): dt = None else: dt = config.defaults['control.default_dt'] @@ -228,7 +228,7 @@ def __init__(self, *args, **kwargs): try: dt = args[0].dt except AttributeError: - if self.is_static_gain(): + if self._isstatic(): dt = None else: dt = config.defaults['control.default_dt'] @@ -1084,7 +1084,7 @@ def _dcgain_cont(self): gain[i][j] = np.nan return np.squeeze(gain) - def is_static_gain(self): + def _isstatic(self): """returns True if and only if all of the numerator and denominator polynomials of the (possibly MIMO) transfer function are zeroth order, that is, if the system has no dynamics. """ From fc8f8d75c1fa0c51fbb93f41e1638e8f0897e50a Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 5 Feb 2021 12:53:14 -0800 Subject: [PATCH 160/260] improved test coverage, pep8 cleanup, doc clarification, removed compatibility with matplotlib 1 released 10 years ago --- control/sisotool.py | 34 ++++++++++++++++------------------ control/tests/sisotool_test.py | 17 ++++++++++++++--- 2 files changed, 30 insertions(+), 21 deletions(-) diff --git a/control/sisotool.py b/control/sisotool.py index db5e004e9..bfd93736e 100644 --- a/control/sisotool.py +++ b/control/sisotool.py @@ -10,11 +10,10 @@ import matplotlib.pyplot as plt import warnings -def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, - plotstr_rlocus = 'b' if int(matplotlib.__version__[0]) == 1 else 'C0', - rlocus_grid = False, omega = None, dB = None, Hz = None, - deg = None, omega_limits = None, omega_num = None, - margins_bode = True, tvect=None): +def sisotool(sys, kvect=None, xlim_rlocus=None, ylim_rlocus=None, + plotstr_rlocus='C0', rlocus_grid=False, omega=None, dB=None, + Hz=None, deg=None, omega_limits=None, omega_num=None, + margins_bode=True, tvect=None): """ Sisotool style collection of plots inspired by MATLAB's sisotool. The left two plots contain the bode magnitude and phase diagrams. @@ -26,12 +25,15 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, ---------- sys : LTI object Linear input/output systems. If sys is SISO, use the same - system for the root locus and step response. If sys is - two-input, two-output, insert the negative of the selected gain - between the first output and first input and use the second input - and output for computing the step response. This allows you to see - the step responses of more complex systems while using sisotool, - for example, systems with a feedforward path into the plant. + system for the root locus and step response. If it is desired to + see a different step response than feedback(K*loop,1), sys can be + provided as a two-input, two-output system (e.g. by using + :func:`bdgalg.connect' or :func:`iosys.interconnect`). Sisotool + inserts the negative of the selected gain K between the first output + and first input and uses the second input and output for computing + the step response. This allows you to see the step responses of more + complex systems, for example, systems with a feedforward path into the + plant or in which the gain appears in the feedback path. kvect : list or ndarray, optional List of gains to use for plotting root locus xlim_rlocus : tuple or list, optional @@ -108,12 +110,8 @@ def sisotool(sys, kvect = None, xlim_rlocus = None, ylim_rlocus = None, def _SisotoolUpdate(sys, fig, K, bode_plot_params, tvect=None): - if int(matplotlib.__version__[0]) == 1: - title_font_size = 12 - label_font_size = 10 - else: - title_font_size = 10 - label_font_size = 8 + title_font_size = 10 + label_font_size = 8 # Get the subaxes and clear them ax_mag, ax_rlocus, ax_phase, ax_step = \ @@ -144,7 +142,7 @@ def _SisotoolUpdate(sys, fig, K, bode_plot_params, tvect=None): ax_step.set_title('Step response',fontsize = title_font_size) ax_step.set_xlabel('Time (seconds)',fontsize=label_font_size) - ax_step.set_ylabel('Amplitude',fontsize=label_font_size) + ax_step.set_ylabel('Output',fontsize=label_font_size) ax_step.get_xaxis().set_label_coords(0.5, -0.15) ax_step.get_yaxis().set_label_coords(-0.15, 0.5) ax_step.tick_params(axis='both', which='major', labelsize=label_font_size) diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index 8b4ea65bb..b6bd34818 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -21,6 +21,11 @@ def sys(self): """Return a generic SISO transfer function""" return TransferFunction([1000], [1, 25, 100, 0]) + @pytest.fixture + def sysdt(self): + """Return a generic SISO transfer function""" + return TransferFunction([1000], [1, 25, 100, 0], True) + @pytest.fixture def sys222(self): """2-states square system (2 inputs x 2 outputs)""" @@ -45,7 +50,7 @@ def sys221(self): D221 = [[1., -1.]] return StateSpace(A222, B222, C221, D221) - def test_sisotool(self, sys, sys222, sys221): + def test_sisotool(self, sys, sysdt, sys222, sys221): sisotool(sys, Hz=False) fig = plt.gcf() ax_mag, ax_rlocus, ax_phase, ax_step = fig.axes[:4] @@ -114,11 +119,15 @@ def test_sisotool(self, sys, sys222, sys221): step_response_moved = np.array( [0., 0.0072, 0.0516, 0.1554, 0.3281, 0.5681, 0.8646, 1.1987, 1.5452, 1.875]) - # old: array([0., 0.0239, 0.161 , 0.4547, 0.8903, 1.407, - # 1.9121, 2.2989, 2.4686, 2.353]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_moved, 4) + # test supply tvect + sisotool(sys, tvect=np.arange(0, 1, .1)) + + # test discrete-time + sisotool(sysdt, tvect=5) + # test MIMO compatibility # sys must be siso or 2 input, 2 output with pytest.raises(ControlMIMONotImplemented): @@ -126,3 +135,5 @@ def test_sisotool(self, sys, sys222, sys221): # does not raise an error: sisotool(sys222) + + From abca69dbe59a0dc53359cae8371fd73c4a579f8e Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 5 Feb 2021 15:01:22 -0800 Subject: [PATCH 161/260] improved tvect test coverage --- control/tests/sisotool_test.py | 44 +++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index b6bd34818..c626b8add 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -50,7 +50,7 @@ def sys221(self): D221 = [[1., -1.]] return StateSpace(A222, B222, C221, D221) - def test_sisotool(self, sys, sysdt, sys222, sys221): + def test_sisotool(self, sys): sisotool(sys, Hz=False) fig = plt.gcf() ax_mag, ax_rlocus, ax_phase, ax_step = fig.axes[:4] @@ -122,18 +122,46 @@ def test_sisotool(self, sys, sysdt, sys222, sys221): assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_moved, 4) + def test_sisotool_tvect(self, sys): # test supply tvect - sisotool(sys, tvect=np.arange(0, 1, .1)) + tvect = np.linspace(0, 1, 10) + sisotool(sys, tvect=tvect) + fig = plt.gcf() + ax_rlocus, ax_step = fig.axes[1], fig.axes[3] + + # Move the rootlocus to another point and confirm same tvect + event = type('test', (object,), {'xdata': 2.31206868287, + 'ydata': 15.5983051046, + 'inaxes': ax_rlocus.axes})() + _RLClickDispatcher(event=event, sys=sys, fig=fig, + ax_rlocus=ax_rlocus, sisotool=True, plotstr='-', + bode_plot_params=dict(), tvect=tvect) + assert_array_almost_equal(tvect, ax_step.lines[0].get_data()[0]) + + def test_sisotool_tvect_dt(self, sysdt): + # test supply tvect + tvect = np.linspace(0, 1, 10) + sisotool(sysdt, tvect=tvect) + fig = plt.gcf() + ax_rlocus, ax_step = fig.axes[1], fig.axes[3] - # test discrete-time - sisotool(sysdt, tvect=5) + # Move the rootlocus to another point and confirm same tvect + event = type('test', (object,), {'xdata': 2.31206868287, + 'ydata': 15.5983051046, + 'inaxes': ax_rlocus.axes})() + _RLClickDispatcher(event=event, sys=sysdt, fig=fig, + ax_rlocus=ax_rlocus, sisotool=True, plotstr='-', + bode_plot_params=dict(), tvect=tvect) + assert_array_almost_equal(tvect, ax_step.lines[0].get_data()[0]) - # test MIMO compatibility - # sys must be siso or 2 input, 2 output + def test_sisotool_mimo(self, sys222, sys221): + # a 2x2 should not raise an error: + sisotool(sys222) + + # but 2 input, 1 output should with pytest.raises(ControlMIMONotImplemented): sisotool(sys221) - # does not raise an error: - sisotool(sys222) + From cda5640100e38a14c6aa842c205ddf29e8332653 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 24 Jan 2021 16:15:13 -0800 Subject: [PATCH 162/260] initial implementation of describing function computation --- control/__init__.py | 1 + control/iosys.py | 21 +++ control/nltools.py | 264 ++++++++++++++++++++++++++++++++++ control/tests/nltools_test.py | 106 ++++++++++++++ 4 files changed, 392 insertions(+) create mode 100644 control/nltools.py create mode 100644 control/tests/nltools_test.py diff --git a/control/__init__.py b/control/__init__.py index 7daa39b3e..f728e1ae3 100644 --- a/control/__init__.py +++ b/control/__init__.py @@ -55,6 +55,7 @@ from .mateqn import * from .modelsimp import * from .nichols import * +from .nltools import * from .phaseplot import * from .pzmap import * from .rlocus import * diff --git a/control/iosys.py b/control/iosys.py index 50851cbf0..61f820bea 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -450,6 +450,10 @@ def issiso(self): """Check to see if a system is single input, single output""" return self.ninputs == 1 and self.noutputs == 1 + def isstatic(self): + """Check to see if a system is a static system (no states)""" + return self.nstates == 0 + def feedback(self, other=1, sign=-1, params={}): """Feedback interconnection between two input/output systems @@ -807,6 +811,23 @@ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, # Initialize current parameters to default parameters self._current_params = params.copy() + # Return the value of a static nonlinear system + def __call__(sys, u, squeeze=None, params=None): + # Make sure the call makes sense + if not sys.isstatic(): + raise TypeError( + "function evaluation is only supported for static " + "input/output systems") + + # If we received any parameters, update them before calling _out() + if params is not None: + sys._update_params(params) + + # Evaluate the function on the argument + out = sys._out(0, np.array((0,)), np.asarray(u)) + _, out = _process_time_response(sys, [], out, [], squeeze=squeeze) + return out + def _update_params(self, params, warning=False): # Update the current parameter values self._current_params = self.params.copy() diff --git a/control/nltools.py b/control/nltools.py new file mode 100644 index 000000000..40d64cd5f --- /dev/null +++ b/control/nltools.py @@ -0,0 +1,264 @@ +# nltools.py - nonlinear feedback analysis +# +# RMM, 23 Jan 2021 +# +# This module adds functions for carrying out analysis of systems with +# static nonlinear feedback functions using the circle criterion and +# describing functions. +# + +"""The :mod:~control.nltools` module contains function for performing closed +loop analysis of systems with static nonlinearities. It is built around the +basic structure required to apply the circle criterion and describing function +analysis. + +""" + +import math +import numpy as np +import matplotlib.pyplot as plt +from numpy import where, dstack, diff, meshgrid +from warnings import warn + +from .freqplot import nyquist_plot + +__all__ = ['describing_function', 'describing_function_plot', 'sector_bounds'] + +def sector_bounds(fcn): + raise NotImplementedError("function not currently implemented") + + +def describing_function(fcn, amp, num_points=100, zero_check=True): + """Numerical compute the describing function of a nonlinear function + + The describing function of a static nonlinear function is given by + magnitude and phase of the first harmonic of the function when evaluated + along a sinusoidal input :math:`a \\sin \\omega t`. This function returns + the magnitude and phase of the describing function at amplitude :math:`a`. + + Parameters + ---------- + fcn : callable + The function fcn() should accept a scalar number as an argument and + return a scalar number. For compatibility with (static) nonlinear + input/output systems, the output can also return a 1D array with a + single element. + + amp : float or array + The amplitude(s) at which the describing function should be calculated. + + Returns + ------- + df : complex or array of complex + The (complex) value of the describing fuction at the given amplitude. + + Raises + ------ + TypeError + If amp < 0 or if amp = 0 and the function fcn(0) is non-zero. + + """ + # + # The describing function of a nonlinear function F() can be computed by + # evaluating the nonlinearity over a sinusoid. The Fourier series for a + # static noninear function evaluated on a sinusoid can be written as + # + # F(a\sin\omega t) = \sum_{k=1}^\infty M_k(a) \sin(k\omega t + \phi_k(a)) + # + # The describing function is given by the complex number + # + # N(a) = M_1(a) e^{j \phi_1(a)} / a + # + # To compute this, we compute F(\theta) for \theta between 0 and 2 \pi, + # use the identities + # + # \sin(\theta + \phi) = \sin\theta \cos\phi + \cos\theta \sin\phi + # \int_0^{2\pi} \sin^2 \theta d\theta = \pi + # \int_0^{2\pi} \cos^2 \theta d\theta = \pi + # + # and then integate the product against \sin\theta and \cos\theta to obtain + # + # \int_0^{2\pi} F(a\sin\theta) \sin\theta d\theta = M_1 \pi \cos\phi + # \int_0^{2\pi} F(a\sin\theta) \cos\theta d\theta = M_1 \pi \sin\phi + # + # From these we can compute M1 and \phi. + # + + # Evaluate over a full range of angles + theta = np.linspace(0, 2*np.pi, num_points) + dtheta = theta[1] - theta[0] + sin_theta = np.sin(theta) + cos_theta = np.cos(theta) + + # Initialize any internal state by going through an initial cycle + [fcn(x) for x in np.atleast_1d(amp).min() * sin_theta] + + # Go through all of the amplitudes we were given + df = [] + for a in np.atleast_1d(amp): + # Make sure we got a valid argument + if a == 0: + # Check to make sure the function has zero output with zero input + if zero_check and np.squeeze(fcn(0.)) != 0: + raise ValueError("function must evaluate to zero at zero") + df.append(1.) + continue + elif a < 0: + raise ValueError("cannot evaluate describing function for amp < 0") + + # Save the scaling factor for to make the formulas simpler + scale = dtheta / np.pi / a + + # Evaluate the function (twice) along a sinusoid (for internal state) + fcn_eval = np.array([fcn(x) for x in a*sin_theta]).squeeze() + + # Compute the prjections onto sine and cosine + df_real = (fcn_eval @ sin_theta) * scale # = M_1 \cos\phi / a + df_imag = (fcn_eval @ cos_theta) * scale # = M_1 \sin\phi / a + + df.append(df_real + 1j * df_imag) + + # Return the values in the same shape as they were requested + return np.array(df).reshape(np.shape(amp)) + + +def describing_function_plot(H, F, a, omega=None): + """Plot a Nyquist plot with a describing function for a nonlinear system. + + This function generates a Nyquist plot for a closed loop system consisting + of a linear system with a static nonlinear function in the feedback path. + + Parameters + ---------- + H : LTI system + Linear time-invariant (LTI) system (state space, transfer function, or + FRD) + F : static nonlinear function + A static nonlinearity, either a scalar function or a single-input, + single-output, static input/output system. + a : list + List of amplitudes to be used for the describing function plot. + omega : list, optional + List of frequences to be used for the linear system Nyquist curve. + + """ + # Start by drawing a Nyquist curve + H_real, H_imag, H_omega = nyquist_plot(H, omega, plot=True) + + # Compute the describing function + df = describing_function(F, a) + dfinv = -1/df + + # Now add on the describing function + plt.plot(dfinv.real, dfinv.imag) + + +# Class for nonlinear functions +class NonlinearFunction(): + def sector_bounds(self, lb, ub): + raise NotImplementedError( + "sector bounds not implemented for this function") + + def describing_function(self, amp): + raise NotImplementedError( + "describing function not implemented for this function") + + # Function to compute the describing function + def _f(self, x): + return math.copysign(1, x) if abs(x) > 1 else \ + (math.asin(x) + x * math.sqrt(1 - x**2)) * 2 / math.pi + + +# Saturation nonlinearity +class saturation_nonlinearity(NonlinearFunction): + def __init__(self, ub=1, lb=None): + # Process arguments + if lb == None: + # Only received one argument; assume symmetric around zero + lb, ub = -abs(ub), abs(ub) + + # Make sure the bounds are sensity + if lb > 0 or ub < 0 or lb + ub != 0: + warn("asymmetric saturation; ignoring non-zero bias term") + + self.lb = lb + self.ub = ub + + def __call__(self, x): + return np.maximum(self.lb, np.minimum(x, self.ub)) + + def describing_function(self, A): + if self.lb <= A and A <= self.ub: + return 1. + else: + alpha, beta = math.asin(self.ub/A), math.asin(-self.lb/A) + return (math.sin(alpha + beta) * math.cos(alpha - beta) + + (alpha + beta)) / math.pi + + +# Hysteresis w/ deadzone (#40 in Gelb and Vander Velde, 1968) +class hysteresis_deadzone_nonlinearity(NonlinearFunction): + def __init__(self, delta, D, m): + # Initialize the state to bottom branch + self.branch = -1 # lower branch + self.delta = delta + self.D = D + self.m = m + + def __call__(self, x): + if x > self.delta + self.D / self.m: + y = self.m * (x - self.delta) + self.branch = 1 + elif x < -self.delta - self.D/self.m: + y = self.m * (x + self.delta) + self.branch = -1 + elif self.branch == -1 and \ + x > -self.delta - self.D / self.m and \ + x < self.delta - self.D / self.m: + y = -self.D + elif self.branch == -1 and x >= self.delta - self.D / self.m: + y = self.m * (x - self.delta) + elif self.branch == 1 and \ + x > -self.delta + self.D / self.m and \ + x < self.delta + self.D / self.m: + y = self.D + elif self.branch == 1 and x <= -self.delta + self.D / self.m: + y = self.m * (x + self.delta) + return y + + def describing_function(self, A): + def f(x): + return math.copysign(1, x) if abs(x) > 1 else \ + (math.asin(x) + x * math.sqrt(1 - x**2)) * 2 / math.pi + + if A < self.delta + self.D/self.m: + return np.nan + + df_real = self.m/2 * \ + (2 - self._f((self.D/self.m + self.delta)/A) + + self._f((self.D/self.m - self.delta)/A)) + df_imag = -4 * self.D * self.delta / (math.pi * A**2) + return df_real + 1j * df_imag + + +# Backlash nonlinearity (#48 in Gelb and Vander Velde, 1968) +class backlash_nonlinearity(NonlinearFunction): + def __init__(self, b): + self.b = b # backlash distance + self.center = 0 # current center position + + def __call__(self, x): + # If we are outside the backlash, move and shift the center + if x - self.center > self.b/2: + self.center = x - self.b/2 + elif x - self.center < -self.b/2: + self.center = x + self.b/2 + return self.center + + def describing_function(self, A): + if A < self.b/2: + return 0 + + df_real = (1 + self._f(1 - self.b/A)) / 2 + df_imag = -(2 * self.b/A - (self.b/A)**2) / math.pi + return df_real + 1j * df_imag diff --git a/control/tests/nltools_test.py b/control/tests/nltools_test.py new file mode 100644 index 000000000..1b5755473 --- /dev/null +++ b/control/tests/nltools_test.py @@ -0,0 +1,106 @@ +"""nltools_test.py - test static nonlinear feedback functionality + +RMM, 23 Jan 2021 + +This set of unit tests covers the various operatons of the nltools module, as +well as some of the support functions associated with static nonlinearities. + +""" + +import pytest + +import numpy as np +import control as ct +import math + +class saturation(): + # Static nonlinear saturation function + def __call__(self, x, lb=-1, ub=1): + return np.maximum(lb, np.minimum(x, ub)) + + # Describing function for a saturation function + def describing_function(self, a): + if -1 <= a and a <= 1: + return 1. + else: + b = 1/a + return 2/math.pi * (math.asin(b) + b * math.sqrt(1 - b**2)) + + +# Static nonlinear system implementing saturation +@pytest.fixture +def satsys(): + satfcn = saturation() + def _satfcn(t, x, u, params): + return satfcn(u) + return ct.NonlinearIOSystem(None, outfcn=_satfcn, input=1, output=1) + + +def test_static_nonlinear_call(satsys): + # Make sure that the saturation system is a static nonlinearity + assert satsys.isstatic() + + # Make sure the saturation function is doing the right computation + input = [-2, -1, -0.5, 0, 0.5, 1, 2] + desired = [-1, -1, -0.5, 0, 0.5, 1, 1] + for x, y in zip(input, desired): + assert satsys(x) == y + + # Test squeeze properties + assert satsys(0.) == 0. + assert satsys([0.], squeeze=True) == 0. + np.testing.assert_array_equal(satsys([0.]), [0.]) + + # Test SIMO nonlinearity + def _simofcn(t, x, u, params={}): + return np.array([np.cos(u), np.sin(u)]) + simo_sys = ct.NonlinearIOSystem(None, outfcn=_simofcn, input=1, output=2) + np.testing.assert_array_equal(simo_sys([0.]), [1, 0]) + np.testing.assert_array_equal(simo_sys([0.], squeeze=True), [1, 0]) + + # Test MISO nonlinearity + def _misofcn(t, x, u, params={}): + return np.array([np.sin(u[0]) * np.cos(u[1])]) + miso_sys = ct.NonlinearIOSystem(None, outfcn=_misofcn, input=2, output=1) + np.testing.assert_array_equal(miso_sys([0, 0]), [0]) + np.testing.assert_array_equal(miso_sys([0, 0]), [0]) + np.testing.assert_array_equal(miso_sys([0, 0], squeeze=True), [0]) + + +# Test saturation describing function in multiple ways +def test_saturation_describing_function(satsys): + satfcn = saturation() + + # Store the analytic describing function for comparison + amprange = np.linspace(0, 10, 100) + df_anal = [satfcn.describing_function(a) for a in amprange] + + # Compute describing function for a static function + df_fcn = [ct.describing_function(satfcn, a) for a in amprange] + np.testing.assert_almost_equal(df_fcn, df_anal, decimal=3) + + # Compute describing function for a static I/O system + df_sys = [ct.describing_function(satsys, a) for a in amprange] + np.testing.assert_almost_equal(df_sys, df_anal, decimal=3) + + # Compute describing function on an array of values + df_arr = ct.describing_function(satsys, amprange) + np.testing.assert_almost_equal(df_arr, df_anal, decimal=3) + +from control.nltools import saturation_nonlinearity, backlash_nonlinearity, \ + hysteresis_deadzone_nonlinearity + + +@pytest.mark.parametrize("fcn, amin, amax", [ + [saturation_nonlinearity(1), 0, 10], + [backlash_nonlinearity(2), 1, 10], + [hysteresis_deadzone_nonlinearity(1, 1, 1), 3, 10], + ]) +def test_describing_function(fcn, amin, amax): + # Store the analytic describing function for comparison + amprange = np.linspace(amin, amax, 100) + df_anal = [fcn.describing_function(a) for a in amprange] + + # Compute describing function on an array of values + df_arr = ct.describing_function(fcn, amprange, zero_check=False) + np.testing.assert_almost_equal(df_arr, df_anal, decimal=1) From c85491ebfbb78b830685ba42e4b834f55f14d5af Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 27 Jan 2021 23:05:04 -0800 Subject: [PATCH 163/260] add intersection computation + Jupyter notebook, documentation --- control/freqplot.py | 19 +- control/nltools.py | 186 +++++++++---- control/tests/nltools_test.py | 43 ++- examples/describing_functions.ipynb | 401 ++++++++++++++++++++++++++++ 4 files changed, 591 insertions(+), 58 deletions(-) create mode 100644 examples/describing_functions.ipynb diff --git a/control/freqplot.py b/control/freqplot.py index ce337844a..daf73d931 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -520,9 +520,10 @@ def gen_zero_centered_series(val_min, val_max, period): # Nyquist plot # -def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, - omega_num=None, label_freq=0, arrowhead_length=0.1, - arrowhead_width=0.1, color=None, *args, **kwargs): +def nyquist_plot( + syslist, omega=None, plot=True, omega_limits=None, omega_num=None, + label_freq=0, arrowhead_length=0.1, arrowhead_width=0.1, + mirror='--', color=None, *args, **kwargs): """ Nyquist plot for a system @@ -643,11 +644,13 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, head_width=arrowhead_width, head_length=arrowhead_length) - plt.plot(x, -y, '-', color=c, *args, **kwargs) - ax.arrow( - x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, - fc=c, ec=c, head_width=arrowhead_width, - head_length=arrowhead_length) + if mirror is not False: + plt.plot(x, -y, mirror, color=c, *args, **kwargs) + ax.arrow( + x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, + fc=c, ec=c, head_width=arrowhead_width, + head_length=arrowhead_length) + # Mark the -1 point plt.plot([-1], [0], 'r+') diff --git a/control/nltools.py b/control/nltools.py index 40d64cd5f..8f4562880 100644 --- a/control/nltools.py +++ b/control/nltools.py @@ -17,6 +17,7 @@ import math import numpy as np import matplotlib.pyplot as plt +import scipy from numpy import where, dstack, diff, meshgrid from warnings import warn @@ -28,7 +29,8 @@ def sector_bounds(fcn): raise NotImplementedError("function not currently implemented") -def describing_function(fcn, amp, num_points=100, zero_check=True): +def describing_function( + fcn, amp, num_points=100, zero_check=True, try_method=True): """Numerical compute the describing function of a nonlinear function The describing function of a static nonlinear function is given by @@ -47,6 +49,18 @@ def describing_function(fcn, amp, num_points=100, zero_check=True): amp : float or array The amplitude(s) at which the describing function should be calculated. + zero_check : bool, optional + If `True` (default) then `amp` is zero, the function will be evaluated + and checked to make sure it is zero. If not, a `TypeError` exception + is raised. If zero_check is `False`, no check is made on the value of + the function at zero. + + try_method : bool, optional + If `True` (default), check the `fcn` argument to see if it is an + object with a `describing_function` method and use this to compute the + describing function. See the :class:`NonlienarFunction` class for + more information on the `describing_function` method. + Returns ------- df : complex or array of complex @@ -58,6 +72,14 @@ def describing_function(fcn, amp, num_points=100, zero_check=True): If amp < 0 or if amp = 0 and the function fcn(0) is non-zero. """ + # If there is an analytical solution, trying using that first + if try_method and hasattr(fcn, 'describing_function'): + # Go through all of the amplitudes we were given + df = [] + for a in np.atleast_1d(amp): + df.append(fcn.describing_function(a)) + return np.array(df).reshape(np.shape(amp)) + # # The describing function of a nonlinear function F() can be computed by # evaluating the nonlinearity over a sinusoid. The Fourier series for a @@ -83,7 +105,7 @@ def describing_function(fcn, amp, num_points=100, zero_check=True): # # From these we can compute M1 and \phi. # - + # Evaluate over a full range of angles theta = np.linspace(0, 2*np.pi, num_points) dtheta = theta[1] - theta[0] @@ -122,7 +144,8 @@ def describing_function(fcn, amp, num_points=100, zero_check=True): return np.array(df).reshape(np.shape(amp)) -def describing_function_plot(H, F, a, omega=None): +def describing_function_plot( + H, F, a, omega=None, refine=True, label="%5.2g @ %-5.2g", **kwargs): """Plot a Nyquist plot with a describing function for a nonlinear system. This function generates a Nyquist plot for a closed loop system consisting @@ -133,7 +156,7 @@ def describing_function_plot(H, F, a, omega=None): H : LTI system Linear time-invariant (LTI) system (state space, transfer function, or FRD) - F : static nonlinear function + F : static nonlinear function A static nonlinearity, either a scalar function or a single-input, single-output, static input/output system. a : list @@ -141,16 +164,90 @@ def describing_function_plot(H, F, a, omega=None): omega : list, optional List of frequences to be used for the linear system Nyquist curve. + Returns + ------- + intersection_list : 1D array of 2-tuples + A list of all amplitudes and frequencies in which :math:`H(j\\omega) + N(a) = -1`, where :math:`N(a)` is the describing function associated + with `F`, or `None` if there are no such points. Each pair represents + a potential limit cycle for the closed loop system. + """ # Start by drawing a Nyquist curve - H_real, H_imag, H_omega = nyquist_plot(H, omega, plot=True) + H_real, H_imag, H_omega = nyquist_plot(H, omega, plot=True, **kwargs) + H_vals = H_real + 1j * H_imag # Compute the describing function df = describing_function(F, a) - dfinv = -1/df - - # Now add on the describing function - plt.plot(dfinv.real, dfinv.imag) + N_vals = -1/df + + # Now add the describing function curve to the plot + plt.plot(N_vals.real, N_vals.imag) + + # Look for intersection points + intersections = [] + for i in range(N_vals.size - 1): + for j in range(H_vals.size - 1): + intersect = _find_intersection( + N_vals[i], N_vals[i+1], H_vals[j], H_vals[j+1]) + if intersect == None: + continue + + # Found an intersection, compute a and omega + s_amp, s_omega = intersect + a_guess = (1 - s_amp) * a[i] + s_amp * a[i+1] + omega_guess = (1 - s_omega) * H_omega[j] + s_omega * H_omega[j+1] + + # Refine the coarse estimate to get better intersection point + a_final, omega_final = a_guess, omega_guess + if refine: + # Refine the answer to get more accuracy + def _cost(x): + return abs(1 + H(1j * x[1]) * + describing_function(F, x[0]))**2 + res = scipy.optimize.minimize(_cost, [a_guess, omega_guess]) + + if not res.success: + warn("not able to refine result; returning estimate") + else: + a_final, omega_final = res.x[0], res.x[1] + + # Add labels to the intersection points + if label: + pos = H(1j * omega_final) + plt.text(pos.real, pos.imag, label % (a_final, omega_final)) + + # Save the final estimate + intersections.append((a_final, omega_final)) + + return intersections + +# Figure out whether two line segments intersection +def _find_intersection(L1a, L1b, L2a, L2b): + # Compute the tangents for the segments + L1t = L1b - L1a + L2t = L2b - L2a + + # Set up components of the solution: b = M s + b = L1a - L2a + detM = L1t.imag * L2t.real - L1t.real * L2t.imag + if abs(detM) < 1e-8: # TODO: fix magic number + return None + + # Solve for the intersection points on each line segment + s1 = (L2t.imag * b.real - L2t.real * b.imag) / detM + if s1 < 0 or s1 > 1: + return None + + s2 = (L1t.imag * b.real - L1t.real * b.imag) / detM + if s2 < 0 or s2 > 1: + return None + + # Debugging test + np.testing.assert_almost_equal(L1a + s1 * L1t, L2a + s2 * L2t) + + # Intersection is within segments; return proportional distance + return (s1, s2) # Class for nonlinear functions @@ -195,49 +292,38 @@ def describing_function(self, A): return (math.sin(alpha + beta) * math.cos(alpha - beta) + (alpha + beta)) / math.pi - -# Hysteresis w/ deadzone (#40 in Gelb and Vander Velde, 1968) -class hysteresis_deadzone_nonlinearity(NonlinearFunction): - def __init__(self, delta, D, m): + +# Relay with hysteresis (FBS2e, Example 10.12) +class relay_hysteresis_nonlinearity(NonlinearFunction): + def __init__(self, b, c): # Initialize the state to bottom branch self.branch = -1 # lower branch - self.delta = delta - self.D = D - self.m = m + self.b = b + self.c = c def __call__(self, x): - if x > self.delta + self.D / self.m: - y = self.m * (x - self.delta) + if x > self.c: + y = self.b self.branch = 1 - elif x < -self.delta - self.D/self.m: - y = self.m * (x + self.delta) + elif x < -self.c: + y = -self.b self.branch = -1 - elif self.branch == -1 and \ - x > -self.delta - self.D / self.m and \ - x < self.delta - self.D / self.m: - y = -self.D - elif self.branch == -1 and x >= self.delta - self.D / self.m: - y = self.m * (x - self.delta) - elif self.branch == 1 and \ - x > -self.delta + self.D / self.m and \ - x < self.delta + self.D / self.m: - y = self.D - elif self.branch == 1 and x <= -self.delta + self.D / self.m: - y = self.m * (x + self.delta) + elif self.branch == -1: + y = -self.b + elif self.branch == 1: + y = self.b return y - def describing_function(self, A): + def describing_function(self, a): def f(x): return math.copysign(1, x) if abs(x) > 1 else \ (math.asin(x) + x * math.sqrt(1 - x**2)) * 2 / math.pi - if A < self.delta + self.D/self.m: + if a < self.c: return np.nan - - df_real = self.m/2 * \ - (2 - self._f((self.D/self.m + self.delta)/A) + - self._f((self.D/self.m - self.delta)/A)) - df_imag = -4 * self.D * self.delta / (math.pi * A**2) + + df_real = 4 * self.b * math.sqrt(1 - (self.c/a)**2) / (a * math.pi) + df_imag = -4 * self.b * self.c / (math.pi * a**2) return df_real + 1j * df_imag @@ -248,17 +334,23 @@ def __init__(self, b): self.center = 0 # current center position def __call__(self, x): - # If we are outside the backlash, move and shift the center - if x - self.center > self.b/2: - self.center = x - self.b/2 - elif x - self.center < -self.b/2: - self.center = x + self.b/2 - return self.center + # Convert input to an array + x_array = np.array(x) + + y = [] + for x in np.atleast_1d(x_array): + # If we are outside the backlash, move and shift the center + if x - self.center > self.b/2: + self.center = x - self.b/2 + elif x - self.center < -self.b/2: + self.center = x + self.b/2 + y.append(self.center) + return(np.array(y).reshape(x_array.shape)) def describing_function(self, A): - if A < self.b/2: + if A <= self.b/2: return 0 - + df_real = (1 + self._f(1 - self.b/A)) / 2 df_imag = -(2 * self.b/A - (self.b/A)**2) / math.pi return df_real + 1j * df_imag diff --git a/control/tests/nltools_test.py b/control/tests/nltools_test.py index 1b5755473..074feae84 100644 --- a/control/tests/nltools_test.py +++ b/control/tests/nltools_test.py @@ -88,13 +88,13 @@ def test_saturation_describing_function(satsys): np.testing.assert_almost_equal(df_arr, df_anal, decimal=3) from control.nltools import saturation_nonlinearity, backlash_nonlinearity, \ - hysteresis_deadzone_nonlinearity + relay_hysteresis_nonlinearity @pytest.mark.parametrize("fcn, amin, amax", [ [saturation_nonlinearity(1), 0, 10], [backlash_nonlinearity(2), 1, 10], - [hysteresis_deadzone_nonlinearity(1, 1, 1), 3, 10], + [relay_hysteresis_nonlinearity(1, 1), 3, 10], ]) def test_describing_function(fcn, amin, amax): # Store the analytic describing function for comparison @@ -102,5 +102,42 @@ def test_describing_function(fcn, amin, amax): df_anal = [fcn.describing_function(a) for a in amprange] # Compute describing function on an array of values - df_arr = ct.describing_function(fcn, amprange, zero_check=False) + df_arr = ct.describing_function( + fcn, amprange, zero_check=False, try_method=False) np.testing.assert_almost_equal(df_arr, df_anal, decimal=1) + + # Make sure the describing function method also works + df_meth = ct.describing_function(fcn, amprange, zero_check=False) + np.testing.assert_almost_equal(df_meth, df_anal, decimal=1) + +def test_describing_function_plot(): + # Simple linear system with at most 1 intersection + H_simple = ct.tf([1], [1, 2, 2, 1]) + omega = np.logspace(-1, 2, 100) + + # Saturation nonlinearity + F_saturation = ct.nltools.saturation_nonlinearity(1) + amp = np.linspace(1, 4, 10) + + # No intersection + xsects = ct.describing_function_plot(H_simple, F_saturation, amp, omega) + assert xsects == [] + + # One intersection + H_larger = H_simple * 8 + xsects = ct.describing_function_plot(H_larger, F_saturation, amp, omega) + for a, w in xsects: + np.testing.assert_almost_equal( + H_larger(1j*w), + -1/ct.describing_function(F_saturation, a), decimal=5) + + # Multiple intersections + H_multiple = H_simple * ct.tf(*ct.pade(5, 4)) * 4 + omega = np.logspace(-1, 3, 50) + F_backlash = ct.nltools.backlash_nonlinearity(1) + amp = np.linspace(0.6, 5, 50) + xsects = ct.describing_function_plot(H_multiple, F_backlash, amp, omega) + for a, w in xsects: + np.testing.assert_almost_equal( + -1/ct.describing_function(F_backlash, a), + H_multiple(1j*w), decimal=5) diff --git a/examples/describing_functions.ipynb b/examples/describing_functions.ipynb new file mode 100644 index 000000000..d46ecba95 --- /dev/null +++ b/examples/describing_functions.ipynb @@ -0,0 +1,401 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Describing Function Analysis Using the Python Control Toolbox (python-control)\n", + "### Richard M. Murray, 27 Jan 2021\n", + "This Jupyter notebook shows how to use the `nltools` module of the Python Control Toolbox to perform describing function analysis of a nonlinear system. A brief introduction to describing functions can be found in [Feedback Systems](https://fbsbook.org), Section 10.5 (Generalized Notions of Gain and Phase)." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import control as ct\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "import math" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Built-in describing functions\n", + "The Python Control Toobox has a number of built-in functions that provide describing functions for some standard nonlinearities. " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Saturation nonlinearity\n", + "\n", + "A saturation nonlinearity can be obtained using the `ct.nltools.saturation_nonlinearity` function. This function takes the saturation level as an argument." + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, +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icyxFmdnfUGZxLxNconHPOJeU7s51zziXlhcI551xSXiicc84l5YXCOedcUl4onHPOJfX/AdmwrwO1J6rYAAAAAElFTkSuQmCC\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "saturation=ct.nltools.saturation_nonlinearity(0.75)\n", + "x = np.linspace(-2, 2, 50)\n", + "plt.plot(x, saturation(x))\n", + "plt.xlabel(\"Input, x\")\n", + "plt.ylabel(\"Output, y = sat(x)\")\n", + "plt.title(\"Input/output map for a saturation nonlinearity\");" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEWCAYAAABrDZDcAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAAzGklEQVR4nO3dd5wU9f3H8df77ui9ifQuvZ9YsGvsijWCxhYbxv4zGDVqYkzU2GLvGpUYERUVFXtBEREORYqAFEUQkSpF+vH5/TFzcT337ubgdufu9vN8PPZxt1M/O/vd+cx8Z+b7lZnhnHMuc2XFHYBzzrl4eSJwzrkM54nAOecynCcC55zLcJ4InHMuw3kicM65DOeJoBySdIqktxLem6SOUaYt4zg6S/pc0lpJF6diHUWst7WkdZKyU7DsgZLmhMs/pqyXX5lIel3S6XHHEZWktuFvJSd8H1v8kmZI2i+OdW8P+XMEP5P0DdAU2ArkA18CTwEPm9m2GOMyoJOZzU3zeh8D1pjZZSlezzfA2Wb2TirXE67rXWC0md2V6nWVFUlnEGyfvVK4jr8CHc3sd6laR6pJagt8DVQxs60xh/M/FWHb+hnBrx1lZnWANsDNwJ+Ax9K18oKjmXKiDTAj7iDK2HZ/pnL23URWUeOuiCrstjYzf4Uv4BvgoELDBgDbgB7h+2rAbcC3wA/Ag0CNcFxj4F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OXAD0JnujcxcwGELTHc1HCdG2BfQke739QUvVkKzKz8cBoYJiZ9TGzecXEdT6w3sx6Af8A+kOQLIBrgIPMrB+QB/xf4Zkl1QAOBF4laAtnSDHrci4STwSushpC0DY74d/EHeYkC9qA30TQqcdb4fBpBDv/AiPNbJuZzSFoz6UsrjXsA/wHwMymAlPD4bsTVC19HDYzcDrQJsn8RwLvm9l6gkbKjpWUXQZxuQxWKdoaci6RpEbAAUAPSUbQBotJuiKcZFPC5NsS3m/jl7+Jwu2vlKY9lq38fKBV+Ewi2XIEvG1mJR3hDwEGFlQ1EbQjtD/wTilic+4X/IzAVUYnEPTm1MbM2ppZK+BrftkWfxQnSsoKrxu0J7hAW5S1BN0MFviGsNonjKfAh8ApAJJ6AL3C4RMIdvAdw3E1Je2SuAJJdcPP0Dr8XG2BC/DqIbeDPBG4ymgIQXvxiV4ATi7lcmYDYwma/x1qZhuLmXYEMEzS52HiuI2gdc3xQOOE6R4AakuaClwBTAQws2XAGcAz4bgJ/Loq6jiCPnQTz2heBo6WVK2Un825//HWR51LQtITBJ2rPx93LM6lmp8ROOdchvMzAuecy3B+RuCccxnOE4FzzmU4TwTOOZfhPBE451yG80TgnHMZ7v8B96hCajFISCMAAAAASUVORK5CYII=\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "amp_range = np.linspace(0, 2, 50)\n", + "plt.plot(amp_range, ct.describing_function(saturation, amp_range))\n", + "plt.xlabel(\"Amplitude A\")\n", + "plt.ylabel(\"Describing function, N(A)\")\n", + "plt.title(\"Describing function for a saturation nonlinearity\");" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Backlash nonlinearity\n", + "A backlash nonlinearity can be obtained using the `ct.nltools.backlash_nonlinearity` function. This function takes as is argument the size of the backlash region." + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEU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Y4qEHVEYEyJU9fVgx2BMTuyIwhhjjCe7mG2MMcaTJQpjjDGeLFEYY4zxZInCGGOMJ0sUxhhjPP0/bKSI3BSKs4YAAAAASUVORK5CYII=\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "backlash = ct.nltools.backlash_nonlinearity(0.5)\n", + "theta = np.linspace(0, 2*np.pi, 50)\n", + "x = np.sin(theta)\n", + "plt.plot(x, backlash(x))\n", + "plt.xlabel(\"Input, x\")\n", + "plt.ylabel(\"Output, y = backlash(x)\")\n", + "plt.title(\"Input/output map for a backlash nonlinearity\");" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEWCAYAAABrDZDcAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAA0W0lEQVR4nO3deXwddb3/8de7adO0Wdp03ze6UaBAW/Z9UVkFF5aCC4ggKq5Xxfu7XuAqXldUFLEisnhBUFlkERGRfactlNJ9b9Okbdo0TdI0zfb5/TETPKTJySTNnJPkfJ6Px3nkzP7JnDnzOfP9zny/MjOcc85lrl7pDsA551x6eSJwzrkM54nAOecynCcC55zLcJ4InHMuw3kicM65DOeJoJuQdKmkpxKGTdLkKPN2chzTJL0lqVLSl+PYRivbHSepSlJWDOs+TtKqcP3nd/b629j2yZKKYljvXZJubO+0dqz/Mkkv7c86OkPzOMLPcFIa4ojt+EwFTwRtkLRe0p7wxFcu6RVJV0tK6b4zs3vN7IOdPW8HfAt4zszyzeyXMW2jab+f3jRsZhvNLM/MGmLY3HeBW8L1/zWG9bsUCT/DtWnY7vuOT0nPSfpsquPoKE8E0ZxrZvnAeOCHwLXA71O1cUm9U7WtCMYDS9IdRCfr8P/UxT4bl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sTgXN78icM65DOdXBM45l+H8isA55zKcJwLnnMtwngiccy7DeSJwzrkM54nAOecy3P8HuqBOU5aSpegAAAAASUVORK5CYII=\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEWCAYAAAB42tAoAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAA32ElEQVR4nO3deXxcZdn/8c83Syddkm7pvpeWspWllLIUsAgqFhQU5KGAgCgIPij+XHFfHn3ExxVERcSFfRMQREQBC6hAgZalpQst3du0adI2SdNmv35/nJN2miaTk+XMZLner9e8MjPnzLmvzJzkmns59y0zwznnnGtJVqYDcM4517V5onDOOZeSJwrnnHMpeaJwzjmXkicK55xzKXmicM45l5Inih5C0sWS/pH02CRNibJvJ8cxTdJrkiokfSaOMlood7ykXZKyYzj2bEkrw+Of29nHb6XsOZI2xnDcP0r6Xlu3teH4l0v6d0eO0RmaxhF+hpMzEEds52c6eKLoIElrJe0J/zHulPSCpKslpfW9NbO7zey9nb1vO3wJeNbM8s3sppjKaHzfz2h8bGbrzWyAmdXHUNx3gZvD4/85huO7NAk/w9UZKHe/81PSs5I+ke442ssTRef4gJnlAxOAG4AvA79LV+GSctJVVgQTgLcyHUQna/fv1MU+G5cBPeEc8ETRicyszMweA/4LuEzSEQCSEpJ+LGm9pK2SbpHUN9xWKOnxsDayXdK/GmsjksZJeljSNkmlkm4On79c0n8k/UzSduDbLVT150paLalE0o+Sjtu0Om5hLWilpB2SfilJ4bZsST8Jj7FG0rXh/gec/JL+CZwG3BxWsw9u+s2pLWWH26+UtCyssS2VNEPSncB44C9hOV+SNDE5LkmjJT0WvqerJF2ZdMxvS3pA0h3hcd+SNLO5z1TSO8DkpLISEY79J0l3SSoHLm/mmG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U7fReYAVwgcKB/c51hCcK1yuFc+bMJpjf6MKk5+dIek7SA5LelnSDgjUbXg7XGjgo3O+Pkm6R9K9wv7ObKeNySTdLOgn4IPCjcK2Cg5JrCpIKJa0N7/eVdF+4nsD9QN+k471X0ouSFkl6MPwdmjMPuJHgauYTOuHtcr2cJwrXW50LPGlmbwPbkxd5AY4CrgOmE1wNe7CZzSKYD+nTSftNBN5FMHXCLZLymivIzF4AHgO+aGZHm9k7KeK6BthtZkcC3weOhSCZAF8HzjCzGcCrwOeavlhSX+B04HGCuYjmpSjLuUg8Ubjeah7BvPyEP5P/ob5iwfz/1QQLvvwjfH4xQXJo9ICZNZjZSoK5dDqjr+NU4C4AM3sTeDN8/gSCpqv/hFM4XAZMaOb1ZwPzzWw3wQRyH5KU3QlxuV6sV8z15FwySUOBdwNHSDKC+W9M0pfCXaqTdm9IetzA/n8zTee/act8OHXs+6LWtCbS3HEEPGVmrdUQ5gGzG5uyCOZxOg14ug2xObcfr1G43uh8gpXAJpjZRDMbB6xh/7UYoviIpKyw32IyQQdySyoIlrBstJawWSmMp9HzwMUAko4Ajgyff4kgAUwJt/WTdHByAZIKwt9hfPh7TQT+G29+ch3kicL1RvMI1gtI9hBwURuPswJ4jmBq56vNrCrFvvcBX5T0WphYfkwwO+oLQGHSfr8GBkh6E/gS8DKAmW0DLgfuDbe9xIFNXR8mWMM5uUb0KPBBSYk2/m7O7eWzxzrXDpL+CDxuZn/KdCzOxc1rFM4551LyGoVzzrmUvEbhnHMuJU8UzjnnUvJE4ZxzLiVPFM4551LyROGccy6l/w/bpoNNY8LQgQAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "amp_range = np.linspace(0, 2, 50)\n", + "N_a = ct.describing_function(backlash, amp_range)\n", + "\n", + "plt.figure()\n", + "plt.plot(amp_range, abs(N_a))\n", + "plt.xlabel(\"Amplitude A\")\n", + "plt.ylabel(\"Amplitude of describing function, N(A)\")\n", + "plt.title(\"Describing function for a backlash nonlinearity\")\n", + "\n", + "plt.figure()\n", + "plt.plot(amp_range, np.angle(N_a))\n", + "plt.xlabel(\"Amplitude A\")\n", + "plt.ylabel(\"Phase of describing function, N(A)\")\n", + "plt.title(\"Describing function for a backlash nonlinearity\");" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### User-defined, static nonlinearities\n", + "\n", + "In addition to pre-defined nonlinearies, it is possible to computing describing functions for static nonlinearities. The describing function for any suitable nonlinear function can be computed numerically using the `describing_function` function." + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAA1w0lEQVR4nO3dd5wU9f3H8df7ChzlaHIiHaRJRzjRWLBgwd4V7JUfUSKJxlhiiTGJmsQau8ZYIzZQbNjFqCFwdBBBRJSicihNpB18fn/MnK7n7t0c3N5c+Twfj33c7cx8Zz47O7uf/X5n5vuVmeGcc86VlBF3AM4556omTxDOOeeS8gThnHMuKU8QzjnnkvIE4ZxzLilPEM4555LyBFHNSDpV0usJz01S5yjLVnAc3SRNk7RW0kXp2EaK7baT9J2kzDSsey9Jn4TrP6ai11+TSHpV0plxxxGVpA7hZyUrfB5b/JLmSNovjm2Xl/w+iGgkLQJaAEXAFuAj4FHgfjPbGmNcBnQxswWVvN1/AmvM7Ddp3s4i4DwzezOd2wm39RYwzsxuT/e2Koqkswj2z95p3MYfgM5mdlq6tpFukjoAnwHZZlYUczg/qOr71msQ5XOkmeUC7YEbgcuAf1bWxot//VQR7YE5cQdRwbb5NVWx9yay6hp3dVQt97WZ+SPCA1gEHFhi2kBgK9ArfF4X+DvwBfA1cC9QL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6JfC9mfUB/gwMgCCJAFcBB5pZf6AAuLhkYUn1gMHASwR9BQ0rZVvOReIJwtU2wwj6xSf8m/hFOtmC/vc3Egy08no4fRZBUij2tJltNbNPCPq6qYhzGYOAxwHMbCYwM5y+B0ET1QdhVwtnAu2TlD8CeMfMvifo2O1YSZkVEJerxWp0X0zOJZK0A3AA0EuSEfRPY5J+Fy6yMWHxrQnPt/LTz0rJ/mnK019NET/+MCtZ80i2HgFvmFlZNYJhwF7FTVYE/SztD7xZjtic+wmvQbja5ASCkbfam1kHM2sLfMZPx0KI4kRJGeF5iZ0JTgynspZgqMhiiwibj8J4ir0HnAogqRfQJ5w+keCLv3M4r76krokbkNQofA3twtfVAbgQb2Zy28kThKtNhhH015/oOeCUcq5nHjCBoIvlEWa2oZRlRwOXSpoWJpS/E/RW+iHQPGG5e4CGkmYCvwMmAZhZIXAW8GQ4byI/b9I6jmCM5MQa0AvAUZLqlvO1OfcD783VuXKQ9DDwkpk9G3cszqWb1yCcc84l5TUI55xzSXkNwjnnXFKeIJxzziXlCcI551xSniCcc84l5QnCOedcUv8PMekJz+9C6moAAAAASUVORK5CYII=\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "# Define a saturation nonlinearity as a simple function\n", + "def my_saturation(x):\n", + " if abs(x) >= 1:\n", + " return math.copysign(1, x)\n", + " else:\n", + " return x\n", + "\n", + "amp_range = np.linspace(0, 2, 50)\n", + "plt.plot(amp_range, ct.describing_function(my_saturation, amp_range).real)\n", + "plt.xlabel(\"Amplitude A\")\n", + "plt.ylabel(\"Describing function, N(A)\")\n", + "plt.title(\"Describing function for a saturation nonlinearity\");" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Stability analysis using describing functions\n", + "Describing functions can be used to assess stability of closed loop systems consisting of a linear system and a static nonlinear using a Nyquist plot." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Limit cycle position for a third order system with saturation nonlinearity\n", + "\n", + "Consider a nonlinear feedback system consisting of a third-order linear system with transfer function $H(s)$ and a saturation nonlinearity having describing function $N(a)$. Stability can be assessed by looking for points at which \n", + "\n", + "$$ H(j\\omega) N(a) = −1$$\n", + "\n", + "The `describing_function_plot` function plots $H(j\\omega)$ and $-1/N(a)$ and prints out the the amplitudes and frequencies corresponding to intersections of these curves. " + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[(3.343977839598768, 1.4142156916757294)]" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEGCAYAAABsLkJ6AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAABE0klEQVR4nO3dd3hUVfrA8e+ZmUx67z1AQu+EXhQQu7iu6Nq76Opi1/2566676u66q6uL67qK2Ltg78oqVUF6byEESID0XiZTzu+PCaEGAsnkTjLv53nyJHMzc897Us4799xTlNYaIYQQvsdkdABCCCGMIQlACCF8lCQAIYTwUZIAhBDCR0kCEEIIH2UxOoCTERMTozMyMtp8nsbGRqxWa9sDMpjUw7tIPbyL1OOglStXlmitY4883qkSQEZGBitWrGjzeXJycsjMzGyHiIwl9fAuUg/vIvU4SCm161jHDe0CUkrdrZTaqJTaoJR6RykVYGQ8QgjhSwxLAEqpZOAOIFtr3R8wA5cZFY8QQvgao28CW4BApZQFCAL2GhyPEEL4DGXkUhBKqTuBvwD1wLda6yuP8ZzpwHSApKSkYQsWLGhzuTabDX9//zafx2hSD+8i9fAuUo+DsrKyVmqts488blgCUEpFAh8AvwIqgDnAXK31my29Jjs7W8tN4IOkHt5F6uFdpB4HKaWOmQCM7AI6A9iptS7WWtuBD4ExBsYjhBA+xcgEsBsYpZQKUkopYD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CI2Q1UCGE8FFyBSCEED5KEoAQQvgoSQBCCOGjJAEIIYSPkgQghBA+ShKAEEL4KEkAQgjho/4fx5kJApRf12MAAAAASUVORK5CYII=\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "# Linear dynamics\n", + "H_simple = ct.tf([8], [1, 2, 2, 1])\n", + "omega = np.logspace(-3, 3, 500)\n", + "\n", + "# Nonlinearity\n", + "F_saturation = ct.nltools.saturation_nonlinearity(1)\n", + "amp = np.linspace(00, 5, 50)\n", + "\n", + "# Describing function plot (return value = amp, freq)\n", + "ct.describing_function_plot(H_simple, F_saturation, amp, omega)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "The intersection occurs at amplitude 3.3 and frequency 1.4 rad/sec (= 0.2 Hz) and thus we predict a limit cycle with amplitude 3.3 and period of approximately 5 seconds." + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD4CAYAAADxeG0DAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAABEaklEQVR4nO29eZhcV33m/57au7auqq6q3lutXbYkW7LbsrGN8UYwhMGDExOYsAQIDgxkyAxPZpgZGMIvA9kTksAMmGFJGJYwYAgQCNh4X7As2bLc1tqSWuq9qrr2fTu/P26d6pbUS9W95y6lPp/n0WOplntPdbnf+73v+S6EUgqBQCAQdC4mvRcgEAgEAmUIIRcIBIIORwi5QCAQdDhCyAUCgaDDEUIuEAgEHY5Fj5MGg0E6Ojqqx6kFAoGgYzl8+HCMUhq69HFdhHx0dBSHDh3S49QCgUDQsRBCzq/0uLBWBAKBoMMRQi4QCAQdjhBygUAg6HCEkAsEAkGHI4RcIBAIOhwh5AKBQNDhCC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oSQLZCicACwAPhWp3wWQsi3AdwOqRXnAoBPAfghgO8CGAFwAcD9lFLDbyKu8lluh3T7TgFMAvg95mcaFULIrQCeAvAKgHrj4f8GyVvuqO9ljc/yDnTe93INpM1MM6Sg+buU0v+PENIDzt9LRwm5QCAQCC6nk6wVgUAgEKyAEHKBQCDocISQCwQCQYcjhFwgEAg6HCHkAoFA0OEIIRcIBIIORwi5QCAQdDj/P/g5EqpreaUgAAAAAElFTkSuQmCC\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "# Create an I/O system simulation to see what happens\n", + "io_saturation = ct.NonlinearIOSystem(\n", + " None,\n", + " lambda t, x, u, params: F_saturation(u),\n", + " inputs=1, outputs=1\n", + ")\n", + "\n", + "sys = ct.feedback(ct.tf2io(H_simple), io_saturation)\n", + "T = np.linspace(0, 30, 200)\n", + "t, y = ct.input_output_response(sys, T, 0.1, 0)\n", + "plt.plot(t, y);" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Limit cycle prediction with for a time-delay system with backlash\n", + "\n", + "This example demonstrates a more complicated interaction between a (non-static) nonlinearity and a higher order transfer function, resulting in multiple intersection points." + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[(0.6260158833531679, 0.31026194979692245),\n", + " (0.8741930326842812, 1.215641094477062)]" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYAAAAEGCAYAAABsLkJ6AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAABX40lEQVR4nO3dd1gU1/7H8fdZeu8gHRVUFGxgb4nG2KKJRr0muZrExPR+c1NM/6XfFNN7Ykwz1cQSaz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EDK19/pPAC7WPvwFECyEmAnOBW+sZZuNJYFTt+PQTmvq7KUpDtKrB4BSlgVxqh/+NAnZgHu7CHRgI/FA7YCCAU+3XMOA7IUQw4AikXmD5XsC82nGeJOYx5pFSmoQQNwB7gQ+llBvqee0G4HMhxPeAzQ2YprQu6ghAaYsqa2dgi8S8Qb8T82ehqLZt4PQttvb5bwPvSCnjgVsxj874T54Ffq9tYxh/1vNjgDKg3qk/pZS3AY9jHmV0txDCrym/oKI0hCoASpslpSwG7sF8uqcSSBVCTAHz6JVCiB61T/UCsmq/v74Biz7z+TecflAI4QW8CQwF/IQQk89+oRCio5Ryi5TySSCPvw83rSgWpQqA0qZJKXcBezAPuXsdcJMQYg+wn7+md3wa86mhPzFvlC/kf8CLQogNgN0Zj88B3pNSHgFuwjwSbOBZr31FCLFPmCd0X1ebTVGsQo0GqiiK0kapIwBFUZQ2ShUARVGUNkoVAEVRlDZKFQBFUZQ2ShUARVGUNkoVAEVRlDZKFQBFUZQ26v8B1OqA0Zu8axIAAAAASUVORK5CYII=\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "# Linear dynamics\n", + "H_simple = ct.tf([1], [1, 2, 2, 1])\n", + "H_multiple = H_simple * ct.tf(*ct.pade(5, 4)) * 4\n", + "omega = np.logspace(-3, 3, 500)\n", + "\n", + "# Nonlinearity\n", + "F_backlash = ct.nltools.backlash_nonlinearity(1)\n", + "amp = np.linspace(0.6, 5, 50)\n", + "\n", + "# Describing function plot\n", + "ct.describing_function_plot(H_multiple, F_backlash, amp, omega, mirror=False)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.9" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +} From df43e69709c8a3ee503529a5dc243bc08882d227 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 28 Jan 2021 10:23:52 -0800 Subject: [PATCH 164/260] change nltools to descfcn, update docs/ and docstrings --- control/__init__.py | 2 +- control/{nltools.py => descfcn.py} | 232 ++++++++++++------ .../{nltools_test.py => descfcn_test.py} | 10 +- doc/classes.rst | 9 + doc/control.rst | 19 +- doc/index.rst | 1 + 6 files changed, 190 insertions(+), 83 deletions(-) rename control/{nltools.py => descfcn.py} (55%) rename control/tests/{nltools_test.py => descfcn_test.py} (93%) diff --git a/control/__init__.py b/control/__init__.py index f728e1ae3..57f2d2690 100644 --- a/control/__init__.py +++ b/control/__init__.py @@ -48,6 +48,7 @@ # Note: the functions we use are specified as __all__ variables in the modules from .bdalg import * from .delay import * +from .descfcn import * from .dtime import * from .freqplot import * from .lti import * @@ -55,7 +56,6 @@ from .mateqn import * from .modelsimp import * from .nichols import * -from .nltools import * from .phaseplot import * from .pzmap import * from .rlocus import * diff --git a/control/nltools.py b/control/descfcn.py similarity index 55% rename from control/nltools.py rename to control/descfcn.py index 8f4562880..c1494ec2e 100644 --- a/control/nltools.py +++ b/control/descfcn.py @@ -1,16 +1,14 @@ -# nltools.py - nonlinear feedback analysis +# descfcn.py - describing function analysis # # RMM, 23 Jan 2021 # # This module adds functions for carrying out analysis of systems with -# static nonlinear feedback functions using the circle criterion and -# describing functions. +# static nonlinear feedback functions using describing functions. # -"""The :mod:~control.nltools` module contains function for performing closed -loop analysis of systems with static nonlinearities. It is built around the -basic structure required to apply the circle criterion and describing function -analysis. +"""The :mod:~control.descfcn` module contains function for performing +closed loop analysis of systems with static nonlinearities using +describing function analysis. """ @@ -18,78 +16,124 @@ import numpy as np import matplotlib.pyplot as plt import scipy -from numpy import where, dstack, diff, meshgrid from warnings import warn from .freqplot import nyquist_plot -__all__ = ['describing_function', 'describing_function_plot', 'sector_bounds'] +__all__ = ['describing_function', 'describing_function_plot', + 'DescribingFunctionNonlinearity'] -def sector_bounds(fcn): - raise NotImplementedError("function not currently implemented") +# Class for nonlinearities with a built-in describing function +class DescribingFunctionNonlinearity(): + """Base class for nonlinear functions with a describing function + + This class is intended to be used as a base class for nonlinear functions + that have a analytically defined describing function (accessed via the + :meth:`describing_function` method). Objects using this class should also + implement a `call` method that evaluates the nonlinearity at a given point + and an `isstatic` method that is `True` if the nonlinearity has no + internal state. + + """ + def __init__(self): + """Initailize a describing function nonlinearity""" + pass + + def __call__(self, A): + raise NotImplementedError( + "__call__() not implemented for this function (internal error)") + + def describing_function(self, A): + """Return the describing function for a nonlinearity + + This method is used to allow analytical representations of the + describing function for a nonlinearity. It turns the (complex) value + of the describing function for sinusoidal input of amplitude `A`. + + """ + raise NotImplementedError( + "describing function not implemented for this function") + + def isstatic(self): + """Return True if the function has not internal state""" + raise NotImplementedError( + "isstatic() not implemented for this function (internal error)") + + # Utility function used to compute common describing functions + def _f(self, x): + return math.copysign(1, x) if abs(x) > 1 else \ + (math.asin(x) + x * math.sqrt(1 - x**2)) * 2 / math.pi def describing_function( - fcn, amp, num_points=100, zero_check=True, try_method=True): + F, A, num_points=100, zero_check=True, try_method=True): """Numerical compute the describing function of a nonlinear function The describing function of a static nonlinear function is given by magnitude and phase of the first harmonic of the function when evaluated along a sinusoidal input :math:`a \\sin \\omega t`. This function returns - the magnitude and phase of the describing function at amplitude :math:`a`. + the magnitude and phase of the describing function at amplitude :math:`A`. Parameters ---------- - fcn : callable - The function fcn() should accept a scalar number as an argument and + F : callable + The function F() should accept a scalar number as an argument and return a scalar number. For compatibility with (static) nonlinear input/output systems, the output can also return a 1D array with a single element. - amp : float or array + If the function is an object with a method `describing_function` + then this method will be used to computing the describing function + instead of a nonlinear computation. Some common nonlinearities + use the :class:`~control.DescribingFunctionNonlinearity` class, + which provides this functionality. + + A : float or array_like The amplitude(s) at which the describing function should be calculated. zero_check : bool, optional - If `True` (default) then `amp` is zero, the function will be evaluated + If `True` (default) then `A` is zero, the function will be evaluated and checked to make sure it is zero. If not, a `TypeError` exception is raised. If zero_check is `False`, no check is made on the value of the function at zero. try_method : bool, optional - If `True` (default), check the `fcn` argument to see if it is an - object with a `describing_function` method and use this to compute the - describing function. See the :class:`NonlienarFunction` class for - more information on the `describing_function` method. + If `True` (default), check the `F` argument to see if it is an object + with a `describing_function` method and use this to compute the + describing function. More information in the `describing_function` + method for the :class:`~control.DescribingFunctionNonlinearity` class. Returns ------- df : complex or array of complex - The (complex) value of the describing fuction at the given amplitude. + The (complex) value of the describing function at the given amplitude. + If the `A` parameter is an array of amplitudes, then an array of + corresponding describing function values is returned. Raises ------ TypeError - If amp < 0 or if amp = 0 and the function fcn(0) is non-zero. + If A < 0 or if A = 0 and the function F(0) is non-zero. """ # If there is an analytical solution, trying using that first - if try_method and hasattr(fcn, 'describing_function'): + if try_method and hasattr(F, 'describing_function'): # Go through all of the amplitudes we were given df = [] - for a in np.atleast_1d(amp): - df.append(fcn.describing_function(a)) - return np.array(df).reshape(np.shape(amp)) + for a in np.atleast_1d(A): + df.append(F.describing_function(a)) + return np.array(df).reshape(np.shape(A)) # # The describing function of a nonlinear function F() can be computed by # evaluating the nonlinearity over a sinusoid. The Fourier series for a - # static noninear function evaluated on a sinusoid can be written as + # static nonlinear function evaluated on a sinusoid can be written as # - # F(a\sin\omega t) = \sum_{k=1}^\infty M_k(a) \sin(k\omega t + \phi_k(a)) + # F(A\sin\omega t) = \sum_{k=1}^\infty M_k(A) \sin(k\omega t + \phi_k(A)) # # The describing function is given by the complex number # - # N(a) = M_1(a) e^{j \phi_1(a)} / a + # N(A) = M_1(A) e^{j \phi_1(A)} / A # # To compute this, we compute F(\theta) for \theta between 0 and 2 \pi, # use the identities @@ -98,7 +142,7 @@ def describing_function( # \int_0^{2\pi} \sin^2 \theta d\theta = \pi # \int_0^{2\pi} \cos^2 \theta d\theta = \pi # - # and then integate the product against \sin\theta and \cos\theta to obtain + # and then integrate the product against \sin\theta and \cos\theta to obtain # # \int_0^{2\pi} F(a\sin\theta) \sin\theta d\theta = M_1 \pi \cos\phi # \int_0^{2\pi} F(a\sin\theta) \cos\theta d\theta = M_1 \pi \sin\phi @@ -112,40 +156,42 @@ def describing_function( sin_theta = np.sin(theta) cos_theta = np.cos(theta) - # Initialize any internal state by going through an initial cycle - [fcn(x) for x in np.atleast_1d(amp).min() * sin_theta] + # See if this is a static nonlinearity (assume not, just in case) + if not hasattr(F, 'isstatic') or not F.isstatic(): + # Initialize any internal state by going through an initial cycle + [F(x) for x in np.atleast_1d(A).min() * sin_theta] # Go through all of the amplitudes we were given df = [] - for a in np.atleast_1d(amp): + for a in np.atleast_1d(A): # Make sure we got a valid argument if a == 0: # Check to make sure the function has zero output with zero input - if zero_check and np.squeeze(fcn(0.)) != 0: + if zero_check and np.squeeze(F(0.)) != 0: raise ValueError("function must evaluate to zero at zero") df.append(1.) continue elif a < 0: - raise ValueError("cannot evaluate describing function for amp < 0") + raise ValueError("cannot evaluate describing function for A < 0") # Save the scaling factor for to make the formulas simpler scale = dtheta / np.pi / a # Evaluate the function (twice) along a sinusoid (for internal state) - fcn_eval = np.array([fcn(x) for x in a*sin_theta]).squeeze() + F_eval = np.array([F(x) for x in a*sin_theta]).squeeze() # Compute the prjections onto sine and cosine - df_real = (fcn_eval @ sin_theta) * scale # = M_1 \cos\phi / a - df_imag = (fcn_eval @ cos_theta) * scale # = M_1 \sin\phi / a + df_real = (F_eval @ sin_theta) * scale # = M_1 \cos\phi / a + df_imag = (F_eval @ cos_theta) * scale # = M_1 \sin\phi / a df.append(df_real + 1j * df_imag) # Return the values in the same shape as they were requested - return np.array(df).reshape(np.shape(amp)) + return np.array(df).reshape(np.shape(A)) def describing_function_plot( - H, F, a, omega=None, refine=True, label="%5.2g @ %-5.2g", **kwargs): + H, F, A, omega=None, refine=True, label="%5.2g @ %-5.2g", **kwargs): """Plot a Nyquist plot with a describing function for a nonlinear system. This function generates a Nyquist plot for a closed loop system consisting @@ -159,18 +205,23 @@ def describing_function_plot( F : static nonlinear function A static nonlinearity, either a scalar function or a single-input, single-output, static input/output system. - a : list + A : list List of amplitudes to be used for the describing function plot. omega : list, optional - List of frequences to be used for the linear system Nyquist curve. + List of frequencies to be used for the linear system Nyquist curve. + label : str, optional + Formatting string used to label intersection points on the Nyquist + plot. Defaults to "%5.2g @ %-5.2g". Set to `None` to omit labels. Returns ------- - intersection_list : 1D array of 2-tuples + intersections : 1D array of 2-tuples or None A list of all amplitudes and frequencies in which :math:`H(j\\omega) N(a) = -1`, where :math:`N(a)` is the describing function associated with `F`, or `None` if there are no such points. Each pair represents - a potential limit cycle for the closed loop system. + a potential limit cycle for the closed loop system with amplitude + given by the first value of the tuple and frequency given by the + second value. """ # Start by drawing a Nyquist curve @@ -178,7 +229,7 @@ def describing_function_plot( H_vals = H_real + 1j * H_imag # Compute the describing function - df = describing_function(F, a) + df = describing_function(F, A) N_vals = -1/df # Now add the describing function curve to the plot @@ -195,7 +246,7 @@ def describing_function_plot( # Found an intersection, compute a and omega s_amp, s_omega = intersect - a_guess = (1 - s_amp) * a[i] + s_amp * a[i+1] + a_guess = (1 - s_amp) * A[i] + s_amp * A[i+1] omega_guess = (1 - s_omega) * H_omega[j] + s_omega * H_omega[j+1] # Refine the coarse estimate to get better intersection point @@ -213,16 +264,19 @@ def _cost(x): a_final, omega_final = res.x[0], res.x[1] # Add labels to the intersection points - if label: + if isinstance(label, str): pos = H(1j * omega_final) plt.text(pos.real, pos.imag, label % (a_final, omega_final)) + elif label is not None or label is not False: + raise ValueError("label must be formatting string or None") # Save the final estimate intersections.append((a_final, omega_final)) return intersections -# Figure out whether two line segments intersection + +# Utility function to figure out whether two line segments intersection def _find_intersection(L1a, L1b, L2a, L2b): # Compute the tangents for the segments L1t = L1b - L1a @@ -244,37 +298,36 @@ def _find_intersection(L1a, L1b, L2a, L2b): return None # Debugging test - np.testing.assert_almost_equal(L1a + s1 * L1t, L2a + s2 * L2t) + # np.testing.assert_almost_equal(L1a + s1 * L1t, L2a + s2 * L2t) # Intersection is within segments; return proportional distance return (s1, s2) -# Class for nonlinear functions -class NonlinearFunction(): - def sector_bounds(self, lb, ub): - raise NotImplementedError( - "sector bounds not implemented for this function") +# Saturation nonlinearity +class saturation_nonlinearity(DescribingFunctionNonlinearity): + """Create a saturation nonlinearity for use in describing function analysis - def describing_function(self, amp): - raise NotImplementedError( - "describing function not implemented for this function") + This class creates a nonlinear function representing a saturation with + given upper and lower bounds, including the describing function for the + nonlinearity. The following call creates a nonlinear function suitable + for describing function analysis: - # Function to compute the describing function - def _f(self, x): - return math.copysign(1, x) if abs(x) > 1 else \ - (math.asin(x) + x * math.sqrt(1 - x**2)) * 2 / math.pi + F = saturation_nonlinearity(ub[, lb]) + By default, the lower bound is set to the negative of the upper bound. + Asymmetric saturation functions can be created, but note that these + functions will not have zero bias and hence care must be taken in using + the nonlinearity for analysis. -# Saturation nonlinearity -class saturation_nonlinearity(NonlinearFunction): + """ def __init__(self, ub=1, lb=None): # Process arguments if lb == None: # Only received one argument; assume symmetric around zero lb, ub = -abs(ub), abs(ub) - # Make sure the bounds are sensity + # Make sure the bounds are sensible if lb > 0 or ub < 0 or lb + ub != 0: warn("asymmetric saturation; ignoring non-zero bias term") @@ -284,6 +337,9 @@ def __init__(self, ub=1, lb=None): def __call__(self, x): return np.maximum(self.lb, np.minimum(x, self.ub)) + def isstatic(self): + return True + def describing_function(self, A): if self.lb <= A and A <= self.ub: return 1. @@ -294,12 +350,28 @@ def describing_function(self, A): # Relay with hysteresis (FBS2e, Example 10.12) -class relay_hysteresis_nonlinearity(NonlinearFunction): +class relay_hysteresis_nonlinearity(DescribingFunctionNonlinearity): + """Relay w/ hysteresis nonlinearity for use in describing function analysis + + This class creates a nonlinear function representing a a relay with + symmetric upper and lower bounds of magnitude `b` and a hysteretic region + of width `c` (using the notation from [FBS2e](https://fbsbook.org), + Example 10.12,including the describing function for the nonlinearity. The + following call creates a nonlinear function suitable for describing + function analysis: + + F = relay_hysteresis_nonlinearity(b, c) + + The output of this function is `b` if `x > c` and `-b` if `x < -c`. For + `-c <= x <= c`, the value depends on the branch of the hysteresis loop (as + illustrated in Figure 10.20 of FBS2e). + + """ def __init__(self, b, c): # Initialize the state to bottom branch self.branch = -1 # lower branch - self.b = b - self.c = c + self.b = b # relay output value + self.c = c # size of hysteresis region def __call__(self, x): if x > self.c: @@ -314,6 +386,9 @@ def __call__(self, x): y = self.b return y + def isstatic(self): + return False + def describing_function(self, a): def f(x): return math.copysign(1, x) if abs(x) > 1 else \ @@ -328,7 +403,23 @@ def f(x): # Backlash nonlinearity (#48 in Gelb and Vander Velde, 1968) -class backlash_nonlinearity(NonlinearFunction): +class backlash_nonlinearity(DescribingFunctionNonlinearity): + """Backlash nonlinearity for use in describing function analysis + + This class creates a nonlinear function representing a backlash + nonlinearity ,including the describing function for the nonlinearity. The + following call creates a nonlinear function suitable for describing + function analysis: + + F = backlash_nonlinearity(b) + + This function maintains an internal state representing the 'center' of a + mechanism with backlash. If the new input is within `b/2` of the current + center, the output is unchanged. Otherwise, the output is given by the + input shifted by `b/2`. + + """ + def __init__(self, b): self.b = b # backlash distance self.center = 0 # current center position @@ -347,6 +438,9 @@ def __call__(self, x): y.append(self.center) return(np.array(y).reshape(x_array.shape)) + def isstatic(self): + return False + def describing_function(self, A): if A <= self.b/2: return 0 diff --git a/control/tests/nltools_test.py b/control/tests/descfcn_test.py similarity index 93% rename from control/tests/nltools_test.py rename to control/tests/descfcn_test.py index 074feae84..e9e66d464 100644 --- a/control/tests/nltools_test.py +++ b/control/tests/descfcn_test.py @@ -1,8 +1,8 @@ -"""nltools_test.py - test static nonlinear feedback functionality +"""descfcn_test.py - test describing functions and related capabilities RMM, 23 Jan 2021 -This set of unit tests covers the various operatons of the nltools module, as +This set of unit tests covers the various operatons of the descfcn module, as well as some of the support functions associated with static nonlinearities. """ @@ -87,7 +87,7 @@ def test_saturation_describing_function(satsys): df_arr = ct.describing_function(satsys, amprange) np.testing.assert_almost_equal(df_arr, df_anal, decimal=3) -from control.nltools import saturation_nonlinearity, backlash_nonlinearity, \ +from control.descfcn import saturation_nonlinearity, backlash_nonlinearity, \ relay_hysteresis_nonlinearity @@ -116,7 +116,7 @@ def test_describing_function_plot(): omega = np.logspace(-1, 2, 100) # Saturation nonlinearity - F_saturation = ct.nltools.saturation_nonlinearity(1) + F_saturation = ct.descfcn.saturation_nonlinearity(1) amp = np.linspace(1, 4, 10) # No intersection @@ -134,7 +134,7 @@ def test_describing_function_plot(): # Multiple intersections H_multiple = H_simple * ct.tf(*ct.pade(5, 4)) * 4 omega = np.logspace(-1, 3, 50) - F_backlash = ct.nltools.backlash_nonlinearity(1) + F_backlash = ct.descfcn.backlash_nonlinearity(1) amp = np.linspace(0.6, 5, 50) xsects = ct.describing_function_plot(H_multiple, F_backlash, amp, omega) for a, w in xsects: diff --git a/doc/classes.rst b/doc/classes.rst index b948f23aa..20645a162 100644 --- a/doc/classes.rst +++ b/doc/classes.rst @@ -30,3 +30,12 @@ that allow for linear, nonlinear, and interconnected elements: LinearICSystem LinearIOSystem NonlinearIOSystem + +Additional classes +================== + +.. autosummary:: + :toctree: generated/ + + DescribingFunctionNonlinearity + diff --git a/doc/control.rst b/doc/control.rst index 500f6db3c..e8a29deb9 100644 --- a/doc/control.rst +++ b/doc/control.rst @@ -42,6 +42,7 @@ Frequency domain plotting :toctree: generated/ bode_plot + describing_function_plot nyquist_plot gangof4_plot nichols_plot @@ -85,6 +86,7 @@ Control system analysis :toctree: generated/ dcgain + describing_function evalfr freqresp margin @@ -139,14 +141,15 @@ Nonlinear system support .. autosummary:: :toctree: generated/ - find_eqpt - interconnect - linearize - input_output_response - ss2io - summing_junction - tf2io - flatsys.point_to_point + describing_function + find_eqpt + interconnect + linearize + input_output_response + ss2io + summing_junction + tf2io + flatsys.point_to_point .. _utility-and-conversions: diff --git a/doc/index.rst b/doc/index.rst index 3edd7a6f6..8cfaebc00 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -8,6 +8,7 @@ implements basic operations for analysis and design of feedback control systems. .. rubric:: Features - Linear input/output systems in state-space and frequency domain +- Nonlinear input/output system modeling, simulation, and analysis - Block diagram algebra: serial, parallel, and feedback interconnections - Time response: initial, step, impulse - Frequency response: Bode and Nyquist plots From 776a8148ff23c35b6d224b1effa07cc28e25edf1 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 28 Jan 2021 12:23:48 -0800 Subject: [PATCH 165/260] add unit tests for exceptions/warnings + cleanup --- control/descfcn.py | 39 ++++++++++++++++++----- control/iosys.py | 2 +- control/tests/descfcn_test.py | 59 +++++++++++++++++++++++++++++------ 3 files changed, 82 insertions(+), 18 deletions(-) diff --git a/control/descfcn.py b/control/descfcn.py index c1494ec2e..0bcd44137 100644 --- a/control/descfcn.py +++ b/control/descfcn.py @@ -254,9 +254,15 @@ def describing_function_plot( if refine: # Refine the answer to get more accuracy def _cost(x): + # If arguments are invalid, return a "large" value + # Note: imposing bounds messed up the optimization (?) + if x[0] < 0 or x[1] < 0: + return 1 return abs(1 + H(1j * x[1]) * describing_function(F, x[0]))**2 - res = scipy.optimize.minimize(_cost, [a_guess, omega_guess]) + res = scipy.optimize.minimize( + _cost, [a_guess, omega_guess]) + # bounds=[(A[i], A[i+1]), (H_omega[j], H_omega[j+1])]) if not res.success: warn("not able to refine result; returning estimate") @@ -322,6 +328,9 @@ class saturation_nonlinearity(DescribingFunctionNonlinearity): """ def __init__(self, ub=1, lb=None): + # Create the describing function nonlinearity object + super(saturation_nonlinearity, self).__init__() + # Process arguments if lb == None: # Only received one argument; assume symmetric around zero @@ -341,6 +350,10 @@ def isstatic(self): return True def describing_function(self, A): + # Check to make sure the amplitude is positive + if A < 0: + raise ValueError("cannot evaluate describing function for A < 0") + if self.lb <= A and A <= self.ub: return 1. else: @@ -368,6 +381,9 @@ class relay_hysteresis_nonlinearity(DescribingFunctionNonlinearity): """ def __init__(self, b, c): + # Create the describing function nonlinearity object + super(relay_hysteresis_nonlinearity, self).__init__() + # Initialize the state to bottom branch self.branch = -1 # lower branch self.b = b # relay output value @@ -389,16 +405,16 @@ def __call__(self, x): def isstatic(self): return False - def describing_function(self, a): - def f(x): - return math.copysign(1, x) if abs(x) > 1 else \ - (math.asin(x) + x * math.sqrt(1 - x**2)) * 2 / math.pi + def describing_function(self, A): + # Check to make sure the amplitude is positive + if A < 0: + raise ValueError("cannot evaluate describing function for A < 0") - if a < self.c: + if A < self.c: return np.nan - df_real = 4 * self.b * math.sqrt(1 - (self.c/a)**2) / (a * math.pi) - df_imag = -4 * self.b * self.c / (math.pi * a**2) + df_real = 4 * self.b * math.sqrt(1 - (self.c/A)**2) / (A * math.pi) + df_imag = -4 * self.b * self.c / (math.pi * A**2) return df_real + 1j * df_imag @@ -421,6 +437,9 @@ class backlash_nonlinearity(DescribingFunctionNonlinearity): """ def __init__(self, b): + # Create the describing function nonlinearity object + super(backlash_nonlinearity, self).__init__() + self.b = b # backlash distance self.center = 0 # current center position @@ -442,6 +461,10 @@ def isstatic(self): return False def describing_function(self, A): + # Check to make sure the amplitude is positive + if A < 0: + raise ValueError("cannot evaluate describing function for A < 0") + if A <= self.b/2: return 0 diff --git a/control/iosys.py b/control/iosys.py index 61f820bea..e3ee3025d 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -822,7 +822,7 @@ def __call__(sys, u, squeeze=None, params=None): # If we received any parameters, update them before calling _out() if params is not None: sys._update_params(params) - + # Evaluate the function on the argument out = sys._out(0, np.array((0,)), np.asarray(u)) _, out = _process_time_response(sys, [], out, [], squeeze=squeeze) diff --git a/control/tests/descfcn_test.py b/control/tests/descfcn_test.py index e9e66d464..c9d52d472 100644 --- a/control/tests/descfcn_test.py +++ b/control/tests/descfcn_test.py @@ -12,8 +12,12 @@ import numpy as np import control as ct import math +from control.descfcn import saturation_nonlinearity, backlash_nonlinearity, \ + relay_hysteresis_nonlinearity + -class saturation(): +# Static function via a class +class saturation_class(): # Static nonlinear saturation function def __call__(self, x, lb=-1, ub=1): return np.maximum(lb, np.minimum(x, ub)) @@ -27,10 +31,15 @@ def describing_function(self, a): return 2/math.pi * (math.asin(b) + b * math.sqrt(1 - b**2)) +# Static function without a class +def saturation(x): + return np.maximum(-1, np.minimum(x, 1)) + + # Static nonlinear system implementing saturation @pytest.fixture def satsys(): - satfcn = saturation() + satfcn = saturation_class() def _satfcn(t, x, u, params): return satfcn(u) return ct.NonlinearIOSystem(None, outfcn=_satfcn, input=1, output=1) @@ -65,16 +74,16 @@ def _misofcn(t, x, u, params={}): np.testing.assert_array_equal(miso_sys([0, 0]), [0]) np.testing.assert_array_equal(miso_sys([0, 0]), [0]) np.testing.assert_array_equal(miso_sys([0, 0], squeeze=True), [0]) - + # Test saturation describing function in multiple ways def test_saturation_describing_function(satsys): - satfcn = saturation() - + satfcn = saturation_class() + # Store the analytic describing function for comparison amprange = np.linspace(0, 10, 100) df_anal = [satfcn.describing_function(a) for a in amprange] - + # Compute describing function for a static function df_fcn = [ct.describing_function(satfcn, a) for a in amprange] np.testing.assert_almost_equal(df_fcn, df_anal, decimal=3) @@ -87,8 +96,9 @@ def test_saturation_describing_function(satsys): df_arr = ct.describing_function(satsys, amprange) np.testing.assert_almost_equal(df_arr, df_anal, decimal=3) -from control.descfcn import saturation_nonlinearity, backlash_nonlinearity, \ - relay_hysteresis_nonlinearity + # Evaluate static function at a negative amplitude + with pytest.raises(ValueError, match="cannot evaluate"): + ct.describing_function(saturation, -1) @pytest.mark.parametrize("fcn, amin, amax", [ @@ -100,7 +110,7 @@ def test_describing_function(fcn, amin, amax): # Store the analytic describing function for comparison amprange = np.linspace(amin, amax, 100) df_anal = [fcn.describing_function(a) for a in amprange] - + # Compute describing function on an array of values df_arr = ct.describing_function( fcn, amprange, zero_check=False, try_method=False) @@ -110,6 +120,11 @@ def test_describing_function(fcn, amin, amax): df_meth = ct.describing_function(fcn, amprange, zero_check=False) np.testing.assert_almost_equal(df_meth, df_anal, decimal=1) + # Make sure that evaluation at negative amplitude generates an exception + with pytest.raises(ValueError, match="cannot evaluate"): + ct.describing_function(fcn, -1) + + def test_describing_function_plot(): # Simple linear system with at most 1 intersection H_simple = ct.tf([1], [1, 2, 2, 1]) @@ -141,3 +156,29 @@ def test_describing_function_plot(): np.testing.assert_almost_equal( -1/ct.describing_function(F_backlash, a), H_multiple(1j*w), decimal=5) + +def test_describing_function_exceptions(): + # Describing function with non-zero bias + with pytest.warns(UserWarning, match="asymmetric"): + saturation = ct.descfcn.saturation_nonlinearity(lb=-1, ub=2) + assert saturation(-3) == -1 + assert saturation(3) == 2 + + # Turn off the bias check + bias = ct.describing_function(saturation, 0, zero_check=False) + + # Function should evaluate to zero at zero amplitude + f = lambda x: x + 0.5 + with pytest.raises(ValueError, match="must evaluate to zero"): + bias = ct.describing_function(f, 0, zero_check=True) + + # Evaluate at a negative amplitude + with pytest.raises(ValueError, match="cannot evaluate"): + ct.describing_function(saturation, -1) + + # Describing function with bad label + H_simple = ct.tf([8], [1, 2, 2, 1]) + F_saturation = ct.descfcn.saturation_nonlinearity(1) + amp = np.linspace(1, 4, 10) + with pytest.raises(ValueError, match="formatting string"): + ct.describing_function_plot(H_simple, F_saturation, amp, label=1) From 2ac5d9df128d924c448101b09f0d37768ca5ad5c Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 28 Jan 2021 22:31:07 -0800 Subject: [PATCH 166/260] make _isstatic internal; updated doc/ for descfcn --- control/descfcn.py | 29 ++++++---- doc/classes.rst | 9 --- doc/descfcn.rst | 86 +++++++++++++++++++++++++++++ doc/describing_functions.ipynb | 1 + doc/examples.rst | 1 + doc/index.rst | 1 + examples/describing_functions.ipynb | 23 ++++---- examples/steering.ipynb | 13 +---- 8 files changed, 122 insertions(+), 41 deletions(-) create mode 100644 doc/descfcn.rst create mode 120000 doc/describing_functions.ipynb diff --git a/control/descfcn.py b/control/descfcn.py index 0bcd44137..3d2b50dd0 100644 --- a/control/descfcn.py +++ b/control/descfcn.py @@ -21,7 +21,8 @@ from .freqplot import nyquist_plot __all__ = ['describing_function', 'describing_function_plot', - 'DescribingFunctionNonlinearity'] + 'DescribingFunctionNonlinearity', 'backlash_nonlinearity', + 'relay_hysteresis_nonlinearity', 'saturation_nonlinearity'] # Class for nonlinearities with a built-in describing function class DescribingFunctionNonlinearity(): @@ -31,7 +32,7 @@ class DescribingFunctionNonlinearity(): that have a analytically defined describing function (accessed via the :meth:`describing_function` method). Objects using this class should also implement a `call` method that evaluates the nonlinearity at a given point - and an `isstatic` method that is `True` if the nonlinearity has no + and an `_isstatic` method that is `True` if the nonlinearity has no internal state. """ @@ -54,10 +55,10 @@ def describing_function(self, A): raise NotImplementedError( "describing function not implemented for this function") - def isstatic(self): + def _isstatic(self): """Return True if the function has not internal state""" raise NotImplementedError( - "isstatic() not implemented for this function (internal error)") + "_isstatic() not implemented for this function (internal error)") # Utility function used to compute common describing functions def _f(self, x): @@ -157,7 +158,7 @@ def describing_function( cos_theta = np.cos(theta) # See if this is a static nonlinearity (assume not, just in case) - if not hasattr(F, 'isstatic') or not F.isstatic(): + if not hasattr(F, '_isstatic') or not F._isstatic(): # Initialize any internal state by going through an initial cycle [F(x) for x in np.atleast_1d(A).min() * sin_theta] @@ -223,6 +224,14 @@ def describing_function_plot( given by the first value of the tuple and frequency given by the second value. + Example + ------- + >>> H_simple = ct.tf([8], [1, 2, 2, 1]) + >>> F_saturation = ct.descfcn.saturation_nonlinearity(1) + >>> amp = np.linspace(1, 4, 10) + >>> ct.describing_function_plot(H_simple, F_saturation, amp) + [(3.344008947853124, 1.414213099755523)] + """ # Start by drawing a Nyquist curve H_real, H_imag, H_omega = nyquist_plot(H, omega, plot=True, **kwargs) @@ -346,7 +355,7 @@ def __init__(self, ub=1, lb=None): def __call__(self, x): return np.maximum(self.lb, np.minimum(x, self.ub)) - def isstatic(self): + def _isstatic(self): return True def describing_function(self, A): @@ -369,8 +378,8 @@ class relay_hysteresis_nonlinearity(DescribingFunctionNonlinearity): This class creates a nonlinear function representing a a relay with symmetric upper and lower bounds of magnitude `b` and a hysteretic region of width `c` (using the notation from [FBS2e](https://fbsbook.org), - Example 10.12,including the describing function for the nonlinearity. The - following call creates a nonlinear function suitable for describing + Example 10.12, including the describing function for the nonlinearity. + The following call creates a nonlinear function suitable for describing function analysis: F = relay_hysteresis_nonlinearity(b, c) @@ -402,7 +411,7 @@ def __call__(self, x): y = self.b return y - def isstatic(self): + def _isstatic(self): return False def describing_function(self, A): @@ -457,7 +466,7 @@ def __call__(self, x): y.append(self.center) return(np.array(y).reshape(x_array.shape)) - def isstatic(self): + def _isstatic(self): return False def describing_function(self, A): diff --git a/doc/classes.rst b/doc/classes.rst index 20645a162..b948f23aa 100644 --- a/doc/classes.rst +++ b/doc/classes.rst @@ -30,12 +30,3 @@ that allow for linear, nonlinear, and interconnected elements: LinearICSystem LinearIOSystem NonlinearIOSystem - -Additional classes -================== - -.. autosummary:: - :toctree: generated/ - - DescribingFunctionNonlinearity - diff --git a/doc/descfcn.rst b/doc/descfcn.rst new file mode 100644 index 000000000..21a06d03f --- /dev/null +++ b/doc/descfcn.rst @@ -0,0 +1,86 @@ +.. _descfcn-module: + +******************** +Describing functions +******************** + +For nonlinear systems consisting of a feedback connection between a +linear system and a static nonlinearity, it is possible to obtain a +generalization of Nyquist's stability criterion based on the idea of +describing functions. The basic concept involves approximating the +response of a static nonlinearity to an input :math:`u = A e^{\omega +t}` as an output :math:`y = N(A) (A e^{\omega t})`, where :math:`N(A) +\in \mathbb{C}` represents the (amplitude-dependent) gain and phase +associated with the nonlinearity. + +Stability analysis of a linear system :math:`H(s)` with a feedback +nonlinearity :math:`F(x)` is done by looking for amplitudes :math:`A` +and frequencies :math:`\omega` such that + +.. math:: + + H(j\omega) N(A) = -1 + +If such an intersection exists, it indicates that there may be a limit +cycle of amplitude :math:`A` with frequency :math:`\omega`. + +Describing function analysis is a simple method, but it is approximate +because it assumes that higher harmonics can be neglected. + +Module usage +============ + +The function :func:`~control.describing_function` can be used to +compute the describing function of a nonlinear function:: + + N = ct.describing_function(F, A) + +Stability analysis using describing functions is done by looking for +amplitudes :math:`a` and frequencies :math`\omega` such that + +.. math:: + + H(j\omega) = \frac{-1}{N(A)} + +These points can be determined by generating a Nyquist plot in which the +transfer function :math:`H(j\omega)` intersections the negative +reciprocal of the describing function :math:`N(A)`. The +:func:`~control.describing_function_plot` function generates this plot +and returns the amplitude and frequency of any points of intersection:: + + ct.describing_function_plot(H, F, amp_range[, omega_range]) + + +Pre-defined nonlinearities +========================== + +To facilitate the use of common describing functions, the following +nonlinearity constructors are predefined: + +.. code:: python + + backlash_nonlinearity(b) # backlash nonlinearity with width b + relay_hysteresis_nonlinearity(b, c) # relay output of amplitude b with + # hysteresis of half-width c + saturation_nonlinearity(ub[, lb]) # saturation nonlinearity with upper + # bound and (optional) lower bound + +Calling these functions will create an object `F` that can be used for +describing function analysis. For example, to create a saturation +nonlinearity:: + + F = ct.saturation_nonlinearity(1) + +These functions use the +:class:`~control.DescribingFunctionNonlinearity`, which allows an +analytical description of the describing function. + +Module classes and functions +============================ +.. autosummary:: + :toctree: generated/ + + ~control.DescribingFunctionNonlinearity + ~control.backlash_nonlinearity + ~control.relay_hysteresis_nonlinearity + ~control.saturation_nonlinearity diff --git a/doc/describing_functions.ipynb b/doc/describing_functions.ipynb new file mode 120000 index 000000000..14bcb69a4 --- /dev/null +++ b/doc/describing_functions.ipynb @@ -0,0 +1 @@ +../examples/describing_functions.ipynb \ No newline at end of file diff --git a/doc/examples.rst b/doc/examples.rst index b1ffdfce5..e56d46e70 100644 --- a/doc/examples.rst +++ b/doc/examples.rst @@ -42,5 +42,6 @@ using running examples in FBS2e. :maxdepth: 1 cruise + describing_functions steering pvtol-lqr-nested diff --git a/doc/index.rst b/doc/index.rst index 8cfaebc00..3558b0b30 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -29,6 +29,7 @@ implements basic operations for analysis and design of feedback control systems. matlab flatsys iosys + descfcn examples * :ref:`genindex` diff --git a/examples/describing_functions.ipynb b/examples/describing_functions.ipynb index d46ecba95..0881ce467 100644 --- a/examples/describing_functions.ipynb +++ b/examples/describing_functions.ipynb @@ -4,9 +4,10 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Describing Function Analysis Using the Python Control Toolbox (python-control)\n", - "### Richard M. Murray, 27 Jan 2021\n", - "This Jupyter notebook shows how to use the `nltools` module of the Python Control Toolbox to perform describing function analysis of a nonlinear system. A brief introduction to describing functions can be found in [Feedback Systems](https://fbsbook.org), Section 10.5 (Generalized Notions of Gain and Phase)." + "# Describing function analysis\n", + "Richard M. Murray, 27 Jan 2021\n", + "\n", + "This Jupyter notebook shows how to use the `descfcn` module of the Python Control Toolbox to perform describing function analysis of a nonlinear system. A brief introduction to describing functions can be found in [Feedback Systems](https://fbsbook.org), Section 10.5 (Generalized Notions of Gain and Phase)." ] }, { @@ -35,7 +36,7 @@ "source": [ "### Saturation nonlinearity\n", "\n", - "A saturation nonlinearity can be obtained using the `ct.nltools.saturation_nonlinearity` function. This function takes the saturation level as an argument." + "A saturation nonlinearity can be obtained using the `ct.saturation_nonlinearity` function. This function takes the saturation level as an argument." ] }, { @@ -57,7 +58,7 @@ } ], "source": [ - "saturation=ct.nltools.saturation_nonlinearity(0.75)\n", + "saturation=ct.saturation_nonlinearity(0.75)\n", "x = np.linspace(-2, 2, 50)\n", "plt.plot(x, saturation(x))\n", "plt.xlabel(\"Input, x\")\n", @@ -96,7 +97,7 @@ "metadata": {}, "source": [ "### Backlash nonlinearity\n", - "A backlash nonlinearity can be obtained using the `ct.nltools.backlash_nonlinearity` function. This function takes as is argument the size of the backlash region." + "A backlash nonlinearity can be obtained using the `ct.backlash_nonlinearity` function. This function takes as is argument the size of the backlash region." ] }, { @@ -118,7 +119,7 @@ } ], "source": [ - "backlash = ct.nltools.backlash_nonlinearity(0.5)\n", + "backlash = ct.backlash_nonlinearity(0.5)\n", "theta = np.linspace(0, 2*np.pi, 50)\n", "x = np.sin(theta)\n", "plt.plot(x, backlash(x))\n", @@ -232,7 +233,9 @@ "\n", "Consider a nonlinear feedback system consisting of a third-order linear system with transfer function $H(s)$ and a saturation nonlinearity having describing function $N(a)$. Stability can be assessed by looking for points at which \n", "\n", - "$$ H(j\\omega) N(a) = −1$$\n", + "$$\n", + "H(j\\omega) N(a) = -1", + "$$\n", "\n", "The `describing_function_plot` function plots $H(j\\omega)$ and $-1/N(a)$ and prints out the the amplitudes and frequencies corresponding to intersections of these curves. " ] @@ -271,7 +274,7 @@ "omega = np.logspace(-3, 3, 500)\n", "\n", "# Nonlinearity\n", - "F_saturation = ct.nltools.saturation_nonlinearity(1)\n", + "F_saturation = ct.saturation_nonlinearity(1)\n", "amp = np.linspace(00, 5, 50)\n", "\n", "# Describing function plot (return value = amp, freq)\n", @@ -362,7 +365,7 @@ "omega = np.logspace(-3, 3, 500)\n", "\n", "# Nonlinearity\n", - "F_backlash = ct.nltools.backlash_nonlinearity(1)\n", + "F_backlash = ct.backlash_nonlinearity(1)\n", "amp = np.linspace(0.6, 5, 50)\n", "\n", "# Describing function plot\n", diff --git a/examples/steering.ipynb b/examples/steering.ipynb index 1e6b022a1..eb22a5909 100644 --- a/examples/steering.ipynb +++ b/examples/steering.ipynb @@ -5,23 +5,12 @@ "metadata": {}, "source": [ "# Vehicle steering\n", - "Karl J. Astrom and Richard M. Murray \n", + "Karl J. Astrom and Richard M. Murray\n", "23 Jul 2019\n", "\n", "This notebook contains the computations for the vehicle steering running example in *Feedback Systems*." ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "RMM comments to Karl, 27 Jun 2019\n", - "* I'm using this notebook to walk through all of the vehicle steering examples and make sure that all of the parameters, conditions, and maximum steering angles are consitent and reasonable.\n", - "* Please feel free to send me comments on the contents as well as the bulletted notes, in whatever form is most convenient.\n", - "* Once we have sorted out all of the settings we want to use, I'll copy over the changes into the MATLAB files that we use for creating the figures in the book.\n", - "* These notes will be removed from the notebook once we have finalized everything." - ] - }, { "cell_type": "code", "execution_count": 1, From 17ed781721b359b0199dc18e4f39d5725a0ecbd4 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 30 Jan 2021 17:27:06 -0800 Subject: [PATCH 167/260] address @roryyorke review comments --- control/descfcn.py | 90 +++++++++++++++-------------- control/freqplot.py | 6 +- control/iosys.py | 31 ++++++++-- control/tests/descfcn_test.py | 26 ++++++--- doc/descfcn.rst | 4 +- examples/describing_functions.ipynb | 2 +- 6 files changed, 96 insertions(+), 63 deletions(-) diff --git a/control/descfcn.py b/control/descfcn.py index 3d2b50dd0..aa2cc4264 100644 --- a/control/descfcn.py +++ b/control/descfcn.py @@ -3,11 +3,11 @@ # RMM, 23 Jan 2021 # # This module adds functions for carrying out analysis of systems with -# static nonlinear feedback functions using describing functions. +# memoryless nonlinear feedback functions using describing functions. # """The :mod:~control.descfcn` module contains function for performing -closed loop analysis of systems with static nonlinearities using +closed loop analysis of systems with memoryless nonlinearities using describing function analysis. """ @@ -26,21 +26,21 @@ # Class for nonlinearities with a built-in describing function class DescribingFunctionNonlinearity(): - """Base class for nonlinear functions with a describing function + """Base class for nonlinear systems with a describing function This class is intended to be used as a base class for nonlinear functions - that have a analytically defined describing function (accessed via the - :meth:`describing_function` method). Objects using this class should also - implement a `call` method that evaluates the nonlinearity at a given point - and an `_isstatic` method that is `True` if the nonlinearity has no - internal state. + that have an analytically defined describing function. Subclasses should + override the `__call__` and `describing_function` methods and (optionally) + the `_isstatic` method (should be `False` if `__call__` updates the + instance state). """ def __init__(self): - """Initailize a describing function nonlinearity""" + """Initailize a describing function nonlinearity (optional)""" pass def __call__(self, A): + """Evaluate the nonlinearity at a (scalar) input value""" raise NotImplementedError( "__call__() not implemented for this function (internal error)") @@ -56,9 +56,15 @@ def describing_function(self, A): "describing function not implemented for this function") def _isstatic(self): - """Return True if the function has not internal state""" - raise NotImplementedError( - "_isstatic() not implemented for this function (internal error)") + """Return True if the function has no internal state (memoryless) + + This internal function is used to optimize numerical computation of + the describing function. It can be set to `True` if the instance + maintains no internal memory of the instance state. Assumed False by + default. + + """ + return False # Utility function used to compute common describing functions def _f(self, x): @@ -70,10 +76,10 @@ def describing_function( F, A, num_points=100, zero_check=True, try_method=True): """Numerical compute the describing function of a nonlinear function - The describing function of a static nonlinear function is given by - magnitude and phase of the first harmonic of the function when evaluated - along a sinusoidal input :math:`a \\sin \\omega t`. This function returns - the magnitude and phase of the describing function at amplitude :math:`A`. + The describing function of a nonlinearity is given by magnitude and phase + of the first harmonic of the function when evaluated along a sinusoidal + input :math:`A \\sin \\omega t`. This function returns the magnitude and + phase of the describing function at amplitude :math:`A`. Parameters ---------- @@ -119,11 +125,15 @@ def describing_function( """ # If there is an analytical solution, trying using that first if try_method and hasattr(F, 'describing_function'): - # Go through all of the amplitudes we were given - df = [] - for a in np.atleast_1d(A): - df.append(F.describing_function(a)) - return np.array(df).reshape(np.shape(A)) + try: + # Go through all of the amplitudes we were given + df = [] + for a in np.atleast_1d(A): + df.append(F.describing_function(a)) + return np.array(df).reshape(np.shape(A)) + except NotImplementedError: + # Drop through and do the numerical computation + pass # # The describing function of a nonlinear function F() can be computed by @@ -136,8 +146,8 @@ def describing_function( # # N(A) = M_1(A) e^{j \phi_1(A)} / A # - # To compute this, we compute F(\theta) for \theta between 0 and 2 \pi, - # use the identities + # To compute this, we compute F(A \sin\theta) for \theta between 0 and 2 + # \pi, use the identities # # \sin(\theta + \phi) = \sin\theta \cos\phi + \cos\theta \sin\phi # \int_0^{2\pi} \sin^2 \theta d\theta = \pi @@ -145,15 +155,15 @@ def describing_function( # # and then integrate the product against \sin\theta and \cos\theta to obtain # - # \int_0^{2\pi} F(a\sin\theta) \sin\theta d\theta = M_1 \pi \cos\phi - # \int_0^{2\pi} F(a\sin\theta) \cos\theta d\theta = M_1 \pi \sin\phi + # \int_0^{2\pi} F(A\sin\theta) \sin\theta d\theta = M_1 \pi \cos\phi + # \int_0^{2\pi} F(A\sin\theta) \cos\theta d\theta = M_1 \pi \sin\phi # # From these we can compute M1 and \phi. # - # Evaluate over a full range of angles - theta = np.linspace(0, 2*np.pi, num_points) - dtheta = theta[1] - theta[0] + # Evaluate over a full range of angles (leave off endpoint a la DFT) + theta, dtheta = np.linspace( + 0, 2*np.pi, num_points, endpoint=False, retstep=True) sin_theta = np.sin(theta) cos_theta = np.cos(theta) @@ -175,10 +185,10 @@ def describing_function( elif a < 0: raise ValueError("cannot evaluate describing function for A < 0") - # Save the scaling factor for to make the formulas simpler + # Save the scaling factor to make the formulas simpler scale = dtheta / np.pi / a - # Evaluate the function (twice) along a sinusoid (for internal state) + # Evaluate the function along a sinusoid F_eval = np.array([F(x) for x in a*sin_theta]).squeeze() # Compute the prjections onto sine and cosine @@ -353,7 +363,7 @@ def __init__(self, ub=1, lb=None): self.ub = ub def __call__(self, x): - return np.maximum(self.lb, np.minimum(x, self.ub)) + return np.clip(x, self.lb, self.ub) def _isstatic(self): return True @@ -453,18 +463,12 @@ def __init__(self, b): self.center = 0 # current center position def __call__(self, x): - # Convert input to an array - x_array = np.array(x) - - y = [] - for x in np.atleast_1d(x_array): - # If we are outside the backlash, move and shift the center - if x - self.center > self.b/2: - self.center = x - self.b/2 - elif x - self.center < -self.b/2: - self.center = x + self.b/2 - y.append(self.center) - return(np.array(y).reshape(x_array.shape)) + # If we are outside the backlash, move and shift the center + if x - self.center > self.b/2: + self.center = x - self.b/2 + elif x - self.center < -self.b/2: + self.center = x + self.b/2 + return self.center def _isstatic(self): return False diff --git a/control/freqplot.py b/control/freqplot.py index daf73d931..03a7dadfb 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -522,10 +522,8 @@ def gen_zero_centered_series(val_min, val_max, period): def nyquist_plot( syslist, omega=None, plot=True, omega_limits=None, omega_num=None, - label_freq=0, arrowhead_length=0.1, arrowhead_width=0.1, - mirror='--', color=None, *args, **kwargs): - """ - Nyquist plot for a system + label_freq=0, color=None, mirror='--', arrowhead_length=0.1, + arrowhead_width=0.1, *args, **kwargs): """Nyquist plot for a system Plots a Nyquist plot for the system over a (optional) frequency range. diff --git a/control/iosys.py b/control/iosys.py index e3ee3025d..b1bfe9330 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -325,6 +325,10 @@ def __neg__(sys): # Return the newly created system return newsys + def _isstatic(self): + """Check to see if a system is a static system (no states)""" + return self.nstates == 0 + # Utility function to parse a list of signals def _process_signal_list(self, signals, prefix='s'): if signals is None: @@ -450,10 +454,6 @@ def issiso(self): """Check to see if a system is single input, single output""" return self.ninputs == 1 and self.noutputs == 1 - def isstatic(self): - """Check to see if a system is a static system (no states)""" - return self.nstates == 0 - def feedback(self, other=1, sign=-1, params={}): """Feedback interconnection between two input/output systems @@ -812,9 +812,28 @@ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, self._current_params = params.copy() # Return the value of a static nonlinear system - def __call__(sys, u, squeeze=None, params=None): + def __call__(sys, u, params=None, squeeze=None): + """Evaluate a (static) nonlinearity at a given input value + + If a nonlinear I/O system has not internal state, then evaluating the + system at an input `u` gives the output `y = F(u)`, determined by the + output function. + + Parameters + ---------- + params : dict, optional + Parameter values for the system. Passed to the evaluation function + for the system as default values, overriding internal defaults. + squeeze : bool, optional + If True and if the system has a single output, return the system + output as a 1D array rather than a 2D array. If False, return the + system output as a 2D array even if the system is SISO. Default + value set by config.defaults['control.squeeze_time_response']. + + """ + # Make sure the call makes sense - if not sys.isstatic(): + if not sys._isstatic(): raise TypeError( "function evaluation is only supported for static " "input/output systems") diff --git a/control/tests/descfcn_test.py b/control/tests/descfcn_test.py index c9d52d472..184227cb9 100644 --- a/control/tests/descfcn_test.py +++ b/control/tests/descfcn_test.py @@ -17,10 +17,10 @@ # Static function via a class -class saturation_class(): +class saturation_class: # Static nonlinear saturation function def __call__(self, x, lb=-1, ub=1): - return np.maximum(lb, np.minimum(x, ub)) + return np.clip(x, lb, ub) # Describing function for a saturation function def describing_function(self, a): @@ -33,7 +33,7 @@ def describing_function(self, a): # Static function without a class def saturation(x): - return np.maximum(-1, np.minimum(x, 1)) + return np.clip(x, -1, 1) # Static nonlinear system implementing saturation @@ -47,7 +47,7 @@ def _satfcn(t, x, u, params): def test_static_nonlinear_call(satsys): # Make sure that the saturation system is a static nonlinearity - assert satsys.isstatic() + assert satsys._isstatic() # Make sure the saturation function is doing the right computation input = [-2, -1, -0.5, 0, 0.5, 1, 2] @@ -61,7 +61,7 @@ def test_static_nonlinear_call(satsys): np.testing.assert_array_equal(satsys([0.]), [0.]) # Test SIMO nonlinearity - def _simofcn(t, x, u, params={}): + def _simofcn(t, x, u, params): return np.array([np.cos(u), np.sin(u)]) simo_sys = ct.NonlinearIOSystem(None, outfcn=_simofcn, input=1, output=2) np.testing.assert_array_equal(simo_sys([0.]), [1, 0]) @@ -72,7 +72,6 @@ def _misofcn(t, x, u, params={}): return np.array([np.sin(u[0]) * np.cos(u[1])]) miso_sys = ct.NonlinearIOSystem(None, outfcn=_misofcn, input=2, output=1) np.testing.assert_array_equal(miso_sys([0, 0]), [0]) - np.testing.assert_array_equal(miso_sys([0, 0]), [0]) np.testing.assert_array_equal(miso_sys([0, 0], squeeze=True), [0]) @@ -85,6 +84,10 @@ def test_saturation_describing_function(satsys): df_anal = [satfcn.describing_function(a) for a in amprange] # Compute describing function for a static function + df_fcn = [ct.describing_function(saturation, a) for a in amprange] + np.testing.assert_almost_equal(df_fcn, df_anal, decimal=3) + + # Compute describing function for a describing function nonlinearity df_fcn = [ct.describing_function(satfcn, a) for a in amprange] np.testing.assert_almost_equal(df_fcn, df_anal, decimal=3) @@ -100,6 +103,15 @@ def test_saturation_describing_function(satsys): with pytest.raises(ValueError, match="cannot evaluate"): ct.describing_function(saturation, -1) + # Create describing function nonlinearity w/out describing_function method + # and make sure it drops through to the underlying computation + class my_saturation(ct.DescribingFunctionNonlinearity): + def __call__(self, x): + return saturation(x) + satfcn_nometh = my_saturation() + df_nometh = [ct.describing_function(satfcn_nometh, a) for a in amprange] + np.testing.assert_almost_equal(df_nometh, df_anal, decimal=3) + @pytest.mark.parametrize("fcn, amin, amax", [ [saturation_nonlinearity(1), 0, 10], @@ -118,7 +130,7 @@ def test_describing_function(fcn, amin, amax): # Make sure the describing function method also works df_meth = ct.describing_function(fcn, amprange, zero_check=False) - np.testing.assert_almost_equal(df_meth, df_anal, decimal=1) + np.testing.assert_almost_equal(df_meth, df_anal) # Make sure that evaluation at negative amplitude generates an exception with pytest.raises(ValueError, match="cannot evaluate"): diff --git a/doc/descfcn.rst b/doc/descfcn.rst index 21a06d03f..240bbb894 100644 --- a/doc/descfcn.rst +++ b/doc/descfcn.rst @@ -8,8 +8,8 @@ For nonlinear systems consisting of a feedback connection between a linear system and a static nonlinearity, it is possible to obtain a generalization of Nyquist's stability criterion based on the idea of describing functions. The basic concept involves approximating the -response of a static nonlinearity to an input :math:`u = A e^{\omega -t}` as an output :math:`y = N(A) (A e^{\omega t})`, where :math:`N(A) +response of a static nonlinearity to an input :math:`u = A e^{j \omega +t}` as an output :math:`y = N(A) (A e^{j \omega t})`, where :math:`N(A) \in \mathbb{C}` represents the (amplitude-dependent) gain and phase associated with the nonlinearity. diff --git a/examples/describing_functions.ipynb b/examples/describing_functions.ipynb index 0881ce467..5bdf888dd 100644 --- a/examples/describing_functions.ipynb +++ b/examples/describing_functions.ipynb @@ -122,7 +122,7 @@ "backlash = ct.backlash_nonlinearity(0.5)\n", "theta = np.linspace(0, 2*np.pi, 50)\n", "x = np.sin(theta)\n", - "plt.plot(x, backlash(x))\n", + "plt.plot(x, [backlash(z) for z in x])\n", "plt.xlabel(\"Input, x\")\n", "plt.ylabel(\"Output, y = backlash(x)\")\n", "plt.title(\"Input/output map for a backlash nonlinearity\");" From b29cedf1e02c71e48fbc46221e0ecddd1dc5f634 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 31 Jan 2021 10:42:02 -0800 Subject: [PATCH 168/260] additional updates based on @roryyorke review feedback --- control/descfcn.py | 49 ++++++++++++++--------------- control/tests/descfcn_test.py | 16 +++++----- examples/describing_functions.ipynb | 8 ++--- 3 files changed, 35 insertions(+), 38 deletions(-) diff --git a/control/descfcn.py b/control/descfcn.py index aa2cc4264..236125b2e 100644 --- a/control/descfcn.py +++ b/control/descfcn.py @@ -21,7 +21,7 @@ from .freqplot import nyquist_plot __all__ = ['describing_function', 'describing_function_plot', - 'DescribingFunctionNonlinearity', 'backlash_nonlinearity', + 'DescribingFunctionNonlinearity', 'friction_backlash_nonlinearity', 'relay_hysteresis_nonlinearity', 'saturation_nonlinearity'] # Class for nonlinearities with a built-in describing function @@ -95,7 +95,7 @@ def describing_function( use the :class:`~control.DescribingFunctionNonlinearity` class, which provides this functionality. - A : float or array_like + A : array_like The amplitude(s) at which the describing function should be calculated. zero_check : bool, optional @@ -112,25 +112,19 @@ def describing_function( Returns ------- - df : complex or array of complex - The (complex) value of the describing function at the given amplitude. - If the `A` parameter is an array of amplitudes, then an array of - corresponding describing function values is returned. + df : array of complex + The (complex) value of the describing function at the given amplitudes. Raises ------ TypeError - If A < 0 or if A = 0 and the function F(0) is non-zero. + If A[i] < 0 or if A[i] = 0 and the function F(0) is non-zero. """ # If there is an analytical solution, trying using that first if try_method and hasattr(F, 'describing_function'): try: - # Go through all of the amplitudes we were given - df = [] - for a in np.atleast_1d(A): - df.append(F.describing_function(a)) - return np.array(df).reshape(np.shape(A)) + return np.vectorize(F.describing_function, otypes=[complex])(A) except NotImplementedError: # Drop through and do the numerical computation pass @@ -170,17 +164,20 @@ def describing_function( # See if this is a static nonlinearity (assume not, just in case) if not hasattr(F, '_isstatic') or not F._isstatic(): # Initialize any internal state by going through an initial cycle - [F(x) for x in np.atleast_1d(A).min() * sin_theta] + for x in np.atleast_1d(A).min() * sin_theta: + F(x) # ignore the result # Go through all of the amplitudes we were given - df = [] - for a in np.atleast_1d(A): + retdf = np.empty(np.shape(A), dtype=complex) + df = retdf # Access to the return array + df.shape = (-1, ) # as a 1D array + for i, a in enumerate(np.atleast_1d(A)): # Make sure we got a valid argument if a == 0: # Check to make sure the function has zero output with zero input if zero_check and np.squeeze(F(0.)) != 0: raise ValueError("function must evaluate to zero at zero") - df.append(1.) + df[i] = 1. continue elif a < 0: raise ValueError("cannot evaluate describing function for A < 0") @@ -195,10 +192,10 @@ def describing_function( df_real = (F_eval @ sin_theta) * scale # = M_1 \cos\phi / a df_imag = (F_eval @ cos_theta) * scale # = M_1 \sin\phi / a - df.append(df_real + 1j * df_imag) + df[i] = df_real + 1j * df_imag # Return the values in the same shape as they were requested - return np.array(df).reshape(np.shape(A)) + return retdf def describing_function_plot( @@ -437,16 +434,16 @@ def describing_function(self, A): return df_real + 1j * df_imag -# Backlash nonlinearity (#48 in Gelb and Vander Velde, 1968) -class backlash_nonlinearity(DescribingFunctionNonlinearity): +# Friction-dominated backlash nonlinearity (#48 in Gelb and Vander Velde, 1968) +class friction_backlash_nonlinearity(DescribingFunctionNonlinearity): """Backlash nonlinearity for use in describing function analysis - This class creates a nonlinear function representing a backlash - nonlinearity ,including the describing function for the nonlinearity. The - following call creates a nonlinear function suitable for describing - function analysis: + This class creates a nonlinear function representing a friction-dominated + backlash nonlinearity ,including the describing function for the + nonlinearity. The following call creates a nonlinear function suitable + for describing function analysis: - F = backlash_nonlinearity(b) + F = friction_backlash_nonlinearity(b) This function maintains an internal state representing the 'center' of a mechanism with backlash. If the new input is within `b/2` of the current @@ -457,7 +454,7 @@ class backlash_nonlinearity(DescribingFunctionNonlinearity): def __init__(self, b): # Create the describing function nonlinearity object - super(backlash_nonlinearity, self).__init__() + super(friction_backlash_nonlinearity, self).__init__() self.b = b # backlash distance self.center = 0 # current center position diff --git a/control/tests/descfcn_test.py b/control/tests/descfcn_test.py index 184227cb9..d26e2c67a 100644 --- a/control/tests/descfcn_test.py +++ b/control/tests/descfcn_test.py @@ -12,8 +12,8 @@ import numpy as np import control as ct import math -from control.descfcn import saturation_nonlinearity, backlash_nonlinearity, \ - relay_hysteresis_nonlinearity +from control.descfcn import saturation_nonlinearity, \ + friction_backlash_nonlinearity, relay_hysteresis_nonlinearity # Static function via a class @@ -84,15 +84,15 @@ def test_saturation_describing_function(satsys): df_anal = [satfcn.describing_function(a) for a in amprange] # Compute describing function for a static function - df_fcn = [ct.describing_function(saturation, a) for a in amprange] + df_fcn = ct.describing_function(saturation, amprange) np.testing.assert_almost_equal(df_fcn, df_anal, decimal=3) # Compute describing function for a describing function nonlinearity - df_fcn = [ct.describing_function(satfcn, a) for a in amprange] + df_fcn = ct.describing_function(satfcn, amprange) np.testing.assert_almost_equal(df_fcn, df_anal, decimal=3) # Compute describing function for a static I/O system - df_sys = [ct.describing_function(satsys, a) for a in amprange] + df_sys = ct.describing_function(satsys, amprange) np.testing.assert_almost_equal(df_sys, df_anal, decimal=3) # Compute describing function on an array of values @@ -109,13 +109,13 @@ class my_saturation(ct.DescribingFunctionNonlinearity): def __call__(self, x): return saturation(x) satfcn_nometh = my_saturation() - df_nometh = [ct.describing_function(satfcn_nometh, a) for a in amprange] + df_nometh = ct.describing_function(satfcn_nometh, amprange) np.testing.assert_almost_equal(df_nometh, df_anal, decimal=3) @pytest.mark.parametrize("fcn, amin, amax", [ [saturation_nonlinearity(1), 0, 10], - [backlash_nonlinearity(2), 1, 10], + [friction_backlash_nonlinearity(2), 1, 10], [relay_hysteresis_nonlinearity(1, 1), 3, 10], ]) def test_describing_function(fcn, amin, amax): @@ -161,7 +161,7 @@ def test_describing_function_plot(): # Multiple intersections H_multiple = H_simple * ct.tf(*ct.pade(5, 4)) * 4 omega = np.logspace(-1, 3, 50) - F_backlash = ct.descfcn.backlash_nonlinearity(1) + F_backlash = ct.descfcn.friction_backlash_nonlinearity(1) amp = np.linspace(0.6, 5, 50) xsects = ct.describing_function_plot(H_multiple, F_backlash, amp, omega) for a, w in xsects: diff --git a/examples/describing_functions.ipynb b/examples/describing_functions.ipynb index 5bdf888dd..7d090bf17 100644 --- a/examples/describing_functions.ipynb +++ b/examples/describing_functions.ipynb @@ -97,7 +97,7 @@ "metadata": {}, "source": [ "### Backlash nonlinearity\n", - "A backlash nonlinearity can be obtained using the `ct.backlash_nonlinearity` function. This function takes as is argument the size of the backlash region." + "A friction-dominated backlash nonlinearity can be obtained using the `ct.friction_backlash_nonlinearity` function. This function takes as is argument the size of the backlash region." ] }, { @@ -119,13 +119,13 @@ } ], "source": [ - "backlash = ct.backlash_nonlinearity(0.5)\n", + "backlash = ct.friction_backlash_nonlinearity(0.5)\n", "theta = np.linspace(0, 2*np.pi, 50)\n", "x = np.sin(theta)\n", "plt.plot(x, [backlash(z) for z in x])\n", "plt.xlabel(\"Input, x\")\n", "plt.ylabel(\"Output, y = backlash(x)\")\n", - "plt.title(\"Input/output map for a backlash nonlinearity\");" + "plt.title(\"Input/output map for a friction-dominated backlash nonlinearity\");" ] }, { @@ -365,7 +365,7 @@ "omega = np.logspace(-3, 3, 500)\n", "\n", "# Nonlinearity\n", - "F_backlash = ct.backlash_nonlinearity(1)\n", + "F_backlash = ct.friction_backlash_nonlinearity(1)\n", "amp = np.linspace(0.6, 5, 50)\n", "\n", "# Describing function plot\n", From 93d97cc18b224afd60185b67109d5142e7c4c9bc Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 6 Feb 2021 13:22:59 -0800 Subject: [PATCH 169/260] small fixes rebasing against master --- control/freqplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/freqplot.py b/control/freqplot.py index 03a7dadfb..0876f1dde 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -523,7 +523,8 @@ def gen_zero_centered_series(val_min, val_max, period): def nyquist_plot( syslist, omega=None, plot=True, omega_limits=None, omega_num=None, label_freq=0, color=None, mirror='--', arrowhead_length=0.1, - arrowhead_width=0.1, *args, **kwargs): """Nyquist plot for a system + arrowhead_width=0.1, *args, **kwargs): + """Nyquist plot for a system Plots a Nyquist plot for the system over a (optional) frequency range. From ada3eb2e8c7274474ee476e5db996753367bafcd Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 6 Feb 2021 15:02:30 -0800 Subject: [PATCH 170/260] automatic signal summing and splitting (fix) --- control/iosys.py | 24 ++++++++++++------------ control/tests/interconnect_test.py | 20 ++++++++------------ 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 50851cbf0..b260495aa 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -2042,6 +2042,9 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], inplist = [inplist] new_inplist = [] for signal in inplist: + # Create an empty connection and append to inplist + connection = [] + # Check for signal names without a system name if isinstance(signal, str) and len(signal.split('.')) == 1: # Get the signal name @@ -2049,18 +2052,15 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], sign = '-' if signal[0] == '-' else "" # Look for the signal name as a system input - new_name = None for sys in syslist: if name in sys.input_index.keys(): - if new_name is not None: - raise ValueError("signal %s is not unique" % name) - new_name = sign + sys.name + "." + name + connection.append(sign + sys.name + "." + name) # Make sure we found the name - if new_name is None: + if len(connection) == 0: raise ValueError("could not find signal %s" % name) else: - new_inplist.append(new_name) + new_inplist.append(connection) else: new_inplist.append(signal) inplist = new_inplist @@ -2070,6 +2070,9 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], outlist = [outlist] new_outlist = [] for signal in outlist: + # Create an empty connection and append to inplist + connection = [] + # Check for signal names without a system name if isinstance(signal, str) and len(signal.split('.')) == 1: # Get the signal name @@ -2077,18 +2080,15 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], sign = '-' if signal[0] == '-' else "" # Look for the signal name as a system output - new_name = None for sys in syslist: if name in sys.output_index.keys(): - if new_name is not None: - raise ValueError("signal %s is not unique" % name) - new_name = sign + sys.name + "." + name + connection.append(sign + sys.name + "." + name) # Make sure we found the name - if new_name is None: + if len(connection) == 0: raise ValueError("could not find signal %s" % name) else: - new_outlist.append(new_name) + new_outlist.append(connection) else: new_outlist.append(signal) outlist = new_outlist diff --git a/control/tests/interconnect_test.py b/control/tests/interconnect_test.py index 34daffb75..e9fccf893 100644 --- a/control/tests/interconnect_test.py +++ b/control/tests/interconnect_test.py @@ -119,18 +119,14 @@ def test_interconnect_implicit(): # inputs=['r', '-y'], output='e', dimension=2) # S = control.interconnect([P, C, sumblk], inplist='r', outlist='y') - # Make sure that repeated inplist/outlist names generate an error - # Input not unique - Cbad = ct.tf2io(ct.tf(10, [1, 1]), inputs='r', outputs='x', name='C') - with pytest.raises(ValueError, match="not unique"): - Tio_sum = ct.interconnect( - (Cbad, P, sumblk), inplist=['r'], outlist=['y']) - - # Output not unique - Cbad = ct.tf2io(ct.tf(10, [1, 1]), inputs='e', outputs='y', name='C') - with pytest.raises(ValueError, match="not unique"): - Tio_sum = ct.interconnect( - (Cbad, P, sumblk), inplist=['r'], outlist=['y']) + # Make sure that repeated inplist/outlist names work + pi_io = ct.interconnect( + (kp_io, ki_io), inplist=['e'], outlist=['u']) + pi_ss = ct.tf2ss(kp + ki) + np.testing.assert_almost_equal(pi_io.A, pi_ss.A) + np.testing.assert_almost_equal(pi_io.B, pi_ss.B) + np.testing.assert_almost_equal(pi_io.C, pi_ss.C) + np.testing.assert_almost_equal(pi_io.D, pi_ss.D) # Signal not found with pytest.raises(ValueError, match="could not find"): From 2538a06bc4553a23603828214034f8de49cddd37 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 6 Feb 2021 19:13:10 -0800 Subject: [PATCH 171/260] allow parameter variants and inplist/outlist defaults --- control/iosys.py | 71 +++++++++++++++++++++++++----- control/tests/interconnect_test.py | 46 ++++++++++++++++++- 2 files changed, 104 insertions(+), 13 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index b260495aa..49efdc2e8 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -612,7 +612,7 @@ class LinearIOSystem(InputOutputSystem, StateSpace): """ def __init__(self, linsys, inputs=None, outputs=None, states=None, - name=None): + name=None, **kwargs): """Create an I/O system from a state space linear system. Converts a :class:`~control.StateSpace` system into an @@ -658,6 +658,10 @@ def __init__(self, linsys, inputs=None, outputs=None, states=None, if not isinstance(linsys, StateSpace): raise TypeError("Linear I/O system must be a state space object") + # Look for 'input' and 'output' parameter name variants + inputs = _parse_signal_parameter(inputs, 'input', kwargs) + outputs = _parse_signal_parameter(outputs, 'output', kwargs, end=True) + # Create the I/O system object super(LinearIOSystem, self).__init__( inputs=linsys.ninputs, outputs=linsys.noutputs, @@ -707,8 +711,7 @@ class NonlinearIOSystem(InputOutputSystem): """ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, - states=None, params={}, - name=None, **kwargs): + states=None, params={}, name=None, **kwargs): """Create a nonlinear I/O system given update and output functions. Creates an :class:`~control.InputOutputSystem` for a nonlinear system @@ -775,17 +778,25 @@ def __init__(self, updfcn, outfcn=None, inputs=None, outputs=None, Nonlinear system represented as an input/output system. """ + # Look for 'input' and 'output' parameter name variants + inputs = _parse_signal_parameter(inputs, 'input', kwargs) + outputs = _parse_signal_parameter(outputs, 'output', kwargs) + # Store the update and output functions self.updfcn = updfcn self.outfcn = outfcn # Initialize the rest of the structure - dt = kwargs.get('dt', config.defaults['control.default_dt']) + dt = kwargs.pop('dt', config.defaults['control.default_dt']) super(NonlinearIOSystem, self).__init__( inputs=inputs, outputs=outputs, states=states, params=params, dt=dt, name=name ) + # Make sure all input arguments got parsed + if kwargs: + raise TypeError("unknown parameters %s" % kwargs) + # Check to make sure arguments are consistent if updfcn is None: if self.nstates is None: @@ -834,7 +845,7 @@ class InterconnectedSystem(InputOutputSystem): """ def __init__(self, syslist, connections=[], inplist=[], outlist=[], inputs=None, outputs=None, states=None, - params={}, dt=None, name=None): + params={}, dt=None, name=None, **kwargs): """Create an I/O system from a list of systems + connection info. The InterconnectedSystem class is used to represent an input/output @@ -846,6 +857,10 @@ def __init__(self, syslist, connections=[], inplist=[], outlist=[], See :func:`~control.interconnect` for a list of parameters. """ + # Look for 'input' and 'output' parameter name variants + inputs = _parse_signal_parameter(inputs, 'input', kwargs) + outputs = _parse_signal_parameter(outputs, 'output', kwargs, end=True) + # Convert input and output names to lists if they aren't already if not isinstance(inplist, (list, tuple)): inplist = [inplist] @@ -1810,6 +1825,15 @@ def linearize(sys, xeq, ueq=[], t=0, params={}, **kw): return sys.linearize(xeq, ueq, t=t, params=params, **kw) +# Utility function to parse a signal parameter +def _parse_signal_parameter(value, name, kwargs, end=False): + if value is None and name in kwargs: + value = list(kwargs.pop(name)) + if end and kwargs: + raise TypeError("unknown parameters %s" % kwargs) + return value + + def _find_size(sysval, vecval): """Utility function to find the size of a system parameter @@ -1849,7 +1873,7 @@ def tf2io(*args, **kwargs): # Function to create an interconnected system def interconnect(syslist, connections=None, inplist=[], outlist=[], inputs=None, outputs=None, states=None, - params={}, dt=None, name=None): + params={}, dt=None, name=None, **kwargs): """Interconnect a set of input/output systems. This function creates a new system that is an interconnection of a set of @@ -1995,7 +2019,7 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], >>> P = control.tf2io(control.tf(1, [1, 0]), inputs='u', outputs='y') >>> C = control.tf2io(control.tf(10, [1, 1]), inputs='e', outputs='u') >>> sumblk = control.summing_junction(inputs=['r', '-y'], output='e') - >>> T = control.interconnect([P, C, sumblk], inplist='r', outlist='y') + >>> T = control.interconnect([P, C, sumblk], input='r', output='y') Notes ----- @@ -2020,7 +2044,14 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], treated as both a :class:`~control.StateSpace` system as well as an :class:`~control.InputOutputSystem`. + The `input` and `output` keywords can be used instead of `inputs` and + `outputs`, for more natural naming of SISO systems. + """ + # Look for 'input' and 'output' parameter name variants + inputs = _parse_signal_parameter(inputs, 'input', kwargs) + outputs = _parse_signal_parameter(outputs, 'output', kwargs, end=True) + # If connections was not specified, set up default connection list if connections is None: # For each system input, look for outputs with the same name @@ -2037,6 +2068,12 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], # Use an empty connections list connections = [] + # If inplist/outlist is not present, try using inputs/outputs instead + if not inplist and inputs is not None: + inplist = list(inputs) + if not outlist and outputs is not None: + outlist = list(outputs) + # Process input list if not isinstance(inplist, (list, tuple)): inplist = [inplist] @@ -2106,7 +2143,9 @@ def interconnect(syslist, connections=None, inplist=[], outlist=[], # Summing junction -def summing_junction(inputs, output='y', dimension=None, name=None, prefix='u'): +def summing_junction( + inputs=None, output=None, dimension=None, name=None, + prefix='u', **kwargs): """Create a summing junction as an input/output system. This function creates a static input/output system that outputs the sum of @@ -2145,10 +2184,10 @@ def summing_junction(inputs, output='y', dimension=None, name=None, prefix='u'): Example ------- - >>> P = control.tf2io(ct.tf(1, [1, 0]), inputs='u', outputs='y') - >>> C = control.tf2io(ct.tf(10, [1, 1]), inputs='e', outputs='u') + >>> P = control.tf2io(ct.tf(1, [1, 0]), input='u', output='y') + >>> C = control.tf2io(ct.tf(10, [1, 1]), input='e', output='u') >>> sumblk = control.summing_junction(inputs=['r', '-y'], output='e') - >>> T = control.interconnect((P, C, sumblk), inplist='r', outlist='y') + >>> T = control.interconnect((P, C, sumblk), input='r', output='y') """ # Utility function to parse input and output signal lists @@ -2181,6 +2220,16 @@ def _parse_list(signals, signame='input', prefix='u'): # Return the parsed list return nsignals, names, gains + # Look for 'input' and 'output' parameter name variants + inputs = _parse_signal_parameter(inputs, 'input', kwargs) + output = _parse_signal_parameter(output, 'outputs', kwargs, end=True) + + # Default values for inputs and output + if inputs is None: + raise TypeError("input specification is required") + if output is None: + output = 'y' + # Read the input list ninputs, input_names, input_gains = _parse_list( inputs, signame="input", prefix=prefix) diff --git a/control/tests/interconnect_test.py b/control/tests/interconnect_test.py index e9fccf893..302c45278 100644 --- a/control/tests/interconnect_test.py +++ b/control/tests/interconnect_test.py @@ -45,11 +45,11 @@ def test_summing_junction(inputs, output, dimension, D): def test_summation_exceptions(): # Bad input description with pytest.raises(ValueError, match="could not parse input"): - sumblk = ct.summing_junction(None, 'y') + sumblk = ct.summing_junction(np.pi, 'y') # Bad output description with pytest.raises(ValueError, match="could not parse output"): - sumblk = ct.summing_junction('u', None) + sumblk = ct.summing_junction('u', np.pi) # Bad input dimension with pytest.raises(ValueError, match="unrecognized dimension"): @@ -128,6 +128,14 @@ def test_interconnect_implicit(): np.testing.assert_almost_equal(pi_io.C, pi_ss.C) np.testing.assert_almost_equal(pi_io.D, pi_ss.D) + # Default input and output lists, along with singular versions + Tio_sum = ct.interconnect( + (kp_io, ki_io, P, sumblk), input='r', output='y') + np.testing.assert_almost_equal(Tio_sum.A, Tss.A) + np.testing.assert_almost_equal(Tio_sum.B, Tss.B) + np.testing.assert_almost_equal(Tio_sum.C, Tss.C) + np.testing.assert_almost_equal(Tio_sum.D, Tss.D) + # Signal not found with pytest.raises(ValueError, match="could not find"): Tio_sum = ct.interconnect( @@ -168,3 +176,37 @@ def test_interconnect_docstring(): np.testing.assert_almost_equal(T.B, T_ss.B) np.testing.assert_almost_equal(T.C, T_ss.C) np.testing.assert_almost_equal(T.D, T_ss.D) + + +def test_interconnect_exceptions(): + # First make sure the docstring example works + P = ct.tf2io(ct.tf(1, [1, 0]), input='u', output='y') + C = ct.tf2io(ct.tf(10, [1, 1]), input='e', output='u') + sumblk = ct.summing_junction(inputs=['r', '-y'], output='e') + T = ct.interconnect((P, C, sumblk), input='r', output='y') + assert (T.ninputs, T.noutputs, T.nstates) == (1, 1, 2) + + # Unrecognized arguments + # LinearIOSystem + with pytest.raises(TypeError, match="unknown parameter"): + P = ct.LinearIOSystem(ct.rss(2, 1, 1), output_name='y') + + # Interconnect + with pytest.raises(TypeError, match="unknown parameter"): + T = ct.interconnect((P, C, sumblk), input_name='r', output='y') + + # Interconnected system + with pytest.raises(TypeError, match="unknown parameter"): + T = ct.InterconnectedSystem((P, C, sumblk), input_name='r', output='y') + + # NonlinearIOSytem + with pytest.raises(TypeError, match="unknown parameter"): + nlios = ct.NonlinearIOSystem( + None, lambda t, x, u, params: u*u, input_count=1, output_count=1) + + # Summing junction + with pytest.raises(TypeError, match="input specification is required"): + sumblk = ct.summing_junction() + + with pytest.raises(TypeError, match="unknown parameter"): + sumblk = ct.summing_junction(input_count=2, output_count=2) From 25114f5de239329cbf78541ac969716228482964 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Sun, 7 Feb 2021 12:58:28 +0100 Subject: [PATCH 172/260] use pytest-timeout for rlocus test --- .github/workflows/control-slycot-src.yml | 2 +- .github/workflows/python-package-conda.yml | 2 +- control/tests/rlocus_test.py | 10 ++-------- setup.py | 3 +++ 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/control-slycot-src.yml b/.github/workflows/control-slycot-src.yml index 41d56bf4a..5c55eea73 100644 --- a/.github/workflows/control-slycot-src.yml +++ b/.github/workflows/control-slycot-src.yml @@ -19,7 +19,7 @@ jobs: sudo apt install -y xvfb # Install test tools - conda install pip pytest + conda install pip pytest pytest-timeout # Install python-control dependencies conda install numpy matplotlib scipy diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 6ab0ffb76..67f782048 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -32,7 +32,7 @@ jobs: sudo apt install -y xvfb # Install test tools - conda install pip coverage pytest + conda install pip coverage pytest pytest-timeout pip install coveralls # Install python-control dependencies diff --git a/control/tests/rlocus_test.py b/control/tests/rlocus_test.py index 799d45784..aa25cd2b7 100644 --- a/control/tests/rlocus_test.py +++ b/control/tests/rlocus_test.py @@ -76,6 +76,7 @@ def test_root_locus_zoom(self): assert_array_almost_equal(zoom_x, zoom_x_valid) assert_array_almost_equal(zoom_y, zoom_y_valid) + @pytest.mark.timeout(2) def test_rlocus_default_wn(self): """Check that default wn calculation works properly""" # @@ -94,12 +95,5 @@ def test_rlocus_default_wn(self): sys = ct.tf(*sp.signal.zpk2tf( [-1e-2, 1-1e7j, 1+1e7j], [0, -1e7j, 1e7j], 1)) - # Set up a timer to catch execution time - def signal_handler(signum, frame): - raise Exception("rlocus took too long to complete") - signal.signal(signal.SIGALRM, signal_handler) - - # Run the command and reset the alarm - signal.alarm(2) # 2 second timeout ct.root_locus(sys) - signal.alarm(0) # reset the alarm + diff --git a/setup.py b/setup.py index fcf2d740b..849d30b34 100644 --- a/setup.py +++ b/setup.py @@ -44,4 +44,7 @@ install_requires=['numpy', 'scipy', 'matplotlib'], + extras_require={ + 'test': ['pytest', 'pytest-timeout'], + } ) From 0c03dd740d85244fb4e7f0adc20c1d89aff59a32 Mon Sep 17 00:00:00 2001 From: - js <223258+dapperfu@users.noreply.github.com> Date: Mon, 8 Feb 2021 11:20:51 -0500 Subject: [PATCH 173/260] Update xferfcn.py --- control/xferfcn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/xferfcn.py b/control/xferfcn.py index 157ac6212..c9fbe9006 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -1559,7 +1559,7 @@ def _clean_part(data): for i in range(len(data)): for j in range(len(data[i])): for k in range(len(data[i][j])): - if isinstance(data[i][j][k], (int, np.int)): + if isinstance(data[i][j][k], (int, np.int32, np.int64)): data[i][j][k] = float(data[i][j][k]) return data From a586543434e029257f3034030e639c94e5339f60 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 10 Feb 2021 16:38:24 -0800 Subject: [PATCH 174/260] fix isssues arising in merge of descfcn/iosys changes --- control/iosys.py | 6 ++++-- control/timeresp.py | 14 +++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 895e04015..16ef633b7 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -855,7 +855,7 @@ def __call__(sys, u, params=None, squeeze=None): # Evaluate the function on the argument out = sys._out(0, np.array((0,)), np.asarray(u)) - _, out = _process_time_response(sys, [], out, [], squeeze=squeeze) + _, out = _process_time_response(sys, None, out, None, squeeze=squeeze) return out def _update_params(self, params, warning=False): @@ -1867,8 +1867,10 @@ def linearize(sys, xeq, ueq=[], t=0, params={}, **kw): # Utility function to parse a signal parameter def _parse_signal_parameter(value, name, kwargs, end=False): + # Check kwargs for a variant of the parameter name if value is None and name in kwargs: - value = list(kwargs.pop(name)) + value = kwargs.pop(name) + if end and kwargs: raise TypeError("unknown parameters %s" % kwargs) return value diff --git a/control/timeresp.py b/control/timeresp.py index 55ced8302..9ccf24bf3 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -467,8 +467,11 @@ def _process_time_response( Parameters ---------- + sys : LTI or InputOutputSystem + System that generated the data (used to check if SISO/MIMO). + T : 1D array - Time values of the output + Time values of the output. Ignored if None. yout : ndarray Response of the system. This can either be a 1D array indexed by time @@ -478,9 +481,9 @@ def _process_time_response( xout : array, optional Individual response of each x variable (if return_x is True). For a - SISO system (or if a single input is specified), This should be a 2D + SISO system (or if a single input is specified), this should be a 2D array indexed by the state index and time (for single input systems) - or a 3D array indexed by state, input, and time. + or a 3D array indexed by state, input, and time. Ignored if None. transpose : bool, optional If True, transpose all input and output arrays (for backward @@ -545,7 +548,7 @@ def _process_time_response( raise ValueError("unknown squeeze value") # Figure out whether and how to squeeze the state data - if issiso and len(xout.shape) > 2: + if issiso and xout is not None and len(xout.shape) > 2: xout = xout[:, 0, :] # remove input # See if we need to transpose the data back into MATLAB form @@ -555,7 +558,8 @@ def _process_time_response( # For signals, put the last index (time) into the first slot yout = np.transpose(yout, np.roll(range(yout.ndim), 1)) - xout = np.transpose(xout, np.roll(range(xout.ndim), 1)) + if xout is not None: + xout = np.transpose(xout, np.roll(range(xout.ndim), 1)) # Return time, output, and (optionally) state return (tout, yout, xout) if return_x else (tout, yout) From b67eb7d3c80d345636249ecc1890e8045f73da38 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 5 Feb 2021 22:57:55 -0800 Subject: [PATCH 175/260] change infinite gain value to inf (from nan/inf) --- control/statesp.py | 28 +++++++++++++++++++--------- control/tests/statesp_test.py | 6 +++--- control/xferfcn.py | 13 ++++++++----- 3 files changed, 30 insertions(+), 17 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index abd55ad15..66b96e24e 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -668,7 +668,7 @@ def __rdiv__(self, other): raise NotImplementedError( "StateSpace.__rdiv__ is not implemented yet.") - def __call__(self, x, squeeze=None): + def __call__(self, x, squeeze=None, warn_infinite=True): """Evaluate system's transfer function at complex frequency. Returns the complex frequency response `sys(x)` where `x` is `s` for @@ -689,6 +689,8 @@ def __call__(self, x, squeeze=None): keep all indices (output, input and, if omega is array_like, frequency) even if the system is SISO. The default value can be set using config.defaults['control.squeeze_frequency_response']. + warn_infinite : bool, optional + If set to `False`, don't warn if frequency response is infinite. Returns ------- @@ -702,7 +704,7 @@ def __call__(self, x, squeeze=None): """ # Use Slycot if available - out = self.horner(x) + out = self.horner(x, warn_infinite=warn_infinite) return _process_frequency_response(self, x, out, squeeze=squeeze) def slycot_laub(self, x): @@ -758,7 +760,7 @@ def slycot_laub(self, x): out[:, :, kk+1] = result[0] + self.D return out - def horner(self, x): + def horner(self, x, warn_infinite=True): """Evaluate system's transfer function at complex frequency using Laub's or Horner's method. @@ -795,14 +797,22 @@ def horner(self, x): raise ValueError("input list must be 1D") # Preallocate - out = empty((self.noutputs, self.ninputs, len(x_arr)), dtype=complex) + out = empty((self.noutputs, self.ninputs, len(x_arr)), + dtype=complex) #TODO: can this be vectorized? for idx, x_idx in enumerate(x_arr): - out[:,:,idx] = \ - np.dot(self.C, + try: + out[:,:,idx] = np.dot( + self.C, solve(x_idx * eye(self.nstates) - self.A, self.B)) \ - + self.D + + self.D + except LinAlgError: + if warn_infinite: + warn("frequency response is not finite", + RuntimeWarning) + # TODO: check for nan cases + out[:,:,idx] = np.inf return out def freqresp(self, omega): @@ -1200,7 +1210,7 @@ def dcgain(self): gain : ndarray An array of shape (outputs,inputs); the array will either be the zero-frequency (or DC) gain, or, if the frequency - response is singular, the array will be filled with np.nan. + response is singular, the array will be filled with np.inf. """ try: if self.isctime(): @@ -1210,7 +1220,7 @@ def dcgain(self): gain = np.squeeze(self.horner(1)) except LinAlgError: # eigenvalue at DC - gain = np.tile(np.nan, (self.noutputs, self.ninputs)) + gain = np.tile(np.inf, (self.noutputs, self.ninputs)) return np.squeeze(gain) def _isstatic(self): diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 1c76efbc0..ebfb8061f 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -498,7 +498,7 @@ def test_dc_gain_cont(self): np.testing.assert_allclose(sys2.dcgain(), expected) sys3 = StateSpace(0., 1., 1., 0.) - np.testing.assert_equal(sys3.dcgain(), np.nan) + np.testing.assert_equal(sys3.dcgain(), np.inf) def test_dc_gain_discr(self): """Test DC gain for discrete-time state-space systems.""" @@ -516,7 +516,7 @@ def test_dc_gain_discr(self): # summer sys = StateSpace(1, 1, 1, 0, True) - np.testing.assert_equal(sys.dcgain(), np.nan) + np.testing.assert_equal(sys.dcgain(), np.inf) @pytest.mark.parametrize("outputs", range(1, 6)) @pytest.mark.parametrize("inputs", range(1, 6)) @@ -539,7 +539,7 @@ def test_dc_gain_integrator(self, outputs, inputs, dt): c = np.eye(max(outputs, states))[:outputs, :states] d = np.zeros((outputs, inputs)) sys = StateSpace(a, b, c, d, dt) - dc = np.squeeze(np.full_like(d, np.nan)) + dc = np.squeeze(np.full_like(d, np.inf)) np.testing.assert_array_equal(dc, sys.dcgain()) def test_scalar_static_gain(self): diff --git a/control/xferfcn.py b/control/xferfcn.py index c9fbe9006..bc495b024 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -234,7 +234,7 @@ def __init__(self, *args, **kwargs): dt = config.defaults['control.default_dt'] self.dt = dt - def __call__(self, x, squeeze=None): + def __call__(self, x, squeeze=None, warn_infinite=True): """Evaluate system's transfer function at complex frequencies. Returns the complex frequency response `sys(x)` where `x` is `s` for @@ -262,6 +262,8 @@ def __call__(self, x, squeeze=None): If True and the system is single-input single-output (SISO), return a 1D array rather than a 3D array. Default value (True) set by config.defaults['control.squeeze_frequency_response']. + warn_infinite : bool, optional + If set to `False`, turn off divide by zero warning. Returns ------- @@ -274,10 +276,10 @@ def __call__(self, x, squeeze=None): then single-dimensional axes are removed. """ - out = self.horner(x) + out = self.horner(x, warn_infinite=warn_infinite) return _process_frequency_response(self, x, out, squeeze=squeeze) - def horner(self, x): + def horner(self, x, warn_infinite=True): """Evaluate system's transfer function at complex frequency using Horner's method. @@ -307,8 +309,9 @@ def horner(self, x): out = empty((self.noutputs, self.ninputs, len(x_arr)), dtype=complex) for i in range(self.noutputs): for j in range(self.ninputs): - out[i][j] = (polyval(self.num[i][j], x) / - polyval(self.den[i][j], x)) + with np.errstate(divide='warn' if warn_infinite else 'ignore'): + out[i][j] = (polyval(self.num[i][j], x) / + polyval(self.den[i][j], x)) return out def _truncatecoeff(self): From 96e44fe425a0166749a30e7c49d8dcecd4c16f7d Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 6 Feb 2021 05:47:32 -0800 Subject: [PATCH 176/260] unit tests for infinite frequency response values, warnings --- control/lti.py | 5 ++- control/tests/freqresp_test.py | 70 ++++++++++++++++++++++++++++++++++ control/tests/statesp_test.py | 2 +- 3 files changed, 74 insertions(+), 3 deletions(-) diff --git a/control/lti.py b/control/lti.py index 445775f5f..68aba6d6f 100644 --- a/control/lti.py +++ b/control/lti.py @@ -644,8 +644,9 @@ def dcgain(sys): Returns ------- gain : ndarray - The zero-frequency gain, or np.nan if the system has a pole - at the origin + The zero-frequency gain, or np.inf if the system has a pole at the + origin, np.nan if there is a pole/zero cancellation at the origin. + """ return sys.dcgain() diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 86de0e77a..cd65fe89c 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -364,3 +364,73 @@ def test_phase_wrap(TF, wrap_phase, min_phase, max_phase): mag, phase, omega = ctrl.bode(TF, wrap_phase=wrap_phase) assert(min(phase) >= min_phase) assert(max(phase) <= max_phase) + + +def test_freqresp_warn_infinite(): + """Test evaluation of transfer functions at the origin""" + sys_finite = ctrl.tf([1], [1, 0.01]) + sys_infinite = ctrl.tf([1], [1, 0.01, 0]) + + # Transfer function with finite zero frequency gain + np.testing.assert_almost_equal(sys_finite(0), 100) + np.testing.assert_almost_equal(sys_finite(0, warn_infinite=False), 100) + np.testing.assert_almost_equal(sys_finite(0, warn_infinite=True), 100) + + # Transfer function with infinite zero frequency gain + with pytest.warns(RuntimeWarning, match="divide by zero"): + np.testing.assert_almost_equal(sys_infinite(0), np.inf) + with pytest.warns(RuntimeWarning, match="divide by zero"): + np.testing.assert_almost_equal( + sys_infinite(0, warn_infinite=True), np.inf) + np.testing.assert_almost_equal(sys_infinite(0, warn_infinite=False), np.inf) + + # Switch to state space + sys_finite = ctrl.tf2ss(sys_finite) + sys_infinite = ctrl.tf2ss(sys_infinite) + + # State space system with finite zero frequency gain + np.testing.assert_almost_equal(sys_finite(0), 100) + np.testing.assert_almost_equal(sys_finite(0, warn_infinite=False), 100) + np.testing.assert_almost_equal(sys_finite(0, warn_infinite=True), 100) + + # State space system with infinite zero frequency gain + with pytest.warns(RuntimeWarning, match="not finite"): + np.testing.assert_almost_equal(sys_infinite(0), np.inf) + with pytest.warns(RuntimeWarning, match="not finite"): + np.testing.assert_almost_equal(sys_infinite(0), np.inf) + np.testing.assert_almost_equal(sys_infinite(0, warn_infinite=True), np.inf) + np.testing.assert_almost_equal(sys_infinite(0, warn_infinite=False), np.inf) + + +def test_dcgain_consistency(): + """Test to make sure that DC gain is consistently evaluated""" + # Set up transfer function with pole at the origin + sys_tf = ctrl.tf([1], [1, 0]) + assert 0 in sys_tf.pole() + + # Set up state space system with pole at the origin + sys_ss = ctrl.tf2ss(sys_tf) + assert 0 in sys_ss.pole() + + # Evaluation + np.testing.assert_equal(sys_tf(0), np.inf + 0j) + np.testing.assert_equal(sys_ss(0), np.inf + 0j) + np.testing.assert_equal(sys_tf.dcgain(), np.inf + 0j) + np.testing.assert_equal(sys_ss.dcgain(), np.inf + 0j) + + # Set up transfer function with pole, zero at the origin + sys_tf = ctrl.tf([1, 0], [1, 0]) + assert 0 in sys_tf.pole() + assert 0 in sys_tf.zero() + + sys_ss = ctrl.tf2ss(ctrl.tf([1, 0], [1, 1])) * \ + ctrl.tf2ss(ctrl.tf([1], [1, 0])) + assert 0 in sys_ss.pole() + assert 0 in sys_ss.zero() + + # Pole and zero at the origin should give nan for the response + np.testing.assert_equal(sys_tf(0), np.nan) + np.testing.assert_equal(sys_tf.dcgain(), np.nan) + # TODO: state space cases not yet working + # np.testing.assert_equal(sys_ss(0), np.nan) + # np.testing.assert_equal(sys_ss.dcgain(), np.nan) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index ebfb8061f..ba0fa3049 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -523,7 +523,7 @@ def test_dc_gain_discr(self): @pytest.mark.parametrize("dt", [None, 0, 1, True], ids=["dtNone", "c", "dt1", "dtTrue"]) def test_dc_gain_integrator(self, outputs, inputs, dt): - """DC gain when eigenvalue at DC returns appropriately sized array of nan. + """DC gain w/ pole at origin returns appropriately sized array of inf. the SISO case is also tested in test_dc_gain_{cont,discr} time systems (dt=0) From 8b44e87f8a92dc585438b4117e0673b5269d140e Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 9 Feb 2021 21:49:04 -0800 Subject: [PATCH 177/260] update return values to match numpy inf/nan pattern --- control/margins.py | 3 +- control/statesp.py | 35 +++++---- control/tests/freqresp_test.py | 99 +++++++++++++++++++------ control/tests/input_element_int_test.py | 10 +-- control/tests/statesp_test.py | 16 +++- control/tests/xferfcn_test.py | 9 ++- control/xferfcn.py | 52 ++++++------- 7 files changed, 141 insertions(+), 83 deletions(-) diff --git a/control/margins.py b/control/margins.py index 02d615e05..1231c5388 100644 --- a/control/margins.py +++ b/control/margins.py @@ -294,8 +294,7 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): num_iw, den_iw = _poly_iw(sys) # frequency for gain margin: phase crosses -180 degrees w_180 = _poly_iw_real_crossing(num_iw, den_iw, epsw) - with np.errstate(all='ignore'): # den=0 is okay - w180_resp = sys(1J * w_180) + w180_resp = sys(1J * w_180, warn_infinite=False) # den=0 is okay # frequency for phase margin : gain crosses magnitude 1 wc = _poly_iw_mag1_crossing(num_iw, den_iw, epsw) diff --git a/control/statesp.py b/control/statesp.py index 66b96e24e..3fa9b680a 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -725,7 +725,9 @@ def slycot_laub(self, x): Frequency response """ from slycot import tb05ad - x_arr = np.atleast_1d(x) # array-like version of x + + # Make sure the argument is a 1D array of complex numbers + x_arr = np.atleast_1d(x).astype(complex, copy=False) # Make sure that we are operating on a simple list if len(x_arr.shape) > 1: @@ -790,7 +792,9 @@ def horner(self, x, warn_infinite=True): except (ImportError, Exception): # Fall back because either Slycot unavailable or cannot handle # certain cases. - x_arr = np.atleast_1d(x) # force to be an array + + # Make sure the argument is a 1D array of complex numbers + x_arr = np.atleast_1d(x).astype(complex, copy=False) # Make sure that we are operating on a simple list if len(x_arr.shape) > 1: @@ -808,11 +812,18 @@ def horner(self, x, warn_infinite=True): solve(x_idx * eye(self.nstates) - self.A, self.B)) \ + self.D except LinAlgError: + # Issue a warning messsage, for consistency with xferfcn if warn_infinite: - warn("frequency response is not finite", + warn("singular matrix in frequency response", RuntimeWarning) - # TODO: check for nan cases - out[:,:,idx] = np.inf + + # Evaluating at a pole. Return value depends if there + # is a zero at the same point or not. + if x_idx in self.zero(): + out[:,:,idx] = complex(np.nan, np.nan) + else: + out[:,:,idx] = complex(np.inf, np.nan) + return out def freqresp(self, omega): @@ -1193,7 +1204,7 @@ def sample(self, Ts, method='zoh', alpha=None, prewarp_frequency=None): Ad, Bd, C, D, _ = cont2discrete(sys, Twarp, method, alpha) return StateSpace(Ad, Bd, C, D, Ts) - def dcgain(self): + def dcgain(self, warn_infinite=False): """Return the zero-frequency gain The zero-frequency gain of a continuous-time state-space @@ -1212,16 +1223,8 @@ def dcgain(self): be the zero-frequency (or DC) gain, or, if the frequency response is singular, the array will be filled with np.inf. """ - try: - if self.isctime(): - gain = np.asarray(self.D - - self.C.dot(np.linalg.solve(self.A, self.B))) - else: - gain = np.squeeze(self.horner(1)) - except LinAlgError: - # eigenvalue at DC - gain = np.tile(np.inf, (self.noutputs, self.ninputs)) - return np.squeeze(gain) + return self(0, warn_infinite=warn_infinite) if self.isctime() \ + else self(1, warn_infinite=warn_infinite) def _isstatic(self): """True if and only if the system has no dynamics, that is, diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index cd65fe89c..287072557 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -367,7 +367,7 @@ def test_phase_wrap(TF, wrap_phase, min_phase, max_phase): def test_freqresp_warn_infinite(): - """Test evaluation of transfer functions at the origin""" + """Test evaluation warnings for transfer functions w/ pole at the origin""" sys_finite = ctrl.tf([1], [1, 0.01]) sys_infinite = ctrl.tf([1], [1, 0.01, 0]) @@ -378,11 +378,13 @@ def test_freqresp_warn_infinite(): # Transfer function with infinite zero frequency gain with pytest.warns(RuntimeWarning, match="divide by zero"): - np.testing.assert_almost_equal(sys_infinite(0), np.inf) + np.testing.assert_almost_equal( + sys_infinite(0), complex(np.inf, np.nan)) with pytest.warns(RuntimeWarning, match="divide by zero"): np.testing.assert_almost_equal( - sys_infinite(0, warn_infinite=True), np.inf) - np.testing.assert_almost_equal(sys_infinite(0, warn_infinite=False), np.inf) + sys_infinite(0, warn_infinite=True), complex(np.inf, np.nan)) + np.testing.assert_almost_equal( + sys_infinite(0, warn_infinite=False), complex(np.inf, np.nan)) # Switch to state space sys_finite = ctrl.tf2ss(sys_finite) @@ -394,13 +396,15 @@ def test_freqresp_warn_infinite(): np.testing.assert_almost_equal(sys_finite(0, warn_infinite=True), 100) # State space system with infinite zero frequency gain - with pytest.warns(RuntimeWarning, match="not finite"): - np.testing.assert_almost_equal(sys_infinite(0), np.inf) - with pytest.warns(RuntimeWarning, match="not finite"): - np.testing.assert_almost_equal(sys_infinite(0), np.inf) - np.testing.assert_almost_equal(sys_infinite(0, warn_infinite=True), np.inf) - np.testing.assert_almost_equal(sys_infinite(0, warn_infinite=False), np.inf) - + with pytest.warns(RuntimeWarning, match="singular matrix"): + np.testing.assert_almost_equal( + sys_infinite(0), complex(np.inf, np.nan)) + with pytest.warns(RuntimeWarning, match="singular matrix"): + np.testing.assert_almost_equal( + sys_infinite(0, warn_infinite=True), complex(np.inf, np.nan)) + np.testing.assert_almost_equal(sys_infinite( + 0, warn_infinite=False), complex(np.inf, np.nan)) + def test_dcgain_consistency(): """Test to make sure that DC gain is consistently evaluated""" @@ -412,25 +416,74 @@ def test_dcgain_consistency(): sys_ss = ctrl.tf2ss(sys_tf) assert 0 in sys_ss.pole() - # Evaluation - np.testing.assert_equal(sys_tf(0), np.inf + 0j) - np.testing.assert_equal(sys_ss(0), np.inf + 0j) - np.testing.assert_equal(sys_tf.dcgain(), np.inf + 0j) - np.testing.assert_equal(sys_ss.dcgain(), np.inf + 0j) + # Finite (real) numerator over 0 denominator => inf + nanj + np.testing.assert_equal( + sys_tf(0, warn_infinite=False), complex(np.inf, np.nan)) + np.testing.assert_equal( + sys_ss(0, warn_infinite=False), complex(np.inf, np.nan)) + np.testing.assert_equal( + sys_tf(0j, warn_infinite=False), complex(np.inf, np.nan)) + np.testing.assert_equal( + sys_ss(0j, warn_infinite=False), complex(np.inf, np.nan)) + np.testing.assert_equal( + sys_tf.dcgain(warn_infinite=False), complex(np.inf, np.nan)) + np.testing.assert_equal( + sys_ss.dcgain(warn_infinite=False), complex(np.inf, np.nan)) # Set up transfer function with pole, zero at the origin sys_tf = ctrl.tf([1, 0], [1, 0]) assert 0 in sys_tf.pole() assert 0 in sys_tf.zero() - + sys_ss = ctrl.tf2ss(ctrl.tf([1, 0], [1, 1])) * \ ctrl.tf2ss(ctrl.tf([1], [1, 0])) assert 0 in sys_ss.pole() assert 0 in sys_ss.zero() - # Pole and zero at the origin should give nan for the response - np.testing.assert_equal(sys_tf(0), np.nan) - np.testing.assert_equal(sys_tf.dcgain(), np.nan) - # TODO: state space cases not yet working - # np.testing.assert_equal(sys_ss(0), np.nan) - # np.testing.assert_equal(sys_ss.dcgain(), np.nan) + # Pole and zero at the origin should give nan + nanj for the response + np.testing.assert_equal( + sys_tf(0, warn_infinite=False), complex(np.nan, np.nan)) + np.testing.assert_equal( + sys_tf(0j, warn_infinite=False), complex(np.nan, np.nan)) + np.testing.assert_equal( + sys_tf.dcgain(warn_infinite=False), complex(np.nan, np.nan)) + np.testing.assert_equal( + sys_ss(0, warn_infinite=False), complex(np.nan, np.nan)) + np.testing.assert_equal( + sys_ss(0j, warn_infinite=False), complex(np.nan, np.nan)) + np.testing.assert_equal( + sys_ss.dcgain(warn_infinite=False), complex(np.nan, np.nan)) + + # Pole with non-zero, complex numerator => inf + infj + s = ctrl.tf('s') + sys_tf = (s + 1) / (s**2 + 1) + assert 1j in sys_tf.pole() + + # Set up state space system with pole on imaginary axis + sys_ss = ctrl.tf2ss(sys_tf) + assert 1j in sys_tf.pole() + + # Make sure we get correct response if evaluated at the pole + np.testing.assert_equal( + sys_tf(1j, warn_infinite=False), complex(np.inf, np.inf)) + + # For state space, numerical errors come into play + resp_ss = sys_ss(1j, warn_infinite=False) + if np.isfinite(resp_ss): + assert abs(resp_ss) > 1e15 + else: + if resp_ss != complex(np.inf, np.inf): + pytest.xfail("statesp evaluation at poles not fully implemented") + else: + np.testing.assert_equal(resp_ss, complex(np.inf, np.inf)) + + # DC gain is finite + np.testing.assert_almost_equal(sys_tf.dcgain(), 1.) + np.testing.assert_almost_equal(sys_ss.dcgain(), 1.) + + # Make sure that we get the *signed* DC gain + sys_tf = -1 / (s + 1) + np.testing.assert_almost_equal(sys_tf.dcgain(), -1) + + sys_ss = ctrl.tf2ss(sys_tf) + np.testing.assert_almost_equal(sys_ss.dcgain(), -1) diff --git a/control/tests/input_element_int_test.py b/control/tests/input_element_int_test.py index ecfaab834..94e5efcb5 100644 --- a/control/tests/input_element_int_test.py +++ b/control/tests/input_element_int_test.py @@ -23,7 +23,7 @@ def test_tf_den_with_numpy_int_element(self): sys = tf(num, den) - np.testing.assert_array_max_ulp(1., dcgain(sys)) + np.testing.assert_almost_equal(1., dcgain(sys)) def test_tf_num_with_numpy_int_element(self): num = np.convolve([1], [1, 1]) @@ -31,7 +31,7 @@ def test_tf_num_with_numpy_int_element(self): sys = tf(num, den) - np.testing.assert_array_max_ulp(1., dcgain(sys)) + np.testing.assert_almost_equal(1., dcgain(sys)) # currently these pass def test_tf_input_with_int_element(self): @@ -40,7 +40,7 @@ def test_tf_input_with_int_element(self): sys = tf(num, den) - np.testing.assert_array_max_ulp(1., dcgain(sys)) + np.testing.assert_almost_equal(1., dcgain(sys)) def test_ss_input_with_int_element(self): a = np.array([[0, 1], @@ -52,7 +52,7 @@ def test_ss_input_with_int_element(self): sys = ss(a, b, c, d) sys2 = tf(sys) - np.testing.assert_array_max_ulp(dcgain(sys), dcgain(sys2)) + np.testing.assert_almost_equal(dcgain(sys), dcgain(sys2)) def test_ss_input_with_0int_dcgain(self): a = np.array([[0, 1], @@ -63,4 +63,4 @@ def test_ss_input_with_0int_dcgain(self): d = 0 sys = ss(a, b, c, d) np.testing.assert_allclose(dcgain(sys), 0, - atol=np.finfo(np.float).epsneg) \ No newline at end of file + atol=np.finfo(np.float).epsneg) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index ba0fa3049..b3065d254 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -21,6 +21,7 @@ rss, ss, tf2ss, _statesp_defaults) from control.tests.conftest import ismatarrayout, slycotonly from control.xferfcn import TransferFunction, ss2tf +from control.exception import ControlSlycot from .conftest import editsdefaults @@ -498,7 +499,7 @@ def test_dc_gain_cont(self): np.testing.assert_allclose(sys2.dcgain(), expected) sys3 = StateSpace(0., 1., 1., 0.) - np.testing.assert_equal(sys3.dcgain(), np.inf) + np.testing.assert_equal(sys3.dcgain(), complex(np.inf, np.nan)) def test_dc_gain_discr(self): """Test DC gain for discrete-time state-space systems.""" @@ -516,7 +517,7 @@ def test_dc_gain_discr(self): # summer sys = StateSpace(1, 1, 1, 0, True) - np.testing.assert_equal(sys.dcgain(), np.inf) + np.testing.assert_equal(sys.dcgain(), complex(np.inf, np.nan)) @pytest.mark.parametrize("outputs", range(1, 6)) @pytest.mark.parametrize("inputs", range(1, 6)) @@ -539,8 +540,15 @@ def test_dc_gain_integrator(self, outputs, inputs, dt): c = np.eye(max(outputs, states))[:outputs, :states] d = np.zeros((outputs, inputs)) sys = StateSpace(a, b, c, d, dt) - dc = np.squeeze(np.full_like(d, np.inf)) - np.testing.assert_array_equal(dc, sys.dcgain()) + dc = np.full_like(d, complex(np.inf, np.nan), dtype=complex) + if sys.issiso(): + dc = dc.squeeze() + + try: + np.testing.assert_array_equal(dc, sys.dcgain()) + except NotImplementedError: + # Skip MIMO tests if there is no slycot + pytest.skip("slycot required for MIMO dcgain") def test_scalar_static_gain(self): """Regression: can we create a scalar static gain? diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index 782fcaa13..b892655e9 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -807,7 +807,7 @@ def test_dcgain_cont(self): np.testing.assert_equal(sys2.dcgain(), 2) sys3 = TransferFunction(6, [1, 0]) - np.testing.assert_equal(sys3.dcgain(), np.inf) + np.testing.assert_equal(sys3.dcgain(), complex(np.inf, np.nan)) num = [[[15], [21], [33]], [[10], [14], [22]]] den = [[[1, 3], [2, 3], [3, 3]], [[1, 5], [2, 7], [3, 11]]] @@ -827,8 +827,13 @@ def test_dcgain_discr(self): # differencer sys = TransferFunction(1, [1, -1], True) + np.testing.assert_equal(sys.dcgain(), complex(np.inf, np.nan)) + + # differencer, with warning + sys = TransferFunction(1, [1, -1], True) with pytest.warns(RuntimeWarning, match="divide by zero"): - np.testing.assert_equal(sys.dcgain(), np.inf) + np.testing.assert_equal( + sys.dcgain(warn_infinite=True), complex(np.inf, np.nan)) # summer sys = TransferFunction([1, -1], [1], True) diff --git a/control/xferfcn.py b/control/xferfcn.py index bc495b024..50e4870a8 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -300,18 +300,22 @@ def horner(self, x, warn_infinite=True): Frequency response """ - x_arr = np.atleast_1d(x) # force to be an array + # Make sure the argument is a 1D array of complex numbers + x_arr = np.atleast_1d(x).astype(complex, copy=False) # Make sure that we are operating on a simple list if len(x_arr.shape) > 1: raise ValueError("input list must be 1D") + # Initialize the output matrix in the proper shape out = empty((self.noutputs, self.ninputs, len(x_arr)), dtype=complex) - for i in range(self.noutputs): - for j in range(self.ninputs): - with np.errstate(divide='warn' if warn_infinite else 'ignore'): - out[i][j] = (polyval(self.num[i][j], x) / - polyval(self.den[i][j], x)) + + # Set up error processing based on warn_infinite flag + with np.errstate(all='warn' if warn_infinite else 'ignore'): + for i in range(self.noutputs): + for j in range(self.ninputs): + out[i][j] = (polyval(self.num[i][j], x_arr) / + polyval(self.den[i][j], x_arr)) return out def _truncatecoeff(self): @@ -1051,41 +1055,27 @@ def sample(self, Ts, method='zoh', alpha=None, prewarp_frequency=None): numd, dend, _ = cont2discrete(sys, Twarp, method, alpha) return TransferFunction(numd[0, :], dend, Ts) - def dcgain(self): + def dcgain(self, warn_infinite=False): """Return the zero-frequency (or DC) gain For a continous-time transfer function G(s), the DC gain is G(0) For a discrete-time transfer function G(z), the DC gain is G(1) + Parameters + ---------- + warn_infinite : bool, optional + By default, don't issue a warning message if the zero-frequency + gain is infinite. Setting `warn_infinite` to generate the warning + message. + Returns ------- gain : ndarray The zero-frequency gain - """ - if self.isctime(): - return self._dcgain_cont() - else: - return self(1) - def _dcgain_cont(self): - """_dcgain_cont() -> DC gain as matrix or scalar - - Special cased evaluation at 0 for continuous-time systems.""" - gain = np.empty((self.noutputs, self.ninputs), dtype=float) - for i in range(self.noutputs): - for j in range(self.ninputs): - num = self.num[i][j][-1] - den = self.den[i][j][-1] - if den: - gain[i][j] = num / den - else: - if num: - # numerator nonzero: infinite gain - gain[i][j] = np.inf - else: - # numerator is zero too: give up - gain[i][j] = np.nan - return np.squeeze(gain) + """ + return self(0, warn_infinite=warn_infinite) if self.isctime() \ + else self(1, warn_infinite=warn_infinite) def _isstatic(self): """returns True if and only if all of the numerator and denominator From 223d0c84c9aef2e3e42c37f81cadbd62e807d740 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 10 Feb 2021 14:38:18 -0800 Subject: [PATCH 178/260] add logic for pole/zero inaccuracies on different systems --- control/tests/freqresp_test.py | 36 +++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 287072557..54fe3b0e0 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -435,11 +435,6 @@ def test_dcgain_consistency(): assert 0 in sys_tf.pole() assert 0 in sys_tf.zero() - sys_ss = ctrl.tf2ss(ctrl.tf([1, 0], [1, 1])) * \ - ctrl.tf2ss(ctrl.tf([1], [1, 0])) - assert 0 in sys_ss.pole() - assert 0 in sys_ss.zero() - # Pole and zero at the origin should give nan + nanj for the response np.testing.assert_equal( sys_tf(0, warn_infinite=False), complex(np.nan, np.nan)) @@ -447,12 +442,31 @@ def test_dcgain_consistency(): sys_tf(0j, warn_infinite=False), complex(np.nan, np.nan)) np.testing.assert_equal( sys_tf.dcgain(warn_infinite=False), complex(np.nan, np.nan)) - np.testing.assert_equal( - sys_ss(0, warn_infinite=False), complex(np.nan, np.nan)) - np.testing.assert_equal( - sys_ss(0j, warn_infinite=False), complex(np.nan, np.nan)) - np.testing.assert_equal( - sys_ss.dcgain(warn_infinite=False), complex(np.nan, np.nan)) + + # Set up state space version + sys_ss = ctrl.tf2ss(ctrl.tf([1, 0], [1, 1])) * \ + ctrl.tf2ss(ctrl.tf([1], [1, 0])) + + # Different systems give different representations => test accordingly + if 0 in sys_ss.pole() and 0 in sys_ss.zero(): + # Pole and zero at the origin => should get (nan + nanj) + np.testing.assert_equal( + sys_ss(0, warn_infinite=False), complex(np.nan, np.nan)) + np.testing.assert_equal( + sys_ss(0j, warn_infinite=False), complex(np.nan, np.nan)) + np.testing.assert_equal( + sys_ss.dcgain(warn_infinite=False), complex(np.nan, np.nan)) + elif 0 in sys_ss.pole(): + # Pole at the origin, but zero elsewhere => should get (inf + nanj) + np.testing.assert_equal( + sys_ss(0, warn_infinite=False), complex(np.inf, np.nan)) + np.testing.assert_equal( + sys_ss(0j, warn_infinite=False), complex(np.inf, np.nan)) + np.testing.assert_equal( + sys_ss.dcgain(warn_infinite=False), complex(np.inf, np.nan)) + else: + # Near pole/zero cancellation => nothing sensible to check + pass # Pole with non-zero, complex numerator => inf + infj s = ctrl.tf('s') From 598058cb3eb8203c8bdfbffca322ba81ec458b91 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 10 Feb 2021 21:43:00 -0800 Subject: [PATCH 179/260] docstring updates --- control/lti.py | 5 +++-- control/statesp.py | 7 ++++--- control/tests/statesp_test.py | 1 - 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/control/lti.py b/control/lti.py index 68aba6d6f..30569863a 100644 --- a/control/lti.py +++ b/control/lti.py @@ -644,8 +644,9 @@ def dcgain(sys): Returns ------- gain : ndarray - The zero-frequency gain, or np.inf if the system has a pole at the - origin, np.nan if there is a pole/zero cancellation at the origin. + The zero-frequency gain, or (inf + nanj) if the system has a pole at + the origin, (nan + nanj) if there is a pole/zero cancellation at the + origin. """ return sys.dcgain() diff --git a/control/statesp.py b/control/statesp.py index 3fa9b680a..d2b613024 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1219,9 +1219,10 @@ def dcgain(self, warn_infinite=False): Returns ------- gain : ndarray - An array of shape (outputs,inputs); the array will either - be the zero-frequency (or DC) gain, or, if the frequency - response is singular, the array will be filled with np.inf. + An array of shape (outputs,inputs); the array will either be the + zero-frequency (or DC) gain, or, if the frequency response is + singular, the array will be filled with (inf + nanj). + """ return self(0, warn_infinite=warn_infinite) if self.isctime() \ else self(1, warn_infinite=warn_infinite) diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index b3065d254..983b9d7a6 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -21,7 +21,6 @@ rss, ss, tf2ss, _statesp_defaults) from control.tests.conftest import ismatarrayout, slycotonly from control.xferfcn import TransferFunction, ss2tf -from control.exception import ControlSlycot from .conftest import editsdefaults From 85faffa27d30bf4cef06ff8a31d3c662aa498f05 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 5 Feb 2021 21:27:06 -0800 Subject: [PATCH 180/260] add mirror_style keyword for nyquist --- control/config.py | 8 +++++++- control/freqplot.py | 44 ++++++++++++++++++++++++++++++++++++-------- 2 files changed, 43 insertions(+), 9 deletions(-) diff --git a/control/config.py b/control/config.py index a713e33d2..9bb2dfcf4 100644 --- a/control/config.py +++ b/control/config.py @@ -43,9 +43,10 @@ def reset_defaults(): # System level defaults defaults.update(_control_defaults) - from .freqplot import _bode_defaults, _freqplot_defaults + from .freqplot import _bode_defaults, _freqplot_defaults, _nyquist_defaults defaults.update(_bode_defaults) defaults.update(_freqplot_defaults) + defaults.update(_nyquist_defaults) from .nichols import _nichols_defaults defaults.update(_nichols_defaults) @@ -138,9 +139,11 @@ def use_fbs_defaults(): The following conventions are used: * Bode plots plot gain in powers of ten, phase in degrees, frequency in rad/sec, no grid + * Nyquist plots use dashed lines for mirror image of Nyquist curve """ set_defaults('bode', dB=False, deg=True, Hz=False, grid=False) + set_defaults('nyquist', mirror_style='--') # Decide whether to use numpy.matrix for state space operations @@ -239,4 +242,7 @@ def use_legacy_defaults(version): # time responses are only squeezed if SISO set_defaults('control', squeeze_time_response=True) + # switched mirror_style of nyquist from '-' to '--' + set_defaults('nyqist', mirror_style='-') + return (major, minor, patch) diff --git a/control/freqplot.py b/control/freqplot.py index 0876f1dde..2118abb83 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -520,11 +520,16 @@ def gen_zero_centered_series(val_min, val_max, period): # Nyquist plot # -def nyquist_plot( - syslist, omega=None, plot=True, omega_limits=None, omega_num=None, - label_freq=0, color=None, mirror='--', arrowhead_length=0.1, - arrowhead_width=0.1, *args, **kwargs): - """Nyquist plot for a system +# Default values for module parameter variables +_nyquist_defaults = { + 'nyquist.mirror_style': '--', +} + +def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, + omega_num=None, label_freq=0, arrowhead_length=0.1, + arrowhead_width=0.1, color=None, *args, **kwargs): + """ + Nyquist plot for a system Plots a Nyquist plot for the system over a (optional) frequency range. @@ -532,26 +537,41 @@ def nyquist_plot( ---------- syslist : list of LTI List of linear input/output systems (single system is OK) + plot : boolean If True, plot magnitude + omega : array_like Set of frequencies to be evaluated in rad/sec. + omega_limits : array_like of two values Limits to the range of frequencies. Ignored if omega is provided, and auto-generated if omitted. + omega_num : int Number of samples to plot. Defaults to config.defaults['freqplot.number_of_samples']. + color : string Used to specify the color of the line and arrowhead + + mirror_style : string or False + Linestyle for mirror image of the Nyquist curve. If `False` then + omit completely. Default linestyle ('--') is determined by + config.defaults['nyquist.mirror_style']. + label_freq : int Label every nth frequency on the plot + arrowhead_width : float Arrow head width + arrowhead_length : float Arrow head length + *args : :func:`matplotlib.pyplot.plot` positional properties, optional Additional arguments for `matplotlib` plots (color, linestyle, etc) + **kwargs : :func:`matplotlib.pyplot.plot` keyword properties, optional Additional keywords (passed to `matplotlib`) @@ -559,8 +579,10 @@ def nyquist_plot( ------- real : ndarray (or list of ndarray if len(syslist) > 1)) real part of the frequency response array + imag : ndarray (or list of ndarray if len(syslist) > 1)) imaginary part of the frequency response array + omega : ndarray (or list of ndarray if len(syslist) > 1)) frequencies in rad/s @@ -586,6 +608,10 @@ def nyquist_plot( # Map 'labelFreq' keyword to 'label_freq' keyword label_freq = kwargs.pop('labelFreq') + # Get values for params (and pop from list to allow keyword use in plot) + mirror_style = config._get_param( + 'nyquist', 'mirror_style', kwargs, _nyquist_defaults, pop=True) + # If argument was a singleton, turn it into a list if not hasattr(syslist, '__iter__'): syslist = (syslist,) @@ -634,17 +660,19 @@ def nyquist_plot( raise ControlMIMONotImplemented( "Nyquist plot currently supports SISO systems.") - # Plot the primary curve and mirror image + # Plot the primary curve p = plt.plot(x, y, '-', color=color, *args, **kwargs) c = p[0].get_color() ax = plt.gca() + # Plot arrow to indicate Nyquist encirclement orientation ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, fc=c, ec=c, head_width=arrowhead_width, head_length=arrowhead_length) - if mirror is not False: - plt.plot(x, -y, mirror, color=c, *args, **kwargs) + # Plot the mirror image + if mirror_style is not False: + plt.plot(x, -y, mirror_style, color=c, *args, **kwargs) ax.arrow( x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, fc=c, ec=c, head_width=arrowhead_width, From 18888548f9b31bed53faed23ab214dddc20ea948 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 5 Feb 2021 22:39:58 -0800 Subject: [PATCH 181/260] update arrow styles for nyquist --- control/freqplot.py | 202 ++++++++++++++++++++++++++-------- control/tests/nyquist_test.py | 85 ++++++++++++++ 2 files changed, 243 insertions(+), 44 deletions(-) create mode 100644 control/tests/nyquist_test.py diff --git a/control/freqplot.py b/control/freqplot.py index 2118abb83..95197ab83 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -157,9 +157,10 @@ def bode_plot(syslist, omega=None, generate the frequency response for a single system. 2. If a discrete time model is given, the frequency response is plotted - along the upper branch of the unit circle, using the mapping ``z = exp(1j - * omega * dt)`` where `omega` ranges from 0 to `pi/dt` and `dt` is the discrete - timebase. If timebase not specified (``dt=True``), `dt` is set to 1. + along the upper branch of the unit circle, using the mapping ``z = + exp(1j * omega * dt)`` where `omega` ranges from 0 to `pi/dt` and `dt` + is the discrete timebase. If timebase not specified (``dt=True``), + `dt` is set to 1. Examples -------- @@ -198,7 +199,8 @@ def bode_plot(syslist, omega=None, omega_range_given = True if omega is not None else False if omega is None: - omega_num = config._get_param('freqplot','number_of_samples', omega_num) + omega_num = config._get_param( + 'freqplot', 'number_of_samples', omega_num) if omega_limits is None: # Select a default range if none is provided omega = _default_frequency_range(syslist, @@ -246,11 +248,9 @@ def bode_plot(syslist, omega=None, # If no axes present, create them from scratch if ax_mag is None or ax_phase is None: plt.clf() - ax_mag = plt.subplot(211, - label='control-bode-magnitude') - ax_phase = plt.subplot(212, - label='control-bode-phase', - sharex=ax_mag) + ax_mag = plt.subplot(211, label='control-bode-magnitude') + ax_phase = plt.subplot( + 212, label='control-bode-phase', sharex=ax_mag) mags, phases, omegas, nyquistfrqs = [], [], [], [] for sys in syslist: @@ -340,9 +340,10 @@ def bode_plot(syslist, omega=None, np.nan, 0.7*min(mag_plot), 1.3*max(mag_plot))) mag_plot = np.hstack((mag_plot, mag_nyq_line)) phase_range = max(phase_plot) - min(phase_plot) - phase_nyq_line = np.array((np.nan, - min(phase_plot) - 0.2 * phase_range, - max(phase_plot) + 0.2 * phase_range)) + phase_nyq_line = np.array( + (np.nan, + min(phase_plot) - 0.2 * phase_range, + max(phase_plot) + 0.2 * phase_range)) phase_plot = np.hstack((phase_plot, phase_nyq_line)) # @@ -351,7 +352,7 @@ def bode_plot(syslist, omega=None, if dB: ax_mag.semilogx(omega_plot, 20 * np.log10(mag_plot), - *args, **kwargs) + *args, **kwargs) else: ax_mag.loglog(omega_plot, mag_plot, *args, **kwargs) @@ -523,11 +524,13 @@ def gen_zero_centered_series(val_min, val_max, period): # Default values for module parameter variables _nyquist_defaults = { 'nyquist.mirror_style': '--', + 'nyquist.arrows': 2, + 'nyquist.arrow_size': 8, } + def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, - omega_num=None, label_freq=0, arrowhead_length=0.1, - arrowhead_width=0.1, color=None, *args, **kwargs): + omega_num=None, label_freq=0, color=None, *args, **kwargs): """ Nyquist plot for a system @@ -542,18 +545,18 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, If True, plot magnitude omega : array_like - Set of frequencies to be evaluated in rad/sec. + Set of frequencies to be evaluated, in rad/sec. omega_limits : array_like of two values Limits to the range of frequencies. Ignored if omega is provided, and auto-generated if omitted. omega_num : int - Number of samples to plot. Defaults to + Number of frequency samples to plot. Defaults to config.defaults['freqplot.number_of_samples']. color : string - Used to specify the color of the line and arrowhead + Used to specify the color of the line and arrowhead. mirror_style : string or False Linestyle for mirror image of the Nyquist curve. If `False` then @@ -561,13 +564,25 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, config.defaults['nyquist.mirror_style']. label_freq : int - Label every nth frequency on the plot - - arrowhead_width : float - Arrow head width - - arrowhead_length : float - Arrow head length + Label every nth frequency on the plot. If not specified, no labels + are generated. + + arrows : int or 1D/2D array of floats + Specify the number of arrows to plot on the Nyquist curve. If an + integer is passed. that number of equally spaced arrows will be + plotted on each of the primary segment and the mirror image. If a 1D + array is passed, it should consist of a sorted list of floats between + 0 and 1, indicating the location along the curve to plot an arrow. If + a 2D array is passed, the first row will be used to specify arrow + locations for the primary curve and the second row will be used for + the mirror image. + + arrow_size : float + Arrowhead width and length (in display coordinates). Default value is + 8 and can be set using config.defaults['nyquist.arrow_size']. + + arrow_style : matplotlib.patches.ArrowStyle + Define style used for Nyquist curve arrows (overrides `arrow_size`). *args : :func:`matplotlib.pyplot.plot` positional properties, optional Additional arguments for `matplotlib` plots (color, linestyle, etc) @@ -588,7 +603,7 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, Examples -------- - >>> sys = ss("1. -2; 3. -4", "5.; 7", "6. 8", "9.") + >>> sys = ss([[1, -2], [3, -4]], [[5], [7]], [[6, 8]], [[9]]) >>> real, imag, freq = nyquist_plot(sys) """ @@ -608,9 +623,21 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, # Map 'labelFreq' keyword to 'label_freq' keyword label_freq = kwargs.pop('labelFreq') + # Check to see if legacy 'arrow_width' or 'arrow_length' were used + if 'arrow_width' in kwargs or 'arrow_length' in kwargs: + warn("'arrow_width' and 'arrow_length' keywords are deprecated in " + "nyquist_plot; use `arrow_size` instead", FutureWarning) + kwargs['arrow_size'] = \ + (kwargs.get('arrow_width', 0) + kwargs.get('arrow_width', 0)) / 2 + # Get values for params (and pop from list to allow keyword use in plot) mirror_style = config._get_param( 'nyquist', 'mirror_style', kwargs, _nyquist_defaults, pop=True) + arrows = config._get_param( + 'nyquist', 'arrows', kwargs, _nyquist_defaults, pop=True) + arrow_size = config._get_param( + 'nyquist', 'arrow_size', kwargs, _nyquist_defaults, pop=True) + arrow_style = config._get_param('nyquist', 'arrow_style', kwargs, None) # If argument was a singleton, turn it into a list if not hasattr(syslist, '__iter__'): @@ -620,7 +647,8 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, omega_range_given = True if omega is not None else False if omega is None: - omega_num = config._get_param('freqplot','number_of_samples',omega_num) + omega_num = config._get_param( + 'freqplot', 'number_of_samples', omega_num) if omega_limits is None: # Select a default range if none is provided omega = _default_frequency_range(syslist, @@ -636,6 +664,11 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, xs, ys, omegas = [], [], [] for sys in syslist: + if not sys.issiso(): + # TODO: Add MIMO nyquist plots. + raise ControlMIMONotImplemented( + "Nyquist plot currently only supports SISO systems.") + omega_sys = np.asarray(omega) if sys.isdtime(strict=True): nyquistfrq = math.pi / sys.dt @@ -655,28 +688,35 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, omegas.append(omega_sys) if plot: - if not sys.issiso(): - # TODO: Add MIMO nyquist plots. - raise ControlMIMONotImplemented( - "Nyquist plot currently supports SISO systems.") + # Parse the arrows keyword + if isinstance(arrows, int): + N = arrows + # Space arrows out, starting midway along each "region" + arrow_pos = np.linspace(0.5/N, 1 + 0.5/N, N, endpoint=False) + elif isinstance(arrows, (list, np.ndarray)): + arrow_pos = np.sort(np.atleast_1d(arrows)) + elif not arrows: + arrow_pos = [] + else: + raise ValueError("unknown or unsupported arrow location") + + # Set the arrow style + if arrow_style is None: + arrow_style = mpl.patches.ArrowStyle( + 'simple', head_width=arrow_size, head_length=arrow_size) # Plot the primary curve p = plt.plot(x, y, '-', color=color, *args, **kwargs) c = p[0].get_color() ax = plt.gca() - - # Plot arrow to indicate Nyquist encirclement orientation - ax.arrow(x[0], y[0], (x[1]-x[0])/2, (y[1]-y[0])/2, fc=c, ec=c, - head_width=arrowhead_width, - head_length=arrowhead_length) + _add_arrows_to_line2D( + ax, p[0], arrow_pos, arrowstyle=arrow_style, dir=1) # Plot the mirror image if mirror_style is not False: - plt.plot(x, -y, mirror_style, color=c, *args, **kwargs) - ax.arrow( - x[-1], -y[-1], (x[-1]-x[-2])/2, (y[-1]-y[-2])/2, - fc=c, ec=c, head_width=arrowhead_width, - head_length=arrowhead_length) + p = plt.plot(x, -y, mirror_style, color=c, *args, **kwargs) + _add_arrows_to_line2D( + ax, p[0], arrow_pos, arrowstyle=arrow_style, dir=-1) # Mark the -1 point plt.plot([-1], [0], 'r+') @@ -702,8 +742,8 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, # instead of 1.0, and this would otherwise be # truncated to 0. plt.text(xpt, ypt, ' ' + - str(int(np.round(f / 1000 ** pow1000, 0))) + ' ' + - prefix + 'Hz') + str(int(np.round(f / 1000 ** pow1000, 0))) + ' ' + + prefix + 'Hz') if plot: ax = plt.gca() @@ -716,6 +756,80 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, else: return xs, ys, omegas + +# Internal function to add arrows to a curve +def _add_arrows_to_line2D( + axes, line, arrow_locs=[0.2, 0.4, 0.6, 0.8], + arrowstyle='-|>', arrowsize=1, dir=1, transform=None): + """ + Add arrows to a matplotlib.lines.Line2D at selected locations. + + Parameters: + ----------- + axes: Axes object as returned by axes command (or gca) + line: Line2D object as returned by plot command + arrow_locs: list of locations where to insert arrows, % of total length + arrowstyle: style of the arrow + arrowsize: size of the arrow + transform: a matplotlib transform instance, default to data coordinates + + Returns: + -------- + arrows: list of arrows + + Based on https://stackoverflow.com/questions/26911898/ + + """ + if not isinstance(line, mpl.lines.Line2D): + raise ValueError("expected a matplotlib.lines.Line2D object") + x, y = line.get_xdata(), line.get_ydata() + + arrow_kw = { + "arrowstyle": arrowstyle, + } + + color = line.get_color() + use_multicolor_lines = isinstance(color, np.ndarray) + if use_multicolor_lines: + raise NotImplementedError("multicolor lines not supported") + else: + arrow_kw['color'] = color + + linewidth = line.get_linewidth() + if isinstance(linewidth, np.ndarray): + raise NotImplementedError("multiwidth lines not supported") + else: + arrow_kw['linewidth'] = linewidth + + if transform is None: + transform = axes.transData + + # Compute the arc length along the curve + s = np.cumsum(np.sqrt(np.diff(x) ** 2 + np.diff(y) ** 2)) + + arrows = [] + for loc in arrow_locs: + n = np.searchsorted(s, s[-1] * loc) + + # Figure out what direction to paint the arrow + if dir == 1: + arrow_tail = (x[n], y[n]) + arrow_head = (np.mean(x[n:n + 2]), np.mean(y[n:n + 2])) + elif dir == -1: + # Orient the arrow in the other direction on the segment + arrow_tail = (x[n + 1], y[n + 1]) + arrow_head = (np.mean(x[n:n + 2]), np.mean(y[n:n + 2])) + else: + raise ValueError("unknown value for keyword 'dir'") + + p = mpl.patches.FancyArrowPatch( + arrow_tail, arrow_head, transform=transform, lw=0, + **arrow_kw) + axes.add_patch(p) + arrows.append(p) + return arrows + + # # Gang of Four plot # @@ -840,7 +954,7 @@ def gangof4_plot(P, C, omega=None, **kwargs): # Compute reasonable defaults for axes def _default_frequency_range(syslist, Hz=None, number_of_samples=None, - feature_periphery_decades=None): + feature_periphery_decades=None): """Compute a reasonable default frequency range for frequency domain plots. diff --git a/control/tests/nyquist_test.py b/control/tests/nyquist_test.py new file mode 100644 index 000000000..0e85eb2e7 --- /dev/null +++ b/control/tests/nyquist_test.py @@ -0,0 +1,85 @@ +"""nyquist_test.py - test Nyquist plots + +RMM, 30 Jan 2021 + +This set of unit tests covers various Nyquist plot configurations. Because +much of the output from these tests are graphical, this file can also be run +from ipython to generate plots interactively. + +""" + +import pytest +import numpy as np +import scipy as sp +import matplotlib.pyplot as plt +import control as ct + +# In interactive mode, turn on ipython interactive graphics +plt.ion() + + +# Some FBS examples, for comparison +def test_nyquist_fbs_examples(): + s = ct.tf('s') + + """Run through various examples from FBS2e to compare plots""" + plt.figure() + plt.title("Figure 10.4: L(s) = 1.4 e^{-s}/(s+1)^2") + sys = ct.tf([1.4], [1, 2, 1]) * ct.tf(*ct.pade(1, 4)) + ct.nyquist_plot(sys) + + plt.figure() + plt.title("Figure 10.4: L(s) = 1/(s + a)^2 with a = 0.6") + sys = 1/(s + 0.6)**3 + ct.nyquist_plot(sys) + + plt.figure() + plt.title("Figure 10.6: L(s) = 1/(s (s+1)^2) - pole at the origin") + sys = 1/(s * (s+1)**2) + ct.nyquist_plot(sys) + + plt.figure() + plt.title("Figure 10.10: L(s) = 3 (s+6)^2 / (s (s+1)^2)") + sys = 3 * (s+6)**2 / (s * (s+1)**2) + ct.nyquist_plot(sys) + + plt.figure() + plt.title("Figure 10.10: L(s) = 3 (s+6)^2 / (s (s+1)^2) [zoom]") + ct.nyquist_plot(sys, omega_limits=[1.5, 1e3]) + + +@pytest.mark.parametrize("arrows", [ + None, # default argument + 1, 2, 3, 4, # specified number of arrows + [0.1, 0.5, 0.9], # specify arc lengths +]) +def test_nyquist_arrows(arrows): + sys = ct.tf([1.4], [1, 2, 1]) * ct.tf(*ct.pade(1, 4)) + plt.figure(); + plt.title("L(s) = 1.4 e^{-s}/(s+1)^2 / arrows = %s" % arrows) + ct.nyquist_plot(sys, arrows=arrows) + + +def test_nyquist_exceptions(): + # MIMO not implemented + sys = ct.rss(2, 2, 2) + with pytest.raises( + ct.exception.ControlMIMONotImplemented, + match="only supports SISO"): + ct.nyquist_plot(sys) + + +# +# Interactive mode: generate plots for manual viewing +# + +print("Nyquist examples from FBS") +test_nyquist_fbs_examples() + +print("Arrow test") +test_nyquist_arrows(None) +test_nyquist_arrows(1) +test_nyquist_arrows(2) +test_nyquist_arrows(3) +test_nyquist_arrows(4) +test_nyquist_arrows([0.1, 0.5, 0.9]) From 6de5e91b4fd87b8a085e1c5e91f03dd191224387 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 6 Feb 2021 05:38:45 -0800 Subject: [PATCH 182/260] update MATLAB interface to bode, nyquist * regularize argument parsing by using _parse_freqplot_args * fix bug in exception handling (ControlArgument not defined) * change printed warning to use warnings.warn * add unit tests for exceptions, warnings --- control/matlab/__init__.py | 2 +- control/matlab/wrappers.py | 94 ++++++++++++++++++++++++++++++------ control/tests/matlab_test.py | 24 ++++++++- 3 files changed, 102 insertions(+), 18 deletions(-) diff --git a/control/matlab/__init__.py b/control/matlab/__init__.py index 6b88214c6..196a4a6c8 100644 --- a/control/matlab/__init__.py +++ b/control/matlab/__init__.py @@ -70,7 +70,7 @@ # Import MATLAB-like functions that can be used as-is from ..ctrlutil import * -from ..freqplot import nyquist, gangof4 +from ..freqplot import gangof4 from ..nichols import nichols from ..bdalg import * from ..pzmap import * diff --git a/control/matlab/wrappers.py b/control/matlab/wrappers.py index b0fda30a3..a120e151b 100644 --- a/control/matlab/wrappers.py +++ b/control/matlab/wrappers.py @@ -1,15 +1,18 @@ """ -Wrappers for the Matlab compatibility module +Wrappers for the MATLAB compatibility module """ import numpy as np from ..statesp import ss from ..xferfcn import tf +from ..ctrlutil import issys +from ..exception import ControlArgument from scipy.signal import zpk2tf +from warnings import warn -__all__ = ['bode', 'ngrid', 'dcgain'] +__all__ = ['bode', 'nyquist', 'ngrid', 'dcgain'] -def bode(*args, **keywords): +def bode(*args, **kwargs): """bode(syslist[, omega, dB, Hz, deg, ...]) Bode plot of the frequency response @@ -36,7 +39,7 @@ def bode(*args, **keywords): If True, plot frequency in Hz (omega must be provided in rad/sec) deg : boolean If True, return phase in degrees (else radians) - Plot : boolean + plot : boolean If True, plot magnitude and phase Examples @@ -53,19 +56,65 @@ def bode(*args, **keywords): * >>> bode(sys1, sys2, ..., sysN, w) * >>> bode(sys1, 'plotstyle1', ..., sysN, 'plotstyleN') """ + from ..freqplot import bode_plot - # If the first argument is a list, then assume python-control calling format - from ..freqplot import bode as bode_orig + # If first argument is a list, assume python-control calling format if (getattr(args[0], '__iter__', False)): - return bode_orig(*args, **keywords) + return bode_plot(*args, **kwargs) - # Otherwise, run through the arguments and collect up arguments - syslist = []; plotstyle=[]; omega=None; + # Parse input arguments + syslist, omega, args, other = _parse_freqplot_args(*args) + kwargs.update(other) + + # Call the bode command + return bode_plot(syslist, omega, *args, **kwargs) + + +def nyquist(*args, **kwargs): + """nyquist(syslist[, omega]) + + Nyquist plot of the frequency response + + Plots a Nyquist plot for the system over a (optional) frequency range. + + Parameters + ---------- + sys1, ..., sysn : list of LTI + List of linear input/output systems (single system is OK). + omega : array_like + Set of frequencies to be evaluated, in rad/sec. + + Returns + ------- + real : ndarray (or list of ndarray if len(syslist) > 1)) + real part of the frequency response array + imag : ndarray (or list of ndarray if len(syslist) > 1)) + imaginary part of the frequency response array + omega : ndarray (or list of ndarray if len(syslist) > 1)) + frequencies in rad/s + + """ + from ..freqplot import nyquist_plot + + # If first argument is a list, assume python-control calling format + if (getattr(args[0], '__iter__', False)): + return nyquist_plot(*args, **kwargs) + + # Parse arguments + syslist, omega, args, other = _parse_freqplot_args(*args) + kwargs.update(other) + + # Call the nyquist command + return nyquist_plot(syslist, omega, *args, **kwargs) + + +def _parse_freqplot_args(*args): + """Parse arguments to frequency plot routines (bode, nyquist)""" + syslist, plotstyle, omega, other = [], [], None, {} i = 0; while i < len(args): # Check to see if this is a system of some sort - from ..ctrlutil import issys - if (issys(args[i])): + if issys(args[i]): # Append the system to our list of systems syslist.append(args[i]) i += 1 @@ -79,11 +128,16 @@ def bode(*args, **keywords): continue # See if this is a frequency list - elif (isinstance(args[i], (list, np.ndarray))): + elif isinstance(args[i], (list, np.ndarray)): omega = args[i] i += 1 break + # See if this is a frequency range + elif isinstance(args[i], tuple) and len(args[i]) == 2: + other['omega_limits'] = args[i] + i += 1 + else: raise ControlArgument("unrecognized argument type") @@ -93,22 +147,30 @@ def bode(*args, **keywords): # Check to make sure we got the same number of plotstyles as systems if (len(plotstyle) != 0 and len(syslist) != len(plotstyle)): - raise ControlArgument("number of systems and plotstyles should be equal") + raise ControlArgument( + "number of systems and plotstyles should be equal") # Warn about unimplemented plotstyles #! TODO: remove this when plot styles are implemented in bode() #! TODO: uncomment unit test code that tests this out if (len(plotstyle) != 0): - print("Warning (matlab.bode): plot styles not implemented"); + warn("Warning (matlab.bode): plot styles not implemented"); + + if len(syslist) == 0: + raise ControlArgument("no systems specified") + elif len(syslist) == 1: + # If only one system given, retun just that system (not a list) + syslist = syslist[0] + + return syslist, omega, plotstyle, other - # Call the bode command - return bode_orig(syslist, omega, **keywords) from ..nichols import nichols_grid def ngrid(): return nichols_grid() ngrid.__doc__ = nichols_grid.__doc__ + def dcgain(*args): ''' Compute the gain of the system in steady state. diff --git a/control/tests/matlab_test.py b/control/tests/matlab_test.py index dd595be0f..4fa03257c 100644 --- a/control/tests/matlab_test.py +++ b/control/tests/matlab_test.py @@ -27,7 +27,7 @@ from control.matlab import pade from control.matlab import unwrap, c2d, isctime, isdtime from control.matlab import connect, append - +from control.exception import ControlArgument from control.frdata import FRD from control.tests.conftest import slycotonly @@ -802,6 +802,28 @@ def test_tf_string_args(self): np.testing.assert_array_almost_equal(G.den, [[[1, 2, 1]]]) assert isdtime(G, strict=True) + def test_matlab_wrapper_exceptions(self): + """Test out exceptions in matlab/wrappers.py""" + sys = tf([1], [1, 2, 1]) + + # Extra arguments in bode + with pytest.raises(ControlArgument, match="not all arguments"): + bode(sys, 'r-', [1e-2, 1e2], 5.0) + + # Multiple plot styles + with pytest.warns(UserWarning, match="plot styles not implemented"): + bode(sys, 'r-', sys, 'b--', [1e-2, 1e2]) + + # Incorrect number of arguments to dcgain + with pytest.raises(ValueError, match="needs either 1, 2, 3 or 4"): + dcgain(1, 2, 3, 4, 5) + + def test_matlab_freqplot_passthru(self): + """Test nyquist and bode to make sure the pass arguments through""" + sys = tf([1], [1, 2, 1]) + bode((sys,)) # Passing tuple will call bode_plot + nyquist((sys,)) # Passing tuple will call nyquist_plot + #! TODO: not yet implemented # def testMIMOtfdata(self): From 2021a7526e1d48855137e3c24c59704fc9cc33ec Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 6 Feb 2021 11:06:40 -0800 Subject: [PATCH 183/260] improvements to Nyquist contour tracing * start tracing from omega = 0 * add support for indenting around imaginary poles * change return value to number of encirclements (+ contour, if desired) * update MATLAB interface to retain legacy format * new unit tests --- control/freqplot.py | 164 +++++++++++++++----- control/matlab/wrappers.py | 8 +- control/tests/freqresp_test.py | 17 ++- control/tests/nyquist_test.py | 209 ++++++++++++++++++++++++-- examples/bode-and-nyquist-plots.ipynb | 2 +- examples/pvtol-nested.py | 1 - 6 files changed, 349 insertions(+), 52 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 95197ab83..e3063d708 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -46,11 +46,14 @@ import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np +import warnings from .ctrlutil import unwrap from .bdalg import feedback from .margins import stability_margins from .exception import ControlMIMONotImplemented +from .statesp import StateSpace +from .xferfcn import TransferFunction from . import config __all__ = ['bode_plot', 'nyquist_plot', 'gangof4_plot', @@ -195,7 +198,7 @@ def bode_plot(syslist, omega=None, if not hasattr(syslist, '__iter__'): syslist = (syslist,) - # decide whether to go above nyquist. freq + # Decide whether to go above Nyquist frequency omega_range_given = True if omega is not None else False if omega is None: @@ -526,20 +529,29 @@ def gen_zero_centered_series(val_min, val_max, period): 'nyquist.mirror_style': '--', 'nyquist.arrows': 2, 'nyquist.arrow_size': 8, + 'nyquist.indent_radius': 1e-1, + 'nyquist.indent_direction': 'right', } def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, - omega_num=None, label_freq=0, color=None, *args, **kwargs): - """ - Nyquist plot for a system + omega_num=None, label_freq=0, color=None, + return_contour=False, warn_nyquist=True, *args, **kwargs): + """Nyquist plot for a system Plots a Nyquist plot for the system over a (optional) frequency range. + The curve is computed by evaluating the Nyqist segment along the positive + imaginary axis, with a mirror image generated to reflect the negative + imaginary axis. Poles on or near the imaginary axis are avoided using a + small indentation. The portion of the Nyquist contour at infinity is not + explicitly computed (since it maps to a constant value for any system with + a proper transfer function). Parameters ---------- syslist : list of LTI - List of linear input/output systems (single system is OK) + List of linear input/output systems (single system is OK). Nyquist + curves for each system are plotted on the same graph. plot : boolean If True, plot magnitude @@ -548,8 +560,8 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, Set of frequencies to be evaluated, in rad/sec. omega_limits : array_like of two values - Limits to the range of frequencies. Ignored if omega - is provided, and auto-generated if omitted. + Limits to the range of frequencies. Ignored if omega is provided, and + auto-generated if omitted. omega_num : int Number of frequency samples to plot. Defaults to @@ -563,6 +575,9 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, omit completely. Default linestyle ('--') is determined by config.defaults['nyquist.mirror_style']. + return_contour : bool + If 'True', return the contour used to evaluate the Nyquist plot. + label_freq : int Label every nth frequency on the plot. If not specified, no labels are generated. @@ -584,6 +599,17 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, arrow_style : matplotlib.patches.ArrowStyle Define style used for Nyquist curve arrows (overrides `arrow_size`). + indent_radius : float + Amount to indent the Nyquist contour around poles that are at or near + the imaginary axis. + + indent_direction : str + For poles on the imaginary axis, set the direction of indentation to + be 'right' (default), 'left', or 'none'. + + warn_nyquist : bool, optional + If set to `False', turn off warnings about frequencies above Nyquist. + *args : :func:`matplotlib.pyplot.plot` positional properties, optional Additional arguments for `matplotlib` plots (color, linestyle, etc) @@ -592,24 +618,39 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, Returns ------- - real : ndarray (or list of ndarray if len(syslist) > 1)) - real part of the frequency response array + count : int (or list of int if len(syslist) > 1) + Number of encirclements of the point -1 by the Nyquist curve. If + multiple systems are given, an array of counts is returned. - imag : ndarray (or list of ndarray if len(syslist) > 1)) - imaginary part of the frequency response array + contour : ndarray (or list of ndarray if len(syslist) > 1)), optional + The contour used to create the primary Nyquist curve segment. To + obtain the Nyquist curve values, evaluate system(s) along contour. - omega : ndarray (or list of ndarray if len(syslist) > 1)) - frequencies in rad/s + Notes + ----- + 1. If a discrete time model is given, the frequency response is computed + along the upper branch of the unit circle, using the mapping ``z = + exp(1j * omega * dt)`` where `omega` ranges from 0 to `pi/dt` and `dt` + is the discrete timebase. If timebase not specified (``dt=True``), + `dt` is set to 1. + + 2. If a continuous-time system contains poles on or near the imaginary + axis, a small indentation will be used to avoid the pole. The radius + of the indentation is given by `indent_radius` and it is taken the the + right of stable poles and the left of unstable poles. If a pole is + exactly on the imaginary axis, the `indent_direction` parameter can be + used to set the direction of indentation. Setting `indent_direction` + to `none` will turn off indentation. If `return_contour` is True, the + exact contour used for evaluation is returned. Examples -------- >>> sys = ss([[1, -2], [3, -4]], [[5], [7]], [[6, 8]], [[9]]) - >>> real, imag, freq = nyquist_plot(sys) + >>> count = nyquist_plot(sys) """ # Check to see if legacy 'Plot' keyword was used if 'Plot' in kwargs: - import warnings warnings.warn("'Plot' keyword is deprecated in nyquist_plot; " "use 'plot'", FutureWarning) # Map 'Plot' keyword to 'plot' keyword @@ -617,7 +658,6 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, # Check to see if legacy 'labelFreq' keyword was used if 'labelFreq' in kwargs: - import warnings warnings.warn("'labelFreq' keyword is deprecated in nyquist_plot; " "use 'label_freq'", FutureWarning) # Map 'labelFreq' keyword to 'label_freq' keyword @@ -625,12 +665,16 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, # Check to see if legacy 'arrow_width' or 'arrow_length' were used if 'arrow_width' in kwargs or 'arrow_length' in kwargs: - warn("'arrow_width' and 'arrow_length' keywords are deprecated in " - "nyquist_plot; use `arrow_size` instead", FutureWarning) + warnings.warn( + "'arrow_width' and 'arrow_length' keywords are deprecated in " + "nyquist_plot; use `arrow_size` instead", FutureWarning) kwargs['arrow_size'] = \ - (kwargs.get('arrow_width', 0) + kwargs.get('arrow_width', 0)) / 2 + (kwargs.get('arrow_width', 0) + kwargs.get('arrow_length', 0)) / 2 + kwargs.pop('arrow_width', False) + kwargs.pop('arrow_length', False) # Get values for params (and pop from list to allow keyword use in plot) + omega_num = config._get_param('freqplot', 'number_of_samples', omega_num) mirror_style = config._get_param( 'nyquist', 'mirror_style', kwargs, _nyquist_defaults, pop=True) arrows = config._get_param( @@ -638,21 +682,28 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, arrow_size = config._get_param( 'nyquist', 'arrow_size', kwargs, _nyquist_defaults, pop=True) arrow_style = config._get_param('nyquist', 'arrow_style', kwargs, None) + indent_radius = config._get_param( + 'nyquist', 'indent_radius', kwargs, _nyquist_defaults, pop=True) + indent_direction = config._get_param( + 'nyquist', 'indent_direction', kwargs, _nyquist_defaults, pop=True) # If argument was a singleton, turn it into a list - if not hasattr(syslist, '__iter__'): + isscalar = not hasattr(syslist, '__iter__') + if isscalar: syslist = (syslist,) - # decide whether to go above nyquist. freq + # Decide whether to go above Nyquist frequency omega_range_given = True if omega is not None else False + # Figure out the frequency limits if omega is None: - omega_num = config._get_param( - 'freqplot', 'number_of_samples', omega_num) if omega_limits is None: # Select a default range if none is provided - omega = _default_frequency_range(syslist, - number_of_samples=omega_num) + omega = _default_frequency_range( + syslist, number_of_samples=omega_num) + + # Replace first point with the origin + omega[0] = 0 else: omega_range_given = True omega_limits = np.asarray(omega_limits) @@ -662,30 +713,69 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, np.log10(omega_limits[1]), num=omega_num, endpoint=True) - xs, ys, omegas = [], [], [] + # Go through each system and keep track of the results + counts, contours = [], [] for sys in syslist: if not sys.issiso(): # TODO: Add MIMO nyquist plots. raise ControlMIMONotImplemented( "Nyquist plot currently only supports SISO systems.") + # Figure out the frequency range omega_sys = np.asarray(omega) + + # Determine the contour used to evaluate the Nyquist curve if sys.isdtime(strict=True): + # Transform frequencies in for discrete-time systems nyquistfrq = math.pi / sys.dt if not omega_range_given: # limit up to and including nyquist frequency omega_sys = np.hstack(( omega_sys[omega_sys < nyquistfrq], nyquistfrq)) - mag, phase, omega_sys = sys.frequency_response(omega_sys) + # Issue a warning if we are sampling above Nyquist + if np.any(omega_sys * sys.dt > np.pi) and warn_nyquist: + warnings.warn("evaluation above Nyquist frequency") + + # Transform frequencies to continuous domain + contour = np.exp(1j * omega * sys.dt) + else: + contour = 1j * omega_sys + + # Bend the contour around any poles on/near the imaginary access + if isinstance(sys, (StateSpace, TransferFunction)) and \ + sys.isctime() and indent_direction != 'none': + poles = sys.pole() + for i, s in enumerate(contour): + # Find the nearest pole + p = poles[(np.abs(poles - s)).argmin()] + + # See if we need to indent around it + if abs(s - p) < indent_radius: + if p.real < 0 or \ + (p.real == 0 and indent_direction == 'right'): + # Indent to the right + contour[i] += \ + np.sqrt(indent_radius ** 2 - (s-p).imag ** 2) + elif p.real > 0 or \ + (p.real == 0 and indent_direction == 'left'): + # Indent to the left + contour[i] -= \ + np.sqrt(indent_radius ** 2 - (s-p).imag ** 2) + else: + ValueError("unknown value for indent_direction") + + # TODO: add code to indent around discrete poles on unit circle # Compute the primary curve - x = mag * np.cos(phase) - y = mag * np.sin(phase) + resp = sys(contour) - xs.append(x) - ys.append(y) - omegas.append(omega_sys) + # Compute CW encirclements of -1 by integrating the (unwrapped) angle + phase = -unwrap(np.angle(resp + 1)) + count = int(np.round(np.sum(np.diff(phase)) / np.pi, 0)) + + counts.append(count) + contours.append(contour) if plot: # Parse the arrows keyword @@ -705,6 +795,9 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, arrow_style = mpl.patches.ArrowStyle( 'simple', head_width=arrow_size, head_length=arrow_size) + # Save the components of the response + x, y = resp.real, resp.imag + # Plot the primary curve p = plt.plot(x, y, '-', color=color, *args, **kwargs) c = p[0].get_color() @@ -751,10 +844,11 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, ax.set_ylabel("Imaginary axis") ax.grid(color="lightgray") - if len(syslist) == 1: - return xs[0], ys[0], omegas[0] + # Return counts and (optionally) the contour we used + if return_contour: + return (counts[0], contours[0]) if isscalar else (counts, contours) else: - return xs, ys, omegas + return counts[0] if isscalar else counts # Internal function to add arrows to a curve diff --git a/control/matlab/wrappers.py b/control/matlab/wrappers.py index a120e151b..941fb3ffb 100644 --- a/control/matlab/wrappers.py +++ b/control/matlab/wrappers.py @@ -105,7 +105,13 @@ def nyquist(*args, **kwargs): kwargs.update(other) # Call the nyquist command - return nyquist_plot(syslist, omega, *args, **kwargs) + kwargs['return_contour'] = True + _, contour = nyquist_plot(syslist, omega, *args, **kwargs) + + # Create the MATLAB output arguments + freqresp = syslist(contour) + real, imag = freqresp.real, freqresp.imag + return real, imag, contour.imag def _parse_freqplot_args(*args): diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 86de0e77a..5599e4491 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -75,11 +75,18 @@ def test_nyquist_basic(ss_siso): tf_siso = tf(ss_siso) nyquist_plot(ss_siso) nyquist_plot(tf_siso) - assert len(nyquist_plot(tf_siso, plot=False, omega_num=20)[0] == 20) - omega = nyquist_plot(tf_siso, plot=False, omega_limits=(1, 100))[2] - assert_allclose(omega[0], 1) - assert_allclose(omega[-1], 100) - assert len(nyquist_plot(tf_siso, plot=False, omega=np.logspace(-1, 1, 10))[0])==10 + count, contour = nyquist_plot( + tf_siso, plot=False, return_contour=True, omega_num=20) + assert len(contour) == 20 + + count, contour = nyquist_plot( + tf_siso, plot=False, omega_limits=(1, 100), return_contour=True) + assert_allclose(contour[0], 1j) + assert_allclose(contour[-1], 100j) + + count, contour = nyquist_plot( + tf_siso, plot=False, omega=np.logspace(-1, 1, 10), return_contour=True) + assert len(contour) == 10 @pytest.mark.filterwarnings("ignore:.*non-positive left xlim:UserWarning") diff --git a/control/tests/nyquist_test.py b/control/tests/nyquist_test.py index 0e85eb2e7..bfedd6749 100644 --- a/control/tests/nyquist_test.py +++ b/control/tests/nyquist_test.py @@ -17,35 +17,140 @@ # In interactive mode, turn on ipython interactive graphics plt.ion() +# Utility function for counting unstable poles of open loop (P in FBS) +def _P(sys, indent='right'): + if indent == 'right': + return (sys.pole().real > 0).sum() + elif indent == 'left': + return (sys.pole().real < 0).sum() + elif indent == 'none': + if any(sys.pole().real == 0): + raise ValueError("indent must be left or right for imaginary pole") + else: + raise TypeError("unknown indent value") + +# Utility function for counting unstable poles of closed loop (Z in FBS) +def _Z(sys): + return (sys.feedback().pole().real >= 0).sum() + +# Decorator to close figures when done with test (to avoid matplotlib warning) +@pytest.fixture(scope="function") +def figure_cleanup(): + plt.close('all') + yield + plt.close('all') + +# Basic tests +@pytest.mark.usefixtures("figure_cleanup") +def test_nyquist_basic(): + # Simple Nyquist plot + sys = ct.rss(5, 1, 1) + N_sys = ct.nyquist_plot(sys) + assert _Z(sys) == N_sys + _P(sys) + + # Unstable system + sys = ct.tf([10], [1, 2, 2, 1]) + N_sys = ct.nyquist_plot(sys) + assert _Z(sys) > 0 + assert _Z(sys) == N_sys + _P(sys) + + # Multiple systems - return value is final system + sys1 = ct.rss(3, 1, 1) + sys2 = ct.rss(4, 1, 1) + sys3 = ct.rss(5, 1, 1) + counts = ct.nyquist_plot([sys1, sys2, sys3]) + for N_sys, sys in zip(counts, [sys1, sys2, sys3]): + assert _Z(sys) == N_sys + _P(sys) + + # Nyquist plot with poles at the origin, omega specified + sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0]) + omega = np.linspace(0, 1e2, 100) + count, contour = ct.nyquist_plot(sys, omega, return_contour=True) + np.testing.assert_array_equal( + contour[contour.real < 0], omega[contour.real < 0]) + + # Make sure things match at unmodified frequencies + np.testing.assert_almost_equal( + contour[contour.real == 0], + 1j*np.linspace(0, 1e2, 100)[contour.real == 0]) + + # Make sure that we can turn off frequency modification + count, contour_indented = ct.nyquist_plot( + sys, np.linspace(1e-4, 1e2, 100), return_contour=True) + assert not all(contour_indented.real == 0) + count, contour = ct.nyquist_plot( + sys, np.linspace(1e-4, 1e2, 100), return_contour=True, + indent_direction='none') + np.testing.assert_almost_equal(contour, 1j*np.linspace(1e-4, 1e2, 100)) + + # Nyquist plot with poles at the origin, omega unspecified + sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0]) + count, contour = ct.nyquist_plot(sys, return_contour=True) + assert _Z(sys) == count + _P(sys) + + # Nyquist plot with poles at the origin, return contour + sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0]) + count, contour = ct.nyquist_plot(sys, return_contour=True) + assert _Z(sys) == count + _P(sys) + + # Nyquist plot with poles on imaginary axis, omega specified + sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0, 1]) + count = ct.nyquist_plot(sys, np.linspace(1e-3, 1e1, 1000)) + assert _Z(sys) == count + _P(sys) + + # Nyquist plot with poles on imaginary axis, omega specified, with contour + sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0, 1]) + count, contour = ct.nyquist_plot( + sys, np.linspace(1e-3, 1e1, 1000), return_contour=True) + assert _Z(sys) == count + _P(sys) + + # Nyquist plot with poles on imaginary axis, return contour + sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0, 1]) + count, contour = ct.nyquist_plot(sys, return_contour=True) + assert _Z(sys) == count + _P(sys) + + # Nyquist plot with poles at the origin and on imaginary axis + sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0, 1]) * ct.tf([1], [1, 0]) + count, contour = ct.nyquist_plot(sys, return_contour=True) + assert _Z(sys) == count + _P(sys) + # Some FBS examples, for comparison +@pytest.mark.usefixtures("figure_cleanup") def test_nyquist_fbs_examples(): s = ct.tf('s') - + """Run through various examples from FBS2e to compare plots""" plt.figure() plt.title("Figure 10.4: L(s) = 1.4 e^{-s}/(s+1)^2") sys = ct.tf([1.4], [1, 2, 1]) * ct.tf(*ct.pade(1, 4)) - ct.nyquist_plot(sys) + count = ct.nyquist_plot(sys) + assert _Z(sys) == count + _P(sys) plt.figure() plt.title("Figure 10.4: L(s) = 1/(s + a)^2 with a = 0.6") sys = 1/(s + 0.6)**3 - ct.nyquist_plot(sys) + count = ct.nyquist_plot(sys) + assert _Z(sys) == count + _P(sys) plt.figure() plt.title("Figure 10.6: L(s) = 1/(s (s+1)^2) - pole at the origin") sys = 1/(s * (s+1)**2) - ct.nyquist_plot(sys) + count = ct.nyquist_plot(sys) + assert _Z(sys) == count + _P(sys) plt.figure() plt.title("Figure 10.10: L(s) = 3 (s+6)^2 / (s (s+1)^2)") sys = 3 * (s+6)**2 / (s * (s+1)**2) - ct.nyquist_plot(sys) + count = ct.nyquist_plot(sys) + assert _Z(sys) == count + _P(sys) plt.figure() plt.title("Figure 10.10: L(s) = 3 (s+6)^2 / (s (s+1)^2) [zoom]") - ct.nyquist_plot(sys, omega_limits=[1.5, 1e3]) + count = ct.nyquist_plot(sys, omega_limits=[1.5, 1e3]) + # Frequency limits for zoom give incorrect encirclement count + # assert _Z(sys) == count + _P(sys) + assert count == -1 @pytest.mark.parametrize("arrows", [ @@ -53,11 +158,68 @@ def test_nyquist_fbs_examples(): 1, 2, 3, 4, # specified number of arrows [0.1, 0.5, 0.9], # specify arc lengths ]) +@pytest.mark.usefixtures("figure_cleanup") def test_nyquist_arrows(arrows): sys = ct.tf([1.4], [1, 2, 1]) * ct.tf(*ct.pade(1, 4)) plt.figure(); plt.title("L(s) = 1.4 e^{-s}/(s+1)^2 / arrows = %s" % arrows) - ct.nyquist_plot(sys, arrows=arrows) + count = ct.nyquist_plot(sys, arrows=arrows) + assert _Z(sys) == count + _P(sys) + + +@pytest.mark.usefixtures("figure_cleanup") +def test_nyquist_encirclements(): + # Example 14.14: effect of friction in a cart-pendulum system + s = ct.tf('s') + sys = (0.02 * s**3 - 0.1 * s) / (s**4 + s**3 + s**2 + 0.25 * s + 0.04) + + plt.figure(); + count = ct.nyquist_plot(sys) + plt.title("Stable system; encirclements = %d" % count) + assert _Z(sys) == count + _P(sys) + + plt.figure(); + count = ct.nyquist_plot(sys * 3) + plt.title("Unstable system; encirclements = %d" % count) + assert _Z(sys * 3) == count + _P(sys * 3) + + # System with pole at the origin + sys = ct.tf([3], [1, 2, 2, 1, 0]) + + plt.figure(); + count = ct.nyquist_plot(sys) + plt.title("Pole at the origin; encirclements = %d" % count) + assert _Z(sys) == count + _P(sys) + + +@pytest.mark.usefixtures("figure_cleanup") +def test_nyquist_indent(): + # FBS Figure 10.10 + s = ct.tf('s') + sys = 3 * (s+6)**2 / (s * (s+1)**2) + + plt.figure(); + count = ct.nyquist_plot(sys) + plt.title("Pole at origin; indent_radius=default") + assert _Z(sys) == count + _P(sys) + + plt.figure(); + count = ct.nyquist_plot(sys, indent_radius=0.01) + plt.title("Pole at origin; indent_radius=0.01; encirclements = %d" % count) + assert _Z(sys) == count + _P(sys) + + plt.figure(); + count = ct.nyquist_plot(sys, indent_direction='right') + plt.title( + "Pole at origin; indent_direction='right'; encirclements = %d" % count) + assert _Z(sys) == count + _P(sys) + + plt.figure(); + count = ct.nyquist_plot( + sys, omega_limits=[1e-2, 1e-3], indent_direction='none') + plt.title( + "Pole at origin; indent_direction='none'; encirclements = %d" % count) + assert _Z(sys) == count + _P(sys) def test_nyquist_exceptions(): @@ -68,10 +230,27 @@ def test_nyquist_exceptions(): match="only supports SISO"): ct.nyquist_plot(sys) + # Legacy keywords for arrow size + sys = ct.rss(2, 1, 1) + with pytest.warns(FutureWarning, match="use `arrow_size` instead"): + ct.nyquist_plot(sys, arrow_width=8, arrow_length=6) + + # Discrete time system sampled above Nyquist frequency + sys = ct.drss(2, 1, 1) + sys.dt = 0.01 + with pytest.warns(UserWarning, match="above Nyquist"): + ct.nyquist_plot(sys, np.logspace(-2, 3)) + # # Interactive mode: generate plots for manual viewing # +# Running this script in python (or better ipython) will show a collection of +# figures that should all look OK on the screeen. +# + +# Start by clearing existing figures +plt.close('all') print("Nyquist examples from FBS") test_nyquist_fbs_examples() @@ -79,7 +258,19 @@ def test_nyquist_exceptions(): print("Arrow test") test_nyquist_arrows(None) test_nyquist_arrows(1) -test_nyquist_arrows(2) test_nyquist_arrows(3) -test_nyquist_arrows(4) test_nyquist_arrows([0.1, 0.5, 0.9]) + +print("Stability checks") +test_nyquist_encirclements() + +print("Indentation checks") +test_nyquist_indent() + +print("Unusual Nyquist plot") +sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0, 1]) +print(sys) +print("Poles:", sys.pole()) +plt.figure() +count = ct.nyquist_plot(sys) +assert _Z(sys) == count + _P(sys) diff --git a/examples/bode-and-nyquist-plots.ipynb b/examples/bode-and-nyquist-plots.ipynb index e66ec98dc..4568f8cd0 100644 --- a/examples/bode-and-nyquist-plots.ipynb +++ b/examples/bode-and-nyquist-plots.ipynb @@ -10011,7 +10011,7 @@ ], "source": [ "fig = plt.figure()\n", - "mag, phase, omega = ct.nyquist_plot([pt1_w001hzis, pt2_w001hz])" + "ct.nyquist_plot([pt1_w001hzis, pt2_w001hz])" ] }, { diff --git a/examples/pvtol-nested.py b/examples/pvtol-nested.py index 7efce9ccd..7388ce361 100644 --- a/examples/pvtol-nested.py +++ b/examples/pvtol-nested.py @@ -133,7 +133,6 @@ plt.figure(7) plt.clf() nyquist(L, (0.0001, 1000)) -plt.axis([-700, 5300, -3000, 3000]) # Add a box in the region we are going to expand plt.plot([-400, -400, 200, 200, -400], [-100, 100, 100, -100, -100], 'r-') From b859aece3e8a561e24bbfda711193a4fa18c5c5f Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 6 Feb 2021 11:08:41 -0800 Subject: [PATCH 184/260] updated examples and small tweaks to docs --- control/freqplot.py | 2 +- control/tests/nyquist_test.py | 30 ++++++++++++++++++++++------- examples/pvtol-lqr-nested.ipynb | 34 ++++++++++++++++----------------- examples/pvtol-nested.py | 5 ++--- examples/secord-matlab.py | 2 +- examples/tfvis.py | 6 +++--- 6 files changed, 47 insertions(+), 32 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index e3063d708..23b5571ce 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -742,7 +742,7 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, else: contour = 1j * omega_sys - # Bend the contour around any poles on/near the imaginary access + # Bend the contour around any poles on/near the imaginary axis if isinstance(sys, (StateSpace, TransferFunction)) and \ sys.isctime() and indent_direction != 'none': poles = sys.pole() diff --git a/control/tests/nyquist_test.py b/control/tests/nyquist_test.py index bfedd6749..debda6030 100644 --- a/control/tests/nyquist_test.py +++ b/control/tests/nyquist_test.py @@ -22,7 +22,7 @@ def _P(sys, indent='right'): if indent == 'right': return (sys.pole().real > 0).sum() elif indent == 'left': - return (sys.pole().real < 0).sum() + return (sys.pole().real >= 0).sum() elif indent == 'none': if any(sys.pole().real == 0): raise ValueError("indent must be left or right for imaginary pole") @@ -209,16 +209,33 @@ def test_nyquist_indent(): assert _Z(sys) == count + _P(sys) plt.figure(); - count = ct.nyquist_plot(sys, indent_direction='right') + count = ct.nyquist_plot(sys, indent_direction='left') plt.title( - "Pole at origin; indent_direction='right'; encirclements = %d" % count) + "Pole at origin; indent_direction='left'; encirclements = %d" % count) + assert _Z(sys) == count + _P(sys, indent='left') + + # System with poles on the imaginary axis + sys = ct.tf([1, 1], [1, 0, 1]) + + # Imaginary poles with standard indentation + plt.figure(); + count = ct.nyquist_plot(sys) + plt.title("Imaginary poles; encirclements = %d" % count) assert _Z(sys) == count + _P(sys) + # Imaginary poles with indentation to the left + plt.figure(); + count = ct.nyquist_plot(sys, indent_direction='left', label_freq=300) + plt.title( + "Imaginary poles; indent_direction='left'; encirclements = %d" % count) + assert _Z(sys) == count + _P(sys, indent='left') + + # Imaginary poles with no indentation plt.figure(); count = ct.nyquist_plot( - sys, omega_limits=[1e-2, 1e-3], indent_direction='none') + sys, np.linspace(0, 1e3, 1000), indent_direction='none') plt.title( - "Pole at origin; indent_direction='none'; encirclements = %d" % count) + "Imaginary poles; indent_direction='none'; encirclements = %d" % count) assert _Z(sys) == count + _P(sys) @@ -269,8 +286,7 @@ def test_nyquist_exceptions(): print("Unusual Nyquist plot") sys = ct.tf([1], [1, 3, 2]) * ct.tf([1], [1, 0, 1]) -print(sys) -print("Poles:", sys.pole()) plt.figure() +plt.title("Poles: %s" % np.array2string(sys.pole(), precision=2, separator=',')) count = ct.nyquist_plot(sys) assert _Z(sys) == count + _P(sys) diff --git a/examples/pvtol-lqr-nested.ipynb b/examples/pvtol-lqr-nested.ipynb index 9fff756ff..ceb6424c0 100644 --- a/examples/pvtol-lqr-nested.ipynb +++ b/examples/pvtol-lqr-nested.ipynb @@ -217,7 +217,7 @@ "outputs": [ { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEWCAYAAABrDZDcAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAgAElEQVR4nO3dd3xV9f348dc7m0AgkIQZIOypiAIOHKCouMC96y711+Ko2q9WrbNfra3f1traWvceuFERtQ4UFBnKEBAMO4SRBALZ675/f5wTCTGbnHty730/H4/7uGef9yV63ufz+Zzz+YiqYowxJnJF+R2AMcYYf1kiMMaYCGeJwBhjIpwlAmOMiXCWCIwxJsJZIjDGmAhnicCYNkhE2onIuyKyW0Re8zseE94sEZhGiciRIvKVe1HaKSLzRGSsu+4yEZnr4bk/F5FSESkUkVwReVNEenh1vjbkbKAbkKKq5+zvwURkgohk7X9YTTrXBhGZFIxzmdZhicA0SEQ6Au8B/wC6AL2Au4GyIIYxXVU7AAOBDsCDQTy3X/oCa1S1srk7ikiMB/GYMGaJwDRmMICqvqyqVapaoqofqeoyERkGPAoc7t6x5wOISLyIPCgim0Rku4g8KiLt3HUTRCRLRG517/A3iMhFTQlEVfOBt4GDqpeJSJSI3CIia0UkT0RmiEgXd12CiLzgLs8XkYUi0s1d97mI3C8iC9ySzjvV+7nrp4jICne/z93fWr1ug4jcJCLL3H1fFZEEd12qiLzn7rdTRL4UkSh3XU8ReUNEckRkvYhcW9fvFJG7gTuA89x/1yvd33m7iGwUkR0i8pyIdHK3zxARdbfbBHza2L+l+5vudUt3BSLykYik1jreNBHJFpGtInJjjX2fEZE/1pj/qbQhIs8DfYB33dj/p6G/g2kbLBGYxqwBqkTkWRE5SUQ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BHuBIDuGqoif5qq5+AFwKWB20NzAxlzMYUhnVzNaYEicg04AFV/e0I+2sAk1S1TclGZsxfWYIwpgT5F/Op4V9UPtj+vwFZqrqoRAMzJghLEMYYY4KyNghjjDFBWYIwxhgTlCUIY4wxQVmCMMYYE5QlCGOMMUH9P7053yDpNCoUAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] @@ -329,7 +329,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -343,7 +343,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ @@ -361,7 +361,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -381,7 +381,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 14, "metadata": {}, "outputs": [], "source": [ @@ -397,7 +397,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ @@ -418,7 +418,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 16, "metadata": {}, "outputs": [], "source": [ @@ -429,12 +429,12 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 17, "metadata": {}, "outputs": [ { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEWCAYAAABrDZDcAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAgAElEQVR4nO3deXhcd33v8fd3RvvqXbZlJzaJs5iEJGCSQOAiN/QhoYnDw9akpU1aLr592kCB0DbQNoXcS8vSWwollGuWQoEmDWkLDhjC0igrZLdJHMeJ4oRI3iRZ62iZ0Wi+949zZE9k2ZZkHY005/N6Hj0zZ5vz/WWZz5zfOed3zN0REZH4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dvh5+ydkFfLDM9UTG3R8ws+8AjxBcGfczKnSoCTP7JtAOrDKzbuDTwGeBb5nZhwlC8V3zsi8NMSEiEm9x6RoSEZFpKAhERGJOQSAiEnMKAhGRmFMQiIjEnIJAYi0cufP3SqaPDS9PjGJfv2pmVx1m+avN7Poo9i1yOLp8VGItHIfpR+FIllHv617gne5+4DDr/Bj4kLvvjroekQk6IpC4+yyw0cy2mdnnzGzDxPjvZnapmX3fzH5oZs+Z2RVm9ofh4G73m9mKcL2NZnaLmT1sZneb2amTd2JmJwOZiRAws3eF4+k/amZ3laz6Qyp3WGVZpBQEEndXAjvd/XR3/+Mplr8KeA/BUOZ/C4yGg7vdB7w/XGcr8DF3fx3wR8A1U2znFwjuhp1wFfB2dz8NeGfJ/IeAN82hPSJHLRZDTIjMwR3h8xyGzWyQ4Bs7wOPAa8LRXd8AfDsY+gaAmim2s5ZguOgJPwWuN7NvEQycNqGHYFRNkQWjIBA5vEzJ+2LJdJHg/08CGHD304+wnTGgeWLC3S83s7MJHqSzzcxOd/c+oDZcV2TBqGtI4m4YaJrth8NnPDxnZu+CYNRXMzttilV3ACdNTJjZRnd/wN2vAg7w0jDpJwNPTPF5kcgoCCTWwm/hPw1P3H5ulpt5L/BhM3sU2M7Uj0G9C3itvdR/9Dkzezw8MX0X8Gg4/1zgplnWITIrunxUZIGY2eeBH7r7j6dZXgPcCbzR3fMLWpzEmo4IRBbO3xE8bH06xwFXKgRkoemIQEQk5nREICIScwoCEZGYUxCIiMScgkBEJOYUBCIiMff/AYsViesq+jwdAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] @@ -464,12 +464,12 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 18, "metadata": {}, "outputs": [ { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAY0AAAENCAYAAADzFzkJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZX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HNGlzrHESSfj/mFMAd53/ltGRHwJ5HYpMMjDR5Dm1FUFLFDVnU5dS4F8oBTYo6oLAVT1mHP9beA3IvIL4E7g5QbulQ0cqCebqKonnfMY4EnniaUW6O3IxwBvqGotsFtEZnqUHwdMcc7nAI+JyGvAe6q60xk0GvqsBuPeee+gY8dhjzr3A30b+rCMyMYGDSOSKPc4F+CPqvqsZwYR+Qne9+So4Ysp2/h6df1QVafWq6sQqPQQ1eLuU9LQPVT1hIh8gnsXtRtxPyHU52S9e8N/2/VTYB/uH3QXUOF5iwbqA/eAcJ2jwyPO9NUVwDwRuRjvn9WPGqkz3tHVaGOYT8OIVKYCdzpTMIhIjoh0BGYDXxWRBGc+/yqPMltxTwUBXF+vru+JSIxTV28RSWrk3muBziIy3MmfIiKn/kF7HrdDemG9/9xPsQbo2UjdabifYuqA23HvB41j102O/yUbGOvcOw2IVvemSIhID1Vdoap/wj3F1Bfvn9UM4EYRyXDkntNTvfnyNJrRBrAnDSMiUdVpInIWMNfxTZcBt6nqYhF5E/c+3NuATz2KPQq8JSK3A57TO8/jnnZa7DiVDwDXNnLvKhH5H+AfIpKA+z/yi4EyVS0RkWN4WXmkqmtFJE1EUlT1eANZngLeFZEbgCK+eAp5H7gQWIE7JPYsR34JMN2j/E9EZCzup6LVuPe+rvTyWa0SkYeBWSJSi3v66g6nnvOAhzDaHBYa3WjTiMiDuH/MHz1D9+uMe8vNvt6WBIvIT4HjqurXuxpOXc8Dz3v4evxGRIYCP1PV2wNVpxE+2PSUYZwhROTrwHzcm+I09g7J0/y3r6TFqOq3AjlgOHQAfhPgOo0wwZ40DMMwDJ+xJw3DMAzDZ2zQMAzDMHzGBg3DMAzDZ2zQMAzDMHzGBg3DMAzDZ2zQMAzDMHzm/wOgSJ5G2p6shwAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] @@ -487,12 +487,12 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 19, "metadata": {}, "outputs": [ { "data": { - "image/png": "iVBORw0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WI/LMX4rnAV1aFVf2PJgelvtRsjBlnjBkFVAE3ezIYY8wbxph7PRmDGrg0OSjVvS9wLbgnItki8p6IrBORz0RkmOv4N1wLPm4QkQ9FJPHrXlBEJovICtf1K47MoBWRn4jIY67Ho101l5DONRARucR1fJOILHNryZVCk4NSXbj2dJjLl8tmLMK5iNpE4A7gIdfx5cBUY8x4nEt733mcl94JzHJd/0vgj67jfwdyROSbwOPADV9ZfgTX9fOMMWOBC062bEr1VH9YPkOp3hLsWnoiE1iHcxmQMGA68GKnFU6trq9pwPOuRdQCgf3Hef1I4EkRycW50msAgDHGISJXAZuBh40xn3fzvZ8DT7iWIXmlm/NK9SqtOSj1pWZjzDhgEM43+5tx/o3UuPoijvwb7rr+QeCfxpjRwA04VxL9Or8DPnH1aXzjK9fnAg1ASnffaIy5EfgFzhVjN4pI7MkUUKme0uSg1FcYY2qBW3E2ITUD+0XkEnCufioiY12XRgIlrsdXdnmhrjpff9WRgyISiXNbyVlArIhc/NVvFJFsY8wqY8wvca46nP7Va5TqTZoclOqGMWYDsAnn0tHfBa4VkU3ANr7cNvTXOJubPsP5hn08fwH+JCKf41zx9Yi/AQ8ZY3YD1wL3ishXdwm7T0S2uFYfXuaKTSm30VVZlVJKdaE1B6WUUl1oclBKKdWFJgellFJdaHJQSinVhSYHpZRSXWhyUEop1YUmB6WUUl38fzWOE7ymMk/WAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] @@ -510,12 +510,12 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 20, "metadata": {}, "outputs": [ { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAagAAAEYCAYAAAAJeGK1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAgAElEQVR4nOzdd3hUZfr/8fedHiCEHmoILSC9Vw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@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.7" + "version": "3.7.9" } }, "nbformat": 4, diff --git a/examples/pvtol-nested.py b/examples/pvtol-nested.py index 7388ce361..7b48d2bb5 100644 --- a/examples/pvtol-nested.py +++ b/examples/pvtol-nested.py @@ -135,14 +135,13 @@ nyquist(L, (0.0001, 1000)) # Add a box in the region we are going to expand -plt.plot([-400, -400, 200, 200, -400], [-100, 100, 100, -100, -100], 'r-') +plt.plot([-2, -2, 1, 1, -2], [-4, 4, 4, -4, -4], 'r-') # Expanded region plt.figure(8) plt.clf() -plt.subplot(231) nyquist(L) -plt.axis([-10, 5, -20, 20]) +plt.axis([-2, 1, -4, 4]) # set up the color color = 'b' diff --git a/examples/secord-matlab.py b/examples/secord-matlab.py index 5473adb0a..6cef881c1 100644 --- a/examples/secord-matlab.py +++ b/examples/secord-matlab.py @@ -29,7 +29,7 @@ # Nyquist plot for the system plt.figure(3) -nyquist(sys, logspace(-2, 2)) +nyquist(sys) plt.show(block=False) # Root lcous plot for the system diff --git a/examples/tfvis.py b/examples/tfvis.py index 60b837d99..f05a45780 100644 --- a/examples/tfvis.py +++ b/examples/tfvis.py @@ -341,12 +341,12 @@ def redraw(self): self.f_bode.clf() plt.figure(self.f_bode.number) - control.matlab.bode(self.sys, logspace(-2, 2)) + control.matlab.bode(self.sys, logspace(-2, 2, 1000)) plt.suptitle('Bode Diagram') self.f_nyquist.clf() plt.figure(self.f_nyquist.number) - control.matlab.nyquist(self.sys, logspace(-2, 2)) + control.matlab.nyquist(self.sys, logspace(-2, 2, 1000)) plt.suptitle('Nyquist Diagram') self.f_step.clf() @@ -354,7 +354,7 @@ def redraw(self): try: # Step seems to get intro trouble # with purely imaginary poles - tvec, yvec = control.matlab.step(self.sys) + yvec, tvec = control.matlab.step(self.sys) plt.plot(tvec.T, yvec) except: print("Error plotting step response") From 1d9fc80c883007dc29ee88d237047299e94c84ff Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 7 Feb 2021 16:36:00 -0800 Subject: [PATCH 185/260] update descfcn module for compatibility --- control/descfcn.py | 5 +++-- examples/describing_functions.ipynb | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/control/descfcn.py b/control/descfcn.py index 236125b2e..14a345495 100644 --- a/control/descfcn.py +++ b/control/descfcn.py @@ -241,8 +241,9 @@ def describing_function_plot( """ # Start by drawing a Nyquist curve - H_real, H_imag, H_omega = nyquist_plot(H, omega, plot=True, **kwargs) - H_vals = H_real + 1j * H_imag + count, contour = nyquist_plot( + H, omega, plot=True, return_contour=True, **kwargs) + H_omega, H_vals = contour.imag, H(contour) # Compute the describing function df = describing_function(F, A) diff --git a/examples/describing_functions.ipynb b/examples/describing_functions.ipynb index 7d090bf17..766feb2e2 100644 --- a/examples/describing_functions.ipynb +++ b/examples/describing_functions.ipynb @@ -369,7 +369,7 @@ "amp = np.linspace(0.6, 5, 50)\n", "\n", "# Describing function plot\n", - "ct.describing_function_plot(H_multiple, F_backlash, amp, omega, mirror=False)" + "ct.describing_function_plot(H_multiple, F_backlash, amp, omega, mirror_style=False)" ] }, { From 078e02856d15d3518097dc31120d954f109c92a9 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 7 Feb 2021 17:55:35 -0800 Subject: [PATCH 186/260] small fixes based on @sawyerbfuller, @bnavigator comments --- control/freqplot.py | 14 +++++++------- control/matlab/wrappers.py | 4 ++-- control/tests/nyquist_test.py | 18 +++++++----------- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 23b5571ce..452928236 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -688,8 +688,7 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, 'nyquist', 'indent_direction', kwargs, _nyquist_defaults, pop=True) # If argument was a singleton, turn it into a list - isscalar = not hasattr(syslist, '__iter__') - if isscalar: + if not hasattr(syslist, '__iter__'): syslist = (syslist,) # Decide whether to go above Nyquist frequency @@ -844,11 +843,12 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, ax.set_ylabel("Imaginary axis") ax.grid(color="lightgray") + # "Squeeze" the results + if len(syslist) == 1: + counts, contours = counts[0], contours[0] + # Return counts and (optionally) the contour we used - if return_contour: - return (counts[0], contours[0]) if isscalar else (counts, contours) - else: - return counts[0] if isscalar else counts + return (counts, contours) if return_contour else counts # Internal function to add arrows to a curve @@ -1101,7 +1101,7 @@ def _default_frequency_range(syslist, Hz=None, number_of_samples=None, freq_interesting = [] # detect if single sys passed by checking if it is sequence-like - if not getattr(syslist, '__iter__', False): + if not hasattr(syslist, '__iter__'): syslist = (syslist,) for sys in syslist: diff --git a/control/matlab/wrappers.py b/control/matlab/wrappers.py index 941fb3ffb..f7cbaea41 100644 --- a/control/matlab/wrappers.py +++ b/control/matlab/wrappers.py @@ -59,7 +59,7 @@ def bode(*args, **kwargs): from ..freqplot import bode_plot # If first argument is a list, assume python-control calling format - if (getattr(args[0], '__iter__', False)): + if hasattr(args[0], '__iter__'): return bode_plot(*args, **kwargs) # Parse input arguments @@ -97,7 +97,7 @@ def nyquist(*args, **kwargs): from ..freqplot import nyquist_plot # If first argument is a list, assume python-control calling format - if (getattr(args[0], '__iter__', False)): + if hasattr(args[0], '__iter__'): return nyquist_plot(*args, **kwargs) # Parse arguments diff --git a/control/tests/nyquist_test.py b/control/tests/nyquist_test.py index debda6030..84898cc74 100644 --- a/control/tests/nyquist_test.py +++ b/control/tests/nyquist_test.py @@ -17,6 +17,7 @@ # In interactive mode, turn on ipython interactive graphics plt.ion() + # Utility function for counting unstable poles of open loop (P in FBS) def _P(sys, indent='right'): if indent == 'right': @@ -29,19 +30,14 @@ def _P(sys, indent='right'): else: raise TypeError("unknown indent value") + # Utility function for counting unstable poles of closed loop (Z in FBS) def _Z(sys): return (sys.feedback().pole().real >= 0).sum() -# Decorator to close figures when done with test (to avoid matplotlib warning) -@pytest.fixture(scope="function") -def figure_cleanup(): - plt.close('all') - yield - plt.close('all') # Basic tests -@pytest.mark.usefixtures("figure_cleanup") +@pytest.mark.usefixtures("mplcleanup") def test_nyquist_basic(): # Simple Nyquist plot sys = ct.rss(5, 1, 1) @@ -116,7 +112,7 @@ def test_nyquist_basic(): # Some FBS examples, for comparison -@pytest.mark.usefixtures("figure_cleanup") +@pytest.mark.usefixtures("mplcleanup") def test_nyquist_fbs_examples(): s = ct.tf('s') @@ -158,7 +154,7 @@ def test_nyquist_fbs_examples(): 1, 2, 3, 4, # specified number of arrows [0.1, 0.5, 0.9], # specify arc lengths ]) -@pytest.mark.usefixtures("figure_cleanup") +@pytest.mark.usefixtures("mplcleanup") def test_nyquist_arrows(arrows): sys = ct.tf([1.4], [1, 2, 1]) * ct.tf(*ct.pade(1, 4)) plt.figure(); @@ -167,7 +163,7 @@ def test_nyquist_arrows(arrows): assert _Z(sys) == count + _P(sys) -@pytest.mark.usefixtures("figure_cleanup") +@pytest.mark.usefixtures("mplcleanup") def test_nyquist_encirclements(): # Example 14.14: effect of friction in a cart-pendulum system s = ct.tf('s') @@ -192,7 +188,7 @@ def test_nyquist_encirclements(): assert _Z(sys) == count + _P(sys) -@pytest.mark.usefixtures("figure_cleanup") +@pytest.mark.usefixtures("mplcleanup") def test_nyquist_indent(): # FBS Figure 10.10 s = ct.tf('s') From e0521b987418071bf760b5731a5c2a24faadca92 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 10 Feb 2021 22:09:45 -0800 Subject: [PATCH 187/260] add mplcleanup to fix nichols error --- control/tests/matlab_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/tests/matlab_test.py b/control/tests/matlab_test.py index 4fa03257c..61bc3bdcb 100644 --- a/control/tests/matlab_test.py +++ b/control/tests/matlab_test.py @@ -818,7 +818,7 @@ def test_matlab_wrapper_exceptions(self): with pytest.raises(ValueError, match="needs either 1, 2, 3 or 4"): dcgain(1, 2, 3, 4, 5) - def test_matlab_freqplot_passthru(self): + def test_matlab_freqplot_passthru(self, mplcleanup): """Test nyquist and bode to make sure the pass arguments through""" sys = tf([1], [1, 2, 1]) bode((sys,)) # Passing tuple will call bode_plot From 684d561fcb2bd5e5f7db77760a9f7ee093f9983b Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 11 Feb 2021 15:36:51 -0800 Subject: [PATCH 188/260] changed discrete-time transfer function in freqresp_test.py to be a better-behaved stable transfer function that does not have poles and zeros on the unit circle --- control/tests/freqresp_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 86de0e77a..c73f5343e 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -220,7 +220,7 @@ def dsystem_dt(request): dt = request.param systems = {'sssiso': StateSpace(sys.A, sys.B, sys.C, sys.D, dt), 'ssmimo': StateSpace(A, B, C, D, dt), - 'tf': TransferFunction([1, 1], [1, 2, 1], dt)} + 'tf': TransferFunction([2, 1], [2, 1, 1], dt)} return systems From b9a21e4b11163d1140d0fb2ebe3cb774a92d3560 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 15 Feb 2021 23:04:54 -0800 Subject: [PATCH 189/260] DOC: fix sphinx errors --- control/freqplot.py | 2 +- doc/descfcn.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 452928236..750d84d27 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -608,7 +608,7 @@ def nyquist_plot(syslist, omega=None, plot=True, omega_limits=None, be 'right' (default), 'left', or 'none'. warn_nyquist : bool, optional - If set to `False', turn off warnings about frequencies above Nyquist. + If set to 'False', turn off warnings about frequencies above Nyquist. *args : :func:`matplotlib.pyplot.plot` positional properties, optional Additional arguments for `matplotlib` plots (color, linestyle, etc) diff --git a/doc/descfcn.rst b/doc/descfcn.rst index 240bbb894..05f6bd94a 100644 --- a/doc/descfcn.rst +++ b/doc/descfcn.rst @@ -59,7 +59,7 @@ nonlinearity constructors are predefined: .. code:: python - backlash_nonlinearity(b) # backlash nonlinearity with width b + friction_backlash_nonlinearity(b) # backlash nonlinearity with width b relay_hysteresis_nonlinearity(b, c) # relay output of amplitude b with # hysteresis of half-width c saturation_nonlinearity(ub[, lb]) # saturation nonlinearity with upper @@ -81,6 +81,6 @@ Module classes and functions :toctree: generated/ ~control.DescribingFunctionNonlinearity - ~control.backlash_nonlinearity + ~control.friction_backlash_nonlinearity ~control.relay_hysteresis_nonlinearity ~control.saturation_nonlinearity From e42c3609168bba2d5b3745684e1e9a0d51d81abf Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 28 Dec 2020 08:10:55 -0800 Subject: [PATCH 190/260] margin() docstring updates --- control/margins.py | 48 +++++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/control/margins.py b/control/margins.py index 02d615e05..8be7020ca 100644 --- a/control/margins.py +++ b/control/margins.py @@ -211,28 +211,33 @@ def fun(wdt): # Sawyer B. Fuller , removed a lot of the innards # and replaced with analytical polynomial functions for LTI systems. # -# idea for the frequency data solution copied/adapted from +# The idea for the frequency data solution copied/adapted from # https://github.com/alchemyst/Skogestad-Python/blob/master/BODE.py # Rene van Paassen # # RvP, July 8, 2014, corrected to exclude phase=0 crossing for the gain # margin polynomial +# # RvP, July 8, 2015, augmented to calculate all phase/gain crossings with # frd data. Correct to return smallest phase # margin, smallest gain margin and their frequencies +# # RvP, Jun 10, 2017, modified the inclusion of roots found for phase -# crossing to include all >= 0, made subsequent calc -# insensitive to div by 0 -# also changed the selection of which crossings to -# return on basis of "A note on the Gain and Phase -# Margin Concepts" Journal of Control and Systems -# Engineering, Yazdan Bavafi-Toosi, Dec 2015, vol 3 -# issue 1, pp 51-59, closer to Matlab behavior, but -# not completely identical in edge cases, which don't -# cross but touch gain=1 +# crossing to include all >= 0, made subsequent +# calc insensitive to div by 0. Also changed the +# selection of which crossings to return on basis +# of "A note on the Gain and Phase Margin Concepts" +# Journal of Control and Systems Engineering, +# Yazdan Bavafi-Toosi, Dec 2015, vol 3 issue 1, pp +# 51-59, closer to Matlab behavior, but not +# completely identical in edge cases, which don't +# cross but touch gain=1. +# # BG, Nov 9, 2020, removed duplicate implementations of the same code # for crossover frequencies and enhanced to handle discrete # systems + +>>>>>>> Stashed changes def stability_margins(sysdata, returnall=False, epsw=0.0): """Calculate stability margins and associated crossover frequencies. @@ -240,7 +245,7 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): ---------- sysdata: LTI system or (mag, phase, omega) sequence sys : LTI system - Linear SISO system + Linear SISO system representing the loop transfer function mag, phase, omega : sequence of array_like Arrays of magnitudes (absolute values, not dB), phases (degrees), and corresponding frequencies. Crossover frequencies returned are @@ -261,12 +266,19 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): Phase margin sm: float or array_like Stability margin, the minimum distance from the Nyquist plot to -1 - wg: float or array_like - Frequency for gain margin (at phase crossover, phase = -180 degrees) - wp: float or array_like - Frequency for phase margin (at gain crossover, gain = 1) - ws: float or array_like - Frequency for stability margin (complex gain closest to -1) + wpc: float or array_like + Phase crossover frequency (where phase crosses -180 degrees) + wgc: float or array_like + Gain crossover frequency (where gain crosses 1) + wms: float or array_like + Stability margin frequency (where Nyquist plot is closest to -1) + + Note that the gain margin is determined by the gain of the loop + transfer function at the phase crossover frequency(s), the phase + margin is determined by the phase of the loop transfer function at + the gain crossover frequency(s), and the stability margin is + determined by the frequency of maximum sensitivity (given by the + magnitude of 1/(1+L)). """ try: if isinstance(sysdata, frdata.FRD): @@ -456,7 +468,7 @@ def margin(*args): ---------- sysdata : LTI system or (mag, phase, omega) sequence sys : StateSpace or TransferFunction - Linear SISO system + Linear SISO system representing the loop transfer function mag, phase, omega : sequence of array_like Input magnitude, phase (in deg.), and frequencies (rad/sec) from bode frequency response data From 0e247b1ed72c1aaba7d973a6be31a7a2099d300c Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 30 Dec 2020 13:47:06 -0800 Subject: [PATCH 191/260] remove extraneous text + PEP8 cleanup --- control/margins.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/control/margins.py b/control/margins.py index 8be7020ca..4916a092e 100644 --- a/control/margins.py +++ b/control/margins.py @@ -237,7 +237,7 @@ def fun(wdt): # for crossover frequencies and enhanced to handle discrete # systems ->>>>>>> Stashed changes + def stability_margins(sysdata, returnall=False, epsw=0.0): """Calculate stability margins and associated crossover frequencies. @@ -411,7 +411,8 @@ def _dstab(w): (not SM.shape[0] and float('inf')) or np.amin(SM), (not gmidx != -1 and float('nan')) or w_180[gmidx][0], (not wc.shape[0] and float('nan')) or wc[pmidx][0], - (not wstab.shape[0] and float('nan')) or wstab[SM==np.amin(SM)][0]) + (not wstab.shape[0] and float('nan')) or + wstab[SM == np.amin(SM)][0]) # Contributed by Steffen Waldherr @@ -504,6 +505,6 @@ def margin(*args): margin = stability_margins(args) else: raise ValueError("Margin needs 1 or 3 arguments; received %i." - % len(args)) + % len(args)) return margin[0], margin[1], margin[3], margin[4] From 0c78aff417740595f7fd0bac2e0af83a5b76619e Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 20 Feb 2021 14:00:41 -0800 Subject: [PATCH 192/260] fix a few inconsistencies --- control/margins.py | 46 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/control/margins.py b/control/margins.py index 4916a092e..a35be18e9 100644 --- a/control/margins.py +++ b/control/margins.py @@ -222,16 +222,15 @@ def fun(wdt): # frd data. Correct to return smallest phase # margin, smallest gain margin and their frequencies # -# RvP, Jun 10, 2017, modified the inclusion of roots found for phase -# crossing to include all >= 0, made subsequent -# calc insensitive to div by 0. Also changed the -# selection of which crossings to return on basis -# of "A note on the Gain and Phase Margin Concepts" -# Journal of Control and Systems Engineering, -# Yazdan Bavafi-Toosi, Dec 2015, vol 3 issue 1, pp -# 51-59, closer to Matlab behavior, but not -# completely identical in edge cases, which don't -# cross but touch gain=1. +# RvP, Jun 10, 2017, modified the inclusion of roots found for phase crossing +# to include all >= 0, made subsequent calc insensitive to +# div by 0. Also changed the selection of which crossings +# to return on basis of "A note on the Gain and Phase +# Margin Concepts" Journal of Control and Systems +# Engineering, Yazdan Bavafi-Toosi, Dec 2015, vol 3 issue +# 1, pp 51-59, closer to Matlab behavior, but not +# completely identical in edge cases, which don't cross but +# touch gain=1. # # BG, Nov 9, 2020, removed duplicate implementations of the same code # for crossover frequencies and enhanced to handle discrete @@ -260,17 +259,17 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): Returns ------- - gm: float or array_like + gm : float or array_like Gain margin - pm: float or array_loke + pm : float or array_loke Phase margin - sm: float or array_like + sm : float or array_like Stability margin, the minimum distance from the Nyquist plot to -1 - wpc: float or array_like + wpc : float or array_like Phase crossover frequency (where phase crosses -180 degrees) - wgc: float or array_like + wgc : float or array_like Gain crossover frequency (where gain crosses 1) - wms: float or array_like + wms : float or array_like Stability margin frequency (where Nyquist plot is closest to -1) Note that the gain margin is determined by the gain of the loop @@ -480,17 +479,16 @@ def margin(*args): Gain margin pm : float Phase margin (in degrees) - wg: float - Frequency for gain margin (at phase crossover, phase = -180 degrees) - wp: float - Frequency for phase margin (at gain crossover, gain = 1) + wpc : float or array_like + Phase crossover frequency (where phase crosses -180 degrees) + wgc : float or array_like + Gain crossover frequency (where gain crosses 1) Margins are calculated for a SISO open-loop system. - If there is more than one gain crossover, the one at the smallest - margin (deviation from gain = 1), in absolute sense, is - returned. Likewise the smallest phase margin (in absolute sense) - is returned. + If there is more than one gain crossover, the one at the smallest margin + (deviation from gain = 1), in absolute sense, is returned. Likewise the + smallest phase margin (in absolute sense) is returned. Examples -------- From ba9251b29f7658b9ab5c6e91025729c361acb5d2 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 24 Feb 2021 15:53:46 -0800 Subject: [PATCH 193/260] checkout SLICOT submodule --- .github/workflows/control-slycot-src.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/control-slycot-src.yml b/.github/workflows/control-slycot-src.yml index 5c55eea73..13a66e426 100644 --- a/.github/workflows/control-slycot-src.yml +++ b/.github/workflows/control-slycot-src.yml @@ -33,7 +33,9 @@ jobs: # Compile and install slycot git clone https://github.com/python-control/Slycot.git slycot - cd slycot; python setup.py build_ext install -DBLA_VENDOR=Generic + cd slycot + git submodule update --init + python setup.py build_ext install -DBLA_VENDOR=Generic - name: Test with pytest run: xvfb-run --auto-servernum pytest control/tests From f35331b7075860efeafbac805e188a43bc2f06ba Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 18 Feb 2021 08:31:12 -0800 Subject: [PATCH 194/260] update np.float to float to fix SciPy 1.20 deprecation warnings --- control/tests/input_element_int_test.py | 2 +- control/tests/timeresp_test.py | 4 ++-- control/tests/xferfcn_input_test.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/control/tests/input_element_int_test.py b/control/tests/input_element_int_test.py index 94e5efcb5..5b3b801c6 100644 --- a/control/tests/input_element_int_test.py +++ b/control/tests/input_element_int_test.py @@ -63,4 +63,4 @@ def test_ss_input_with_0int_dcgain(self): d = 0 sys = ss(a, b, c, d) np.testing.assert_allclose(dcgain(sys), 0, - atol=np.finfo(np.float).epsneg) + atol=np.finfo(float).epsneg) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index f6c15f691..751cd35b0 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -408,7 +408,7 @@ def test_forced_response_step(self, tsystem): """Test forced response of SISO systems as step response""" sys = tsystem.sys t = tsystem.t - u = np.ones_like(t, dtype=np.float) + u = np.ones_like(t, dtype=float) yref = tsystem.ystep tout, yout = forced_response(sys, t, u) @@ -416,7 +416,7 @@ def test_forced_response_step(self, tsystem): np.testing.assert_array_almost_equal(yout, yref, decimal=4) @pytest.mark.parametrize("u", - [np.zeros((10,), dtype=np.float), + [np.zeros((10,), dtype=float), 0] # special algorithm ) def test_forced_response_initial(self, siso_ss1, u): diff --git a/control/tests/xferfcn_input_test.py b/control/tests/xferfcn_input_test.py index 995f6ac03..00024ba4c 100644 --- a/control/tests/xferfcn_input_test.py +++ b/control/tests/xferfcn_input_test.py @@ -54,15 +54,15 @@ @pytest.mark.parametrize("dtype", - [np.int, np.int8, np.int16, np.int32, np.int64, - np.float, np.float16, np.float32, np.float64, + [int, np.int8, np.int16, np.int32, np.int64, + float, np.float16, np.float32, np.float64, np.longdouble]) @pytest.mark.parametrize("num, fun", cases.values(), ids=cases.keys()) def test_clean_part(num, fun, dtype): """Test clean part for various inputs""" numa = fun(dtype, num) num_ = _clean_part(numa) - ref_ = np.array(num, dtype=np.float, ndmin=3) + ref_ = np.array(num, dtype=float, ndmin=3) assert isinstance(num_, list) assert np.all([isinstance(part, list) for part in num_]) From 00297d6881aa423c5dd30143e4b539691984d7c0 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 28 Dec 2020 08:07:10 -0800 Subject: [PATCH 195/260] draft unit test --- control/tests/obc_test.py | 164 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 control/tests/obc_test.py diff --git a/control/tests/obc_test.py b/control/tests/obc_test.py new file mode 100644 index 000000000..9b3260d44 --- /dev/null +++ b/control/tests/obc_test.py @@ -0,0 +1,164 @@ +#!/usr/bin/env python +# +# obc_test.py - tests for optimization based control +# RMM, 17 Apr 2019 +# +# This test suite checks the functionality for optimization based control. + +import unittest +import warnings +import numpy as np +import scipy as sp +import control as ct +import control.pwa as pwa +import polytope as pc + +class TestOBC(unittest.TestCase): + def setUp(self): + # Turn off numpy matrix warnings + import warnings + warnings.simplefilter('ignore', category=PendingDeprecationWarning) + + def test_finite_horizon_mpc_simple(self): + # Define a linear system with constraints + # Source: https://www.mpt3.org/UI/RegulationProblem + + # LTI prediction model + model = pwa.ConstrainedAffineSystem( + A = [[1, 1], [0, 1]], B = [[1], [0.5]], C = np.eye(2)) + + # state and input constraints + model.add_state_constraints(pc.box2poly([[-5, 5], [-5, 5]])) + model.add_input_constraints(pc.box2poly([-1, 1])) + + # quadratic state and input penalty + Q = [[1, 0], [0, 1]] + R = [[1]] + + # Create a model predictive controller system + mpc = obc.ModelPredictiveController( + model, + obc.QuadraticCost(Q, R), + horizon=5) + + # Optimal control input for a given value of the initial state: + x0 = [4, 0] + u = mpc.compute_input(x0) + self.assertEqual(u, -1) + + # retrieve the full open-loop predictions + (u_openloop, feasible, openloop) = mpc.compute_trajectory(x0) + np.testing.assert_array_almost_equal( + u_openloop, [-1, -1, 0.1393, 0.3361, -5.2042e-16]) + + # convert it to an explicit form + mpc_explicit = mpc.explicit(); + + # Test explicit controller + (u_explicit, feasible, openloop) = mpc_explicit(x0) + np.testing.assert_array_almost_equal(u_openloop, u_explicit) + + @unittest.skipIf(True, "Not yet implemented.") + def test_finite_horizon_mpc_oscillator(self): + # oscillator model defined in 2D + # Source: https://www.mpt3.org/UI/RegulationProblem + A = [[0.5403, -0.8415], [0.8415, 0.5403]] + B = [[-0.4597], [0.8415]] + C = [[1, 0]] + D = [[0]] + + # Linear discrete-time model with sample time 1 + sys = ss(A, B, C, D, 1); + model = LTISystem(sys); + + # state and input constraints + model.add_state_constraints(pc.box2poly([[-10, 10]])) + model.add_input_constraints(pc.box2poly([-1, 1])) + + # Include weights on states/inputs + model.x.penalty = QuadFunction(np.eye(2)); + model.u.penalty = QuadFunction(1); + + # Compute terminal set + Tset = model.LQRSet; + + # Compute terminal weight + PN = model.LQRPenalty; + + # Add terminal set and terminal penalty + # model.x.with('terminalSet'); + model.x.terminalSet = Tset; + # model.x.with('terminalPenalty'); + model.x.terminalPenalty = PN; + + # Formulate finite horizon MPC problem + ctrl = MPCController(model,5); + + # Add tests to make sure everything works + + # TODO: move this to examples? + @unittest.skipIf(True, "Not yet implemented.") + def test_finite_horizon_mpc_oscillator(self): + # model of an aircraft discretized with 0.2s sampling time + # Source: https://www.mpt3.org/UI/RegulationProblem + A = [[0.99, 0.01, 0.18, -0.09, 0], + [ 0, 0.94, 0, 0.29, 0], + [ 0, 0.14, 0.81, -0.9, 0] + [ 0, -0.2, 0, 0.95, 0], + [ 0, 0.09, 0, 0, 0.9]] + B = [[ 0.01, -0.02], + [-0.14, 0], + [ 0.05, -0.2], + [ 0.02, 0], + [-0.01, 0]] + C = [[0, 1, 0, 0, -1], + [0, 0, 1, 0, 0], + [0, 0, 0, 1, 0], + [1, 0, 0, 0, 0]] + model = LTISystem('A', A, 'B', B, 'C', C, 'Ts', 0.2); + + # compute the new steady state values for a particular value + # of the input + us = [0.8, -0.3]; + # ys = C*( (eye(5)-A)\B*us ); + + # computed values will be used as references for the desired + # steady state which can be added using "reference" filter + # model.u.with('reference'); + model.u.reference = us; + # model.y.with('reference'); + model.y.reference = ys; + + # provide constraints and penalties on the system signals + model.u.min = [-5, -6]; + model.u.max = [5, 6]; + + # penalties on outputs and inputs are provided as quadratic functions + model.u.penalty = QuadFunction( diag([3, 2]) ); + model.y.penalty = QuadFunction( diag([10, 10, 10, 10]) ); + + # online MPC controller object is constructed with a horizon 6 + ctrl = MPCController(model, 6) + + # loop = ClosedLoop(ctrl, model); + x0 = [0, 0, 0, 0, 0]; + Nsim = 30; + data = loop.simulate(x0, Nsim); + + # Plot the results + subplot(2,1,1) + plot(np.range(Nsim), data.Y); + plot(np.range(Nsim), ys*ones(1, Nsim), 'k--') + title('outputs') + subplot(2,1,2) + plot(np.range(Nsim), data.U); + plot(np.range(Nsim), us*ones(1, Nsim), 'k--') + title('inputs') + + +def suite(): + return unittest.TestLoader().loadTestsFromTestCase(TestTimeresp) + + +if __name__ == '__main__': + unittest.main() From 23cb793909b7bcb1cd040c8d4fb0971109d7a0c9 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Wed, 30 Dec 2020 13:50:46 -0800 Subject: [PATCH 196/260] convert to pytest --- control/tests/obc_test.py | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/control/tests/obc_test.py b/control/tests/obc_test.py index 9b3260d44..858989d2a 100644 --- a/control/tests/obc_test.py +++ b/control/tests/obc_test.py @@ -1,11 +1,10 @@ -#!/usr/bin/env python -# -# obc_test.py - tests for optimization based control -# RMM, 17 Apr 2019 -# -# This test suite checks the functionality for optimization based control. - -import unittest +"""obc_test.py - tests for optimization based control + +RMM, 17 Apr 2019 check the functionality for optimization based control. +RMM, 30 Dec 2020 convert to pytest +""" + +import pytest import warnings import numpy as np import scipy as sp @@ -13,7 +12,7 @@ import control.pwa as pwa import polytope as pc -class TestOBC(unittest.TestCase): +class TestOBC: def setUp(self): # Turn off numpy matrix warnings import warnings @@ -154,11 +153,3 @@ def test_finite_horizon_mpc_oscillator(self): plot(np.range(Nsim), data.U); plot(np.range(Nsim), us*ones(1, Nsim), 'k--') title('inputs') - - -def suite(): - return unittest.TestLoader().loadTestsFromTestCase(TestTimeresp) - - -if __name__ == '__main__': - unittest.main() From 8711900e309e1c9a9f589383aa2982df52c82669 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 12 Feb 2021 19:51:09 -0800 Subject: [PATCH 197/260] initial minimal implementation (working) --- control/obc.py | 217 ++++++++++++++++++++++++++++++++++++++ control/tests/obc_test.py | 214 +++++++++++++------------------------ 2 files changed, 289 insertions(+), 142 deletions(-) create mode 100644 control/obc.py diff --git a/control/obc.py b/control/obc.py new file mode 100644 index 000000000..3c502d2d2 --- /dev/null +++ b/control/obc.py @@ -0,0 +1,217 @@ +# obc.py - optimization based control module +# +# RMM, 11 Feb 2021 +# + +"""The "mod:`~control.obc` module provides support for optimization-based +controllers for nonlinear systems with state and input constraints. + +""" + +import numpy as np +import scipy as sp +import scipy.optimize as opt +import control as ct +import warnings + +from .timeresp import _process_time_response + +class ModelPredictiveController(): + """The :class:`ModelPredictiveController` class is a front end for computing + an optimal control input for a nonilinear system with a user-defined cost + function and state and input constraints. + + """ + def __init__( + self, sys, time, integral_cost, trajectory_constraints=[], + terminal_cost=None, terminal_constraints=[]): + + self.system = sys + self.time_vector = time + self.integral_cost = integral_cost + self.trajectory_constraints = trajectory_constraints + self.terminal_cost = terminal_cost + self.terminal_constraints = terminal_constraints + + # + # The approach that we use here is to set up an optimization over the + # inputs at each point in time, using the integral and terminal costs + # as well as the trajectory and terminal constraints. The main work + # of this method is to create the optimization problem that can be + # solved with scipy.optimize.minimize(). + # + + # Gather together all of the constraints + constraint_lb, constraint_ub = [], [] + for time in self.time_vector: + for constraint in self.trajectory_constraints: + type, fun, lb, ub = constraint + constraint_lb.append(lb) + constraint_ub.append(ub) + for constraint in self.terminal_constraints: + type, fun, lb, ub = constraint + constraint_lb.append(lb) + constraint_ub.append(ub) + + # Turn constraint vectors into 1D arrays + self.constraint_lb = np.hstack(constraint_lb) + self.constraint_ub = np.hstack(constraint_ub) + + # Create the new constraint + self.constraints = sp.optimize.NonlinearConstraint( + self.constraint_function, self.constraint_lb, self.constraint_ub) + + # Initial guess + self.initial_guess = np.zeros( + self.system.ninputs * self.time_vector.size) + + # + # Cost function + # + # Given the input U = [u[0], ... u[N]], we need to compute the cost of + # the trajectory generated by that input. This means we have to + # simulate the system to get the state trajectory X = [x[0], ..., + # x[N]] and then compute the cost at each point: + # + # Cost = sum_k integral_cost(x[k], u[k]) + terminal_cost(x[N], u[N]) + # + def cost_function(self, inputs): + # Reshape the input vector + inputs = inputs.reshape( + (self.system.ninputs, self.time_vector.size)) + + # Simulate the system to get the state + _, _, states = ct.input_output_response( + self.system, self.time_vector, inputs, self.x, return_x=True) + + # Trajectory cost + # TODO: vectorize + cost = 0 + for i, time in enumerate(self.time_vector): + cost += self.integral_cost(states[:,i], inputs[:,i]) + + # Terminal cost + if self.terminal_cost is not None: + cost += self.terminal_cost(states[:,-1], inputs[:,-1]) + + # Return the total cost for this input sequence + return cost + + # + # Constraints + # + # We are given the constraints along the trajectory and the terminal + # constraints, which each take inputs [x, u] and evaluate the + # constraint. How we handle these depends on the type of constraint: + # + # We have stored the form of the constraint at a single point, but we + # now need to extend this to apply to each point in the trajectory. + # This means that we need to create N constraints, each of which holds + # at a specific point in time, and implements the original constraint. + # + # To do this, we basically create a function that simulates the system + # dynamics and returns a vector of values corresponding to the value + # of the function at each time. We also replicate the upper and lower + # bounds for each point in time. + # + + # Define a function to evaluate all of the constraints + def constraint_function(self, inputs): + # Reshape the input vector + inputs = inputs.reshape( + (self.system.ninputs, self.time_vector.size)) + + # Simulate the system to get the state + _, _, states = ct.input_output_response( + self.system, self.time_vector, inputs, self.x, return_x=True) + + value = [] + for i, time in enumerate(self.time_vector): + for constraint in self.trajectory_constraints: + type, fun, lb, ub = constraint + if type == opt.LinearConstraint: + value.append( + np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + else: + raise TypeError("unknown constraint type %s" % + constraint[0]) + + for constraint in self.terminal_constraints: + type, fun, lb, ub = constraint + if type == opt.LinearConstraint: + value.append( + np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + else: + raise TypeError("unknown constraint type %s" % + constraint[0]) + + # Return the value of the constraint function + return np.hstack(value) + + def __call__(self, x): + """Compute the optimal input at state x""" + # Store the starting point + # TODO: call compute_trajectory? + self.x = x + + # Call ScipPy optimizer + res = sp.optimize.minimize( + self.cost_function, self.initial_guess, + constraints=self.constraints) + + # Return the result + if res.success: + return res.x[0] + else: + warnings.warn(res.message) + return None + + def compute_trajectory( + self, x, squeeze=None, transpose=None, return_x=None): + """Compute the optimal input at state x""" + # Store the starting point + self.x = x + + # Call ScipPy optimizer + res = sp.optimize.minimize( + self.cost_function, self.initial_guess, + constraints=self.constraints) + + # See if we got an answer + if not res.success: + warnings.warn(res.message) + return None + + # Reshape the input vector + inputs = res.x.reshape( + (self.system.ninputs, self.time_vector.size)) + + return _process_time_response( + self.system, self.time_vector, inputs, None, + transpose=transpose, return_x=return_x, squeeze=squeeze) + +def state_poly_constraint(sys, polytope): + """Create state constraint from polytope""" + # TODO: make sure the system and constraints are compatible + + # Return a linear constraint object based on the polynomial + return (opt.LinearConstraint, + np.hstack( + [polytope.A, np.zeros((polytope.A.shape[0], sys.ninputs))]), + np.full(polytope.A.shape[0], -np.inf), polytope.b) + + +def input_poly_constraint(sys, polytope): + """Create input constraint from polytope""" + # TODO: make sure the system and constraints are compatible + + # Return a linear constraint object based on the polynomial + return (opt.LinearConstraint, + np.hstack( + [np.zeros((polytope.A.shape[0], sys.nstates)), polytope.A]), + np.full(polytope.A.shape[0], -np.inf), polytope.b) + + +def quadratic_cost(sys, Q, R): + """Create quadratic cost function""" + return lambda x, u: x @ Q @ x + u @ R @ u diff --git a/control/tests/obc_test.py b/control/tests/obc_test.py index 858989d2a..b340d2c12 100644 --- a/control/tests/obc_test.py +++ b/control/tests/obc_test.py @@ -9,147 +9,77 @@ import numpy as np import scipy as sp import control as ct -import control.pwa as pwa +import control.obc as obc import polytope as pc -class TestOBC: - def setUp(self): - # Turn off numpy matrix warnings - import warnings - warnings.simplefilter('ignore', category=PendingDeprecationWarning) - - def test_finite_horizon_mpc_simple(self): - # Define a linear system with constraints - # Source: https://www.mpt3.org/UI/RegulationProblem - - # LTI prediction model - model = pwa.ConstrainedAffineSystem( - A = [[1, 1], [0, 1]], B = [[1], [0.5]], C = np.eye(2)) - - # state and input constraints - model.add_state_constraints(pc.box2poly([[-5, 5], [-5, 5]])) - model.add_input_constraints(pc.box2poly([-1, 1])) - - # quadratic state and input penalty - Q = [[1, 0], [0, 1]] - R = [[1]] - - # Create a model predictive controller system - mpc = obc.ModelPredictiveController( - model, - obc.QuadraticCost(Q, R), - horizon=5) - - # Optimal control input for a given value of the initial state: - x0 = [4, 0] - u = mpc.compute_input(x0) - self.assertEqual(u, -1) - - # retrieve the full open-loop predictions - (u_openloop, feasible, openloop) = mpc.compute_trajectory(x0) - np.testing.assert_array_almost_equal( - u_openloop, [-1, -1, 0.1393, 0.3361, -5.2042e-16]) - - # convert it to an explicit form - mpc_explicit = mpc.explicit(); - - # Test explicit controller - (u_explicit, feasible, openloop) = mpc_explicit(x0) - np.testing.assert_array_almost_equal(u_openloop, u_explicit) - - @unittest.skipIf(True, "Not yet implemented.") - def test_finite_horizon_mpc_oscillator(self): - # oscillator model defined in 2D - # Source: https://www.mpt3.org/UI/RegulationProblem - A = [[0.5403, -0.8415], [0.8415, 0.5403]] - B = [[-0.4597], [0.8415]] - C = [[1, 0]] - D = [[0]] - - # Linear discrete-time model with sample time 1 - sys = ss(A, B, C, D, 1); - model = LTISystem(sys); - - # state and input constraints - model.add_state_constraints(pc.box2poly([[-10, 10]])) - model.add_input_constraints(pc.box2poly([-1, 1])) - - # Include weights on states/inputs - model.x.penalty = QuadFunction(np.eye(2)); - model.u.penalty = QuadFunction(1); - - # Compute terminal set - Tset = model.LQRSet; - - # Compute terminal weight - PN = model.LQRPenalty; - - # Add terminal set and terminal penalty - # model.x.with('terminalSet'); - model.x.terminalSet = Tset; - # model.x.with('terminalPenalty'); - model.x.terminalPenalty = PN; - - # Formulate finite horizon MPC problem - ctrl = MPCController(model,5); - - # Add tests to make sure everything works - - # TODO: move this to examples? - @unittest.skipIf(True, "Not yet implemented.") - def test_finite_horizon_mpc_oscillator(self): - # model of an aircraft discretized with 0.2s sampling time - # Source: https://www.mpt3.org/UI/RegulationProblem - A = [[0.99, 0.01, 0.18, -0.09, 0], - [ 0, 0.94, 0, 0.29, 0], - [ 0, 0.14, 0.81, -0.9, 0] - [ 0, -0.2, 0, 0.95, 0], - [ 0, 0.09, 0, 0, 0.9]] - B = [[ 0.01, -0.02], - [-0.14, 0], - [ 0.05, -0.2], - [ 0.02, 0], - [-0.01, 0]] - C = [[0, 1, 0, 0, -1], - [0, 0, 1, 0, 0], - [0, 0, 0, 1, 0], - [1, 0, 0, 0, 0]] - model = LTISystem('A', A, 'B', B, 'C', C, 'Ts', 0.2); - - # compute the new steady state values for a particular value - # of the input - us = [0.8, -0.3]; - # ys = C*( (eye(5)-A)\B*us ); - - # computed values will be used as references for the desired - # steady state which can be added using "reference" filter - # model.u.with('reference'); - model.u.reference = us; - # model.y.with('reference'); - model.y.reference = ys; - - # provide constraints and penalties on the system signals - model.u.min = [-5, -6]; - model.u.max = [5, 6]; - - # penalties on outputs and inputs are provided as quadratic functions - model.u.penalty = QuadFunction( diag([3, 2]) ); - model.y.penalty = QuadFunction( diag([10, 10, 10, 10]) ); - - # online MPC controller object is constructed with a horizon 6 - ctrl = MPCController(model, 6) - - # loop = ClosedLoop(ctrl, model); - x0 = [0, 0, 0, 0, 0]; - Nsim = 30; - data = loop.simulate(x0, Nsim); - - # Plot the results - subplot(2,1,1) - plot(np.range(Nsim), data.Y); - plot(np.range(Nsim), ys*ones(1, Nsim), 'k--') - title('outputs') - subplot(2,1,2) - plot(np.range(Nsim), data.U); - plot(np.range(Nsim), us*ones(1, Nsim), 'k--') - title('inputs') +def test_finite_horizon_mpc_simple(): + # Define a linear system with constraints + # Source: https://www.mpt3.org/UI/RegulationProblem + + # LTI prediction model + sys = ct.ss2io(ct.ss([[1, 1], [0, 1]], [[1], [0.5]], np.eye(2), 0, 1)) + + # State and input constraints + constraints = [ + obc.state_poly_constraint(sys, pc.box2poly([[-5, 5], [-5, 5]])), + obc.input_poly_constraint(sys, pc.box2poly([[-1, 1]])), + ] + + # Quadratic state and input penalty + Q = [[1, 0], [0, 1]] + R = [[1]] + cost = obc.quadratic_cost(sys, Q, R) + + # Create a model predictive controller system + time = np.arange(0, 5, 1) + mpc = obc.ModelPredictiveController(sys, time, cost, constraints) + + # Optimal control input for a given value of the initial state + x0 = [4, 0] + u = mpc(x0) + np.testing.assert_almost_equal(u, -1) + + # Retrieve the full open-loop predictions + t, u_openloop = mpc.compute_trajectory(x0, squeeze=True) + np.testing.assert_almost_equal( + u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=4) + + # Convert controller to an explicit form (not implemented yet) + # mpc_explicit = mpc.explicit(); + + # Test explicit controller + # u_explicit = mpc_explicit(x0) + # np.testing.assert_array_almost_equal(u_openloop, u_explicit) + +def test_finite_horizon_mpc_oscillator(): + # oscillator model defined in 2D + # Source: https://www.mpt3.org/UI/RegulationProblem + A = [[0.5403, -0.8415], [0.8415, 0.5403]] + B = [[-0.4597], [0.8415]] + C = [[1, 0]] + D = [[0]] + + # Linear discrete-time model with sample time 1 + sys = ct.ss2io(ct.ss(A, B, C, D, 1)) + + # state and input constraints + trajectory_constraints = [ + obc.state_poly_constraint(sys, pc.box2poly([[-10, 10]])), + obc.input_poly_constraint(sys, pc.box2poly([[-1, 1]])) + ] + + # Include weights on states/inputs + Q = np.eye(2) + R = 1 + K, S, E = ct.lqr(A, B, Q, R) + + # Compute the integral and terminal cost + integral_cost = obc.quadratic_cost(sys, Q, R) + terminal_cost = obc.quadratic_cost(sys, S, 0) + + # Formulate finite horizon MPC problem + time = np.arange(0, 5, 5) + mpc = obc.ModelPredictiveController( + sys, time, integral_cost, trajectory_constraints, terminal_cost) + + # Add tests to make sure everything works From 6f9c092b26f0167c5f5f47ccdeb182475a835f5d Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 13 Feb 2021 13:57:37 -0800 Subject: [PATCH 198/260] minor refactoring plus additional comments on method --- control/obc.py | 221 ++++++++++++++++++++++++++++++-------- control/tests/obc_test.py | 14 +-- 2 files changed, 186 insertions(+), 49 deletions(-) diff --git a/control/obc.py b/control/obc.py index 3c502d2d2..e96339c39 100644 --- a/control/obc.py +++ b/control/obc.py @@ -16,16 +16,46 @@ from .timeresp import _process_time_response -class ModelPredictiveController(): - """The :class:`ModelPredictiveController` class is a front end for computing - an optimal control input for a nonilinear system with a user-defined cost +# +# OptimalControlProblem class +# +# The OptimalControlProblem class holds all of the information required to +# specify and optimal control problem: the system dynamics, cost function, +# and constraints. As much as possible, the information used to specify an +# optimal control problem matches the notation and terminology of the SciPy +# `optimize.minimize` module, with the hope that this makes it easier to +# remember how to describe a problem. +# +# The approach that we use here is to set up an optimization over the +# inputs at each point in time, using the integral and terminal costs as +# well as the trajectory and terminal constraints. The main function of +# this class is to create an optimization problem that can be solved using +# scipy.optimize.minimize(). +# +# The `cost_function` method takes the information stored here and computes +# the cost of the trajectory generated by the proposed input. It does this +# by calling a user-defined function for the integral_cost given the +# current states and inputs at each point along the trajetory and then +# adding the value of a user-defined terminal cost at the final pint in the +# trajectory. +# +# The `constraint_function` method evaluates the constraint functions along +# the trajectory generated by the proposed input. As in the case of the +# cost function, the constraints are evaluated at the state and input along +# each point on the trjectory. This information is compared against the +# constraint upper and lower bounds. The constraint function is processed +# in the class initializer, so that it only needs to be computed once. +# +class OptimalControlProblem(): + """The :class:`OptimalControlProblem` class is a front end for computing an + optimal control input for a nonilinear system with a user-defined cost function and state and input constraints. """ def __init__( self, sys, time, integral_cost, trajectory_constraints=[], terminal_cost=None, terminal_constraints=[]): - + # Save the basic information for use later self.system = sys self.time_vector = time self.integral_cost = integral_cost @@ -34,20 +64,28 @@ def __init__( self.terminal_constraints = terminal_constraints # - # The approach that we use here is to set up an optimization over the - # inputs at each point in time, using the integral and terminal costs - # as well as the trajectory and terminal constraints. The main work - # of this method is to create the optimization problem that can be - # solved with scipy.optimize.minimize(). + # Compute and store constraints + # + # While the constraints are evaluated during the execution of the + # SciPy optimization method itself, we go ahead and pre-compute the + # `scipy.optimize.NonlinearConstraint` function that will be passed to + # the optimizer on initialization, since it doesn't change. This is + # mainly a matter of computing the lower and upper bound vectors, + # which we need to "stack" to account for the evaluation at each + # trajectory time point plus any terminal constraints (in a way that + # is consistent with the `constraint_function` that is used at + # evaluation time. # - - # Gather together all of the constraints constraint_lb, constraint_ub = [], [] + + # Go through each time point and stack the bounds for time in self.time_vector: for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint constraint_lb.append(lb) constraint_ub.append(ub) + + # Add on the terminal constraints for constraint in self.terminal_constraints: type, fun, lb, ub = constraint constraint_lb.append(lb) @@ -60,8 +98,15 @@ def __init__( # Create the new constraint self.constraints = sp.optimize.NonlinearConstraint( self.constraint_function, self.constraint_lb, self.constraint_ub) - + + # # Initial guess + # + # We store an initial guess (zero input) in case it is not specified + # later. + # + # TODO: add the ability to overwride this when calling the optimizer. + # self.initial_guess = np.zeros( self.system.ninputs * self.time_vector.size) @@ -75,14 +120,18 @@ def __init__( # # Cost = sum_k integral_cost(x[k], u[k]) + terminal_cost(x[N], u[N]) # + # The initial state is for generating the simulation is store in the class + # parameter `x` prior to calling the optimization algorithm. + # def cost_function(self, inputs): - # Reshape the input vector + # Retrieve the initial state and reshape the input vector + x = self.x inputs = inputs.reshape( (self.system.ninputs, self.time_vector.size)) # Simulate the system to get the state _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, self.x, return_x=True) + self.system, self.time_vector, inputs, x, return_x=True) # Trajectory cost # TODO: vectorize @@ -104,43 +153,71 @@ def cost_function(self, inputs): # constraints, which each take inputs [x, u] and evaluate the # constraint. How we handle these depends on the type of constraint: # - # We have stored the form of the constraint at a single point, but we - # now need to extend this to apply to each point in the trajectory. - # This means that we need to create N constraints, each of which holds - # at a specific point in time, and implements the original constraint. + # * For linear constraints (LinearConstraint), a combined vector of the + # state and input is multiplied by the polytope A matrix for + # comparison against the upper and lower bounds. + # + # * For nonlinear constraints (NonlinearConstraint), a user-specific + # constraint function having the form + # + # constraint_fun(x, u) + # + # is called at each point along the trajectory and compared against the + # upper and lower bounds. + # + # In both cases, the constraint is specified at a single point, but we + # extend this to apply to each point in the trajectory. This means + # that for N time points with m trajectory constraints and p terminal + # constraints we need to compute N*m + p constraints, each of which + # holds at a specific point in time, and implements the original + # constraint. # # To do this, we basically create a function that simulates the system - # dynamics and returns a vector of values corresponding to the value - # of the function at each time. We also replicate the upper and lower - # bounds for each point in time. + # dynamics and returns a vector of values corresponding to the value of + # the function at each time. The class initialization methods takes + # care of replicating the upper and lower bounds for each point in time + # so that the SciPy optimization algorithm can do the proper + # evaluation. + # + # In addition, since SciPy's optimization function does not allow us to + # pass arguments to the constraint function, we have to store the initial + # state prior to optimization and retrieve it here. # - - # Define a function to evaluate all of the constraints def constraint_function(self, inputs): - # Reshape the input vector + # Retrieve the initial state and reshape the input vector + x = self.x inputs = inputs.reshape( (self.system.ninputs, self.time_vector.size)) # Simulate the system to get the state _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, self.x, return_x=True) + self.system, self.time_vector, inputs, x, return_x=True) + # Evaluate the constraint function along the trajectory value = [] for i, time in enumerate(self.time_vector): for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint if type == opt.LinearConstraint: + # `fun` is the A matrix associated with the polytope... value.append( np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + elif type == opt.NonlinearConstraint: + value.append( + fun(np.hstack([states[:,i], inputs[:,i]]))) else: raise TypeError("unknown constraint type %s" % constraint[0]) + # Evaluate the terminal constraint functions for constraint in self.terminal_constraints: type, fun, lb, ub = constraint if type == opt.LinearConstraint: value.append( np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + elif type == opt.NonlinearConstraint: + value.append( + fun(np.hstack([states[:,i], inputs[:,i]]))) else: raise TypeError("unknown constraint type %s" % constraint[0]) @@ -148,28 +225,22 @@ def constraint_function(self, inputs): # Return the value of the constraint function return np.hstack(value) - def __call__(self, x): + # Allow optctrl(x) as a replacement for optctrl.mpc(x) + def __call__(self, x, squeeze=None): """Compute the optimal input at state x""" - # Store the starting point - # TODO: call compute_trajectory? - self.x = x - - # Call ScipPy optimizer - res = sp.optimize.minimize( - self.cost_function, self.initial_guess, - constraints=self.constraints) + return self.mpc(x, squeeze=squeeze) - # Return the result - if res.success: - return res.x[0] - else: - warnings.warn(res.message) - return None + # Compute the current input to apply from the current state (MPC style) + def mpc(self, x, squeeze=None): + """Compute the optimal input at state x""" + _, inputs = self.compute_trajectory(x, squeeze=squeeze) + return None if inputs is None else inputs.transpose()[0] + # Compute the optimal trajectory from the current state def compute_trajectory( self, x, squeeze=None, transpose=None, return_x=None): """Compute the optimal input at state x""" - # Store the starting point + # Store the initial state (for use in constraint_function) self.x = x # Call ScipPy optimizer @@ -185,11 +256,33 @@ def compute_trajectory( # Reshape the input vector inputs = res.x.reshape( (self.system.ninputs, self.time_vector.size)) + + if return_x: + # Simulate the system if we need the state back + _, _, states = ct.input_output_response( + self.system, self.time_vector, inputs, x, return_x=True) + else: + states=None return _process_time_response( - self.system, self.time_vector, inputs, None, + self.system, self.time_vector, inputs, states, transpose=transpose, return_x=return_x, squeeze=squeeze) + +# +# Create a polytope constraint on the system state +# +# As in the cost function evaluation, the main "trick" in creating a constrain +# on the state or input is to properly evaluate the constraint on the stacked +# state and input vector at the current time point. The constraint itself +# will be called at each poing along the trajectory (or the endpoint) via the +# constrain_function() method. +# +# Note that these functions to not actually evaluate the constraint, they +# simply return the information required to do so. We use the SciPy +# optimization methods LinearConstraint and NonlinearConstraint as "types" to +# keep things consistent with the terminology in scipy.optimize. +# def state_poly_constraint(sys, polytope): """Create state constraint from polytope""" # TODO: make sure the system and constraints are compatible @@ -200,7 +293,7 @@ def state_poly_constraint(sys, polytope): [polytope.A, np.zeros((polytope.A.shape[0], sys.ninputs))]), np.full(polytope.A.shape[0], -np.inf), polytope.b) - +# Create a constraint polytope on the system input def input_poly_constraint(sys, polytope): """Create input constraint from polytope""" # TODO: make sure the system and constraints are compatible @@ -212,6 +305,48 @@ def input_poly_constraint(sys, polytope): np.full(polytope.A.shape[0], -np.inf), polytope.b) +# +# Create a constraint polytope on the system output +# +# Unlike the state and input constraints, for the output constraint we need to +# do a function evaluation before applying the constraints. +# +# TODO: for the special case of an LTI system, we can avoid the extra function +# call by multiplying the state by the C matrix for the system and then +# imposing a linear constraint: +# +# np.hstack( +# [polytope.A @ sys.C, np.zeros((polytope.A.shape[0], sys.ninputs))]) +# +def output_poly_constraint(sys, polytope): + """Create output constraint from polytope""" + # TODO: make sure the system and constraints are compatible + + # + # Function to create the output + def _evaluate_output_constraint(x): + # Separate the constraint into states and inputs + states = x[:sys.nstates] + inputs = x[sys.nstates:] + outputs = sys._out(0, states, inputs) + return polytope.A @ outputs + + # Return a nonlinear constraint object based on the polynomial + return (opt.NonlinearConstraint, + _evaluate_output_constraint, + np.full(polytope.A.shape[0], -np.inf), polytope.b) + + +# +# Quadratic cost function +# +# Since a quadratic function is common as a cost function, we provide a +# function that will take a Q and R matrix and return a callable that +# evaluates to associted quadratic cost. This is compatible with the way that +# the `cost_function` evaluates the cost at each point in the trajectory. +# def quadratic_cost(sys, Q, R): """Create quadratic cost function""" + Q = np.atleast_2d(Q) + R = np.atleast_2d(R) return lambda x, u: x @ Q @ x + u @ R @ u diff --git a/control/tests/obc_test.py b/control/tests/obc_test.py index b340d2c12..f04e9cc91 100644 --- a/control/tests/obc_test.py +++ b/control/tests/obc_test.py @@ -32,7 +32,8 @@ def test_finite_horizon_mpc_simple(): # Create a model predictive controller system time = np.arange(0, 5, 1) - mpc = obc.ModelPredictiveController(sys, time, cost, constraints) + optctrl = obc.OptimalControlProblem(sys, time, cost, constraints) + mpc = optctrl.mpc # Optimal control input for a given value of the initial state x0 = [4, 0] @@ -40,12 +41,12 @@ def test_finite_horizon_mpc_simple(): np.testing.assert_almost_equal(u, -1) # Retrieve the full open-loop predictions - t, u_openloop = mpc.compute_trajectory(x0, squeeze=True) + t, u_openloop = optctrl.compute_trajectory(x0, squeeze=True) np.testing.assert_almost_equal( u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=4) # Convert controller to an explicit form (not implemented yet) - # mpc_explicit = mpc.explicit(); + # mpc_explicit = obc.explicit_mpc(); # Test explicit controller # u_explicit = mpc_explicit(x0) @@ -64,7 +65,7 @@ def test_finite_horizon_mpc_oscillator(): # state and input constraints trajectory_constraints = [ - obc.state_poly_constraint(sys, pc.box2poly([[-10, 10]])), + obc.output_poly_constraint(sys, pc.box2poly([[-10, 10]])), obc.input_poly_constraint(sys, pc.box2poly([[-1, 1]])) ] @@ -78,8 +79,9 @@ def test_finite_horizon_mpc_oscillator(): terminal_cost = obc.quadratic_cost(sys, S, 0) # Formulate finite horizon MPC problem - time = np.arange(0, 5, 5) - mpc = obc.ModelPredictiveController( + time = np.arange(0, 5, 1) + optctrl = obc.OptimalControlProblem( sys, time, integral_cost, trajectory_constraints, terminal_cost) # Add tests to make sure everything works + t, u_openloop = optctrl.compute_trajectory([1, 1]) From bd322e7befd85e67492d87f87e5291bfcf800357 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 14 Feb 2021 21:59:49 -0800 Subject: [PATCH 199/260] remove polytope dependence; implement MPC iosys w/ notebook example --- control/obc.py | 91 +++++++++++----- control/tests/obc_test.py | 66 ++++++++++-- examples/mpc_aircraft.ipynb | 202 ++++++++++++++++++++++++++++++++++++ 3 files changed, 328 insertions(+), 31 deletions(-) create mode 100644 examples/mpc_aircraft.ipynb diff --git a/control/obc.py b/control/obc.py index e96339c39..ff56fbb43 100644 --- a/control/obc.py +++ b/control/obc.py @@ -103,9 +103,8 @@ def __init__( # Initial guess # # We store an initial guess (zero input) in case it is not specified - # later. - # - # TODO: add the ability to overwride this when calling the optimizer. + # later. Note that create_mpc_iosystem() will reset the initial guess + # based on the current state of the MPC controller. # self.initial_guess = np.zeros( self.system.ninputs * self.time_vector.size) @@ -128,24 +127,25 @@ def cost_function(self, inputs): x = self.x inputs = inputs.reshape( (self.system.ninputs, self.time_vector.size)) - + # Simulate the system to get the state _, _, states = ct.input_output_response( self.system, self.time_vector, inputs, x, return_x=True) - + # Trajectory cost # TODO: vectorize cost = 0 for i, time in enumerate(self.time_vector): - cost += self.integral_cost(states[:,i], inputs[:,i]) - + cost += self.integral_cost(states[:,i], inputs[:,i]) + # Terminal cost if self.terminal_cost is not None: cost += self.terminal_cost(states[:,-1], inputs[:,-1]) - + # Return the total cost for this input sequence return cost + # # Constraints # @@ -188,7 +188,7 @@ def constraint_function(self, inputs): x = self.x inputs = inputs.reshape( (self.system.ninputs, self.time_vector.size)) - + # Simulate the system to get the state _, _, states = ct.input_output_response( self.system, self.time_vector, inputs, x, return_x=True) @@ -234,7 +234,7 @@ def __call__(self, x, squeeze=None): def mpc(self, x, squeeze=None): """Compute the optimal input at state x""" _, inputs = self.compute_trajectory(x, squeeze=squeeze) - return None if inputs is None else inputs.transpose()[0] + return None if inputs is None else inputs[:,0] # Compute the optimal trajectory from the current state def compute_trajectory( @@ -242,7 +242,7 @@ def compute_trajectory( """Compute the optimal input at state x""" # Store the initial state (for use in constraint_function) self.x = x - + # Call ScipPy optimizer res = sp.optimize.minimize( self.cost_function, self.initial_guess, @@ -263,14 +263,33 @@ def compute_trajectory( self.system, self.time_vector, inputs, x, return_x=True) else: states=None - + return _process_time_response( self.system, self.time_vector, inputs, states, transpose=transpose, return_x=return_x, squeeze=squeeze) + # Create an input/output system implementing an MPC controller + def create_mpc_iosystem(self, dt=True): + def _update(t, x, u, params={}): + inputs = x.reshape((self.system.ninputs, self.time_vector.size)) + self.initial_guess = np.hstack( + [inputs[:,1:], inputs[:,-1:]]).reshape(-1) + _, inputs = self.compute_trajectory(u) + return inputs.reshape(-1) + + def _output(t, x, u, params={}): + inputs = x.reshape((self.system.ninputs, self.time_vector.size)) + return inputs[:,0] + + return ct.NonlinearIOSystem( + _update, _output, dt=dt, + inputs=self.system.nstates, + outputs=self.system.ninputs, + states=self.system.ninputs * self.time_vector.size) + # -# Create a polytope constraint on the system state +# Create a polytope constraint on the system state: A x <= b # # As in the cost function evaluation, the main "trick" in creating a constrain # on the state or input is to properly evaluate the constraint on the stacked @@ -283,26 +302,48 @@ def compute_trajectory( # optimization methods LinearConstraint and NonlinearConstraint as "types" to # keep things consistent with the terminology in scipy.optimize. # -def state_poly_constraint(sys, polytope): +def state_poly_constraint(sys, A, b): + """Create state constraint from polytope""" + # TODO: make sure the system and constraints are compatible + + # Return a linear constraint object based on the polynomial + return (opt.LinearConstraint, + np.hstack([A, np.zeros((A.shape[0], sys.ninputs))]), + np.full(A.shape[0], -np.inf), polytope.b) + + +def state_range_constraint(sys, lb, ub): """Create state constraint from polytope""" # TODO: make sure the system and constraints are compatible # Return a linear constraint object based on the polynomial return (opt.LinearConstraint, np.hstack( - [polytope.A, np.zeros((polytope.A.shape[0], sys.ninputs))]), - np.full(polytope.A.shape[0], -np.inf), polytope.b) + [np.eye(sys.nstates), np.zeros((sys.nstates, sys.ninputs))]), + np.array(lb), np.array(ub)) + # Create a constraint polytope on the system input -def input_poly_constraint(sys, polytope): +def input_poly_constraint(sys, A, b): + """Create input constraint from polytope""" + # TODO: make sure the system and constraints are compatible + + # Return a linear constraint object based on the polynomial + return (opt.LinearConstraint, + np.hstack( + [np.zeros((A.shape[0], sys.nstates)), A]), + np.full(A.shape[0], -np.inf), b) + + +def input_range_constraint(sys, lb, ub): """Create input constraint from polytope""" # TODO: make sure the system and constraints are compatible # Return a linear constraint object based on the polynomial return (opt.LinearConstraint, np.hstack( - [np.zeros((polytope.A.shape[0], sys.nstates)), polytope.A]), - np.full(polytope.A.shape[0], -np.inf), polytope.b) + [np.zeros((sys.ninputs, sys.nstates)), np.eye(sys.ninputs)]), + np.array(lb), np.array(ub)) # @@ -316,9 +357,9 @@ def input_poly_constraint(sys, polytope): # imposing a linear constraint: # # np.hstack( -# [polytope.A @ sys.C, np.zeros((polytope.A.shape[0], sys.ninputs))]) +# [A @ sys.C, np.zeros((A.shape[0], sys.ninputs))]) # -def output_poly_constraint(sys, polytope): +def output_poly_constraint(sys, A, b): """Create output constraint from polytope""" # TODO: make sure the system and constraints are compatible @@ -329,12 +370,12 @@ def _evaluate_output_constraint(x): states = x[:sys.nstates] inputs = x[sys.nstates:] outputs = sys._out(0, states, inputs) - return polytope.A @ outputs + return A @ outputs # Return a nonlinear constraint object based on the polynomial return (opt.NonlinearConstraint, _evaluate_output_constraint, - np.full(polytope.A.shape[0], -np.inf), polytope.b) + np.full(A.shape[0], -np.inf), b) # @@ -345,8 +386,8 @@ def _evaluate_output_constraint(x): # evaluates to associted quadratic cost. This is compatible with the way that # the `cost_function` evaluates the cost at each point in the trajectory. # -def quadratic_cost(sys, Q, R): +def quadratic_cost(sys, Q, R, x0=0, u0=0): """Create quadratic cost function""" Q = np.atleast_2d(Q) R = np.atleast_2d(R) - return lambda x, u: x @ Q @ x + u @ R @ u + return lambda x, u: ((x-x0) @ Q @ (x-x0) + (u-u0) @ R @ (u-u0)).item() diff --git a/control/tests/obc_test.py b/control/tests/obc_test.py index f04e9cc91..a98283034 100644 --- a/control/tests/obc_test.py +++ b/control/tests/obc_test.py @@ -10,7 +10,7 @@ import scipy as sp import control as ct import control.obc as obc -import polytope as pc +from control.tests.conftest import slycotonly def test_finite_horizon_mpc_simple(): # Define a linear system with constraints @@ -21,8 +21,7 @@ def test_finite_horizon_mpc_simple(): # State and input constraints constraints = [ - obc.state_poly_constraint(sys, pc.box2poly([[-5, 5], [-5, 5]])), - obc.input_poly_constraint(sys, pc.box2poly([[-1, 1]])), + (sp.optimize.LinearConstraint, np.eye(3), [-5, -5, -1], [5, 5, 1]), ] # Quadratic state and input penalty @@ -48,10 +47,12 @@ def test_finite_horizon_mpc_simple(): # Convert controller to an explicit form (not implemented yet) # mpc_explicit = obc.explicit_mpc(); - # Test explicit controller + # Test explicit controller # u_explicit = mpc_explicit(x0) # np.testing.assert_array_almost_equal(u_openloop, u_explicit) + +@slycotonly def test_finite_horizon_mpc_oscillator(): # oscillator model defined in 2D # Source: https://www.mpt3.org/UI/RegulationProblem @@ -65,8 +66,7 @@ def test_finite_horizon_mpc_oscillator(): # state and input constraints trajectory_constraints = [ - obc.output_poly_constraint(sys, pc.box2poly([[-10, 10]])), - obc.input_poly_constraint(sys, pc.box2poly([[-1, 1]])) + (sp.optimize.LinearConstraint, np.eye(3), [-10, -10, -1], [10, 10, 1]), ] # Include weights on states/inputs @@ -85,3 +85,57 @@ def test_finite_horizon_mpc_oscillator(): # Add tests to make sure everything works t, u_openloop = optctrl.compute_trajectory([1, 1]) + + +def test_mpc_iosystem(): + # model of an aircraft discretized with 0.2s sampling time + # Source: https://www.mpt3.org/UI/RegulationProblem + A = [[0.99, 0.01, 0.18, -0.09, 0], + [ 0, 0.94, 0, 0.29, 0], + [ 0, 0.14, 0.81, -0.9, 0], + [ 0, -0.2, 0, 0.95, 0], + [ 0, 0.09, 0, 0, 0.9]] + B = [[ 0.01, -0.02], + [-0.14, 0], + [ 0.05, -0.2], + [ 0.02, 0], + [-0.01, 0]] + C = [[0, 1, 0, 0, -1], + [0, 0, 1, 0, 0], + [0, 0, 0, 1, 0], + [1, 0, 0, 0, 0]] + model = ct.ss2io(ct.ss(A, B, C, 0, 0.2)) + + # For the simulation we need the full state output + sys = ct.ss2io(ct.ss(A, B, np.eye(5), 0, 0.2)) + + # compute the steady state values for a particular value of the input + ud = np.array([0.8, -0.3]) + xd = np.linalg.inv(np.eye(5) - A) @ B @ ud + yd = C @ xd + + # provide constraints on the system signals + constraints = [obc.input_range_constraint(sys, [-5, -6], [5, 6])] + + # provide penalties on the system signals + Q = model.C.transpose() @ np.diag([10, 10, 10, 10]) @ model.C + R = np.diag([3, 2]) + cost = obc.quadratic_cost(model, Q, R, x0=xd, u0=ud) + + # online MPC controller object is constructed with a horizon 6 + optctrl = obc.OptimalControlProblem( + model, np.arange(0, 6) * 0.2, cost, constraints) + + # Define an I/O system implementing model predictive control + ctrl = optctrl.create_mpc_iosystem() + loop = ct.feedback(sys, ctrl, 1) + + # Choose a nearby initial condition to speed up computation + X0 = np.hstack([xd, np.kron(ud, np.ones(6))]) * 0.99 + + Nsim = 10 + tout, xout = ct.input_output_response( + loop, np.arange(0, Nsim) * 0.2, 0, X0) + + # Make sure the system converged to the desired state + np.testing.assert_almost_equal(xout[0:sys.nstates, -1], xd, decimal=1) diff --git a/examples/mpc_aircraft.ipynb b/examples/mpc_aircraft.ipynb new file mode 100644 index 000000000..53b8bb13b --- /dev/null +++ b/examples/mpc_aircraft.ipynb @@ -0,0 +1,202 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Model Predictive Control: Aircraft Model\n", + "\n", + "RMM, 13 Feb 2021\n", + "\n", + "This example replicates the [MPT3 regulation problem example](https://www.mpt3.org/UI/RegulationProblem)." + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "import control as ct\n", + "import numpy as np\n", + "import control.obc as obc\n", + "import matplotlib.pyplot as plt" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [], + "source": [ + "# model of an aircraft discretized with 0.2s sampling time\n", + "# Source: https://www.mpt3.org/UI/RegulationProblem\n", + "A = [[0.99, 0.01, 0.18, -0.09, 0],\n", + " [ 0, 0.94, 0, 0.29, 0],\n", + " [ 0, 0.14, 0.81, -0.9, 0],\n", + " [ 0, -0.2, 0, 0.95, 0],\n", + " [ 0, 0.09, 0, 0, 0.9]]\n", + "B = [[ 0.01, -0.02],\n", + " [-0.14, 0],\n", + " [ 0.05, -0.2],\n", + " [ 0.02, 0],\n", + " [-0.01, 0]]\n", + "C = [[0, 1, 0, 0, -1],\n", + " [0, 0, 1, 0, 0],\n", + " [0, 0, 0, 1, 0],\n", + " [1, 0, 0, 0, 0]]\n", + "model = ct.ss2io(ct.ss(A, B, C, 0, 0.2))\n", + "\n", + "# For the simulation we need the full state output\n", + "sys = ct.ss2io(ct.ss(A, B, np.eye(5), 0, 0.2))\n", + "\n", + "# compute the steady state values for a particular value of the input\n", + "ud = np.array([0.8, -0.3])\n", + "xd = np.linalg.inv(np.eye(5) - A) @ B @ ud\n", + "yd = C @ xd" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [], + "source": [ + "# computed values will be used as references for the desired\n", + "# steady state which can be added using \"reference\" filter\n", + "# model.u.with('reference');\n", + "# model.u.reference = us;\n", + "# model.y.with('reference');\n", + "# model.y.reference = ys;\n", + "\n", + "# provide constraints on the system signals\n", + "constraints = [obc.input_range_constraint(sys, [-5, -6], [5, 6])]\n", + "\n", + "# provide penalties on the system signals\n", + "Q = model.C.transpose() @ np.diag([10, 10, 10, 10]) @ model.C\n", + "R = np.diag([3, 2])\n", + "cost = obc.quadratic_cost(model, Q, R, x0=xd, u0=ud)\n", + "\n", + "# online MPC controller object is constructed with a horizon 6\n", + "optctrl = obc.OptimalControlProblem(model, np.arange(0, 6) * 0.2, cost, constraints)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "System: sys[7]\n", + "Inputs (2): u[0], u[1], \n", + "Outputs (5): y[0], y[1], y[2], y[3], y[4], \n", + "States (17): sys[1]_x[0], sys[1]_x[1], sys[1]_x[2], sys[1]_x[3], sys[1]_x[4], sys[6]_x[0], sys[6]_x[1], sys[6]_x[2], sys[6]_x[3], sys[6]_x[4], sys[6]_x[5], sys[6]_x[6], sys[6]_x[7], sys[6]_x[8], sys[6]_x[9], sys[6]_x[10], sys[6]_x[11], \n" + ] + } + ], + "source": [ + "# Define an I/O system implementing model predictive control\n", + "ctrl = optctrl.create_mpc_iosystem()\n", + "loop = ct.feedback(sys, ctrl, 1)\n", + "print(loop)" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Computation time = 8.28132 seconds\n" + ] + } + ], + "source": [ + "import time\n", + "\n", + "# loop = ClosedLoop(ctrl, model);\n", + "# x0 = [0, 0, 0, 0, 0]\n", + "Nsim = 60\n", + "\n", + "start = time.time()\n", + "tout, xout = ct.input_output_response(loop, np.arange(0, Nsim) * 0.2, 0, 0)\n", + "end = time.time()\n", + "print(\"Computation time = %g seconds\" % (end-start))" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([-0.15441833, 0.00362039, 0.07760278, 0.00675162, 0.00698118])" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAagAAAEYCAYAAAAJeGK1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAA9UUlEQVR4nO3deXhU1fnA8e87a/YEkrAl7LK4oyKKirUVKypqXUCrUqkLFreiaAXF2v7EBRUES8Gt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qRyOTweBCPx1rfuex225YQm92LT0SuBH4HnG6MqdrDPh8Atxlj9tpFT3vxKaXaKxMOY6qrCVVUEq6IJK2qqvrzykrCVdWEq6sJV1Viqqt3rddUY6prGiybmprmB+d243C7rWS1M2l5PEh8PH1ef63Zp49WL74RWJ0iflY3OYlIJlBsjAmJSB+gH/BTc16rKU477bQG20aPHs31119PVVUVZ599doPysWPHMnbsWIqKirj44oaX0saPH88ll1xCTk4OY8aMaVA+ceJEzj33XNasWcN1113XoHzKlCkMHz6cZcuWMWHChAbl999/PyeddBKfffYZd955Z4PymTNnMmjQIBYtWsTUqVMblD/xxBMMGDCABQsWMH369Ablzz33HN27d+fll19m7ty5Dcrnz59PRkYG8+bNY968eQ3K3377bRISEpgzZw6vvPJKg/IPPvgAgEceeYSFCxfWK4uPj+edd94B4N5772Xx4sX1ytPT03n11VcBmDx5Mp9//nm98uzsbJ5//nkAJkyYwLJly+qV9+/fnyeffBKAcePGsXbt2nrlgwYNYubMmQBcccUV5Obm1isfOnQoDzzwAAAXXXQR27dvr1d++umnc/fddwNw1llnUV1dXa985MiR3HbbbYB+9vSzd+CfvYtHjWrZz57Xw+gxVzB+/HgqS0o459xzIWzAhDHhMITDXH7OOVxx5pkUFhQw5u4/Yoy1HWMw4TBjhw3jV0cdTW5BPje88IJVw9t5DmOYP2o00dTca1CzAS/wXuTi387u5KcC/yciQSAE/M4YU9zM11JKKdVEImI149Xpebizq4a3Vy8Shw6luqgIZ8eGg/mmDB9O5iWXUJOTg+fjht0IsmY0/EHSkvRGXaWUUrbaUxNf++gKopRSqtXRBKWUUiomaYJSSikVkzRBKaWUikmaoJRSSsUkTVBKKaVikiYopZRSMUkTlFJKqZikCUoppVRMiqmRJESkENjUAqfKAIpa4Dytgb7Xtqe9vE/Q99pWNfW99jTGZO6+MaYSVEsRkSWNDZvRFul7bXvay/sEfa9tVUu9V23iU0opFZM0QSmllIpJbTVBPWl3AAeRvte2p728T9D32la1yHttk9eglFJKtX5ttQallFKqldMEp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fkDn1qGOlFJKxaI2U4NSSinVtmiCUkopFZM0QSmllIpJmqCUUkrFJE1QSimlYpImKKWUUjFJE5RSSqmY9P/Yemvdpb3iwgAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "# Plot the results\n", + "# plt.subplot(2, 1, 1)\n", + "for i, y in enumerate(C @ xout):\n", + " plt.plot(tout, y)\n", + " plt.plot(tout, yd[i] * np.ones(tout.shape), 'k--')\n", + "plt.title('outputs')\n", + "\n", + "# plt.subplot(2, 1, 2)\n", + "# plt.plot(t, u);\n", + "# plot(np.range(Nsim), us*ones(1, Nsim), 'k--')\n", + "# plt.title('inputs')\n", + "\n", + "plt.tight_layout()\n", + "\n", + "# Print the final error\n", + "xd - xout[:,-1]" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.8.5" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +} From 0d14642f22373ed22e4598d448b0482adc13060c Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 15 Feb 2021 12:59:45 -0800 Subject: [PATCH 200/260] add'l unit tests, cache sim results, equality constraint support --- control/obc.py | 157 +++++++++++++++++++++++++++++++------- control/tests/obc_test.py | 107 ++++++++++++++++++++++++++ 2 files changed, 238 insertions(+), 26 deletions(-) diff --git a/control/obc.py b/control/obc.py index ff56fbb43..e0cd0cc61 100644 --- a/control/obc.py +++ b/control/obc.py @@ -76,28 +76,46 @@ def __init__( # is consistent with the `constraint_function` that is used at # evaluation time. # - constraint_lb, constraint_ub = [], [] + constraint_lb, constraint_ub, eqconst_value = [], [], [] # Go through each time point and stack the bounds for time in self.time_vector: for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint - constraint_lb.append(lb) - constraint_ub.append(ub) + if np.all(lb == ub): + # Equality constraint + eqconst_value.append(lb) + else: + # Inequality constraint + constraint_lb.append(lb) + constraint_ub.append(ub) # Add on the terminal constraints for constraint in self.terminal_constraints: type, fun, lb, ub = constraint - constraint_lb.append(lb) - constraint_ub.append(ub) + if np.all(lb == ub): + # Equality constraint + eqconst_value.append(lb) + else: + # Inequality constraint + constraint_lb.append(lb) + constraint_ub.append(ub) # Turn constraint vectors into 1D arrays - self.constraint_lb = np.hstack(constraint_lb) - self.constraint_ub = np.hstack(constraint_ub) - - # Create the new constraint - self.constraints = sp.optimize.NonlinearConstraint( - self.constraint_function, self.constraint_lb, self.constraint_ub) + self.constraint_lb = np.hstack(constraint_lb) if constraint_lb else [] + self.constraint_ub = np.hstack(constraint_ub) if constraint_ub else [] + self.eqconst_value = np.hstack(eqconst_value) if eqconst_value else [] + + # Create the constraints (inequality and equality) + self.constraints = [] + if len(self.constraint_lb) != 0: + self.constraints.append(sp.optimize.NonlinearConstraint( + self.constraint_function, self.constraint_lb, + self.constraint_ub)) + if len(self.eqconst_value) != 0: + self.constraints.append(sp.optimize.NonlinearConstraint( + self.eqconst_function, self.eqconst_value, + self.eqconst_value)) # # Initial guess @@ -109,6 +127,10 @@ def __init__( self.initial_guess = np.zeros( self.system.ninputs * self.time_vector.size) + # Store states, input to minimize re-computation + self.last_x = np.full(self.system.nstates, np.nan) + self.last_inputs = np.full(self.initial_guess.shape, np.nan) + # # Cost function # @@ -117,7 +139,7 @@ def __init__( # simulate the system to get the state trajectory X = [x[0], ..., # x[N]] and then compute the cost at each point: # - # Cost = sum_k integral_cost(x[k], u[k]) + terminal_cost(x[N], u[N]) + # cost = sum_k integral_cost(x[k], u[k]) + terminal_cost(x[N], u[N]) # # The initial state is for generating the simulation is store in the class # parameter `x` prior to calling the optimization algorithm. @@ -128,9 +150,17 @@ def cost_function(self, inputs): inputs = inputs.reshape( (self.system.ninputs, self.time_vector.size)) - # Simulate the system to get the state - _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True) + # See if we already have a simulation for this condition + if np.array_equal(x, self.last_x) and \ + np.array_equal(inputs, self.last_inputs): + states = self.last_states + else: + # Simulate the system to get the state + _, _, states = ct.input_output_response( + self.system, self.time_vector, inputs, x, return_x=True) + self.last_x = x + self.last_inputs = inputs + self.last_states = states # Trajectory cost # TODO: vectorize @@ -160,11 +190,17 @@ def cost_function(self, inputs): # * For nonlinear constraints (NonlinearConstraint), a user-specific # constraint function having the form # - # constraint_fun(x, u) + # constraint_fun(x, u) TODO: convert from [x, u] to (x, u) # # is called at each point along the trajectory and compared against the # upper and lower bounds. # + # * If the upper and lower bound for the constraint is identical, then we + # separate out the evaluation into two different constraints, which + # allows the SciPy optimizers to be more efficient (and stops them from + # generating a warning about mixed constraints). This is handled + # through the use of the `eqconst_function` and `eqconst_value` members. + # # In both cases, the constraint is specified at a single point, but we # extend this to apply to each point in the trajectory. This means # that for N time points with m trajectory constraints and p terminal @@ -189,22 +225,32 @@ def constraint_function(self, inputs): inputs = inputs.reshape( (self.system.ninputs, self.time_vector.size)) - # Simulate the system to get the state - _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True) + # See if we already have a simulation for this condition + if np.array_equal(x, self.last_x) and \ + np.array_equal(inputs, self.last_inputs): + states = self.last_states + else: + # Simulate the system to get the state + _, _, states = ct.input_output_response( + self.system, self.time_vector, inputs, x, return_x=True) + self.last_x = x + self.last_inputs = inputs + self.last_states = states # Evaluate the constraint function along the trajectory value = [] for i, time in enumerate(self.time_vector): for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint - if type == opt.LinearConstraint: + if np.all(lb == ub): + # Skip equality constraints + continue + elif type == opt.LinearConstraint: # `fun` is the A matrix associated with the polytope... value.append( np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) elif type == opt.NonlinearConstraint: - value.append( - fun(np.hstack([states[:,i], inputs[:,i]]))) + value.append(fun(states[:,i], inputs[:,i])) else: raise TypeError("unknown constraint type %s" % constraint[0]) @@ -212,12 +258,68 @@ def constraint_function(self, inputs): # Evaluate the terminal constraint functions for constraint in self.terminal_constraints: type, fun, lb, ub = constraint - if type == opt.LinearConstraint: + if np.all(lb == ub): + # Skip equality constraints + continue + elif type == opt.LinearConstraint: value.append( np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) elif type == opt.NonlinearConstraint: + value.append(fun(states[:,i], inputs[:,i])) + else: + raise TypeError("unknown constraint type %s" % + constraint[0]) + + # Return the value of the constraint function + return np.hstack(value) + + def eqconst_function(self, inputs): + # Retrieve the initial state and reshape the input vector + x = self.x + inputs = inputs.reshape( + (self.system.ninputs, self.time_vector.size)) + + # See if we already have a simulation for this condition + if np.array_equal(x, self.last_x) and \ + np.array_equal(inputs, self.last_inputs): + states = self.last_states + else: + # Simulate the system to get the state + _, _, states = ct.input_output_response( + self.system, self.time_vector, inputs, x, return_x=True) + self.last_x = x + self.last_inputs = inputs + self.last_states = states + + # Evaluate the constraint function along the trajectory + value = [] + for i, time in enumerate(self.time_vector): + for constraint in self.trajectory_constraints: + type, fun, lb, ub = constraint + if np.any(lb != ub): + # Skip iniquality constraints + continue + elif type == opt.LinearConstraint: + # `fun` is the A matrix associated with the polytope... + value.append( + np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + elif type == opt.NonlinearConstraint: + value.append(fun(states[:,i], inputs[:,i])) + else: + raise TypeError("unknown constraint type %s" % + constraint[0]) + + # Evaluate the terminal constraint functions + for constraint in self.terminal_constraints: + type, fun, lb, ub = constraint + if np.any(lb != ub): + # Skip inequality constraints + continue + elif type == opt.LinearConstraint: value.append( - fun(np.hstack([states[:,i], inputs[:,i]]))) + np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + elif type == opt.NonlinearConstraint: + value.append(fun(states[:,i], inputs[:,i])) else: raise TypeError("unknown constraint type %s" % constraint[0]) @@ -225,6 +327,7 @@ def constraint_function(self, inputs): # Return the value of the constraint function return np.hstack(value) + # Allow optctrl(x) as a replacement for optctrl.mpc(x) def __call__(self, x, squeeze=None): """Compute the optimal input at state x""" @@ -250,7 +353,9 @@ def compute_trajectory( # See if we got an answer if not res.success: - warnings.warn(res.message) + warnings.warn( + "unable to solve optimal control problem\n" + "scipy.optimize.minimize returned " + res.message, UserWarning) return None # Reshape the input vector @@ -309,7 +414,7 @@ def state_poly_constraint(sys, A, b): # Return a linear constraint object based on the polynomial return (opt.LinearConstraint, np.hstack([A, np.zeros((A.shape[0], sys.ninputs))]), - np.full(A.shape[0], -np.inf), polytope.b) + np.full(A.shape[0], -np.inf), b) def state_range_constraint(sys, lb, ub): diff --git a/control/tests/obc_test.py b/control/tests/obc_test.py index a98283034..919f1377b 100644 --- a/control/tests/obc_test.py +++ b/control/tests/obc_test.py @@ -12,6 +12,7 @@ import control.obc as obc from control.tests.conftest import slycotonly + def test_finite_horizon_mpc_simple(): # Define a linear system with constraints # Source: https://www.mpt3.org/UI/RegulationProblem @@ -139,3 +140,109 @@ def test_mpc_iosystem(): # Make sure the system converged to the desired state np.testing.assert_almost_equal(xout[0:sys.nstates, -1], xd, decimal=1) + + +# Test various constraint combinations; need to use a somewhat convoluted +# parametrization due to the need to define sys instead the test function +@pytest.mark.parametrize("constraint_list", [ + [(sp.optimize.LinearConstraint, np.eye(3), [-5, -5, -1], [5, 5, 1],)], + [(obc.state_range_constraint, [-5, -5], [5, 5]), + (obc.input_range_constraint, [-1], [1])], + [(obc.state_range_constraint, [-5, -5], [5, 5]), + (obc.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], + [(obc.state_poly_constraint, + np.array([[1, 0], [0, 1], [-1, 0], [0, -1]]), [5, 5, 5, 5]), + (obc.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], + [(sp.optimize.NonlinearConstraint, + lambda x, u: np.array([abs(x[0]), x[1], u[0]**2]), + [-np.inf, -5, -1e-12], [5, 5, 1],)], # -1e-12 for SciPy bug? +]) +def test_constraint_specification(constraint_list): + sys = ct.ss2io(ct.ss([[1, 1], [0, 1]], [[1], [0.5]], np.eye(2), 0, 1)) + + """Test out different forms of constraints on a simple problem""" + # Parse out the constraint + constraints = [] + for constraint_setup in constraint_list: + if constraint_setup[0] in \ + (sp.optimize.LinearConstraint, sp.optimize.NonlinearConstraint): + # No processing required + constraints.append(constraint_setup) + else: + # Call the function in the first argument to set up the constraint + constraints.append(constraint_setup[0](sys, *constraint_setup[1:])) + + # Quadratic state and input penalty + Q = [[1, 0], [0, 1]] + R = [[1]] + cost = obc.quadratic_cost(sys, Q, R) + + # Create a model predictive controller system + time = np.arange(0, 5, 1) + optctrl = obc.OptimalControlProblem(sys, time, cost, constraints) + + # Compute optimal control and compare against MPT3 solution + x0 = [4, 0] + t, u_openloop = optctrl.compute_trajectory(x0, squeeze=True) + np.testing.assert_almost_equal( + u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=3) + + +def test_terminal_constraints(): + """Test out the ability to handle terminal constraints""" + # Discrete time "integrator" with 2 states, 2 inputs + sys = ct.ss2io(ct.ss([[1, 0], [0, 1]], np.eye(2), np.eye(2), 0, True)) + + # Shortest path to a point is a line + Q = np.zeros((2, 2)) + R = np.eye(2) + cost = obc.quadratic_cost(sys, Q, R) + + # Set up the terminal constraint to be the origin + final_point = [obc.state_range_constraint(sys, [0, 0], [0, 0])] + + # Create the optimal control problem + time = np.arange(0, 5, 1) + optctrl = obc.OptimalControlProblem( + sys, time, cost, terminal_constraints=final_point) + + # Find a path to the origin + x0 = np.array([4, 3]) + t, u1, x1 = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + np.testing.assert_almost_equal(x1[:,-1], 0) + + # Make sure it is a straight line + np.testing.assert_almost_equal( + x1, np.kron(x0.reshape((2, 1)), time[::-1]/4)) + + # Impose some cost on the state, which should change the path + Q = np.eye(2) + R = np.eye(2) * 0.1 + cost = obc.quadratic_cost(sys, Q, R) + optctrl = obc.OptimalControlProblem( + sys, time, cost, terminal_constraints=final_point) + + # Find a path to the origin + t, u2, x2 = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + np.testing.assert_almost_equal(x2[:,-1], 0) + + # Make sure that it is *not* a straight line path + assert np.any(np.abs(x2 - x1) > 0.1) + assert np.any(np.abs(u2) > 1) # To make sure next test is useful + + # Add some bounds on the inputs + constraints = [obc.input_range_constraint(sys, [-1, -1], [1, 1])] + optctrl = obc.OptimalControlProblem( + sys, time, cost, constraints, terminal_constraints=final_point) + t, u3, x3 = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + np.testing.assert_almost_equal(x2[:,-1], 0) + + # Make sure we got a new path and didn't violate the constraints + assert np.any(np.abs(x3 - x1) > 0.1) + np.testing.assert_array_less(np.abs(u3), 1 + 1e-12) + + # Make sure that infeasible problems are handled sensibly + x0 = np.array([10, 3]) + with pytest.warns(UserWarning, match="unable to solve"): + res = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + assert res == None From 2456f365057c96393d2ec93be7e49380b6bc9e5e Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Mon, 15 Feb 2021 23:02:38 -0800 Subject: [PATCH 201/260] slight code refactoring + docstrings + initial doc/obc.rst --- control/obc.py | 567 ++++++++++++++++++++++++++++++------ control/tests/obc_test.py | 18 +- doc/classes.rst | 11 + doc/examples.rst | 1 + doc/index.rst | 1 + doc/mpc-overview.png | Bin 0 -> 175846 bytes doc/mpc_aircraft.ipynb | 1 + doc/obc.rst | 140 +++++++++ examples/mpc_aircraft.ipynb | 3 +- 9 files changed, 634 insertions(+), 108 deletions(-) create mode 100644 doc/mpc-overview.png create mode 120000 doc/mpc_aircraft.ipynb create mode 100644 doc/obc.rst diff --git a/control/obc.py b/control/obc.py index e0cd0cc61..e71677efc 100644 --- a/control/obc.py +++ b/control/obc.py @@ -3,7 +3,7 @@ # RMM, 11 Feb 2021 # -"""The "mod:`~control.obc` module provides support for optimization-based +"""The :mod:`~control.obc` module provides support for optimization-based controllers for nonlinear systems with state and input constraints. """ @@ -16,48 +16,81 @@ from .timeresp import _process_time_response -# -# OptimalControlProblem class -# -# The OptimalControlProblem class holds all of the information required to -# specify and optimal control problem: the system dynamics, cost function, -# and constraints. As much as possible, the information used to specify an -# optimal control problem matches the notation and terminology of the SciPy -# `optimize.minimize` module, with the hope that this makes it easier to -# remember how to describe a problem. -# -# The approach that we use here is to set up an optimization over the -# inputs at each point in time, using the integral and terminal costs as -# well as the trajectory and terminal constraints. The main function of -# this class is to create an optimization problem that can be solved using -# scipy.optimize.minimize(). -# -# The `cost_function` method takes the information stored here and computes -# the cost of the trajectory generated by the proposed input. It does this -# by calling a user-defined function for the integral_cost given the -# current states and inputs at each point along the trajetory and then -# adding the value of a user-defined terminal cost at the final pint in the -# trajectory. -# -# The `constraint_function` method evaluates the constraint functions along -# the trajectory generated by the proposed input. As in the case of the -# cost function, the constraints are evaluated at the state and input along -# each point on the trjectory. This information is compared against the -# constraint upper and lower bounds. The constraint function is processed -# in the class initializer, so that it only needs to be computed once. -# +__all__ = ['find_optimal_input'] + class OptimalControlProblem(): - """The :class:`OptimalControlProblem` class is a front end for computing an - optimal control input for a nonilinear system with a user-defined cost - function and state and input constraints. + """Description of a finite horizon, optimal control problem + + The `OptimalControlProblem` class holds all of the information required to + specify and optimal control problem: the system dynamics, cost function, + and constraints. As much as possible, the information used to specify an + optimal control problem matches the notation and terminology of the SciPy + `optimize.minimize` module, with the hope that this makes it easier to + remember how to describe a problem. + + Notes + ----- + This class sets up an optimization over the inputs at each point in + time, using the integral and terminal costs as well as the + trajectory and terminal constraints. The `compute_trajectory` + method sets up an optimization problem that can be solved using + :func:`scipy.optimize.minimize`. + + The `_cost_function` method takes the information computes the cost of the + trajectory generated by the proposed input. It does this by calling a + user-defined function for the integral_cost given the current states and + inputs at each point along the trajetory and then adding the value of a + user-defined terminal cost at the final pint in the trajectory. + + The `_constraint_function` method evaluates the constraint functions along + the trajectory generated by the proposed input. As in the case of the + cost function, the constraints are evaluated at the state and input along + each point on the trjectory. This information is compared against the + constraint upper and lower bounds. The constraint function is processed + in the class initializer, so that it only needs to be computed once. """ def __init__( - self, sys, time, integral_cost, trajectory_constraints=[], + self, sys, time_vector, integral_cost, trajectory_constraints=[], terminal_cost=None, terminal_constraints=[]): + """Set up an optimal control problem + + To describe an optimal control problem we need an input/output system, + a time horizon, a cost function, and (optionally) a set of constraints + on the state and/or input, either along the trajectory and at the + terminal time. + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the optimal input will be computed. + time_vector : 1D array_like + List of times at which the optimal input should be computed. + integral_cost : callable + Function that returns the integral cost given the current state + and input. Called as integral_cost(x, u). + trajectory_constraints : list of tuples, optional + List of constraints that should hold at each point in the time + vector. Each element of the list should consist of a tuple with + first element given by :meth:`~scipy.optimize.LinearConstraint` or + :meth:`~scipy.optimize.NonlinearConstraint` and the remaining + elements of the tuple are the arguments that would be passed to + those functions. The constrains will be applied at each point + along the trajectory. + terminal_cost : callable + Function that returns the terminal cost given the current state + and input. Called as terminal_cost(x, u). + + Returns + ------- + ocp : OptimalControlProblem + Optimal control problem object, to be used in computing optimal + controllers. + + """ # Save the basic information for use later self.system = sys - self.time_vector = time + self.time_vector = time_vector self.integral_cost = integral_cost self.trajectory_constraints = trajectory_constraints self.terminal_cost = terminal_cost @@ -73,7 +106,7 @@ def __init__( # mainly a matter of computing the lower and upper bound vectors, # which we need to "stack" to account for the evaluation at each # trajectory time point plus any terminal constraints (in a way that - # is consistent with the `constraint_function` that is used at + # is consistent with the `_constraint_function` that is used at # evaluation time. # constraint_lb, constraint_ub, eqconst_value = [], [], [] @@ -110,11 +143,11 @@ def __init__( self.constraints = [] if len(self.constraint_lb) != 0: self.constraints.append(sp.optimize.NonlinearConstraint( - self.constraint_function, self.constraint_lb, + self._constraint_function, self.constraint_lb, self.constraint_ub)) if len(self.eqconst_value) != 0: self.constraints.append(sp.optimize.NonlinearConstraint( - self.eqconst_function, self.eqconst_value, + self._eqconst_function, self.eqconst_value, self.eqconst_value)) # @@ -144,7 +177,7 @@ def __init__( # The initial state is for generating the simulation is store in the class # parameter `x` prior to calling the optimization algorithm. # - def cost_function(self, inputs): + def _cost_function(self, inputs): # Retrieve the initial state and reshape the input vector x = self.x inputs = inputs.reshape( @@ -199,7 +232,7 @@ def cost_function(self, inputs): # separate out the evaluation into two different constraints, which # allows the SciPy optimizers to be more efficient (and stops them from # generating a warning about mixed constraints). This is handled - # through the use of the `eqconst_function` and `eqconst_value` members. + # through the use of the `_eqconst_function` and `eqconst_value` members. # # In both cases, the constraint is specified at a single point, but we # extend this to apply to each point in the trajectory. This means @@ -219,7 +252,7 @@ def cost_function(self, inputs): # pass arguments to the constraint function, we have to store the initial # state prior to optimization and retrieve it here. # - def constraint_function(self, inputs): + def _constraint_function(self, inputs): # Retrieve the initial state and reshape the input vector x = self.x inputs = inputs.reshape( @@ -273,7 +306,7 @@ def constraint_function(self, inputs): # Return the value of the constraint function return np.hstack(value) - def eqconst_function(self, inputs): + def _eqconst_function(self, inputs): # Retrieve the initial state and reshape the input vector x = self.x inputs = inputs.reshape( @@ -327,28 +360,67 @@ def eqconst_function(self, inputs): # Return the value of the constraint function return np.hstack(value) + # Create an input/output system implementing an MPC controller + def _create_mpc_iosystem(self, dt=True): + """Create an I/O system implementing an MPC controller""" + def _update(t, x, u, params={}): + inputs = x.reshape((self.system.ninputs, self.time_vector.size)) + self.initial_guess = np.hstack( + [inputs[:,1:], inputs[:,-1:]]).reshape(-1) + _, inputs = self.compute_trajectory(u) + return inputs.reshape(-1) - # Allow optctrl(x) as a replacement for optctrl.mpc(x) - def __call__(self, x, squeeze=None): - """Compute the optimal input at state x""" - return self.mpc(x, squeeze=squeeze) + def _output(t, x, u, params={}): + inputs = x.reshape((self.system.ninputs, self.time_vector.size)) + return inputs[:,0] - # Compute the current input to apply from the current state (MPC style) - def mpc(self, x, squeeze=None): - """Compute the optimal input at state x""" - _, inputs = self.compute_trajectory(x, squeeze=squeeze) - return None if inputs is None else inputs[:,0] + return ct.NonlinearIOSystem( + _update, _output, dt=dt, + inputs=self.system.nstates, + outputs=self.system.ninputs, + states=self.system.ninputs * self.time_vector.size) # Compute the optimal trajectory from the current state def compute_trajectory( self, x, squeeze=None, transpose=None, return_x=None): - """Compute the optimal input at state x""" - # Store the initial state (for use in constraint_function) + """Compute the optimal input at state x + + Parameters + ---------- + x: array-like or number, optional + Initial state for the system. + return_x : bool, optional + If True, return the values of the state at each time (default = + False). + squeeze : bool, optional + If True and if the system has a single output, return the system + output as a 1D array rather than a 2D array. If False, return the + system output as a 2D array even if the system is SISO. Default + value set by config.defaults['control.squeeze_time_response']. + transpose : bool, optional + If True, assume that 2D input arrays are transposed from the + standard format. Used to convert MATLAB-style inputs to our + format. + + Returns + ------- + time : array + Time values of the input. + inputs : array + Optimal inputs for the system. If the system is SISO and squeeze + is not True, the array is 1D (indexed by time). If the system is + not SISO or squeeze is False, the array is 2D (indexed by the + output number and time). + states : array + Time evolution of the state vector (if return_x=True). + + """ + # Store the initial state (for use in _constraint_function) self.x = x # Call ScipPy optimizer res = sp.optimize.minimize( - self.cost_function, self.initial_guess, + self._cost_function, self.initial_guess, constraints=self.constraints) # See if we got an answer @@ -373,28 +445,216 @@ def compute_trajectory( self.system, self.time_vector, inputs, states, transpose=transpose, return_x=return_x, squeeze=squeeze) - # Create an input/output system implementing an MPC controller - def create_mpc_iosystem(self, dt=True): - def _update(t, x, u, params={}): - inputs = x.reshape((self.system.ninputs, self.time_vector.size)) - self.initial_guess = np.hstack( - [inputs[:,1:], inputs[:,-1:]]).reshape(-1) - _, inputs = self.compute_trajectory(u) - return inputs.reshape(-1) + # Compute the current input to apply from the current state (MPC style) + def compute_mpc(self, x, squeeze=None): + """Compute the optimal input at state x + + This function calls the :meth:`compute_trajectory` method and returns + the input at the first time point. + + Parameters + ---------- + x: array-like or number, optional + Initial state for the system. + squeeze : bool, optional + If True and if the system has a single output, return the system + output as a 1D array rather than a 2D array. If False, return the + system output as a 2D array even if the system is SISO. Default + value set by config.defaults['control.squeeze_time_response']. + + Returns + ------- + input : array + Optimal input for the system at the current time. If the system + is SISO and squeeze is not True, the array is 1D (indexed by + time). If the system is not SISO or squeeze is False, the array + is 2D (indexed by the output number and time). + + """ + _, inputs = self.compute_trajectory(x, squeeze=squeeze) + return None if inputs is None else inputs[:,0] - def _output(t, x, u, params={}): - inputs = x.reshape((self.system.ninputs, self.time_vector.size)) - return inputs[:,0] - return ct.NonlinearIOSystem( - _update, _output, dt=dt, - inputs=self.system.nstates, - outputs=self.system.ninputs, - states=self.system.ninputs * self.time_vector.size) +# Compute the input for a nonlinear, (constrained) optimal control problem +def compute_optimal_input( + sys, horizon, X0, cost, constraints=[], terminal_cost=None, + terminal_constraints=[], squeeze=None, transpose=None, return_x=None): + """Compute the solution to an optimal control problem + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the optimal input will be computed. + + horizon : 1D array_like + List of times at which the optimal input should be computed. + + X0: array-like or number, optional + Initial condition (default = 0). + + cost : callable + Function that returns the integral cost given the current state + and input. Called as cost(x, u). + + constraints : list of tuples, optional + List of constraints that should hold at each point in the time vector. + Each element of the list should consist of a tuple with first element + given by :meth:`scipy.optimize.LinearConstraint` or + :meth:`scipy.optimize.NonlinearConstraint` and the remaining + elements of the tuple are the arguments that would be passed to those + functions. The following tuples are supported: + + * (LinearConstraint, A, lb, ub): The matrix A is multiplied by stacked + vector of the state and input at each point on the trajectory for + comparison against the upper and lower bounds. + + * (NonlinearConstraint, fun, lb, ub): a user-specific constraint + function `fun(x, u)` is called at each point along the trajectory + and compared against the upper and lower bounds. + + The constraints are applied at each point along the trajectory. + + terminal_cost : callable, optional + Function that returns the terminal cost given the current state + and input. Called as terminal_cost(x, u). + + terminal_constraint : list of tuples, optional + List of constraints that should hold at the end of the trajectory. + Same format as `constraints`. + + return_x : bool, optional + If True, return the values of the state at each time (default = False). + + squeeze : bool, optional + If True and if the system has a single output, return the system + output as a 1D array rather than a 2D array. If False, return the + system output as a 2D array even if the system is SISO. Default value + set by config.defaults['control.squeeze_time_response']. + + transpose : bool, optional + If True, assume that 2D input arrays are transposed from the standard + format. Used to convert MATLAB-style inputs to our format. + + Returns + ------- + time : array + Time values of the input. + inputs : array + Optimal inputs for the system. If the system is SISO and squeeze is not + True, the array is 1D (indexed by time). If the system is not SISO or + squeeze is False, the array is 2D (indexed by the output number and + time). + states : array + Time evolution of the state vector (if return_x=True). + + """ + # Set up the optimal control problem + ocp = OptimalControlProblem( + sys, horizon, cost, trajectory_constraints=constraints, + terminal_cost=terminal_cost, terminal_constraints=terminal_constraints) + + # Solve for the optimal input from the current state + return ocp.compute_trajectory( + X0, squeeze=squeeze, transpose=None, return_x=None) + + +# Create a model predictive controller for an optimal control problem +def create_mpc_iosystem( + sys, horizon, cost, constraints=[], terminal_cost=None, + terminal_constraints=[], dt=True): + """Create a model predictive I/O control system + + This function creates an input/output system that implements a model + predictive control for a system given the time horizon, cost function and + constraints that define the finite-horizon optimization that should be + carried out at each state. + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the optimal input will be computed. + + horizon : 1D array_like + List of times at which the optimal input should be computed. + + cost : callable + Function that returns the integral cost given the current state + and input. Called as cost(x, u). + + constraints : list of tuples, optional + List of constraints that should hold at each point in the time vector. + See :func:`~control.obc.compute_optimal_input` for more details. + + terminal_cost : callable, optional + Function that returns the terminal cost given the current state + and input. Called as terminal_cost(x, u). + + terminal_constraint : list of tuples, optional + List of constraints that should hold at the end of the trajectory. + Same format as `constraints`. + + Returns + ------- + ctrl : InputOutputSystem + An I/O system taking the currrent state of the model system and + returning the current input to be applied that minimizes the cost + function while satisfying the constraints. + + """ + + # Set up the optimal control problem + ocp = OptimalControlProblem( + sys, horizon, cost, trajectory_constraints=constraints, + terminal_cost=terminal_cost, terminal_constraints=terminal_constraints) + # Return an I/O system implementing the model predictive controller + return ocp._create_mpc_iosystem(dt=dt) + +# +# Functions to create cost functions (quadratic cost function) # -# Create a polytope constraint on the system state: A x <= b +# Since a quadratic function is common as a cost function, we provide a +# function that will take a Q and R matrix and return a callable that +# evaluates to associted quadratic cost. This is compatible with the way that +# the `_cost_function` evaluates the cost at each point in the trajectory. +# +def quadratic_cost(sys, Q, R, x0=0, u0=0): + """Create quadratic cost function + + Returns a quadratic cost function that can be used for an optimal control + problem. The cost function is of the form + + cost = (x - x0)^T Q (x - x0) + (u - u0)^T R (u - u0) + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the cost function is being defined. + Q : 2D array_like + Weighting matrix for state cost. Dimensions must match system state. + R : 2D array_like + Weighting matrix for input cost. Dimensions must match system input. + x0 : 1D array + Nomimal value of the system state (for which cost should be zero). + u0 : 1D array + Nomimal value of the system input (for which cost should be zero). + + Returns + ------- + cost_fun : callable + Function that can be used to evaluate the cost at a given state and + input. The call signature of the function is cost_fun(x, u). + + """ + Q = np.atleast_2d(Q) + R = np.atleast_2d(R) + return lambda x, u: ((x-x0) @ Q @ (x-x0) + (u-u0) @ R @ (u-u0)).item() + + +# +# Functions to create constraints: either polytopes (A x <= b) or ranges +# (lb # <= x <= ub). # # As in the cost function evaluation, the main "trick" in creating a constrain # on the state or input is to properly evaluate the constraint on the stacked @@ -408,7 +668,26 @@ def _output(t, x, u, params={}): # keep things consistent with the terminology in scipy.optimize. # def state_poly_constraint(sys, A, b): - """Create state constraint from polytope""" + """Create state constraint from polytope + + Creates a linear constraint on the system state of the form A x <= b that + can be used as an optimal control constraint (trajectory or terminal). + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the constraint is being defined. + A : 2D array + Constraint matrix + b : 1D array + Upper bound for the constraint + + Returns + ------- + constraint : tuple + A tuple consisting of the constraint type and parameter values. + + """ # TODO: make sure the system and constraints are compatible # Return a linear constraint object based on the polynomial @@ -418,7 +697,28 @@ def state_poly_constraint(sys, A, b): def state_range_constraint(sys, lb, ub): - """Create state constraint from polytope""" + """Create state constraint from polytope + + Creates a linear constraint on the system state that bounds the range of + the individual states to be between `lb` and `ub`. The upper and lower + bounds can be set of `inf` and `-inf` to indicate there is no constraint + or to the same value to describe an equality constraint. + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the constraint is being defined. + lb : 1D array + Lower bound for each of the states. + ub : 1D array + Upper bound for each of the states. + + Returns + ------- + constraint : tuple + A tuple consisting of the constraint type and parameter values. + + """ # TODO: make sure the system and constraints are compatible # Return a linear constraint object based on the polynomial @@ -430,7 +730,26 @@ def state_range_constraint(sys, lb, ub): # Create a constraint polytope on the system input def input_poly_constraint(sys, A, b): - """Create input constraint from polytope""" + """Create input constraint from polytope + + Creates a linear constraint on the system input of the form A u <= b that + can be used as an optimal control constraint (trajectory or terminal). + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the constraint is being defined. + A : 2D array + Constraint matrix + b : 1D array + Upper bound for the constraint + + Returns + ------- + constraint : tuple + A tuple consisting of the constraint type and parameter values. + + """ # TODO: make sure the system and constraints are compatible # Return a linear constraint object based on the polynomial @@ -441,7 +760,28 @@ def input_poly_constraint(sys, A, b): def input_range_constraint(sys, lb, ub): - """Create input constraint from polytope""" + """Create input constraint from polytope + + Creates a linear constraint on the system input that bounds the range of + the individual states to be between `lb` and `ub`. The upper and lower + bounds can be set of `inf` and `-inf` to indicate there is no constraint + or to the same value to describe an equality constraint. + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the constraint is being defined. + lb : 1D array + Lower bound for each of the inputs. + ub : 1D array + Upper bound for each of the inputs. + + Returns + ------- + constraint : tuple + A tuple consisting of the constraint type and parameter values. + + """ # TODO: make sure the system and constraints are compatible # Return a linear constraint object based on the polynomial @@ -452,7 +792,7 @@ def input_range_constraint(sys, lb, ub): # -# Create a constraint polytope on the system output +# Create a constraint polytope/range constraint on the system output # # Unlike the state and input constraints, for the output constraint we need to # do a function evaluation before applying the constraints. @@ -465,12 +805,30 @@ def input_range_constraint(sys, lb, ub): # [A @ sys.C, np.zeros((A.shape[0], sys.ninputs))]) # def output_poly_constraint(sys, A, b): - """Create output constraint from polytope""" + """Create output constraint from polytope + + Creates a linear constraint on the system ouput of the form A y <= b that + can be used as an optimal control constraint (trajectory or terminal). + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the constraint is being defined. + A : 2D array + Constraint matrix + b : 1D array + Upper bound for the constraint + + Returns + ------- + constraint : tuple + A tuple consisting of the constraint type and parameter values. + + """ # TODO: make sure the system and constraints are compatible - # # Function to create the output - def _evaluate_output_constraint(x): + def _evaluate_output_poly_constraint(x): # Separate the constraint into states and inputs states = x[:sys.nstates] inputs = x[sys.nstates:] @@ -479,20 +837,41 @@ def _evaluate_output_constraint(x): # Return a nonlinear constraint object based on the polynomial return (opt.NonlinearConstraint, - _evaluate_output_constraint, + _evaluate_output_poly_constraint, np.full(A.shape[0], -np.inf), b) -# -# Quadratic cost function -# -# Since a quadratic function is common as a cost function, we provide a -# function that will take a Q and R matrix and return a callable that -# evaluates to associted quadratic cost. This is compatible with the way that -# the `cost_function` evaluates the cost at each point in the trajectory. -# -def quadratic_cost(sys, Q, R, x0=0, u0=0): - """Create quadratic cost function""" - Q = np.atleast_2d(Q) - R = np.atleast_2d(R) - return lambda x, u: ((x-x0) @ Q @ (x-x0) + (u-u0) @ R @ (u-u0)).item() +def output_range_constraint(sys, lb, ub): + """Create output constraint from range + + Creates a linear constraint on the system output that bounds the range of + the individual states to be between `lb` and `ub`. The upper and lower + bounds can be set of `inf` and `-inf` to indicate there is no constraint + or to the same value to describe an equality constraint. + + Parameters + ---------- + sys : InputOutputSystem + I/O system for which the constraint is being defined. + lb : 1D array + Lower bound for each of the outputs. + ub : 1D array + Upper bound for each of the outputs. + + Returns + ------- + constraint : tuple + A tuple consisting of the constraint type and parameter values. + + """ + # TODO: make sure the system and constraints are compatible + + # Function to create the output + def _evaluate_output_range_constraint(x): + # Separate the constraint into states and inputs + states = x[:sys.nstates] + inputs = x[sys.nstates:] + outputs = sys._out(0, states, inputs) + + # Return a nonlinear constraint object based on the polynomial + return (opt.NonlinearConstraint, _evaluate_output_range_constraint, lb, ub) diff --git a/control/tests/obc_test.py b/control/tests/obc_test.py index 919f1377b..9ddc32a8c 100644 --- a/control/tests/obc_test.py +++ b/control/tests/obc_test.py @@ -13,7 +13,7 @@ from control.tests.conftest import slycotonly -def test_finite_horizon_mpc_simple(): +def test_finite_horizon_simple(): # Define a linear system with constraints # Source: https://www.mpt3.org/UI/RegulationProblem @@ -30,18 +30,13 @@ def test_finite_horizon_mpc_simple(): R = [[1]] cost = obc.quadratic_cost(sys, Q, R) - # Create a model predictive controller system + # Set up the optimal control problem time = np.arange(0, 5, 1) - optctrl = obc.OptimalControlProblem(sys, time, cost, constraints) - mpc = optctrl.mpc - - # Optimal control input for a given value of the initial state x0 = [4, 0] - u = mpc(x0) - np.testing.assert_almost_equal(u, -1) # Retrieve the full open-loop predictions - t, u_openloop = optctrl.compute_trajectory(x0, squeeze=True) + t, u_openloop = obc.compute_optimal_input( + sys, time, x0, cost, constraints, squeeze=True) np.testing.assert_almost_equal( u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=4) @@ -54,7 +49,7 @@ def test_finite_horizon_mpc_simple(): @slycotonly -def test_finite_horizon_mpc_oscillator(): +def test_class_interface(): # oscillator model defined in 2D # Source: https://www.mpt3.org/UI/RegulationProblem A = [[0.5403, -0.8415], [0.8415, 0.5403]] @@ -124,11 +119,10 @@ def test_mpc_iosystem(): cost = obc.quadratic_cost(model, Q, R, x0=xd, u0=ud) # online MPC controller object is constructed with a horizon 6 - optctrl = obc.OptimalControlProblem( + ctrl = obc.create_mpc_iosystem( model, np.arange(0, 6) * 0.2, cost, constraints) # Define an I/O system implementing model predictive control - ctrl = optctrl.create_mpc_iosystem() loop = ct.feedback(sys, ctrl, 1) # Choose a nearby initial condition to speed up computation diff --git a/doc/classes.rst b/doc/classes.rst index b948f23aa..6239bd2d1 100644 --- a/doc/classes.rst +++ b/doc/classes.rst @@ -30,3 +30,14 @@ that allow for linear, nonlinear, and interconnected elements: LinearICSystem LinearIOSystem NonlinearIOSystem + +Additional classes +================== +.. autosummary:: + + flatsys.BasisFamily + flatsys.FlatSystem + flatsys.LinearFlatSystem + flatsys.PolyFamily + flatsys.SystemTrajectory + obc.OptimalControlProblem diff --git a/doc/examples.rst b/doc/examples.rst index e56d46e70..91476bc9d 100644 --- a/doc/examples.rst +++ b/doc/examples.rst @@ -43,5 +43,6 @@ using running examples in FBS2e. cruise describing_functions + mpc_aircraft steering pvtol-lqr-nested diff --git a/doc/index.rst b/doc/index.rst index 3558b0b30..b5893d860 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -30,6 +30,7 @@ implements basic operations for analysis and design of feedback control systems. flatsys iosys descfcn + obc examples * :ref:`genindex` diff --git a/doc/mpc-overview.png b/doc/mpc-overview.png new file mode 100644 index 0000000000000000000000000000000000000000..a51b9418a090677affa39e5b3f3159b8e9b062d3 GIT binary patch literal 175846 zcmeEubzGF));0_wArevo0us_85&{AvN{4`ScSuU7Fe)fRNw**%ol1A3Al(clA{`># z-yYECocFwOosql1R8o|}!=b=IK|#Tjk$$9tf`Vm;f`X=w zg$drNd26YJf`V#f_3)vR^+TzL_BQs8PaKR)%pO@eIoKF^DBVRtVGcJjG*ppcXZ~zt zWN7%gn~ep>(M{#en_v|~-_MQLUe#VTzKRq0r41t#6;%|SW4V<2;PGff$D1qBpV@EQvR1CjVP%tiDqoBy5QvUT? z1(o^tH4qe(*H$R#zpv2-KapQ=!GAFN_fJSFp$%bzMI0KJsQlN>=V>Hd>FYY|ZSPz|=(V@$ufjc+7wM%YDCuh*-XIoaE|ATL+5vvL;Y`90)c z-u^x6J{MBF|0M3qy}WoAY^EsAeXhS0LllQPBq#v|1&Si`=z*#`>e|#5KV7rB{jKe< zYng=7(n}nH3^?d4GR*HkXDX{ys;{L=_vdL8o!05g?d0y)k?net7?5~9gxX{%6A{UZ zcVTAWFkmjz5@0dfTD;repZPkTB=U8wXRW6vNpRa|r&n-MaNR@H;<2mif>xc56Z~u|OfAru#X7C><_zx2Pe~EGyU&X_zM9oD*cU7m^y8rJ?w|=gRWam2lm1=Cr-0bp2`^qjRs{d zT?=mOzJuw#Bw7k2|6U`YG#K#b(ufX|5=scxkn(I!`BsA~%*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DLg!9E7V1 zx*fCJ-3#lx!swMinc&10OUq|UP#9Rj>8z;TBIs2QU`?nX)3%clHA9bj@5mPpTME|a zT7ARn?_!##YxW&D0uC!m!)m1R{=~Ku)bl*H#Kj#ONqEXNB!x10tQM6HRFv_g^%320 zAGpGCX0uG(3@=H~_=2)wJ+@YHTMUQ}1EP!awL`_. + +Module usage +============ + +The `obc` module provides a means of computing optimal trajectories for +nonlinear systems and implementing optimization-based controllers, including +model predictive control. It follows the basic problem setup described +above, but carries out all computations in *discrete time* (so that +integrals become sums) and over a *finite horizon*. + +To describe an optimal control problem we need an input/output system, a +time horizon, a cost function, and (optionally) a set of constraints on the +state and/or input, either along the trajectory and at the terminal time. +The `obc` module operates by converting the optimal control problem into a +standard optimization problem that can be solved by +:func:`scipy.optimize.minimize`. The optimal control problem can be solved +by using the `~control.obc.compute_optimal_input` function: + + import control.obc as obc + inputs = obc.compute_optimal_inputs(sys, horizon, X0, cost, constraints) + +The `sys` parameter should be a :class:`~control.InputOutputSystem` and the +`horizon` parameter should represent a time vector that gives the list of +times at which the `cost` and `constraints` should be evaluated. By default, +`constraints` are taken to be trajectory constraints holding at all points +on the trajectory. The `terminal_constraint` parameter can be used to +specify a constraint that only holds at the final point of the trajectory +and the `terminal_cost` paramter can be used to specify a terminal cost +function. + + +Example +======= + +Module classes and functions +============================ +.. autosummary:: + :toctree: generated/ + + ~control.obc.OptimalControlProblem + ~control.obc.compute_optimal_input + ~control.obc.create_mpc_iosystem + ~control.obc.input_poly_constraint + ~control.obc.input_range_constraint + ~control.obc.output_poly_constraint + ~control.obc.output_range_constraint + ~control.obc.state_poly_constraint + ~control.obc.state_range_constraint diff --git a/examples/mpc_aircraft.ipynb b/examples/mpc_aircraft.ipynb index 53b8bb13b..87b512aee 100644 --- a/examples/mpc_aircraft.ipynb +++ b/examples/mpc_aircraft.ipynb @@ -78,7 +78,7 @@ "cost = obc.quadratic_cost(model, Q, R, x0=xd, u0=ud)\n", "\n", "# online MPC controller object is constructed with a horizon 6\n", - "optctrl = obc.OptimalControlProblem(model, np.arange(0, 6) * 0.2, cost, constraints)" + "ctrl = obc.create_mpc_iosystem(model, np.arange(0, 6) * 0.2, cost, constraints)" ] }, { @@ -99,7 +99,6 @@ ], "source": [ "# Define an I/O system implementing model predictive control\n", - "ctrl = optctrl.create_mpc_iosystem()\n", "loop = ct.feedback(sys, ctrl, 1)\n", "print(loop)" ] From 769eaa5ec980f7e46fc64e4182ad6af5f53e4e18 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Thu, 18 Feb 2021 23:01:17 -0800 Subject: [PATCH 202/260] add info/debug messages + code refactor, result object --- control/obc.py | 308 +++++++++++++++++++++++++++++------ control/tests/obc_test.py | 34 ++-- doc/obc.rst | 147 ++++++++++++++++- examples/run_examples.sh | 4 + examples/steering-optimal.py | 151 +++++++++++++++++ 5 files changed, 577 insertions(+), 67 deletions(-) create mode 100644 examples/steering-optimal.py diff --git a/control/obc.py b/control/obc.py index e71677efc..c4fa0dc4b 100644 --- a/control/obc.py +++ b/control/obc.py @@ -13,6 +13,8 @@ import scipy.optimize as opt import control as ct import warnings +import logging +import time from .timeresp import _process_time_response @@ -52,7 +54,8 @@ class OptimalControlProblem(): """ def __init__( self, sys, time_vector, integral_cost, trajectory_constraints=[], - terminal_cost=None, terminal_constraints=[]): + terminal_cost=None, terminal_constraints=[], initial_guess=None, + log=False, options={}): """Set up an optimal control problem To describe an optimal control problem we need an input/output system, @@ -77,9 +80,18 @@ def __init__( elements of the tuple are the arguments that would be passed to those functions. The constrains will be applied at each point along the trajectory. - terminal_cost : callable + terminal_cost : callable, optional Function that returns the terminal cost given the current state and input. Called as terminal_cost(x, u). + initial_guess : 1D or 2D array_like + Initial inputs to use as a guess for the optimal input. The + inputs should either be a 2D vector of shape (ninputs, horizon) + or a 1D input of shape (ninputs,) that will be broadcast by + extension of the time axis. + log : bool, optional + If `True`, turn on logging messages (using Python logging module). + options : dict, optional + Solver options (passed to :func:`scipy.optimal.minimize`). Returns ------- @@ -95,6 +107,7 @@ def __init__( self.trajectory_constraints = trajectory_constraints self.terminal_cost = terminal_cost self.terminal_constraints = terminal_constraints + self.options = options # # Compute and store constraints @@ -112,7 +125,7 @@ def __init__( constraint_lb, constraint_ub, eqconst_value = [], [], [] # Go through each time point and stack the bounds - for time in self.time_vector: + for t in self.time_vector: for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint if np.all(lb == ub): @@ -153,17 +166,42 @@ def __init__( # # Initial guess # - # We store an initial guess (zero input) in case it is not specified - # later. Note that create_mpc_iosystem() will reset the initial guess - # based on the current state of the MPC controller. + # We store an initial guess in case it is not specified later. Note + # that create_mpc_iosystem() will reset the initial guess based on + # the current state of the MPC controller. # - self.initial_guess = np.zeros( - self.system.ninputs * self.time_vector.size) + if initial_guess is not None: + # Convert to a 1D array (or higher) + initial_guess = np.atleast_1d(initial_guess) + + # See whether we got entire guess or just first time point + if len(initial_guess.shape) == 1: + # Broadcast inputs to entire time vector + initial_guess = np.broadcast_to( + initial_guess.reshape(-1, 1), + (self.system.ninputs, self.time_vector.size)) + elif len(initial_guess.shape) != 2: + raise ValueError("initial guess is the wrong shape") + + # Reshape for use by scipy.optimize.minimize() + self.initial_guess = initial_guess.reshape(-1) - # Store states, input to minimize re-computation + else: + self.initial_guess = np.zeros( + self.system.ninputs * self.time_vector.size) + + # Store states, input, used later to minimize re-computation self.last_x = np.full(self.system.nstates, np.nan) self.last_inputs = np.full(self.initial_guess.shape, np.nan) + # Reset run-time statistics + self._reset_statistics(log) + + # Log information + if log: + logging.info("New optimal control problem initailized") + + # # Cost function # @@ -178,6 +216,10 @@ def __init__( # parameter `x` prior to calling the optimization algorithm. # def _cost_function(self, inputs): + if self.log: + start_time = time.process_time() + logging.info("_cost_function called at: %g", start_time) + # Retrieve the initial state and reshape the input vector x = self.x inputs = inputs.reshape( @@ -188,23 +230,42 @@ def _cost_function(self, inputs): np.array_equal(inputs, self.last_inputs): states = self.last_states else: + if self.log: + logging.debug("calling input_output_response from state\n" + + str(x)) + logging.debug("initial input[0:3] =\n" + str(inputs[:, 0:3])) + # Simulate the system to get the state _, _, states = ct.input_output_response( self.system, self.time_vector, inputs, x, return_x=True) + self.system_simulations += 1 self.last_x = x self.last_inputs = inputs self.last_states = states + if self.log: + logging.debug("input_output_response returned states\n" + + str(states)) + # Trajectory cost # TODO: vectorize cost = 0 - for i, time in enumerate(self.time_vector): + for i, t in enumerate(self.time_vector): cost += self.integral_cost(states[:,i], inputs[:,i]) # Terminal cost if self.terminal_cost is not None: cost += self.terminal_cost(states[:,-1], inputs[:,-1]) + # Update statistics + self.cost_evaluations += 1 + if self.log: + stop_time = time.process_time() + self.cost_process_time += stop_time - start_time + logging.info( + "_cost_function returning %g; elapsed time: %g", + cost, stop_time - start_time) + # Return the total cost for this input sequence return cost @@ -253,6 +314,10 @@ def _cost_function(self, inputs): # state prior to optimization and retrieve it here. # def _constraint_function(self, inputs): + if self.log: + start_time = time.process_time() + logging.info("_constraint_function called at: %g", start_time) + # Retrieve the initial state and reshape the input vector x = self.x inputs = inputs.reshape( @@ -263,16 +328,22 @@ def _constraint_function(self, inputs): np.array_equal(inputs, self.last_inputs): states = self.last_states else: + if self.log: + logging.debug("calling input_output_response from state\n" + + str(x)) + logging.debug("initial input[0:3] =\n" + str(inputs[:, 0:3])) + # Simulate the system to get the state _, _, states = ct.input_output_response( self.system, self.time_vector, inputs, x, return_x=True) + self.system_simulations += 1 self.last_x = x self.last_inputs = inputs self.last_states = states # Evaluate the constraint function along the trajectory value = [] - for i, time in enumerate(self.time_vector): + for i, t in enumerate(self.time_vector): for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint if np.all(lb == ub): @@ -303,10 +374,30 @@ def _constraint_function(self, inputs): raise TypeError("unknown constraint type %s" % constraint[0]) + # Update statistics + self.constraint_evaluations += 1 + if self.log: + stop_time = time.process_time() + self.constraint_process_time += stop_time - start_time + logging.info( + "_constraint_function elapsed time: %g", + stop_time - start_time) + + # Debugging information + if self.log: + logging.debug( + "constraint values\n" + str(value) + "\n" + + "lb, ub =\n" + str(self.constraint_lb) + "\n" + + str(self.constraint_ub)) + # Return the value of the constraint function return np.hstack(value) def _eqconst_function(self, inputs): + if self.log: + start_time = time.process_time() + logging.info("_eqconst_function called at: %g", start_time) + # Retrieve the initial state and reshape the input vector x = self.x inputs = inputs.reshape( @@ -317,16 +408,26 @@ def _eqconst_function(self, inputs): np.array_equal(inputs, self.last_inputs): states = self.last_states else: + if self.log: + logging.debug("calling input_output_response from state\n" + + str(x)) + logging.debug("initial input[0:3] =\n" + str(inputs[:, 0:3])) + # Simulate the system to get the state _, _, states = ct.input_output_response( self.system, self.time_vector, inputs, x, return_x=True) + self.system_simulations += 1 self.last_x = x self.last_inputs = inputs self.last_states = states + if self.log: + logging.debug("input_output_response returned states\n" + + str(states)) + # Evaluate the constraint function along the trajectory value = [] - for i, time in enumerate(self.time_vector): + for i, t in enumerate(self.time_vector): for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint if np.any(lb != ub): @@ -357,9 +458,59 @@ def _eqconst_function(self, inputs): raise TypeError("unknown constraint type %s" % constraint[0]) + # Update statistics + self.eqconst_evaluations += 1 + if self.log: + stop_time = time.process_time() + self.eqconst_process_time += stop_time - start_time + logging.info( + "_eqconst_function elapsed time: %g", stop_time - start_time) + + # Debugging information + if self.log: + logging.debug( + "constraint values\n" + str(value) + "\n" + + "lb, ub =\n" + str(self.constraint_lb) + "\n" + + str(self.constraint_ub)) + # Return the value of the constraint function return np.hstack(value) + # + # Log and statistics + # + # To allow some insight into where time is being spent, we keep track of + # the number of times that various functions are called and (optionally) + # how long we spent inside each function. + # + def _reset_statistics(self, log=False): + """Reset counters for keeping track of statistics""" + self.log=log + self.cost_evaluations, self.cost_process_time = 0, 0 + self.constraint_evaluations, self.constraint_process_time = 0, 0 + self.eqconst_evaluations, self.eqconst_process_time = 0, 0 + self.system_simulations = 0 + + def _print_statistics(self, reset=True): + """Print out summary statistics from last run""" + print("Summary statistics:") + print("* Cost function calls:", self.cost_evaluations) + if self.log: + print("* Cost function process time:", self.cost_process_time) + if self.constraint_evaluations: + print("* Constraint calls:", self.constraint_evaluations) + if self.log: + print( + "* Constraint process time:", self.constraint_process_time) + if self.eqconst_evaluations: + print("* Eqconst calls:", self.eqconst_evaluations) + if self.log: + print( + "* Eqconst process time:", self.eqconst_process_time) + print("* System simulations:", self.system_simulations) + if reset: + self._reset_statistics(self.log) + # Create an input/output system implementing an MPC controller def _create_mpc_iosystem(self, dt=True): """Create an I/O system implementing an MPC controller""" @@ -367,8 +518,8 @@ def _update(t, x, u, params={}): inputs = x.reshape((self.system.ninputs, self.time_vector.size)) self.initial_guess = np.hstack( [inputs[:,1:], inputs[:,-1:]]).reshape(-1) - _, inputs = self.compute_trajectory(u) - return inputs.reshape(-1) + result = self.compute_trajectory(u) + return result.inputs.reshape(-1) def _output(t, x, u, params={}): inputs = x.reshape((self.system.ninputs, self.time_vector.size)) @@ -382,12 +533,13 @@ def _output(t, x, u, params={}): # Compute the optimal trajectory from the current state def compute_trajectory( - self, x, squeeze=None, transpose=None, return_x=None): + self, x, squeeze=None, transpose=None, return_x=None, + print_summary=True): """Compute the optimal input at state x Parameters ---------- - x: array-like or number, optional + x : array-like or number, optional Initial state for the system. return_x : bool, optional If True, return the values of the state at each time (default = @@ -421,29 +573,12 @@ def compute_trajectory( # Call ScipPy optimizer res = sp.optimize.minimize( self._cost_function, self.initial_guess, - constraints=self.constraints) - - # See if we got an answer - if not res.success: - warnings.warn( - "unable to solve optimal control problem\n" - "scipy.optimize.minimize returned " + res.message, UserWarning) - return None - - # Reshape the input vector - inputs = res.x.reshape( - (self.system.ninputs, self.time_vector.size)) - - if return_x: - # Simulate the system if we need the state back - _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True) - else: - states=None + constraints=self.constraints, options=self.options) - return _process_time_response( - self.system, self.time_vector, inputs, states, - transpose=transpose, return_x=return_x, squeeze=squeeze) + # Process and return the results + return OptimalControlResult( + self, res, transpose=transpose, return_x=return_x, + squeeze=squeeze, print_summary=print_summary) # Compute the current input to apply from the current state (MPC style) def compute_mpc(self, x, squeeze=None): @@ -468,17 +603,81 @@ def compute_mpc(self, x, squeeze=None): Optimal input for the system at the current time. If the system is SISO and squeeze is not True, the array is 1D (indexed by time). If the system is not SISO or squeeze is False, the array - is 2D (indexed by the output number and time). + is 2D (indexed by the output number and time). Set to `None` + if the optimization failed. """ - _, inputs = self.compute_trajectory(x, squeeze=squeeze) - return None if inputs is None else inputs[:,0] + results = self.compute_trajectory(x, squeeze=squeeze) + return inputs[:, 0] if results.success else None + + +# Optimal control result +class OptimalControlResult(sp.optimize.OptimizeResult): + """Represents the optimal control result + + This class is a subclass of :class:`sp.optimize.OptimizeResult` with + additional attributes associated with solving optimal control problems. + + Attributes + ---------- + inputs : ndarray + The optimal inputs associated with the optimal control problem. + states : ndarray + If `return_states` was set to true, stores the state trajectory + associated with the optimal input. + success : bool + Whether or not the optimizer exited successful. + problem : OptimalControlProblem + Optimal control problem that generated this solution. + + """ + def __init__( + self, ocp, res, return_x=False, print_summary=False, + transpose=None, squeeze=None): + # Copy all of the fields we were sent by sp.optimize.minimize() + for key, val in res.items(): + setattr(self, key, val) + + # Remember the optimal control problem that we solved + self.problem = ocp + + # Reshape and process the input vector + inputs = res.x.reshape( + (ocp.system.ninputs, ocp.time_vector.size)) + + # See if we got an answer + if not res.success: + warnings.warn( + "unable to solve optimal control problem\n" + "scipy.optimize.minimize returned " + res.message, UserWarning) + + # Optionally print summary information + if print_summary: + ocp._print_statistics() + + if return_x and res.success: + # Simulate the system if we need the state back + _, _, states = ct.input_output_response( + ocp.system, ocp.time_vector, inputs, ocp.x, return_x=True) + ocp.system_simulations += 1 + else: + states = None + + retval = _process_time_response( + ocp.system, ocp.time_vector, inputs, states, + transpose=transpose, return_x=return_x, squeeze=squeeze) + + self.time = retval[0] + self.inputs = retval[1] + self.states = None if states is None else retval[2] # Compute the input for a nonlinear, (constrained) optimal control problem def compute_optimal_input( sys, horizon, X0, cost, constraints=[], terminal_cost=None, - terminal_constraints=[], squeeze=None, transpose=None, return_x=None): + terminal_constraints=[], initial_guess=None, squeeze=None, + transpose=None, return_x=None, log=False, options={}): + """Compute the solution to an optimal control problem Parameters @@ -522,6 +721,15 @@ def compute_optimal_input( List of constraints that should hold at the end of the trajectory. Same format as `constraints`. + initial_guess : 1D or 2D array_like + Initial inputs to use as a guess for the optimal input. The inputs + should either be a 2D vector of shape (ninputs, horizon) or a 1D + input of shape (ninputs,) that will be broadcast by extension of the + time axis. + + log : bool, optional + If `True`, turn on logging messages (using Python logging module). + return_x : bool, optional If True, return the values of the state at each time (default = False). @@ -535,10 +743,13 @@ def compute_optimal_input( If True, assume that 2D input arrays are transposed from the standard format. Used to convert MATLAB-style inputs to our format. + options : dict, optional + Solver options (passed to :func:`scipy.optimal.minimize`). + Returns ------- time : array - Time values of the input. + Time values of the input or `None` if the optimimation fails. inputs : array Optimal inputs for the system. If the system is SISO and squeeze is not True, the array is 1D (indexed by time). If the system is not SISO or @@ -551,7 +762,8 @@ def compute_optimal_input( # Set up the optimal control problem ocp = OptimalControlProblem( sys, horizon, cost, trajectory_constraints=constraints, - terminal_cost=terminal_cost, terminal_constraints=terminal_constraints) + terminal_cost=terminal_cost, terminal_constraints=terminal_constraints, + initial_guess=initial_guess, log=log, options=options) # Solve for the optimal input from the current state return ocp.compute_trajectory( @@ -561,7 +773,7 @@ def compute_optimal_input( # Create a model predictive controller for an optimal control problem def create_mpc_iosystem( sys, horizon, cost, constraints=[], terminal_cost=None, - terminal_constraints=[], dt=True): + terminal_constraints=[], dt=True, log=False, options={}): """Create a model predictive I/O control system This function creates an input/output system that implements a model @@ -593,6 +805,9 @@ def create_mpc_iosystem( List of constraints that should hold at the end of the trajectory. Same format as `constraints`. + options : dict, optional + Solver options (passed to :func:`scipy.optimal.minimize`). + Returns ------- ctrl : InputOutputSystem @@ -605,7 +820,8 @@ def create_mpc_iosystem( # Set up the optimal control problem ocp = OptimalControlProblem( sys, horizon, cost, trajectory_constraints=constraints, - terminal_cost=terminal_cost, terminal_constraints=terminal_constraints) + terminal_cost=terminal_cost, terminal_constraints=terminal_constraints, + log=log, options=options) # Return an I/O system implementing the model predictive controller return ocp._create_mpc_iosystem(dt=dt) diff --git a/control/tests/obc_test.py b/control/tests/obc_test.py index 9ddc32a8c..e15b92d41 100644 --- a/control/tests/obc_test.py +++ b/control/tests/obc_test.py @@ -11,7 +11,7 @@ import control as ct import control.obc as obc from control.tests.conftest import slycotonly - +from numpy.lib import NumpyVersion def test_finite_horizon_simple(): # Define a linear system with constraints @@ -35,8 +35,9 @@ def test_finite_horizon_simple(): x0 = [4, 0] # Retrieve the full open-loop predictions - t, u_openloop = obc.compute_optimal_input( + results = obc.compute_optimal_input( sys, time, x0, cost, constraints, squeeze=True) + t, u_openloop = results.time, results.inputs np.testing.assert_almost_equal( u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=4) @@ -80,7 +81,7 @@ def test_class_interface(): sys, time, integral_cost, trajectory_constraints, terminal_cost) # Add tests to make sure everything works - t, u_openloop = optctrl.compute_trajectory([1, 1]) + results = optctrl.compute_trajectory([1, 1]) def test_mpc_iosystem(): @@ -128,12 +129,13 @@ def test_mpc_iosystem(): # Choose a nearby initial condition to speed up computation X0 = np.hstack([xd, np.kron(ud, np.ones(6))]) * 0.99 - Nsim = 10 + Nsim = 12 tout, xout = ct.input_output_response( loop, np.arange(0, Nsim) * 0.2, 0, X0) # Make sure the system converged to the desired state - np.testing.assert_almost_equal(xout[0:sys.nstates, -1], xd, decimal=1) + np.testing.assert_allclose( + xout[0:sys.nstates, -1], xd, atol=0.1, rtol=0.01) # Test various constraint combinations; need to use a somewhat convoluted @@ -148,8 +150,7 @@ def test_mpc_iosystem(): np.array([[1, 0], [0, 1], [-1, 0], [0, -1]]), [5, 5, 5, 5]), (obc.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], [(sp.optimize.NonlinearConstraint, - lambda x, u: np.array([abs(x[0]), x[1], u[0]**2]), - [-np.inf, -5, -1e-12], [5, 5, 1],)], # -1e-12 for SciPy bug? + lambda x, u: np.array([x[0], x[1], u[0]]), [-5, -5, -1], [5, 5, 1])], ]) def test_constraint_specification(constraint_list): sys = ct.ss2io(ct.ss([[1, 1], [0, 1]], [[1], [0.5]], np.eye(2), 0, 1)) @@ -177,7 +178,8 @@ def test_constraint_specification(constraint_list): # Compute optimal control and compare against MPT3 solution x0 = [4, 0] - t, u_openloop = optctrl.compute_trajectory(x0, squeeze=True) + results = optctrl.compute_trajectory(x0, squeeze=True) + t, u_openloop = results.time, results.inputs np.testing.assert_almost_equal( u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=3) @@ -202,7 +204,13 @@ def test_terminal_constraints(): # Find a path to the origin x0 = np.array([4, 3]) - t, u1, x1 = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + result = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + t, u1, x1 = result.time, result.inputs, result.states + + # Bug prior to SciPy 1.6 will result in incorrect results + if NumpyVersion(sp.__version__) < '1.6.0': + pytest.xfail("SciPy 1.6 or higher required") + np.testing.assert_almost_equal(x1[:,-1], 0) # Make sure it is a straight line @@ -217,7 +225,8 @@ def test_terminal_constraints(): sys, time, cost, terminal_constraints=final_point) # Find a path to the origin - t, u2, x2 = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + results = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + t, u2, x2 = results.time, results.inputs, results.states np.testing.assert_almost_equal(x2[:,-1], 0) # Make sure that it is *not* a straight line path @@ -228,7 +237,8 @@ def test_terminal_constraints(): constraints = [obc.input_range_constraint(sys, [-1, -1], [1, 1])] optctrl = obc.OptimalControlProblem( sys, time, cost, constraints, terminal_constraints=final_point) - t, u3, x3 = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + results = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + t, u3, x3 = results.time, results.inputs, results.states np.testing.assert_almost_equal(x2[:,-1], 0) # Make sure we got a new path and didn't violate the constraints @@ -239,4 +249,4 @@ def test_terminal_constraints(): x0 = np.array([10, 3]) with pytest.warns(UserWarning, match="unable to solve"): res = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) - assert res == None + assert not res.success diff --git a/doc/obc.rst b/doc/obc.rst index 4fcec2ce5..072094beb 100644 --- a/doc/obc.rst +++ b/doc/obc.rst @@ -106,24 +106,153 @@ state and/or input, either along the trajectory and at the terminal time. The `obc` module operates by converting the optimal control problem into a standard optimization problem that can be solved by :func:`scipy.optimize.minimize`. The optimal control problem can be solved -by using the `~control.obc.compute_optimal_input` function: +by using the `~control.obc.compute_optimal_input` function:: - import control.obc as obc - inputs = obc.compute_optimal_inputs(sys, horizon, X0, cost, constraints) + inputs = obc.compute_optimal_input(sys, horizon, X0, cost, constraints) The `sys` parameter should be a :class:`~control.InputOutputSystem` and the `horizon` parameter should represent a time vector that gives the list of -times at which the `cost` and `constraints` should be evaluated. By default, -`constraints` are taken to be trajectory constraints holding at all points -on the trajectory. The `terminal_constraint` parameter can be used to -specify a constraint that only holds at the final point of the trajectory -and the `terminal_cost` paramter can be used to specify a terminal cost -function. +times at which the `cost` and `constraints` should be evaluated. + +The `cost` function has call signature `cost(t, x, u)` and should return the +(incremental) cost at the given time, state, and input. It will be +evaluated at each point in the `horizon` vector. The `terminal_cost` +parameter can be used to specify a cost function for the final point in the +trajectory. + +The `constraints` parameter is a list of constraints similar to that used by +the :func:`scipy.optimize.minimize` function. Each constraint is a tuple of +one of the following forms:: + + (LinearConstraint, A, lb, ub) + (NonlinearConstraint, f, lb, ub) + +For a linear constraint, the 2D array `A` is multiplied by a vector +consisting of the current state `x` and current input `u` stacked +vertically, then compared with the upper and lower bound. This constrain is +satisfied if + +.. code:: python + + lb <= A @ np.hstack([x, u]) <= ub + +A nonlinear constraint is satisfied if + +.. code:: python + + lb <= f(x, u) <= ub +By default, `constraints` are taken to be trajectory constraints holding at +all points on the trajectory. The `terminal_constraint` parameter can be +used to specify a constraint that only holds at the final point of the +trajectory. + +To simplify the specification of cost functions and constraints, the +:mod:`~control.ios` module defines a number of utility functions: + +.. autosummary:: + + ~control.obc.quadratic_cost + ~control.obc.input_poly_constraint + ~control.obc.input_rank_constraint + ~control.obc.output_poly_constraint + ~control.obc.output_rank_constraint + ~control.obc.state_poly_constraint + ~control.obc.state_rank_constraint Example ======= +Consider the vehicle steering example described in FBS2e. The dynamics of +the system can be defined as a nonlinear input/output system using the +following code:: + + import numpy as np + import control as ct + import control.obc as obc + import matplotlib.pyplot as plt + + def vehicle_update(t, x, u, params): + # Get the parameters for the model + l = params.get('wheelbase', 3.) # vehicle wheelbase + phimax = params.get('maxsteer', 0.5) # max steering angle (rad) + + # Saturate the steering input + phi = np.clip(u[1], -phimax, phimax) + + # Return the derivative of the state + return np.array([ + np.cos(x[2]) * u[0], # xdot = cos(theta) v + np.sin(x[2]) * u[0], # ydot = sin(theta) v + (u[0] / l) * np.tan(phi) # thdot = v/l tan(phi) + ]) + + def vehicle_output(t, x, u, params): + return x # return x, y, theta (full state) + + # Define the vehicle steering dynamics as an input/output system + vehicle = ct.NonlinearIOSystem( + vehicle_update, vehicle_output, states=3, name='vehicle', + inputs=('v', 'phi'), outputs=('x', 'y', 'theta')) + +We consider an optimal control problem that consists of "changing lanes" by +moving from the point x = 0m, y = -2 m, :math:`\theta` = 0 to the point x = +100m, y = 2 m, :math:`\theta` = 0) over a period of 10 seconds and with a +with a starting and ending velocity of 10 m/s:: + + x0 = [0., -2., 0.]; u0 = [10., 0.] + xf = [100., 2., 0.]; uf = [10., 0.] + Tf = 10 + +To set up the optimal control problem we design a cost function that +penalizes the state and input using quadratic cost functions:: + + Q = np.diag([10, 10, 1]) + R = np.eye(2) * 0.1 + cost = obc.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) + +We also constraint the maximum turning rate to 0.1 radians (about 6 degees) +and constrain the velocity to be in the range of 9 m/s to 11 m/s:: + + constraints = [ obc.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] + terminal = [ obc.state_range_constraint(vehicle, xf, xf) ] + +Finally, we solve for the optimal inputs and plot the results:: + + horizon = np.linspace(0, Tf, 20, endpoint=True) + straight = [10, 0] # straight trajectory + bend_left = [10, 0.01] # slight left veer + t, u = obc.compute_optimal_input( + # vehicle, horizon, x0, cost, constraints, + # initial_guess=straight, logging=True) + vehicle, horizon, x0, cost, constraints, + terminal_constraints=terminal, initial_guess=straight) + t, y = ct.input_output_response(vehicle, horizon, u, x0) + + plt.subplot(3, 1, 1) + plt.plot(y[0], y[1]) + plt.xlabel("x [m]") + plt.ylabel("y [m]") + + plt.subplot(3, 1, 2) + plt.plot(t, u[0]) + plt.xlabel("t [sec]") + plt.ylabel("u1 [m/s]") + + plt.subplot(3, 1, 3) + plt.plot(t, u[1]) + plt.xlabel("t [sec]") + plt.ylabel("u2 [rad/s]") + + plt.suptitle("Lane change manuever") + plt.tight_layout() + plt.show() + +which yields + +.. image:: steer-optimal.png + + Module classes and functions ============================ .. autosummary:: diff --git a/examples/run_examples.sh b/examples/run_examples.sh index 6f04fe12c..48d481aef 100755 --- a/examples/run_examples.sh +++ b/examples/run_examples.sh @@ -18,6 +18,10 @@ for example in *.py; do fi done +# Get rid of the output files +rm *.log + +# List any files that generated errors if [ -n "${example_errors}" ]; then echo These examples had errors: echo "${example_errors}" diff --git a/examples/steering-optimal.py b/examples/steering-optimal.py new file mode 100644 index 000000000..109b60d13 --- /dev/null +++ b/examples/steering-optimal.py @@ -0,0 +1,151 @@ +# steering-optimal.py - optimal control for vehicle steering +# RMM, 18 Feb 2021 +# +# This file works through an optimal control example for the vehicle +# steering system. It is intended to demonstrate the functionality +# for optimization-based control (obc) module in the python-control +# package. + +import numpy as np +import control as ct +import control.obc as obc +import matplotlib.pyplot as plt +import logging + +# +# Vehicle steering dynamics +# +# The vehicle dynamics are given by a simple bicycle model. We take the state +# of the system as (x, y, theta) where (x, y) is the position of the vehicle +# in the plane and theta is the angle of the vehicle with respect to +# horizontal. The vehicle input is given by (v, phi) where v is the forward +# velocity of the vehicle and phi is the angle of the steering wheel. The +# model includes saturation of the vehicle steering angle. +# +# System state: x, y, theta +# System input: v, phi +# System output: x, y +# System parameters: wheelbase, maxsteer +# +def vehicle_update(t, x, u, params): + # Get the parameters for the model + l = params.get('wheelbase', 3.) # vehicle wheelbase + phimax = params.get('maxsteer', 0.5) # max steering angle (rad) + + # Saturate the steering input + phi = np.clip(u[1], -phimax, phimax) + + # Return the derivative of the state + return np.array([ + np.cos(x[2]) * u[0], # xdot = cos(theta) v + np.sin(x[2]) * u[0], # ydot = sin(theta) v + (u[0] / l) * np.tan(phi) # thdot = v/l tan(phi) + ]) + + +def vehicle_output(t, x, u, params): + return x # return x, y, theta (full state) + +# Define the vehicle steering dynamics as an input/output system +vehicle = ct.NonlinearIOSystem( + vehicle_update, vehicle_output, states=3, name='vehicle', + inputs=('v', 'phi'), + outputs=('x', 'y', 'theta')) + +# +# Utility function to plot the results +# +def plot_results(t, y, u, figure=None, yf=None): + plt.figure(figure) + + # Plot the xy trajectory + plt.subplot(3, 1, 1) + plt.plot(y[0], y[1]) + plt.xlabel("x [m]") + plt.ylabel("y [m]") + if yf: + plt.plot(yf[0], yf[1], 'ro') + + # Plot the inputs as a function of time + plt.subplot(3, 1, 2) + plt.plot(t, u[0]) + plt.xlabel("t [sec]") + plt.ylabel("velocity [m/s]") + + plt.subplot(3, 1, 3) + plt.plot(t, u[1]) + plt.xlabel("t [sec]") + plt.ylabel("steering [rad/s]") + + plt.suptitle("Lane change manuever") + plt.tight_layout() + plt.show(block=False) + +# +# Optimal control problem +# +# Perform a "lane change" manuever over the course of 10 seconds. +# + +# Initial and final conditions +x0 = [0., -2., 0.]; u0 = [10., 0.] +xf = [100., 2., 0.]; uf = [10., 0.] +Tf = 10 + +# Set up the cost functions +Q = np.diag([0.1, 1, 0.1]) # keep lateral error low +R = np.eye(2) # minimize applied inputs +cost = obc.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) + +# +# Set up different types of constraints to demonstrate +# + +# Input constraints +constraints = [ obc.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] + +# Terminal constraints (optional) +terminal = [ obc.state_range_constraint(vehicle, xf, xf) ] + +# Time horizon and possible initial guessses +horizon = np.linspace(0, Tf, 10, endpoint=True) +straight = [10, 0] # straight trajectory +bend_left = [10, 0.01] # slight left veer + +# +# Solve the optimal control problem in dififerent ways +# + +# Basic setup: quadratic cost, no terminal constraint, straight initial path +logging.basicConfig( + level=logging.DEBUG, filename="steering-straight.log", + filemode='w', force=True) +result = obc.compute_optimal_input( + vehicle, horizon, x0, cost, initial_guess=straight, + log=True, options={'eps': 0.01}) +t1, u1 = result.time, result.inputs +t1, y1 = ct.input_output_response(vehicle, horizon, u1, x0) +plot_results(t1, y1, u1, figure=1, yf=xf[0:2]) + +# Add constraint on the input to avoid high steering angles +logging.basicConfig( + level=logging.INFO, filename="./steering-bendleft.log", + filemode='w', force=True) +result = obc.compute_optimal_input( + vehicle, horizon, x0, cost, constraints, initial_guess=bend_left, + log=True, options={'eps': 0.01}) +t2, u2 = result.time, result.inputs +t2, y2 = ct.input_output_response(vehicle, horizon, u2, x0) +plot_results(t2, y2, u2, figure=2, yf=xf[0:2]) + +# Resolve with a terminal constraint (starting with previous result) +logging.basicConfig( + level=logging.WARN, filename="./steering-terminal.log", + filemode='w', force=True) +result = obc.compute_optimal_input( + vehicle, horizon, x0, cost, constraints, + terminal_constraints=terminal, initial_guess=u2, + log=True, options={'eps': 0.01}) +t3, u3 = result.time, result.inputs +t3, y3 = ct.input_output_response(vehicle, horizon, u3, x0) +plot_results(t3, y3, u3, figure=3, yf=xf[0:2]) From ea2884d0287aa56d2ea6b4693b48868c10f20f62 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 19 Feb 2021 19:51:48 -0800 Subject: [PATCH 203/260] slight refactoring of cost functions + example tweaks --- control/obc.py | 60 +++++++++++++----- examples/steering-optimal.py | 117 +++++++++++++++++++++++------------ 2 files changed, 123 insertions(+), 54 deletions(-) diff --git a/control/obc.py b/control/obc.py index c4fa0dc4b..a9eae643c 100644 --- a/control/obc.py +++ b/control/obc.py @@ -55,7 +55,7 @@ class OptimalControlProblem(): def __init__( self, sys, time_vector, integral_cost, trajectory_constraints=[], terminal_cost=None, terminal_constraints=[], initial_guess=None, - log=False, options={}): + log=False, **kwargs): """Set up an optimal control problem To describe an optimal control problem we need an input/output system, @@ -90,8 +90,8 @@ def __init__( extension of the time axis. log : bool, optional If `True`, turn on logging messages (using Python logging module). - options : dict, optional - Solver options (passed to :func:`scipy.optimal.minimize`). + kwargs : dict, optional + Additional parameters (passed to :func:`scipy.optimal.minimize`). Returns ------- @@ -107,7 +107,7 @@ def __init__( self.trajectory_constraints = trajectory_constraints self.terminal_cost = terminal_cost self.terminal_constraints = terminal_constraints - self.options = options + self.kwargs = kwargs # # Compute and store constraints @@ -251,7 +251,15 @@ def _cost_function(self, inputs): # TODO: vectorize cost = 0 for i, t in enumerate(self.time_vector): - cost += self.integral_cost(states[:,i], inputs[:,i]) + if ct.isctime(self.system): + # Approximate the integral using trapezoidal rule + if i > 0: + cost += 0.5 * ( + self.integral_cost(states[:, i-1], inputs[:, i-1]) + + self.integral_cost(states[:, i], inputs[:, i])) * ( + self.time_vector[i] - self.time_vector[i-1]) + else: + cost += self.integral_cost(states[:,i], inputs[:,i]) # Terminal cost if self.terminal_cost is not None: @@ -573,7 +581,7 @@ def compute_trajectory( # Call ScipPy optimizer res = sp.optimize.minimize( self._cost_function, self.initial_guess, - constraints=self.constraints, options=self.options) + constraints=self.constraints, **self.kwargs) # Process and return the results return OptimalControlResult( @@ -676,7 +684,7 @@ def __init__( def compute_optimal_input( sys, horizon, X0, cost, constraints=[], terminal_cost=None, terminal_constraints=[], initial_guess=None, squeeze=None, - transpose=None, return_x=None, log=False, options={}): + transpose=None, return_x=None, log=False, **kwargs): """Compute the solution to an optimal control problem @@ -743,8 +751,8 @@ def compute_optimal_input( If True, assume that 2D input arrays are transposed from the standard format. Used to convert MATLAB-style inputs to our format. - options : dict, optional - Solver options (passed to :func:`scipy.optimal.minimize`). + kwargs : dict, optional + Additional parameters (passed to :func:`scipy.optimal.minimize`). Returns ------- @@ -763,7 +771,7 @@ def compute_optimal_input( ocp = OptimalControlProblem( sys, horizon, cost, trajectory_constraints=constraints, terminal_cost=terminal_cost, terminal_constraints=terminal_constraints, - initial_guess=initial_guess, log=log, options=options) + initial_guess=initial_guess, log=log, **kwargs) # Solve for the optimal input from the current state return ocp.compute_trajectory( @@ -773,7 +781,7 @@ def compute_optimal_input( # Create a model predictive controller for an optimal control problem def create_mpc_iosystem( sys, horizon, cost, constraints=[], terminal_cost=None, - terminal_constraints=[], dt=True, log=False, options={}): + terminal_constraints=[], dt=True, log=False, **kwargs): """Create a model predictive I/O control system This function creates an input/output system that implements a model @@ -805,8 +813,8 @@ def create_mpc_iosystem( List of constraints that should hold at the end of the trajectory. Same format as `constraints`. - options : dict, optional - Solver options (passed to :func:`scipy.optimal.minimize`). + kwargs : dict, optional + Additional parameters (passed to :func:`scipy.optimal.minimize`). Returns ------- @@ -821,7 +829,7 @@ def create_mpc_iosystem( ocp = OptimalControlProblem( sys, horizon, cost, trajectory_constraints=constraints, terminal_cost=terminal_cost, terminal_constraints=terminal_constraints, - log=log, options=options) + log=log, **kwargs) # Return an I/O system implementing the model predictive controller return ocp._create_mpc_iosystem(dt=dt) @@ -863,8 +871,28 @@ def quadratic_cost(sys, Q, R, x0=0, u0=0): input. The call signature of the function is cost_fun(x, u). """ - Q = np.atleast_2d(Q) - R = np.atleast_2d(R) + # Process the input arguments + if Q is not None: + Q = np.atleast_2d(Q) + if Q.size == 1: # allow scalar weights + Q = np.eye(sys.nstates) * Q.item() + elif Q.shape != (sys.nstates, sys.nstates): + raise ValueError("Q matrix is the wrong shape") + + if R is not None: + R = np.atleast_2d(R) + if R.size == 1: # allow scalar weights + R = np.eye(sys.ninputs) * R.item() + elif R.shape != (sys.ninputs, sys.ninputs): + raise ValueError("R matrix is the wrong shape") + + if Q is None: + return lambda x, u: ((u-u0) @ R @ (u-u0)).item() + + if R is None: + return lambda x, u: ((x-x0) @ Q @ (x-x0)).item() + + # Received both Q and R matrices return lambda x, u: ((x-x0) @ Q @ (x-x0) + (u-u0) @ R @ (u-u0)).item() diff --git a/examples/steering-optimal.py b/examples/steering-optimal.py index 109b60d13..23d2e592b 100644 --- a/examples/steering-optimal.py +++ b/examples/steering-optimal.py @@ -92,60 +92,101 @@ def plot_results(t, y, u, figure=None, yf=None): xf = [100., 2., 0.]; uf = [10., 0.] Tf = 10 -# Set up the cost functions -Q = np.diag([0.1, 1, 0.1]) # keep lateral error low -R = np.eye(2) # minimize applied inputs -cost = obc.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) - # -# Set up different types of constraints to demonstrate +# Approach 1: standard quadratic cost +# +# We can set up the optimal control problem as trying to minimize the +# distance form the desired final point while at the same time as not +# exerting too much control effort to achieve our goal. +# +# Note: depending on what version of SciPy you are using, you might get a +# warning message about precision loss, but the solution is pretty good. # -# Input constraints -constraints = [ obc.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] - -# Terminal constraints (optional) -terminal = [ obc.state_range_constraint(vehicle, xf, xf) ] +# Set up the cost functions +Q = np.diag([1, 10, 1]) # keep lateral error low +R = np.diag([1, 1]) # minimize applied inputs +cost1 = obc.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) -# Time horizon and possible initial guessses +# Define the time horizon (and spacing) for the optimization horizon = np.linspace(0, Tf, 10, endpoint=True) -straight = [10, 0] # straight trajectory -bend_left = [10, 0.01] # slight left veer -# -# Solve the optimal control problem in dififerent ways -# +# Provide an intial guess (will be extended to entire horizon) +bend_left = [10, 0.01] # slight left veer -# Basic setup: quadratic cost, no terminal constraint, straight initial path +# Turn on debug level logging so that we can see what the optimizer is doing logging.basicConfig( - level=logging.DEBUG, filename="steering-straight.log", + level=logging.DEBUG, filename="steering-integral_cost.log", filemode='w', force=True) -result = obc.compute_optimal_input( - vehicle, horizon, x0, cost, initial_guess=straight, - log=True, options={'eps': 0.01}) -t1, u1 = result.time, result.inputs + +# Compute the optimal control, setting step size for gradient calculation (eps) +result1 = obc.compute_optimal_input( + vehicle, horizon, x0, cost1, initial_guess=bend_left, log=True, + options={'eps': 0.01}) + +# Extract and plot the results (+ state trajectory) +t1, u1 = result1.time, result1.inputs t1, y1 = ct.input_output_response(vehicle, horizon, u1, x0) plot_results(t1, y1, u1, figure=1, yf=xf[0:2]) -# Add constraint on the input to avoid high steering angles +# +# Approach 2: input cost, input constraints, terminal cost +# +# The previous solution integrates the position error for the entire +# horizon, and so the car changes lanes very quickly (at the cost of larger +# inputs). Instead, we can penalize the final state and impose a higher +# cost on the inputs, resuling in a more graduate lane change. +# +# We also set the solver explicitly (its actually the default one, but shows +# how to do this). +# + +# Add input constraint, input cost, terminal cost +constraints = [ obc.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] +traj_cost = obc.quadratic_cost(vehicle, None, np.diag([0.1, 1]), u0=uf) +term_cost = obc.quadratic_cost(vehicle, np.diag([1, 10, 10]), None, x0=xf) + +# Change logging to keep less information logging.basicConfig( - level=logging.INFO, filename="./steering-bendleft.log", + level=logging.INFO, filename="./steering-terminal_cost.log", filemode='w', force=True) -result = obc.compute_optimal_input( - vehicle, horizon, x0, cost, constraints, initial_guess=bend_left, - log=True, options={'eps': 0.01}) -t2, u2 = result.time, result.inputs + +# Compute the optimal control +result2 = obc.compute_optimal_input( + vehicle, horizon, x0, traj_cost, constraints, terminal_cost=term_cost, + initial_guess=bend_left, log=True, + method='SLSQP', options={'eps': 0.01}) + +# Extract and plot the results (+ state trajectory) +t2, u2 = result2.time, result2.inputs t2, y2 = ct.input_output_response(vehicle, horizon, u2, x0) plot_results(t2, y2, u2, figure=2, yf=xf[0:2]) -# Resolve with a terminal constraint (starting with previous result) -logging.basicConfig( - level=logging.WARN, filename="./steering-terminal.log", - filemode='w', force=True) -result = obc.compute_optimal_input( - vehicle, horizon, x0, cost, constraints, - terminal_constraints=terminal, initial_guess=u2, - log=True, options={'eps': 0.01}) -t3, u3 = result.time, result.inputs +# +# Approach 3: terminal constraints and new solver +# +# As a final example, we can remove the cost function on the state and +# replace it with a terminal *constraint* on the state. If a solution is +# found, it guarantees we get to exactly the final state. +# +# To speeds things up a bit, we initalize the problem using the previous +# optimal controller (which didn't quite hit the final value). +# + +# Input cost and terminal constraints +cost3 = obc.quadratic_cost(vehicle, np.zeros((3,3)), R, u0=uf) +terminal = [ obc.state_range_constraint(vehicle, xf, xf) ] + +# Reset logging to its default values +logging.basicConfig(level=logging.WARN, force=True) + +# Compute the optimal control +result3 = obc.compute_optimal_input( + vehicle, horizon, x0, cost3, constraints, + terminal_constraints=terminal, initial_guess=u2, log=True, + options={'eps': 0.01}) + +# Extract and plot the results (+ state trajectory) +t3, u3 = result3.time, result3.inputs t3, y3 = ct.input_output_response(vehicle, horizon, u3, x0) plot_results(t3, y3, u3, figure=3, yf=xf[0:2]) From 94940927221a914738e612394d168ca61ec4a3d0 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 20 Feb 2021 10:42:40 -0800 Subject: [PATCH 204/260] rename obc to optimal, new examples/unit tests --- control/config.py | 11 +- control/{obc.py => optimal.py} | 109 ++++++---- control/tests/config_test.py | 11 ++ .../tests/{obc_test.py => optimal_test.py} | 186 +++++++++++------- doc/classes.rst | 2 +- doc/index.rst | 2 +- doc/{obc.rst => optimal.rst} | 123 +++++++----- doc/steering-optimal.png | Bin 0 -> 39597 bytes examples/mpc_aircraft.ipynb | 8 +- examples/steering-optimal.py | 43 ++-- 10 files changed, 309 insertions(+), 186 deletions(-) rename control/{obc.py => optimal.py} (93%) rename control/tests/{obc_test.py => optimal_test.py} (54%) rename doc/{obc.rst => optimal.rst} (71%) create mode 100644 doc/steering-optimal.png diff --git a/control/config.py b/control/config.py index 9bb2dfcf4..2d2cc6248 100644 --- a/control/config.py +++ b/control/config.py @@ -67,7 +67,7 @@ def reset_defaults(): defaults.update(_iosys_defaults) -def _get_param(module, param, argval=None, defval=None, pop=False): +def _get_param(module, param, argval=None, defval=None, pop=False, last=False): """Return the default value for a configuration option. The _get_param() function is a utility function used to get the value of a @@ -91,11 +91,13 @@ def _get_param(module, param, argval=None, defval=None, pop=False): `config.defaults` dictionary. If a dictionary is provided, then `module.param` is used to determine the default value. Defaults to None. - pop : bool + pop : bool, optional If True and if argval is a dict, then pop the remove the parameter entry from the argval dict after retreiving it. This allows the use of a keyword argument list to be passed through to other functions internal to the function being called. + last : bool, optional + If True, check to make sure dictionary is empy after processing. """ @@ -108,7 +110,10 @@ def _get_param(module, param, argval=None, defval=None, pop=False): # If we were passed a dict for the argval, get the param value from there if isinstance(argval, dict): - argval = argval.pop(param, None) if pop else argval.get(param, None) + val = argval.pop(param, None) if pop else argval.get(param, None) + if last and argval: + raise TypeError("unrecognized keywords: " + str(argval)) + argval = val # If we were passed a dict for the defval, get the param value from there if isinstance(defval, dict): diff --git a/control/obc.py b/control/optimal.py similarity index 93% rename from control/obc.py rename to control/optimal.py index a9eae643c..86e59cf8d 100644 --- a/control/obc.py +++ b/control/optimal.py @@ -1,9 +1,9 @@ -# obc.py - optimization based control module +# optimal.py - optimization based control module # # RMM, 11 Feb 2021 # -"""The :mod:`~control.obc` module provides support for optimization-based +"""The :mod:`~control.optimal` module provides support for optimization-based controllers for nonlinear systems with state and input constraints. """ @@ -249,17 +249,26 @@ def _cost_function(self, inputs): # Trajectory cost # TODO: vectorize - cost = 0 - for i, t in enumerate(self.time_vector): - if ct.isctime(self.system): + if ct.isctime(self.system): + # Evaluate the costs + costs = [self.integral_cost(states[:, i], inputs[:, i]) for + i in range(self.time_vector.size)] + + # Compute the time intervals + dt = np.diff(self.time_vector) + + # Integrate the cost + cost = 0 + for i in range(self.time_vector.size-1): # Approximate the integral using trapezoidal rule - if i > 0: - cost += 0.5 * ( - self.integral_cost(states[:, i-1], inputs[:, i-1]) + - self.integral_cost(states[:, i], inputs[:, i])) * ( - self.time_vector[i] - self.time_vector[i-1]) - else: - cost += self.integral_cost(states[:,i], inputs[:,i]) + cost += 0.5 * (costs[i] + costs[i+1]) * dt[i] + + else: + # Sum the integral cost over the time (second) indices + # cost += self.integral_cost(states[:,i], inputs[:,i]) + cost = sum(map( + self.integral_cost, np.transpose(states), + np.transpose(inputs))) # Terminal cost if self.terminal_cost is not None: @@ -526,8 +535,8 @@ def _update(t, x, u, params={}): inputs = x.reshape((self.system.ninputs, self.time_vector.size)) self.initial_guess = np.hstack( [inputs[:,1:], inputs[:,-1:]]).reshape(-1) - result = self.compute_trajectory(u) - return result.inputs.reshape(-1) + res = self.compute_trajectory(u, print_summary=False) + return res.inputs.reshape(-1) def _output(t, x, u, params={}): inputs = x.reshape((self.system.ninputs, self.time_vector.size)) @@ -541,15 +550,15 @@ def _output(t, x, u, params={}): # Compute the optimal trajectory from the current state def compute_trajectory( - self, x, squeeze=None, transpose=None, return_x=None, - print_summary=True): + self, x, squeeze=None, transpose=None, return_states=None, + print_summary=True, **kwargs): """Compute the optimal input at state x Parameters ---------- x : array-like or number, optional Initial state for the system. - return_x : bool, optional + return_states : bool, optional If True, return the values of the state at each time (default = False). squeeze : bool, optional @@ -564,17 +573,25 @@ def compute_trajectory( Returns ------- - time : array + res : OptimalControlResult + Bundle object with the results of the optimal control problem. + res.success: bool + Boolean flag indicating whether the optimization was successful. + res.time : array Time values of the input. - inputs : array + res.inputs : array Optimal inputs for the system. If the system is SISO and squeeze is not True, the array is 1D (indexed by time). If the system is not SISO or squeeze is False, the array is 2D (indexed by the output number and time). - states : array - Time evolution of the state vector (if return_x=True). + res.states : array + Time evolution of the state vector (if return_states=True). """ + # Allow 'return_x` as a synonym for 'return_states' + return_states = ct.config._get_param( + 'optimal', 'return_x', kwargs, return_states, pop=True) + # Store the initial state (for use in _constraint_function) self.x = x @@ -585,7 +602,7 @@ def compute_trajectory( # Process and return the results return OptimalControlResult( - self, res, transpose=transpose, return_x=return_x, + self, res, transpose=transpose, return_states=return_states, squeeze=squeeze, print_summary=print_summary) # Compute the current input to apply from the current state (MPC style) @@ -615,8 +632,8 @@ def compute_mpc(self, x, squeeze=None): if the optimization failed. """ - results = self.compute_trajectory(x, squeeze=squeeze) - return inputs[:, 0] if results.success else None + res = self.compute_trajectory(x, squeeze=squeeze) + return inputs[:, 0] if res.success else None # Optimal control result @@ -640,8 +657,10 @@ class OptimalControlResult(sp.optimize.OptimizeResult): """ def __init__( - self, ocp, res, return_x=False, print_summary=False, + self, ocp, res, return_states=False, print_summary=False, transpose=None, squeeze=None): + """Create a OptimalControlResult object""" + # Copy all of the fields we were sent by sp.optimize.minimize() for key, val in res.items(): setattr(self, key, val) @@ -663,7 +682,7 @@ def __init__( if print_summary: ocp._print_statistics() - if return_x and res.success: + if return_states and res.success: # Simulate the system if we need the state back _, _, states = ct.input_output_response( ocp.system, ocp.time_vector, inputs, ocp.x, return_x=True) @@ -673,7 +692,7 @@ def __init__( retval = _process_time_response( ocp.system, ocp.time_vector, inputs, states, - transpose=transpose, return_x=return_x, squeeze=squeeze) + transpose=transpose, return_x=return_states, squeeze=squeeze) self.time = retval[0] self.inputs = retval[1] @@ -681,10 +700,10 @@ def __init__( # Compute the input for a nonlinear, (constrained) optimal control problem -def compute_optimal_input( +def solve_ocp( sys, horizon, X0, cost, constraints=[], terminal_cost=None, terminal_constraints=[], initial_guess=None, squeeze=None, - transpose=None, return_x=None, log=False, **kwargs): + transpose=None, return_states=None, log=False, **kwargs): """Compute the solution to an optimal control problem @@ -738,7 +757,7 @@ def compute_optimal_input( log : bool, optional If `True`, turn on logging messages (using Python logging module). - return_x : bool, optional + return_states : bool, optional If True, return the values of the state at each time (default = False). squeeze : bool, optional @@ -756,15 +775,23 @@ def compute_optimal_input( Returns ------- - time : array - Time values of the input or `None` if the optimimation fails. - inputs : array - Optimal inputs for the system. If the system is SISO and squeeze is not - True, the array is 1D (indexed by time). If the system is not SISO or - squeeze is False, the array is 2D (indexed by the output number and - time). - states : array - Time evolution of the state vector (if return_x=True). + res : OptimalControlResult + Bundle object with the results of the optimal control problem. + + res.success: bool + Boolean flag indicating whether the optimization was successful. + + res.time : array + Time values of the input. + + res.inputs : array + Optimal inputs for the system. If the system is SISO and squeeze is + not True, the array is 1D (indexed by time). If the system is not + SISO or squeeze is False, the array is 2D (indexed by the output + number and time). + + res.states : array + Time evolution of the state vector (if return_states=True). """ # Set up the optimal control problem @@ -775,7 +802,7 @@ def compute_optimal_input( # Solve for the optimal input from the current state return ocp.compute_trajectory( - X0, squeeze=squeeze, transpose=None, return_x=None) + X0, squeeze=squeeze, transpose=None, return_states=None) # Create a model predictive controller for an optimal control problem @@ -803,7 +830,7 @@ def create_mpc_iosystem( constraints : list of tuples, optional List of constraints that should hold at each point in the time vector. - See :func:`~control.obc.compute_optimal_input` for more details. + See :func:`~control.optimal.solve_ocp` for more details. terminal_cost : callable, optional Function that returns the terminal cost given the current state diff --git a/control/tests/config_test.py b/control/tests/config_test.py index b36b6b313..c8e4c6cd5 100644 --- a/control/tests/config_test.py +++ b/control/tests/config_test.py @@ -251,3 +251,14 @@ def test_change_default_dt_static(self): assert ct.tf(1, 1).dt is None assert ct.ss(0, 0, 0, 1).dt is None # TODO: add in test for static gain iosys + + def test_get_param_last(self): + """Test _get_param last keyword""" + kwargs = {'first': 1, 'second': 2} + + with pytest.raises(TypeError, match="unrecognized keyword.*second"): + assert ct.config._get_param( + 'config', 'first', kwargs, pop=True, last=True) == 1 + + assert ct.config._get_param( + 'config', 'second', kwargs, pop=True, last=True) == 2 diff --git a/control/tests/obc_test.py b/control/tests/optimal_test.py similarity index 54% rename from control/tests/obc_test.py rename to control/tests/optimal_test.py index e15b92d41..ac03626d1 100644 --- a/control/tests/obc_test.py +++ b/control/tests/optimal_test.py @@ -1,4 +1,4 @@ -"""obc_test.py - tests for optimization based control +"""optimal_test.py - tests for optimization based control RMM, 17 Apr 2019 check the functionality for optimization based control. RMM, 30 Dec 2020 convert to pytest @@ -9,7 +9,7 @@ import numpy as np import scipy as sp import control as ct -import control.obc as obc +import control.optimal as opt from control.tests.conftest import slycotonly from numpy.lib import NumpyVersion @@ -28,29 +28,38 @@ def test_finite_horizon_simple(): # Quadratic state and input penalty Q = [[1, 0], [0, 1]] R = [[1]] - cost = obc.quadratic_cost(sys, Q, R) + cost = opt.quadratic_cost(sys, Q, R) # Set up the optimal control problem time = np.arange(0, 5, 1) x0 = [4, 0] # Retrieve the full open-loop predictions - results = obc.compute_optimal_input( + res = opt.solve_ocp( sys, time, x0, cost, constraints, squeeze=True) - t, u_openloop = results.time, results.inputs + t, u_openloop = res.time, res.inputs np.testing.assert_almost_equal( u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=4) # Convert controller to an explicit form (not implemented yet) - # mpc_explicit = obc.explicit_mpc(); + # mpc_explicit = opt.explicit_mpc(); # Test explicit controller # u_explicit = mpc_explicit(x0) # np.testing.assert_array_almost_equal(u_openloop, u_explicit) +# +# Compare to LQR solution +# +# The next unit test is intended to confirm that a finite horizon +# optimal control problem with terminal cost set to LQR "cost to go" +# gives the same answer as LQR. Unfortunately, it requires a discrete +# time LQR function which is not yet availbale => for now this just +# tests the interface a bit. +# @slycotonly -def test_class_interface(): +def test_discrete_lqr(): # oscillator model defined in 2D # Source: https://www.mpt3.org/UI/RegulationProblem A = [[0.5403, -0.8415], [0.8415, 0.5403]] @@ -61,28 +70,41 @@ def test_class_interface(): # Linear discrete-time model with sample time 1 sys = ct.ss2io(ct.ss(A, B, C, D, 1)) - # state and input constraints - trajectory_constraints = [ - (sp.optimize.LinearConstraint, np.eye(3), [-10, -10, -1], [10, 10, 1]), - ] - # Include weights on states/inputs Q = np.eye(2) R = 1 - K, S, E = ct.lqr(A, B, Q, R) + K, S, E = ct.lqr(A, B, Q, R) # note: *continuous* time LQR # Compute the integral and terminal cost - integral_cost = obc.quadratic_cost(sys, Q, R) - terminal_cost = obc.quadratic_cost(sys, S, 0) + integral_cost = opt.quadratic_cost(sys, Q, R) + terminal_cost = opt.quadratic_cost(sys, S, 0) # Formulate finite horizon MPC problem time = np.arange(0, 5, 1) - optctrl = obc.OptimalControlProblem( - sys, time, integral_cost, trajectory_constraints, terminal_cost) + x0 = np.array([1, 1]) + optctrl = opt.OptimalControlProblem( + sys, time, integral_cost, terminal_cost=terminal_cost) + res1 = optctrl.compute_trajectory(x0, return_states=True) + + with pytest.xfail("discrete LQR not implemented"): + # Result should match LQR + K, S, E = ct.dlqr(A, B, Q, R) + lqr_sys = ct.ss2io(ct.ss(A - B @ K, B, C, D, 1)) + _, _, lqr_x = ct.input_output_response( + lqr_sys, time, 0, x0, return_x=True) + np.testing.assert_almost_equal(res1.states, lqr_x) + + # Add state and input constraints + trajectory_constraints = [ + (sp.optimize.LinearConstraint, np.eye(3), [-10, -10, -1], [10, 10, 1]), + ] - # Add tests to make sure everything works - results = optctrl.compute_trajectory([1, 1]) + # Re-solve + res2 = opt.solve_ocp( + sys, time, x0, integral_cost, constraints, terminal_cost=terminal_cost) + # Make sure we got a different solution + assert np.any(np.abs(res1.inputs - res2.inputs) > 0.1) def test_mpc_iosystem(): # model of an aircraft discretized with 0.2s sampling time @@ -112,15 +134,15 @@ def test_mpc_iosystem(): yd = C @ xd # provide constraints on the system signals - constraints = [obc.input_range_constraint(sys, [-5, -6], [5, 6])] + constraints = [opt.input_range_constraint(sys, [-5, -6], [5, 6])] # provide penalties on the system signals Q = model.C.transpose() @ np.diag([10, 10, 10, 10]) @ model.C R = np.diag([3, 2]) - cost = obc.quadratic_cost(model, Q, R, x0=xd, u0=ud) + cost = opt.quadratic_cost(model, Q, R, x0=xd, u0=ud) # online MPC controller object is constructed with a horizon 6 - ctrl = obc.create_mpc_iosystem( + ctrl = opt.create_mpc_iosystem( model, np.arange(0, 6) * 0.2, cost, constraints) # Define an I/O system implementing model predictive control @@ -142,13 +164,13 @@ def test_mpc_iosystem(): # parametrization due to the need to define sys instead the test function @pytest.mark.parametrize("constraint_list", [ [(sp.optimize.LinearConstraint, np.eye(3), [-5, -5, -1], [5, 5, 1],)], - [(obc.state_range_constraint, [-5, -5], [5, 5]), - (obc.input_range_constraint, [-1], [1])], - [(obc.state_range_constraint, [-5, -5], [5, 5]), - (obc.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], - [(obc.state_poly_constraint, + [(opt.state_range_constraint, [-5, -5], [5, 5]), + (opt.input_range_constraint, [-1], [1])], + [(opt.state_range_constraint, [-5, -5], [5, 5]), + (opt.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], + [(opt.state_poly_constraint, np.array([[1, 0], [0, 1], [-1, 0], [0, -1]]), [5, 5, 5, 5]), - (obc.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], + (opt.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], [(sp.optimize.NonlinearConstraint, lambda x, u: np.array([x[0], x[1], u[0]]), [-5, -5, -1], [5, 5, 1])], ]) @@ -170,80 +192,110 @@ def test_constraint_specification(constraint_list): # Quadratic state and input penalty Q = [[1, 0], [0, 1]] R = [[1]] - cost = obc.quadratic_cost(sys, Q, R) + cost = opt.quadratic_cost(sys, Q, R) # Create a model predictive controller system time = np.arange(0, 5, 1) - optctrl = obc.OptimalControlProblem(sys, time, cost, constraints) + optctrl = opt.OptimalControlProblem(sys, time, cost, constraints) # Compute optimal control and compare against MPT3 solution x0 = [4, 0] - results = optctrl.compute_trajectory(x0, squeeze=True) - t, u_openloop = results.time, results.inputs + res = optctrl.compute_trajectory(x0, squeeze=True) + t, u_openloop = res.time, res.inputs np.testing.assert_almost_equal( u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=3) - -def test_terminal_constraints(): +@pytest.mark.parametrize("sys_args", [ + pytest.param( + ([[1, 0], [0, 1]], np.eye(2), np.eye(2), 0, True), + id = "discrete, no timebase"), + pytest.param( + ([[1, 0], [0, 1]], np.eye(2), np.eye(2), 0, 1), + id = "discrete, dt=1"), + pytest.param( + (np.zeros((2,2)), np.eye(2), np.eye(2), 0), + id = "continuous"), +]) +def test_terminal_constraints(sys_args): """Test out the ability to handle terminal constraints""" - # Discrete time "integrator" with 2 states, 2 inputs - sys = ct.ss2io(ct.ss([[1, 0], [0, 1]], np.eye(2), np.eye(2), 0, True)) - + # Create the system + sys = ct.ss2io(ct.ss(*sys_args)) + # Shortest path to a point is a line Q = np.zeros((2, 2)) R = np.eye(2) - cost = obc.quadratic_cost(sys, Q, R) + cost = opt.quadratic_cost(sys, Q, R) # Set up the terminal constraint to be the origin - final_point = [obc.state_range_constraint(sys, [0, 0], [0, 0])] + final_point = [opt.state_range_constraint(sys, [0, 0], [0, 0])] # Create the optimal control problem time = np.arange(0, 5, 1) - optctrl = obc.OptimalControlProblem( + optctrl = opt.OptimalControlProblem( sys, time, cost, terminal_constraints=final_point) # Find a path to the origin x0 = np.array([4, 3]) - result = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) - t, u1, x1 = result.time, result.inputs, result.states + res = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + t, u1, x1 = res.time, res.inputs, res.states # Bug prior to SciPy 1.6 will result in incorrect results if NumpyVersion(sp.__version__) < '1.6.0': pytest.xfail("SciPy 1.6 or higher required") - np.testing.assert_almost_equal(x1[:,-1], 0) + np.testing.assert_almost_equal(x1[:,-1], 0, decimal=4) # Make sure it is a straight line - np.testing.assert_almost_equal( - x1, np.kron(x0.reshape((2, 1)), time[::-1]/4)) + Tf = time[-1] + if ct.isctime(sys): + # Continuous time is not that accurate on the input, so just skip test + pass + else: + # Final point doesn't affect cost => don't need to test + np.testing.assert_almost_equal( + u1[:, 0:-1], + np.kron((-x0/Tf).reshape((2, 1)), np.ones(time.shape))[:, 0:-1]) + np.testing.assert_allclose( + x1, np.kron(x0.reshape((2, 1)), time[::-1]/Tf), atol=0.1, rtol=0.01) # Impose some cost on the state, which should change the path Q = np.eye(2) R = np.eye(2) * 0.1 - cost = obc.quadratic_cost(sys, Q, R) - optctrl = obc.OptimalControlProblem( + cost = opt.quadratic_cost(sys, Q, R) + optctrl = opt.OptimalControlProblem( sys, time, cost, terminal_constraints=final_point) - # Find a path to the origin - results = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) - t, u2, x2 = results.time, results.inputs, results.states - np.testing.assert_almost_equal(x2[:,-1], 0) - - # Make sure that it is *not* a straight line path - assert np.any(np.abs(x2 - x1) > 0.1) - assert np.any(np.abs(u2) > 1) # To make sure next test is useful - - # Add some bounds on the inputs - constraints = [obc.input_range_constraint(sys, [-1, -1], [1, 1])] - optctrl = obc.OptimalControlProblem( - sys, time, cost, constraints, terminal_constraints=final_point) - results = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) - t, u3, x3 = results.time, results.inputs, results.states - np.testing.assert_almost_equal(x2[:,-1], 0) - - # Make sure we got a new path and didn't violate the constraints - assert np.any(np.abs(x3 - x1) > 0.1) - np.testing.assert_array_less(np.abs(u3), 1 + 1e-12) + # Turn off warning messages, since we sometimes don't get convergence + with warnings.catch_warnings(): + warnings.filterwarnings( + "ignore", message="unable to solve", category=UserWarning) + # Find a path to the origin + res = optctrl.compute_trajectory( + x0, squeeze=True, return_x=True, initial_guess=u1) + t, u2, x2 = res.time, res.inputs, res.states + + # Not all configurations are able to converge (?) + if res.success: + np.testing.assert_almost_equal(x2[:,-1], 0) + + # Make sure that it is *not* a straight line path + assert np.any(np.abs(x2 - x1) > 0.1) + assert np.any(np.abs(u2) > 1) # Make sure next test is useful + + # Add some bounds on the inputs + constraints = [opt.input_range_constraint(sys, [-1, -1], [1, 1])] + optctrl = opt.OptimalControlProblem( + sys, time, cost, constraints, terminal_constraints=final_point) + res = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) + t, u3, x3 = res.time, res.inputs, res.states + + # Check the answers only if we converged + if res.success: + np.testing.assert_almost_equal(x3[:,-1], 0, decimal=4) + + # Make sure we got a new path and didn't violate the constraints + assert np.any(np.abs(x3 - x1) > 0.1) + np.testing.assert_array_less(np.abs(u3), 1 + 1e-6) # Make sure that infeasible problems are handled sensibly x0 = np.array([10, 3]) diff --git a/doc/classes.rst b/doc/classes.rst index 6239bd2d1..fdf39a457 100644 --- a/doc/classes.rst +++ b/doc/classes.rst @@ -40,4 +40,4 @@ Additional classes flatsys.LinearFlatSystem flatsys.PolyFamily flatsys.SystemTrajectory - obc.OptimalControlProblem + optimal.OptimalControlProblem diff --git a/doc/index.rst b/doc/index.rst index b5893d860..98b184286 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -30,7 +30,7 @@ implements basic operations for analysis and design of feedback control systems. flatsys iosys descfcn - obc + optimal examples * :ref:`genindex` diff --git a/doc/obc.rst b/doc/optimal.rst similarity index 71% rename from doc/obc.rst rename to doc/optimal.rst index 072094beb..38bfca0db 100644 --- a/doc/obc.rst +++ b/doc/optimal.rst @@ -1,17 +1,17 @@ -.. _obc-module: +.. _optimal-module: -************************** -Optimization-based control -************************** +*************** +Optimal control +*************** -.. automodule:: control.obc +.. automodule:: control.optimal :no-members: :no-inherited-members: -Optimal control problem setup -============================= +Problem setup +============= -Consider now the *optimal control problem*: +Consider the *optimal control problem*: .. math:: @@ -29,7 +29,7 @@ Abstractly, this is a constrained optimization problem where we seek a .. math:: - J(x, u) = \int_0^T L(x,u)\, dt + V \bigl( x(T) \bigr). + J(x, u) = \int_0^T L(x, u)\, dt + V \bigl( x(T) \bigr). More formally, this problem is equivalent to the "standard" problem of minimizing a cost function :math:`J(x, u)` where :math:`(x, u) \in L_2[0,T]` @@ -94,25 +94,25 @@ Control `_. Module usage ============ -The `obc` module provides a means of computing optimal trajectories for -nonlinear systems and implementing optimization-based controllers, including -model predictive control. It follows the basic problem setup described -above, but carries out all computations in *discrete time* (so that -integrals become sums) and over a *finite horizon*. +The optimal control module provides a means of computing optimal +trajectories for nonlinear systems and implementing optimization-based +controllers, including model predictive control. It follows the basic +problem setup described above, but carries out all computations in *discrete +time* (so that integrals become sums) and over a *finite horizon*. To describe an optimal control problem we need an input/output system, a time horizon, a cost function, and (optionally) a set of constraints on the state and/or input, either along the trajectory and at the terminal time. -The `obc` module operates by converting the optimal control problem into a -standard optimization problem that can be solved by +The optimal control module operates by converting the optimal control +problem into a standard optimization problem that can be solved by :func:`scipy.optimize.minimize`. The optimal control problem can be solved -by using the `~control.obc.compute_optimal_input` function:: +by using the :func:`~control.obc.solve_ocp` function:: - inputs = obc.compute_optimal_input(sys, horizon, X0, cost, constraints) + res = obc.solve_ocp(sys, horizon, X0, cost, constraints) -The `sys` parameter should be a :class:`~control.InputOutputSystem` and the +The `sys` parameter should be an :class:`~control.InputOutputSystem` and the `horizon` parameter should represent a time vector that gives the list of -times at which the `cost` and `constraints` should be evaluated. +times at which the cost and constraints should be evaluated. The `cost` function has call signature `cost(t, x, u)` and should return the (incremental) cost at the given time, state, and input. It will be @@ -147,18 +147,29 @@ all points on the trajectory. The `terminal_constraint` parameter can be used to specify a constraint that only holds at the final point of the trajectory. +The return value for :func:`~control.optimal.solve_ocp` is a bundle object +that has the following elements: + + * `res.success`: `True` if the optimization was successfully solved + * `res.inputs`: optimal input + * `res.states`: state trajectory (if `return_x` was `True`) + * `res.time`: copy of the time horizon vector + +In addition, the results from :func:`scipy.optimize.minimize` are also +available. + To simplify the specification of cost functions and constraints, the :mod:`~control.ios` module defines a number of utility functions: .. autosummary:: - ~control.obc.quadratic_cost - ~control.obc.input_poly_constraint - ~control.obc.input_rank_constraint - ~control.obc.output_poly_constraint - ~control.obc.output_rank_constraint - ~control.obc.state_poly_constraint - ~control.obc.state_rank_constraint + ~control.optimal.quadratic_cost + ~control.optimal.input_poly_constraint + ~control.optimal.input_range_constraint + ~control.optimal.output_poly_constraint + ~control.optimal.output_range_constraint + ~control.optimal.state_poly_constraint + ~control.optimal.state_range_constraint Example ======= @@ -169,7 +180,7 @@ following code:: import numpy as np import control as ct - import control.obc as obc + import control.optimal as opt import matplotlib.pyplot as plt def vehicle_update(t, x, u, params): @@ -196,8 +207,8 @@ following code:: inputs=('v', 'phi'), outputs=('x', 'y', 'theta')) We consider an optimal control problem that consists of "changing lanes" by -moving from the point x = 0m, y = -2 m, :math:`\theta` = 0 to the point x = -100m, y = 2 m, :math:`\theta` = 0) over a period of 10 seconds and with a +moving from the point x = 0 m, y = -2 m, :math:`\theta` = 0 to the point x = +100 m, y = 2 m, :math:`\theta` = 0) over a period of 10 seconds and with a with a starting and ending velocity of 10 m/s:: x0 = [0., -2., 0.]; u0 = [10., 0.] @@ -207,40 +218,48 @@ with a starting and ending velocity of 10 m/s:: To set up the optimal control problem we design a cost function that penalizes the state and input using quadratic cost functions:: - Q = np.diag([10, 10, 1]) + Q = np.diag([0.1, 10, .1]) # keep lateral error low R = np.eye(2) * 0.1 - cost = obc.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) + cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) We also constraint the maximum turning rate to 0.1 radians (about 6 degees) and constrain the velocity to be in the range of 9 m/s to 11 m/s:: - constraints = [ obc.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] - terminal = [ obc.state_range_constraint(vehicle, xf, xf) ] + constraints = [ opt.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] -Finally, we solve for the optimal inputs and plot the results:: +Finally, we solve for the optimal inputs:: horizon = np.linspace(0, Tf, 20, endpoint=True) - straight = [10, 0] # straight trajectory bend_left = [10, 0.01] # slight left veer - t, u = obc.compute_optimal_input( - # vehicle, horizon, x0, cost, constraints, - # initial_guess=straight, logging=True) - vehicle, horizon, x0, cost, constraints, - terminal_constraints=terminal, initial_guess=straight) + + result = opt.solve_ocp( + vehicle, horizon, x0, cost, constraints, initial_guess=bend_left, + options={'eps': 0.01}) # set step size for gradient calculation + + # Extract the results + u = result.inputs t, y = ct.input_output_response(vehicle, horizon, u, x0) +Plotting the results:: + + # Plot the results plt.subplot(3, 1, 1) plt.plot(y[0], y[1]) + plt.plot(x0[0], x0[1], 'ro', xf[0], xf[1], 'ro') plt.xlabel("x [m]") plt.ylabel("y [m]") plt.subplot(3, 1, 2) plt.plot(t, u[0]) + plt.axis([0, 10, 8.5, 11.5]) + plt.plot([0, 10], [9, 9], 'k--', [0, 10], [11, 11], 'k--') plt.xlabel("t [sec]") plt.ylabel("u1 [m/s]") plt.subplot(3, 1, 3) plt.plot(t, u[1]) + plt.axis([0, 10, -0.15, 0.15]) + plt.plot([0, 10], [-0.1, -0.1], 'k--', [0, 10], [0.1, 0.1], 'k--') plt.xlabel("t [sec]") plt.ylabel("u2 [rad/s]") @@ -248,9 +267,9 @@ Finally, we solve for the optimal inputs and plot the results:: plt.tight_layout() plt.show() -which yields +yields -.. image:: steer-optimal.png +.. image:: steering-optimal.png Module classes and functions @@ -258,12 +277,12 @@ Module classes and functions .. autosummary:: :toctree: generated/ - ~control.obc.OptimalControlProblem - ~control.obc.compute_optimal_input - ~control.obc.create_mpc_iosystem - ~control.obc.input_poly_constraint - ~control.obc.input_range_constraint - ~control.obc.output_poly_constraint - ~control.obc.output_range_constraint - ~control.obc.state_poly_constraint - ~control.obc.state_range_constraint + ~control.optimal.OptimalControlProblem + ~control.optimal.solve_ocp + ~control.optimal.create_mpc_iosystem + ~control.optimal.input_poly_constraint + ~control.optimal.input_range_constraint + ~control.optimal.output_poly_constraint + ~control.optimal.output_range_constraint + ~control.optimal.state_poly_constraint + ~control.optimal.state_range_constraint diff --git a/doc/steering-optimal.png b/doc/steering-optimal.png new file mode 100644 index 0000000000000000000000000000000000000000..6ff50c0f423ca3c58abffeb34f6be372333e1659 GIT binary patch literal 39597 zcmce;WmuJ66!&>(5TrY$l@4hTB_u_V?hfe^kVaZcq@`3qx_F>=KQ6nQ%b)iNo+}ee)@P{a#t~o5LFKTSqbHDRv?Jr-y}C% zF!B+d2%KB+YhsEysv`0U*69dh_+6js|M|~0AN|kW6$1;5s80u1B`>S0BCKq`78m#2M%dcgHZ(TA^E=(2sWO+%(2JIP zk!Bi5#i>(vUr`ZTi-T;g-X-Bnrbt?JtNX@{hY9pIA3uJ4J4HDxENmsyrLFi$_8(uV zw(GwRp4(qhyu7?z-P|73J1|<}w@j)&7 z<=3z3qN1W5@9${f};%M}L7t8++&$n`!MMWv`@$t8pS|#uq?ity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t@r(u>o>7(&2=iuw%8`=^FE3{ y?1%qb+7 Date: Sat, 20 Feb 2021 19:40:43 -0800 Subject: [PATCH 205/260] update unit tests for speed and coverage --- control/optimal.py | 18 +++++++++++++++++- control/tests/optimal_test.py | 24 +++++++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/control/optimal.py b/control/optimal.py index 86e59cf8d..2fd2d6c54 100644 --- a/control/optimal.py +++ b/control/optimal.py @@ -104,11 +104,27 @@ def __init__( self.system = sys self.time_vector = time_vector self.integral_cost = integral_cost - self.trajectory_constraints = trajectory_constraints self.terminal_cost = terminal_cost self.terminal_constraints = terminal_constraints self.kwargs = kwargs + # Process trajectory constraints + if isinstance(trajectory_constraints, tuple): + self.trajectory_constraints = [trajectory_constraints] + elif not isinstance(trajectory_constraints, list): + raise TypeError("trajectory constraints must be a list") + else: + self.trajectory_constraints = trajectory_constraints + + # Process terminal constraints + if isinstance(terminal_constraints, tuple): + self.terminal_constraints = [terminal_constraints] + elif not isinstance(terminal_constraints, list): + raise TypeError("terminal constraints must be a list") + else: + self.terminal_constraints = terminal_constraints + + # # Compute and store constraints # diff --git a/control/tests/optimal_test.py b/control/tests/optimal_test.py index ac03626d1..be037d246 100644 --- a/control/tests/optimal_test.py +++ b/control/tests/optimal_test.py @@ -230,7 +230,7 @@ def test_terminal_constraints(sys_args): final_point = [opt.state_range_constraint(sys, [0, 0], [0, 0])] # Create the optimal control problem - time = np.arange(0, 5, 1) + time = np.arange(0, 3, 1) optctrl = opt.OptimalControlProblem( sys, time, cost, terminal_constraints=final_point) @@ -302,3 +302,25 @@ def test_terminal_constraints(sys_args): with pytest.warns(UserWarning, match="unable to solve"): res = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) assert not res.success + +def test_optimal_logging(capsys): + """Test logging functions (mainly for code coverage)""" + sys = ct.ss2io(ct.ss([[1, 1], [0, 1]], [[1], [0.5]], np.eye(2), 0, 1)) + + # Set up the optimal control problem + cost = opt.quadratic_cost(sys, 1, 1) + state_constraint = opt.state_range_constraint( + sys, [-np.inf, -10], [10, np.inf]) + input_constraint = opt.input_range_constraint(sys, -100, 100) + time = np.arange(0, 3, 1) + x0 = [-1, 1] + + # Solve it, with logging turned on + res = opt.solve_ocp( + sys, time, x0, cost, input_constraint, terminal_cost=cost, + terminal_constraints=state_constraint, log=True) + + # Make sure the output has info available only with logging turned on + captured = capsys.readouterr() + assert captured.out.find("process time") != -1 + From 5f261ccb132801f079892f19cfe4daed8b0e0d0a Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 20 Feb 2021 22:40:31 -0800 Subject: [PATCH 206/260] updated argument checking + unit tests (and coverage) + fixes --- control/optimal.py | 71 ++++++++++++++++------- control/tests/optimal_test.py | 104 +++++++++++++++++++++++++++++++--- 2 files changed, 146 insertions(+), 29 deletions(-) diff --git a/control/optimal.py b/control/optimal.py index 2fd2d6c54..7410c1355 100644 --- a/control/optimal.py +++ b/control/optimal.py @@ -193,10 +193,15 @@ def __init__( # See whether we got entire guess or just first time point if len(initial_guess.shape) == 1: # Broadcast inputs to entire time vector - initial_guess = np.broadcast_to( - initial_guess.reshape(-1, 1), - (self.system.ninputs, self.time_vector.size)) - elif len(initial_guess.shape) != 2: + try: + initial_guess = np.broadcast_to( + initial_guess.reshape(-1, 1), + (self.system.ninputs, self.time_vector.size)) + except: + raise ValueError("initial guess is the wrong shape") + + elif initial_guess.shape != \ + (self.system.ninputs, self.time_vector.size): raise ValueError("initial guess is the wrong shape") # Reshape for use by scipy.optimize.minimize() @@ -975,7 +980,13 @@ def state_poly_constraint(sys, A, b): A tuple consisting of the constraint type and parameter values. """ - # TODO: make sure the system and constraints are compatible + # Convert arguments to arrays and make sure dimensions are right + A = np.atleast_2d(A) + b = np.atleast_1d(b) + if len(A.shape) != 2 or A.shape[1] != sys.nstates: + raise ValueError("polytope matrix must match number of states") + elif len(b.shape) != 1 or A.shape[0] != b.shape[0]: + raise ValueError("number of bounds must match number of constraints") # Return a linear constraint object based on the polynomial return (opt.LinearConstraint, @@ -1006,7 +1017,11 @@ def state_range_constraint(sys, lb, ub): A tuple consisting of the constraint type and parameter values. """ - # TODO: make sure the system and constraints are compatible + # Convert bounds to lists and make sure they are the right dimension + lb = np.atleast_1d(lb) + ub = np.atleast_1d(ub) + if lb.shape != (sys.nstates,) or ub.shape != (sys.nstates,): + raise ValueError("state bounds must match number of states") # Return a linear constraint object based on the polynomial return (opt.LinearConstraint, @@ -1037,7 +1052,13 @@ def input_poly_constraint(sys, A, b): A tuple consisting of the constraint type and parameter values. """ - # TODO: make sure the system and constraints are compatible + # Convert arguments to arrays and make sure dimensions are right + A = np.atleast_2d(A) + b = np.atleast_1d(b) + if len(A.shape) != 2 or A.shape[1] != sys.ninputs: + raise ValueError("polytope matrix must match number of inputs") + elif len(b.shape) != 1 or A.shape[0] != b.shape[0]: + raise ValueError("number of bounds must match number of constraints") # Return a linear constraint object based on the polynomial return (opt.LinearConstraint, @@ -1069,13 +1090,17 @@ def input_range_constraint(sys, lb, ub): A tuple consisting of the constraint type and parameter values. """ - # TODO: make sure the system and constraints are compatible + # Convert bounds to lists and make sure they are the right dimension + lb = np.atleast_1d(lb) + ub = np.atleast_1d(ub) + if lb.shape != (sys.ninputs,) or ub.shape != (sys.ninputs,): + raise ValueError("input bounds must match number of inputs") # Return a linear constraint object based on the polynomial return (opt.LinearConstraint, np.hstack( [np.zeros((sys.ninputs, sys.nstates)), np.eye(sys.ninputs)]), - np.array(lb), np.array(ub)) + lb, ub) # @@ -1112,15 +1137,17 @@ def output_poly_constraint(sys, A, b): A tuple consisting of the constraint type and parameter values. """ - # TODO: make sure the system and constraints are compatible + # Convert arguments to arrays and make sure dimensions are right + A = np.atleast_2d(A) + b = np.atleast_1d(b) + if len(A.shape) != 2 or A.shape[1] != sys.noutputs: + raise ValueError("polytope matrix must match number of outputs") + elif len(b.shape) != 1 or A.shape[0] != b.shape[0]: + raise ValueError("number of bounds must match number of constraints") # Function to create the output - def _evaluate_output_poly_constraint(x): - # Separate the constraint into states and inputs - states = x[:sys.nstates] - inputs = x[sys.nstates:] - outputs = sys._out(0, states, inputs) - return A @ outputs + def _evaluate_output_poly_constraint(x, u): + return A @ sys._out(0, x, u) # Return a nonlinear constraint object based on the polynomial return (opt.NonlinearConstraint, @@ -1151,14 +1178,16 @@ def output_range_constraint(sys, lb, ub): A tuple consisting of the constraint type and parameter values. """ - # TODO: make sure the system and constraints are compatible + # Convert bounds to lists and make sure they are the right dimension + lb = np.atleast_1d(lb) + ub = np.atleast_1d(ub) + if lb.shape != (sys.noutputs,) or ub.shape != (sys.noutputs,): + raise ValueError("output bounds must match number of outputs") # Function to create the output - def _evaluate_output_range_constraint(x): + def _evaluate_output_range_constraint(x, u): # Separate the constraint into states and inputs - states = x[:sys.nstates] - inputs = x[sys.nstates:] - outputs = sys._out(0, states, inputs) + return sys._out(0, x, u) # Return a nonlinear constraint object based on the polynomial return (opt.NonlinearConstraint, _evaluate_output_range_constraint, lb, ub) diff --git a/control/tests/optimal_test.py b/control/tests/optimal_test.py index be037d246..6a2e4a7dc 100644 --- a/control/tests/optimal_test.py +++ b/control/tests/optimal_test.py @@ -77,7 +77,7 @@ def test_discrete_lqr(): # Compute the integral and terminal cost integral_cost = opt.quadratic_cost(sys, Q, R) - terminal_cost = opt.quadratic_cost(sys, S, 0) + terminal_cost = opt.quadratic_cost(sys, S, None) # Formulate finite horizon MPC problem time = np.arange(0, 5, 1) @@ -171,6 +171,11 @@ def test_mpc_iosystem(): [(opt.state_poly_constraint, np.array([[1, 0], [0, 1], [-1, 0], [0, -1]]), [5, 5, 5, 5]), (opt.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], + [(opt.output_range_constraint, [-5, -5], [5, 5]), + (opt.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], + [(opt.output_poly_constraint, + np.array([[1, 0], [0, 1], [-1, 0], [0, -1]]), [5, 5, 5, 5]), + (opt.input_poly_constraint, np.array([[1], [-1]]), [1, 1])], [(sp.optimize.NonlinearConstraint, lambda x, u: np.array([x[0], x[1], u[0]]), [-5, -5, -1], [5, 5, 1])], ]) @@ -258,6 +263,10 @@ def test_terminal_constraints(sys_args): np.testing.assert_allclose( x1, np.kron(x0.reshape((2, 1)), time[::-1]/Tf), atol=0.1, rtol=0.01) + # Re-run using initial guess = optional and make sure nothing chnages + res = optctrl.compute_trajectory(x0, initial_guess=u1) + np.testing.assert_almost_equal(res.inputs, u1) + # Impose some cost on the state, which should change the path Q = np.eye(2) R = np.eye(2) * 0.1 @@ -305,22 +314,101 @@ def test_terminal_constraints(sys_args): def test_optimal_logging(capsys): """Test logging functions (mainly for code coverage)""" - sys = ct.ss2io(ct.ss([[1, 1], [0, 1]], [[1], [0.5]], np.eye(2), 0, 1)) + sys = ct.ss2io(ct.ss(np.eye(2), np.eye(2), np.eye(2), 0, 1)) # Set up the optimal control problem cost = opt.quadratic_cost(sys, 1, 1) state_constraint = opt.state_range_constraint( - sys, [-np.inf, -10], [10, np.inf]) - input_constraint = opt.input_range_constraint(sys, -100, 100) + sys, [-np.inf, 1], [10, 1]) + input_constraint = opt.input_range_constraint(sys, [-100, -100], [100, 100]) time = np.arange(0, 3, 1) x0 = [-1, 1] - # Solve it, with logging turned on - res = opt.solve_ocp( - sys, time, x0, cost, input_constraint, terminal_cost=cost, - terminal_constraints=state_constraint, log=True) + # Solve it, with logging turned on (with warning due to mixed constraints) + with pytest.warns(sp.optimize.optimize.OptimizeWarning, + match="Equality and inequality .* same element"): + res = opt.solve_ocp( + sys, time, x0, cost, input_constraint, terminal_cost=cost, + terminal_constraints=state_constraint, log=True) # Make sure the output has info available only with logging turned on captured = capsys.readouterr() assert captured.out.find("process time") != -1 + +@pytest.mark.parametrize("fun, args, exception, match", [ + [opt.quadratic_cost, (np.zeros((2, 3)), np.eye(2)), ValueError, + "Q matrix is the wrong shape"], + [opt.quadratic_cost, (np.eye(2), 1), ValueError, + "R matrix is the wrong shape"], +]) +def test_constraint_constructor_errors(fun, args, exception, match): + """Test various error conditions for constraint constructors""" + sys = ct.ss2io(ct.rss(2, 2, 2)) + with pytest.raises(exception, match=match): + fun(sys, *args) + + +@pytest.mark.parametrize("fun, args, exception, match", [ + [opt.input_poly_constraint, (np.zeros((2, 3)), [0, 0]), ValueError, + "polytope matrix must match number of inputs"], + [opt.output_poly_constraint, (np.zeros((2, 3)), [0, 0]), ValueError, + "polytope matrix must match number of outputs"], + [opt.state_poly_constraint, (np.zeros((2, 3)), [0, 0]), ValueError, + "polytope matrix must match number of states"], + [opt.input_poly_constraint, (np.zeros((2, 2)), [0, 0, 0]), ValueError, + "number of bounds must match number of constraints"], + [opt.output_poly_constraint, (np.zeros((2, 2)), [0, 0, 0]), ValueError, + "number of bounds must match number of constraints"], + [opt.state_poly_constraint, (np.zeros((2, 2)), [0, 0, 0]), ValueError, + "number of bounds must match number of constraints"], + [opt.input_poly_constraint, (np.zeros((2, 2)), [[0, 0, 0]]), ValueError, + "number of bounds must match number of constraints"], + [opt.output_poly_constraint, (np.zeros((2, 2)), [[0, 0, 0]]), ValueError, + "number of bounds must match number of constraints"], + [opt.state_poly_constraint, (np.zeros((2, 2)), 0), ValueError, + "number of bounds must match number of constraints"], + [opt.input_range_constraint, ([1, 2, 3], [0, 0]), ValueError, + "input bounds must match"], + [opt.output_range_constraint, ([2, 3], [0, 0, 0]), ValueError, + "output bounds must match"], + [opt.state_range_constraint, ([1, 2, 3], [0, 0, 0]), ValueError, + "state bounds must match"], +]) +def test_constraint_constructor_errors(fun, args, exception, match): + """Test various error conditions for constraint constructors""" + sys = ct.ss2io(ct.rss(2, 2, 2)) + with pytest.raises(exception, match=match): + fun(sys, *args) + + +def test_ocp_argument_errors(): + sys = ct.ss2io(ct.ss([[1, 1], [0, 1]], [[1], [0.5]], np.eye(2), 0, 1)) + + # State and input constraints + constraints = [ + (sp.optimize.LinearConstraint, np.eye(3), [-5, -5, -1], [5, 5, 1]), + ] + + # Quadratic state and input penalty + Q = [[1, 0], [0, 1]] + R = [[1]] + cost = opt.quadratic_cost(sys, Q, R) + + # Set up the optimal control problem + time = np.arange(0, 5, 1) + x0 = [4, 0] + + # Trajectory constraints not in the right form + with pytest.raises(TypeError, match="constraints must be a list"): + res = opt.solve_ocp(sys, time, x0, cost, np.eye(2)) + + # Terminal constraints not in the right form + with pytest.raises(TypeError, match="constraints must be a list"): + res = opt.solve_ocp( + sys, time, x0, cost, constraints, terminal_constraints=np.eye(2)) + + # Initial guess in the wrong shape + with pytest.raises(ValueError, match="initial guess is the wrong shape"): + res = opt.solve_ocp( + sys, time, x0, cost, constraints, initial_guess=np.zeros((4,1,1))) From 980fa5f5ab0daf9e59aca375f7b448e165b05eab Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 20 Feb 2021 23:19:37 -0800 Subject: [PATCH 207/260] PEP8 cleanup --- control/optimal.py | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/control/optimal.py b/control/optimal.py index 7410c1355..a81aa728e 100644 --- a/control/optimal.py +++ b/control/optimal.py @@ -20,6 +20,7 @@ __all__ = ['find_optimal_input'] + class OptimalControlProblem(): """Description of a finite horizon, optimal control problem @@ -124,7 +125,6 @@ def __init__( else: self.terminal_constraints = terminal_constraints - # # Compute and store constraints # @@ -197,7 +197,7 @@ def __init__( initial_guess = np.broadcast_to( initial_guess.reshape(-1, 1), (self.system.ninputs, self.time_vector.size)) - except: + except ValueError: raise ValueError("initial guess is the wrong shape") elif initial_guess.shape != \ @@ -222,7 +222,6 @@ def __init__( if log: logging.info("New optimal control problem initailized") - # # Cost function # @@ -253,7 +252,7 @@ def _cost_function(self, inputs): else: if self.log: logging.debug("calling input_output_response from state\n" - + str(x)) + + str(x)) logging.debug("initial input[0:3] =\n" + str(inputs[:, 0:3])) # Simulate the system to get the state @@ -266,7 +265,7 @@ def _cost_function(self, inputs): if self.log: logging.debug("input_output_response returned states\n" - + str(states)) + + str(states)) # Trajectory cost # TODO: vectorize @@ -293,7 +292,7 @@ def _cost_function(self, inputs): # Terminal cost if self.terminal_cost is not None: - cost += self.terminal_cost(states[:,-1], inputs[:,-1]) + cost += self.terminal_cost(states[:, -1], inputs[:, -1]) # Update statistics self.cost_evaluations += 1 @@ -307,7 +306,6 @@ def _cost_function(self, inputs): # Return the total cost for this input sequence return cost - # # Constraints # @@ -368,7 +366,7 @@ def _constraint_function(self, inputs): else: if self.log: logging.debug("calling input_output_response from state\n" - + str(x)) + + str(x)) logging.debug("initial input[0:3] =\n" + str(inputs[:, 0:3])) # Simulate the system to get the state @@ -390,9 +388,9 @@ def _constraint_function(self, inputs): elif type == opt.LinearConstraint: # `fun` is the A matrix associated with the polytope... value.append( - np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + np.dot(fun, np.hstack([states[:, i], inputs[:, i]]))) elif type == opt.NonlinearConstraint: - value.append(fun(states[:,i], inputs[:,i])) + value.append(fun(states[:, i], inputs[:, i])) else: raise TypeError("unknown constraint type %s" % constraint[0]) @@ -405,9 +403,9 @@ def _constraint_function(self, inputs): continue elif type == opt.LinearConstraint: value.append( - np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + np.dot(fun, np.hstack([states[:, i], inputs[:, i]]))) elif type == opt.NonlinearConstraint: - value.append(fun(states[:,i], inputs[:,i])) + value.append(fun(states[:, i], inputs[:, i])) else: raise TypeError("unknown constraint type %s" % constraint[0]) @@ -448,7 +446,7 @@ def _eqconst_function(self, inputs): else: if self.log: logging.debug("calling input_output_response from state\n" - + str(x)) + + str(x)) logging.debug("initial input[0:3] =\n" + str(inputs[:, 0:3])) # Simulate the system to get the state @@ -461,7 +459,7 @@ def _eqconst_function(self, inputs): if self.log: logging.debug("input_output_response returned states\n" - + str(states)) + + str(states)) # Evaluate the constraint function along the trajectory value = [] @@ -474,9 +472,9 @@ def _eqconst_function(self, inputs): elif type == opt.LinearConstraint: # `fun` is the A matrix associated with the polytope... value.append( - np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + np.dot(fun, np.hstack([states[:, i], inputs[:, i]]))) elif type == opt.NonlinearConstraint: - value.append(fun(states[:,i], inputs[:,i])) + value.append(fun(states[:, i], inputs[:, i])) else: raise TypeError("unknown constraint type %s" % constraint[0]) @@ -489,9 +487,9 @@ def _eqconst_function(self, inputs): continue elif type == opt.LinearConstraint: value.append( - np.dot(fun, np.hstack([states[:,i], inputs[:,i]]))) + np.dot(fun, np.hstack([states[:, i], inputs[:, i]]))) elif type == opt.NonlinearConstraint: - value.append(fun(states[:,i], inputs[:,i])) + value.append(fun(states[:, i], inputs[:, i])) else: raise TypeError("unknown constraint type %s" % constraint[0]) @@ -523,7 +521,7 @@ def _eqconst_function(self, inputs): # def _reset_statistics(self, log=False): """Reset counters for keeping track of statistics""" - self.log=log + self.log = log self.cost_evaluations, self.cost_process_time = 0, 0 self.constraint_evaluations, self.constraint_process_time = 0, 0 self.eqconst_evaluations, self.eqconst_process_time = 0, 0 @@ -555,13 +553,13 @@ def _create_mpc_iosystem(self, dt=True): def _update(t, x, u, params={}): inputs = x.reshape((self.system.ninputs, self.time_vector.size)) self.initial_guess = np.hstack( - [inputs[:,1:], inputs[:,-1:]]).reshape(-1) + [inputs[:, 1:], inputs[:, -1:]]).reshape(-1) res = self.compute_trajectory(u, print_summary=False) return res.inputs.reshape(-1) def _output(t, x, u, params={}): inputs = x.reshape((self.system.ninputs, self.time_vector.size)) - return inputs[:,0] + return inputs[:, 0] return ct.NonlinearIOSystem( _update, _output, dt=dt, From 7741fe9fbbd42dc99f4f6a1084d80c586dac925f Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 26 Feb 2021 22:42:38 -0800 Subject: [PATCH 208/260] add basis functions, solver options, examples/tests --- control/flatsys/__init__.py | 1 + control/flatsys/basis.py | 7 + control/flatsys/bezier.py | 69 ++++++++ control/iosys.py | 38 ++++- control/optimal.py | 303 +++++++++++++++++++++++++--------- control/tests/optimal_test.py | 74 ++++++++- examples/steering-optimal.py | 61 +++++-- 7 files changed, 456 insertions(+), 97 deletions(-) create mode 100644 control/flatsys/bezier.py diff --git a/control/flatsys/__init__.py b/control/flatsys/__init__.py index 9ff1e2337..0926fa81a 100644 --- a/control/flatsys/__init__.py +++ b/control/flatsys/__init__.py @@ -53,6 +53,7 @@ # Basis function families from .basis import BasisFamily from .poly import PolyFamily +from .bezier import BezierFamily # Classes from .systraj import SystemTrajectory diff --git a/control/flatsys/basis.py b/control/flatsys/basis.py index 83ea89cbd..7592b79a2 100644 --- a/control/flatsys/basis.py +++ b/control/flatsys/basis.py @@ -51,3 +51,10 @@ class BasisFamily: def __init__(self, N): """Create a basis family of order N.""" self.N = N # save number of basis functions + + def __call__(self, i, t): + """Evaluate the ith basis function at a point in time""" + return self.eval_deriv(i, 0, t) + + def eval_deriv(self, i, j, t): + raise NotImplementedError("Internal error; improper basis functions") diff --git a/control/flatsys/bezier.py b/control/flatsys/bezier.py new file mode 100644 index 000000000..8cb303312 --- /dev/null +++ b/control/flatsys/bezier.py @@ -0,0 +1,69 @@ +# bezier.m - 1D Bezier curve basis functions +# RMM, 24 Feb 2021 +# +# This class implements a set of basis functions based on Bezier curves: +# +# \phi_i(t) = \sum_{i=0}^n {n \choose i} (T - t)^{n-i} t^i +# + +# Copyright (c) 2012 by California Institute of Technology +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# 3. Neither the name of the California Institute of Technology nor +# the names of its contributors may be used to endorse or promote +# products derived from this software without specific prior +# written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CALTECH +# OR THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +import numpy as np +from scipy.special import binom +from .basis import BasisFamily + +class BezierFamily(BasisFamily): + r"""Polynomial basis functions. + + This class represents the family of polynomials of the form + + .. math:: + \phi_i(t) = \sum_{i=0}^n {n \choose i} (T - t)^{n-i} t^i + + """ + def __init__(self, N, T=1): + """Create a polynomial basis of order N.""" + self.N = N # save number of basis functions + self.T = T # save end of time interval + + # Compute the kth derivative of the ith basis function at time t + def eval_deriv(self, i, k, t): + """Evaluate the kth derivative of the ith basis function at time t.""" + if k > 0: + raise NotImplementedError("Bezier derivatives not yet available") + elif i > self.N: + raise ValueError("Basis function index too high") + + # Return the Bezier basis function (note N = # basis functions) + return binom(self.N - 1, i) * \ + (t/self.T)**i * (1 - t/self.T)**(self.N - i - 1) diff --git a/control/iosys.py b/control/iosys.py index 16ef633b7..e75108e33 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -1412,9 +1412,10 @@ def __init__(self, io_sys, ss_sys=None): raise TypeError("Second argument must be a state space system.") -def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', - transpose=False, return_x=False, squeeze=None): - +def input_output_response( + sys, T, U=0., X0=0, params={}, + transpose=False, return_x=False, squeeze=None, + solve_ivp_kwargs={}, **kwargs): """Compute the output response of a system to a given input. Simulate a dynamical system with a given input and return its output @@ -1457,7 +1458,33 @@ def input_output_response(sys, T, U=0., X0=0, params={}, method='RK45', ValueError If time step does not match sampling time (for discrete time systems) + Additional parameters + --------------------- + solve_ivp_method : str, optional + Set the method used by :func:`scipy.integrate.solve_ivp`. Defaults + to 'RK45'. + solve_ivp_kwargs : str, optional + Pass additional keywords to :func:`scipy.integrate.solve_ivp`. + """ + # + # Process keyword arguments + # + + # Allow method as an alternative to solve_ivp_method + if kwargs.get('method', None): + solve_ivp_kwargs['method'] = kwargs.pop('method') + + # Figure out the method to be used + if kwargs.get('solve_ivp_method', None): + if kwargs.get('method', None): + raise ValueError("ivp_method specified more than once") + solve_ivp_kwargs['method'] = kwargs['solve_ivp_method'] + + # Set the default method to 'RK45' + if solve_ivp_kwargs.get('method', None) is None: + solve_ivp_kwargs['method'] = 'RK45' + # Sanity checking on the input if not isinstance(sys, InputOutputSystem): raise TypeError("System of type ", type(sys), " not valid") @@ -1504,8 +1531,9 @@ def ivp_rhs(t, x): return sys._rhs(t, x, u(t)) if not hasattr(sp.integrate, 'solve_ivp'): raise NameError("scipy.integrate.solve_ivp not found; " "use SciPy 1.0 or greater") - soln = sp.integrate.solve_ivp(ivp_rhs, (T0, Tf), X0, t_eval=T, - method=method, vectorized=False) + soln = sp.integrate.solve_ivp( + ivp_rhs, (T0, Tf), X0, t_eval=T, + vectorized=False, **solve_ivp_kwargs) # Compute the output associated with the state (and use sys.out to # figure out the number of outputs just in case it wasn't specified) diff --git a/control/optimal.py b/control/optimal.py index a81aa728e..9ec25b4fc 100644 --- a/control/optimal.py +++ b/control/optimal.py @@ -52,11 +52,16 @@ class OptimalControlProblem(): constraint upper and lower bounds. The constraint function is processed in the class initializer, so that it only needs to be computed once. + If `basis` is specified, then the optimization is done over coefficients + of the basis elements. Otherwise, the optimization is performed over the + values of the input at the specified times (using linear interpolation for + continuous systems). + """ def __init__( self, sys, time_vector, integral_cost, trajectory_constraints=[], terminal_cost=None, terminal_constraints=[], initial_guess=None, - log=False, **kwargs): + basis=None, log=False, **kwargs): """Set up an optimal control problem To describe an optimal control problem we need an input/output system, @@ -100,6 +105,19 @@ def __init__( Optimal control problem object, to be used in computing optimal controllers. + Additional parameters + --------------------- + solve_ivp_method : str, optional + Set the method used by :func:`scipy.integrate.solve_ivp`. + solve_ivp_kwargs : str, optional + Pass additional keywords to :func:`scipy.integrate.solve_ivp`. + minimize_method : str, optional + Set the method used by :func:`scipy.optimize.minimize`. + minimize_options : str, optional + Set the options keyword used by :func:`scipy.optimize.minimize`. + minimize_kwargs : str, optional + Pass additional keywords to :func:`scipy.optimize.minimize`. + """ # Save the basic information for use later self.system = sys @@ -107,7 +125,17 @@ def __init__( self.integral_cost = integral_cost self.terminal_cost = terminal_cost self.terminal_constraints = terminal_constraints - self.kwargs = kwargs + self.basis = basis + + # Process keyword arguments + self.solve_ivp_kwargs = {} + self.solve_ivp_kwargs['method'] = kwargs.pop('solve_ivp_method', None) + self.solve_ivp_kwargs.update(kwargs.pop('solve_ivp_kwargs', {})) + + self.minimize_kwargs = {} + self.minimize_kwargs['method'] = kwargs.pop('minimize_method', None) + self.minimize_kwargs['options'] = kwargs.pop('minimize_options', {}) + self.minimize_kwargs.update(kwargs.pop('minimize_kwargs', {})) # Process trajectory constraints if isinstance(trajectory_constraints, tuple): @@ -179,41 +207,12 @@ def __init__( self._eqconst_function, self.eqconst_value, self.eqconst_value)) - # - # Initial guess - # - # We store an initial guess in case it is not specified later. Note - # that create_mpc_iosystem() will reset the initial guess based on - # the current state of the MPC controller. - # - if initial_guess is not None: - # Convert to a 1D array (or higher) - initial_guess = np.atleast_1d(initial_guess) - - # See whether we got entire guess or just first time point - if len(initial_guess.shape) == 1: - # Broadcast inputs to entire time vector - try: - initial_guess = np.broadcast_to( - initial_guess.reshape(-1, 1), - (self.system.ninputs, self.time_vector.size)) - except ValueError: - raise ValueError("initial guess is the wrong shape") - - elif initial_guess.shape != \ - (self.system.ninputs, self.time_vector.size): - raise ValueError("initial guess is the wrong shape") - - # Reshape for use by scipy.optimize.minimize() - self.initial_guess = initial_guess.reshape(-1) - - else: - self.initial_guess = np.zeros( - self.system.ninputs * self.time_vector.size) + # Process the initial guess + self.initial_guess = self._process_initial_guess(initial_guess) # Store states, input, used later to minimize re-computation self.last_x = np.full(self.system.nstates, np.nan) - self.last_inputs = np.full(self.initial_guess.shape, np.nan) + self.last_coeffs = np.full(self.initial_guess.shape, np.nan) # Reset run-time statistics self._reset_statistics(log) @@ -232,22 +231,29 @@ def __init__( # # cost = sum_k integral_cost(x[k], u[k]) + terminal_cost(x[N], u[N]) # - # The initial state is for generating the simulation is store in the class - # parameter `x` prior to calling the optimization algorithm. + # The initial state used for generating the simulation is stored in the + # class parameter `x` prior to calling the optimization algorithm. # - def _cost_function(self, inputs): + def _cost_function(self, coeffs): if self.log: start_time = time.process_time() logging.info("_cost_function called at: %g", start_time) # Retrieve the initial state and reshape the input vector x = self.x - inputs = inputs.reshape( - (self.system.ninputs, self.time_vector.size)) + coeffs = coeffs.reshape((self.system.ninputs, -1)) + + # Compute time points (if basis present) + if self.basis: + if self.log: + logging.debug("coefficients = " + str(coeffs)) + inputs = self._coeffs_to_inputs(coeffs) + else: + inputs = coeffs # See if we already have a simulation for this condition - if np.array_equal(x, self.last_x) and \ - np.array_equal(inputs, self.last_inputs): + if np.array_equal(coeffs, self.last_coeffs) and \ + np.array_equal(x, self.last_x): states = self.last_states else: if self.log: @@ -257,10 +263,11 @@ def _cost_function(self, inputs): # Simulate the system to get the state _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True) + self.system, self.time_vector, inputs, x, return_x=True, + solve_ivp_kwargs=self.solve_ivp_kwargs) self.system_simulations += 1 self.last_x = x - self.last_inputs = inputs + self.last_coeffs = coeffs self.last_states = states if self.log: @@ -349,19 +356,24 @@ def _cost_function(self, inputs): # pass arguments to the constraint function, we have to store the initial # state prior to optimization and retrieve it here. # - def _constraint_function(self, inputs): + def _constraint_function(self, coeffs): if self.log: start_time = time.process_time() logging.info("_constraint_function called at: %g", start_time) # Retrieve the initial state and reshape the input vector x = self.x - inputs = inputs.reshape( - (self.system.ninputs, self.time_vector.size)) + coeffs = coeffs.reshape((self.system.ninputs, -1)) + + # Compute time points (if basis present) + if self.basis: + inputs = self._coeffs_to_inputs(coeffs) + else: + inputs = coeffs # See if we already have a simulation for this condition - if np.array_equal(x, self.last_x) and \ - np.array_equal(inputs, self.last_inputs): + if np.array_equal(coeffs, self.last_coeffs) \ + and np.array_equal(x, self.last_x): states = self.last_states else: if self.log: @@ -371,10 +383,11 @@ def _constraint_function(self, inputs): # Simulate the system to get the state _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True) + self.system, self.time_vector, inputs, x, return_x=True, + solve_ivp_kwargs=self.solve_ivp_kwargs) self.system_simulations += 1 self.last_x = x - self.last_inputs = inputs + self.last_coeffs = coeffs self.last_states = states # Evaluate the constraint function along the trajectory @@ -429,19 +442,24 @@ def _constraint_function(self, inputs): # Return the value of the constraint function return np.hstack(value) - def _eqconst_function(self, inputs): + def _eqconst_function(self, coeffs): if self.log: start_time = time.process_time() logging.info("_eqconst_function called at: %g", start_time) # Retrieve the initial state and reshape the input vector x = self.x - inputs = inputs.reshape( - (self.system.ninputs, self.time_vector.size)) + coeffs = coeffs.reshape((self.system.ninputs, -1)) + + # Compute time points (if basis present) + if self.basis: + inputs = self._coeffs_to_inputs(coeffs) + else: + inputs = coeffs # See if we already have a simulation for this condition - if np.array_equal(x, self.last_x) and \ - np.array_equal(inputs, self.last_inputs): + if np.array_equal(coeffs, self.last_coeffs) and \ + np.array_equal(x, self.last_x): states = self.last_states else: if self.log: @@ -451,10 +469,11 @@ def _eqconst_function(self, inputs): # Simulate the system to get the state _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True) + self.system, self.time_vector, inputs, x, return_x=True, + solve_ivp_kwargs=self.solve_ivp_kwargs) self.system_simulations += 1 self.last_x = x - self.last_inputs = inputs + self.last_coeffs = coeffs self.last_states = states if self.log: @@ -467,7 +486,7 @@ def _eqconst_function(self, inputs): for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint if np.any(lb != ub): - # Skip iniquality constraints + # Skip inequality constraints continue elif type == opt.LinearConstraint: # `fun` is the A matrix associated with the polytope... @@ -505,13 +524,99 @@ def _eqconst_function(self, inputs): # Debugging information if self.log: logging.debug( - "constraint values\n" + str(value) + "\n" + - "lb, ub =\n" + str(self.constraint_lb) + "\n" + - str(self.constraint_ub)) + "eqconst values\n" + str(value) + "\n" + + "desired =\n" + str(self.eqconst_value)) # Return the value of the constraint function return np.hstack(value) + # + # Initial guess + # + # We store an initial guess in case it is not specified later. Note + # that create_mpc_iosystem() will reset the initial guess based on + # the current state of the MPC controller. + # + # Note: the initial guess is passed as the inputs at the given time + # vector. If a basis is specified, this is converted to coefficient + # values (which are generally of smaller dimension). + # + def _process_initial_guess(self, initial_guess): + if initial_guess is not None: + # Convert to a 1D array (or higher) + initial_guess = np.atleast_1d(initial_guess) + + # See whether we got entire guess or just first time point + if len(initial_guess.shape) == 1: + # Broadcast inputs to entire time vector + try: + initial_guess = np.broadcast_to( + initial_guess.reshape(-1, 1), + (self.system.ninputs, self.time_vector.size)) + except ValueError: + raise ValueError("initial guess is the wrong shape") + + elif initial_guess.shape != \ + (self.system.ninputs, self.time_vector.size): + raise ValueError("initial guess is the wrong shape") + + # If we were given a basis, project onto the basis elements + if self.basis is not None: + initial_guess = self._inputs_to_coeffs(initial_guess) + + # Reshape for use by scipy.optimize.minimize() + return initial_guess.reshape(-1) + + # Default is zero + return np.zeros( + self.system.ninputs * + (self.time_vector.size if self.basis is None else self.basis.N)) + + # + # Utility function to convert input vector to coefficient vector + # + # Initially guesses from the user are passed as input vectors as a + # function of time, but internally we store the guess in terms of the + # basis coefficients. We do this by solving a least squares probelm to + # find coefficients that match the input functions at the time points (as + # much as possible, if the problem is under-determined). + # + def _inputs_to_coeffs(self, inputs): + # If there is no basis function, just return inputs as coeffs + if self.basis is None: + return inputs + + # Solve least squares problems (M x = b) for coeffs on each input + coeffs = np.zeros((self.system.ninputs, self.basis.N)) + for i in range(self.system.ninputs): + # Set up the matrices to get inputs + M = np.zeros((self.time_vector.size, self.basis.N)) + b = np.zeros(self.time_vector.size) + + # Evaluate at each time point and for each basis function + # TODO: vectorize + for j, t in enumerate(self.time_vector): + for k in range(self.basis.N): + M[j, k] = self.basis(k, t) + b[j] = inputs[i, j] + + # Solve a least squares problem for the coefficients + alpha, residuals, rank, s = np.linalg.lstsq(M, b, rcond=None) + coeffs[i, :] = alpha + + return coeffs + + # Utility function to convert coefficient vector to input vector + def _coeffs_to_inputs(self, coeffs): + # TODO: vectorize + inputs = np.zeros((self.system.ninputs, self.time_vector.size)) + for i, t in enumerate(self.time_vector): + for k in range(self.basis.N): + phi_k = self.basis(k, t) + for inp in range(self.system.ninputs): + inputs[inp, i] += coeffs[inp, k] * phi_k + return inputs + # # Log and statistics # @@ -551,26 +656,36 @@ def _print_statistics(self, reset=True): def _create_mpc_iosystem(self, dt=True): """Create an I/O system implementing an MPC controller""" def _update(t, x, u, params={}): - inputs = x.reshape((self.system.ninputs, self.time_vector.size)) - self.initial_guess = np.hstack( - [inputs[:, 1:], inputs[:, -1:]]).reshape(-1) + coeffs = x.reshape((self.system.ninputs, -1)) + if self.basis: + # Keep the coeffecients unchanged + # TODO: could compute input vector, shift, and re-project (?) + self.initial_guess = coeffs + else: + # Shift the basis elements by one time step + self.initial_guess = np.hstack( + [coeffs[:, 1:], coeffs[:, -1:]]).reshape(-1) res = self.compute_trajectory(u, print_summary=False) return res.inputs.reshape(-1) def _output(t, x, u, params={}): - inputs = x.reshape((self.system.ninputs, self.time_vector.size)) + if self.basis: + # TODO: compute inputs from basis elements + raise NotImplementedError("basis elements not implemented") + else: + inputs = x.reshape((self.system.ninputs, -1)) return inputs[:, 0] return ct.NonlinearIOSystem( _update, _output, dt=dt, - inputs=self.system.nstates, - outputs=self.system.ninputs, - states=self.system.ninputs * self.time_vector.size) + inputs=self.system.nstates, outputs=self.system.ninputs, + states=self.system.ninputs * + (self.time_vector.size if self.basis is None else self.basis.N)) # Compute the optimal trajectory from the current state def compute_trajectory( self, x, squeeze=None, transpose=None, return_states=None, - print_summary=True, **kwargs): + initial_guess=None, print_summary=True, **kwargs): """Compute the optimal input at state x Parameters @@ -609,15 +724,21 @@ def compute_trajectory( """ # Allow 'return_x` as a synonym for 'return_states' return_states = ct.config._get_param( - 'optimal', 'return_x', kwargs, return_states, pop=True) + 'optimal', 'return_x', kwargs, return_states, pop=True, last=True) # Store the initial state (for use in _constraint_function) self.x = x + # Allow the initial guess to be overriden + if initial_guess is None: + initial_guess = self.initial_guess + else: + initial_guess = self._process_initial_guess(initial_guess) + # Call ScipPy optimizer res = sp.optimize.minimize( - self._cost_function, self.initial_guess, - constraints=self.constraints, **self.kwargs) + self._cost_function, initial_guess, + constraints=self.constraints, **self.minimize_kwargs) # Process and return the results return OptimalControlResult( @@ -688,8 +809,13 @@ def __init__( self.problem = ocp # Reshape and process the input vector - inputs = res.x.reshape( - (ocp.system.ninputs, ocp.time_vector.size)) + coeffs = res.x.reshape((ocp.system.ninputs, -1)) + + # Compute time points (if basis present) + if ocp.basis: + inputs = ocp._coeffs_to_inputs(coeffs) + else: + inputs = coeffs # See if we got an answer if not res.success: @@ -701,10 +827,11 @@ def __init__( if print_summary: ocp._print_statistics() - if return_states and res.success: + if return_states and inputs.shape[1] == ocp.time_vector.shape[0]: # Simulate the system if we need the state back _, _, states = ct.input_output_response( - ocp.system, ocp.time_vector, inputs, ocp.x, return_x=True) + ocp.system, ocp.time_vector, inputs, ocp.x, return_x=True, + solve_ivp_kwargs=ocp.solve_ivp_kwargs) ocp.system_simulations += 1 else: states = None @@ -721,8 +848,8 @@ def __init__( # Compute the input for a nonlinear, (constrained) optimal control problem def solve_ocp( sys, horizon, X0, cost, constraints=[], terminal_cost=None, - terminal_constraints=[], initial_guess=None, squeeze=None, - transpose=None, return_states=None, log=False, **kwargs): + terminal_constraints=[], initial_guess=None, basis=None, squeeze=None, + transpose=None, return_states=False, log=False, **kwargs): """Compute the solution to an optimal control problem @@ -812,16 +939,26 @@ def solve_ocp( res.states : array Time evolution of the state vector (if return_states=True). + Notes + ----- + Additional keyword parameters can be used to fine tune the behavior of + the underlying optimization and integrations functions. See + :func:`OptimalControlProblem` for more information. + """ + # Allow 'return_x` as a synonym for 'return_states' + return_states = ct.config._get_param( + 'optimal', 'return_x', kwargs, return_states, pop=True) + # Set up the optimal control problem ocp = OptimalControlProblem( sys, horizon, cost, trajectory_constraints=constraints, terminal_cost=terminal_cost, terminal_constraints=terminal_constraints, - initial_guess=initial_guess, log=log, **kwargs) + initial_guess=initial_guess, basis=basis, log=log, **kwargs) # Solve for the optimal input from the current state return ocp.compute_trajectory( - X0, squeeze=squeeze, transpose=None, return_states=None) + X0, squeeze=squeeze, transpose=transpose, return_states=return_states) # Create a model predictive controller for an optimal control problem @@ -869,6 +1006,12 @@ def create_mpc_iosystem( returning the current input to be applied that minimizes the cost function while satisfying the constraints. + Notes + ----- + Additional keyword parameters can be used to fine tune the behavior of + the underlying optimization and integrations functions. See + :func:`OptimalControlProblem` for more information. + """ # Set up the optimal control problem diff --git a/control/tests/optimal_test.py b/control/tests/optimal_test.py index 6a2e4a7dc..cedfe06fc 100644 --- a/control/tests/optimal_test.py +++ b/control/tests/optimal_test.py @@ -8,8 +8,10 @@ import warnings import numpy as np import scipy as sp +import math import control as ct import control.optimal as opt +import control.flatsys as flat from control.tests.conftest import slycotonly from numpy.lib import NumpyVersion @@ -225,7 +227,7 @@ def test_terminal_constraints(sys_args): """Test out the ability to handle terminal constraints""" # Create the system sys = ct.ss2io(ct.ss(*sys_args)) - + # Shortest path to a point is a line Q = np.zeros((2, 2)) R = np.eye(2) @@ -267,6 +269,11 @@ def test_terminal_constraints(sys_args): res = optctrl.compute_trajectory(x0, initial_guess=u1) np.testing.assert_almost_equal(res.inputs, u1) + # Re-run using a basis function and see if we get the same answer + res = opt.solve_ocp(sys, time, x0, cost, terminal_constraints=final_point, + basis=flat.BezierFamily(4, Tf)) + np.testing.assert_almost_equal(res.inputs, u1, decimal=2) + # Impose some cost on the state, which should change the path Q = np.eye(2) R = np.eye(2) * 0.1 @@ -412,3 +419,68 @@ def test_ocp_argument_errors(): with pytest.raises(ValueError, match="initial guess is the wrong shape"): res = opt.solve_ocp( sys, time, x0, cost, constraints, initial_guess=np.zeros((4,1,1))) + + +def test_optimal_basis_simple(): + pass + + +def test_optimal_basis_vehicle(): + # Define a nonlinear system to use (kinematic car) + def vehicle_update(t, x, u, params): + phi = np.clip(u[1], -0.5, 0.5) + return np.array([ + math.cos(x[2]) * u[0], # xdot = cos(theta) v + math.sin(x[2]) * u[0], # ydot = sin(theta) v + (u[0] / 3) * math.tan(phi) # thdot = v/l tan(phi) + ]) + + def vehicle_output(t, x, u, params): + return x # return x, y, theta (full state) + + # Define the vehicle steering dynamics as an input/output system + vehicle = ct.NonlinearIOSystem( + vehicle_update, vehicle_output, states=3, inputs=2, outputs=3) + + # Initial and final conditions + x0 = [0., -2., 0.]; u0 = [10., 0.] + xf = [100., 2., 0.]; uf = [10., 0.] + Tf = 10 + + # Set up costs and constriants + Q = np.diag([.1, 10, .1]) # keep lateral error low + R = np.diag([1, 1]) # minimize applied inputs + cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) + constraints = [ opt.input_range_constraint(vehicle, [0, -0.1], [20, 0.1]) ] + terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] + bend_left = [10, 0.05] # slight left veer + near_optimal = [ + [ 1.15073736e+01, 1.16838616e+01, 1.15413395e+01, + 1.11585544e+01, 1.06142537e+01, 9.98718468e+00, + 9.35609454e+00, 8.79973057e+00, 8.39684004e+00, + 8.22617023e+00], + [ -9.99830506e-02, 8.98139594e-03, 5.26385615e-02, + 4.96635954e-02, 1.87316470e-02, -2.14821345e-02, + -5.23025996e-02, -5.50545990e-02, -1.10629834e-02, + 9.83473965e-02] ] + + # Set up horizon + horizon = np.linspace(0, Tf, 10, endpoint=True) + + # Set up the optimal control problem + res = opt.solve_ocp( + vehicle, horizon, x0, cost, + constraints, + terminal_constraints=terminal, + initial_guess=near_optimal, + basis=flat.BezierFamily(4, T=Tf), + minimize_method='trust-constr', minimize_options={'disp': True}, + # minimize_method='SLSQP', minimize_options={'eps': 0.01}, + solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + return_states=True + ) + t, u, x = res.time, res.inputs, res.states + + # Make sure we found a valid solution + assert res.success + np.testing.assert_almost_equal(x[:, -1], xf, decimal=4) diff --git a/examples/steering-optimal.py b/examples/steering-optimal.py index 0ac4cc53e..3bd14d711 100644 --- a/examples/steering-optimal.py +++ b/examples/steering-optimal.py @@ -6,11 +6,13 @@ # optimal control module (control.optimal) in the python-control package. import numpy as np +import math import control as ct import control.optimal as opt import matplotlib.pyplot as plt import logging import time +import os # # Vehicle steering dynamics @@ -37,9 +39,9 @@ def vehicle_update(t, x, u, params): # Return the derivative of the state return np.array([ - np.cos(x[2]) * u[0], # xdot = cos(theta) v - np.sin(x[2]) * u[0], # ydot = sin(theta) v - (u[0] / l) * np.tan(phi) # thdot = v/l tan(phi) + math.cos(x[2]) * u[0], # xdot = cos(theta) v + math.sin(x[2]) * u[0], # ydot = sin(theta) v + (u[0] / l) * math.tan(phi) # thdot = v/l tan(phi) ]) @@ -107,7 +109,7 @@ def plot_results(t, y, u, figure=None, yf=None): # Set up the cost functions Q = np.diag([.1, 10, .1]) # keep lateral error low R = np.diag([.1, 1]) # minimize applied inputs -cost1 = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) +quad_cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) # Define the time horizon (and spacing) for the optimization horizon = np.linspace(0, Tf, 10, endpoint=True) @@ -123,8 +125,9 @@ def plot_results(t, y, u, figure=None, yf=None): # Compute the optimal control, setting step size for gradient calculation (eps) start_time = time.process_time() result1 = opt.solve_ocp( - vehicle, horizon, x0, cost1, initial_guess=bend_left, log=True, - options={'eps': 0.01}) + vehicle, horizon, x0, quad_cost, initial_guess=bend_left, log=True, + # solve_ivp_kwargs={'atol': 1e-2, 'rtol': 1e-2}, + minimize_options={'eps': 0.01}) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) # Extract and plot the results (+ state trajectory) @@ -160,7 +163,8 @@ def plot_results(t, y, u, figure=None, yf=None): result2 = opt.solve_ocp( vehicle, horizon, x0, traj_cost, constraints, terminal_cost=term_cost, initial_guess=bend_left, log=True, - method='SLSQP', options={'eps': 0.01}) + # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + minimize_method='SLSQP', minimize_options={'eps': 0.01}) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) # Extract and plot the results (+ state trajectory) @@ -171,9 +175,9 @@ def plot_results(t, y, u, figure=None, yf=None): # # Approach 3: terminal constraints # -# As a final example, we can remove the cost function on the state and -# replace it with a terminal *constraint* on the state. If a solution is -# found, it guarantees we get to exactly the final state. +# We can also remove the cost function on the state and replace it +# with a terminal *constraint* on the state. If a solution is found, +# it guarantees we get to exactly the final state. # # To speeds things up a bit, we initalize the problem using the previous # optimal controller (which didn't quite hit the final value). @@ -192,10 +196,45 @@ def plot_results(t, y, u, figure=None, yf=None): result3 = opt.solve_ocp( vehicle, horizon, x0, cost3, constraints, terminal_constraints=terminal, initial_guess=u2, log=False, - options={'eps': 0.01}) + # solve_ivp_kwargs={'atol': 1e-3, 'rtol': 1e-2}, + solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + minimize_options={'eps': 0.01}) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) # Extract and plot the results (+ state trajectory) t3, u3 = result3.time, result3.inputs t3, y3 = ct.input_output_response(vehicle, horizon, u3, x0) plot_results(t3, y3, u3, figure=3, yf=xf[0:2]) + +# +# Approach 4: terminal constraints w/ basis functions +# +# As a final example, we can use a basis function to reduce the size +# of the problem and get faster answers with more temporal resolution. +# Here we parameterize the input by a set of 4 Bezier curves but solve +# for a much more time resolved set of inputs. + +print("Approach 4: Bezier basis") +import control.flatsys as flat + +# Compute the optimal control +start_time = time.process_time() +result4 = opt.solve_ocp( + vehicle, horizon, x0, quad_cost, + constraints, + terminal_constraints=terminal, + initial_guess=u3, + basis=flat.BezierFamily(4, T=Tf), + minimize_method='trust-constr', minimize_options={'disp': True}, + # method='SLSQP', options={'eps': 0.01} + solve_ivp_kwargs={'atol': 1e-2, 'rtol': 1e-2}, +) +print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) + +# Extract and plot the results (+ state trajectory) +t4, u4 = result4.time, result4.inputs +t4, y4 = ct.input_output_response(vehicle, horizon, u4, x0) +plot_results(t4, y4, u4, figure=4, yf=xf[0:2]) + +if 'PYCONTROL_TEST_EXAMPLES' not in os.environ: + plt.show() From df91cac6772f626df2ca3035b9a66d347f814e6d Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 27 Feb 2021 14:13:52 -0800 Subject: [PATCH 209/260] set up benchmarks/profiling via asv --- .gitignore | 5 +- asv.conf.json | 161 +++++++++++++++++++++++++ benchmarks/README | 39 ++++++ benchmarks/__init__.py | 0 benchmarks/optimal_bench.py | 216 ++++++++++++++++++++++++++++++++++ control/tests/optimal_test.py | 82 ++++--------- examples/steering-optimal.py | 37 ++++-- 7 files changed, 472 insertions(+), 68 deletions(-) create mode 100644 asv.conf.json create mode 100644 benchmarks/README create mode 100644 benchmarks/__init__.py create mode 100644 benchmarks/optimal_bench.py diff --git a/.gitignore b/.gitignore index 0262ab46f..b95f1730e 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ MANIFEST control/_version.py __conda_*.txt record.txt -build.log +*.log *.egg-info/ .eggs/ .coverage @@ -23,3 +23,6 @@ Untitled*.ipynb # Files created by or for emacs (RMM, 29 Dec 2017) *~ TAGS + +# Files created by or for asv (airspeed velocity) +.asv/ diff --git a/asv.conf.json b/asv.conf.json new file mode 100644 index 000000000..590c24db0 --- /dev/null +++ b/asv.conf.json @@ -0,0 +1,161 @@ +{ + // The version of the config file format. Do not change, unless + // you know what you are doing. + "version": 1, + + // The name of the project being benchmarked + "project": "python-control", + + // The project's homepage + "project_url": "http://python-control.org/", + + // The URL or local path of the source code repository for the + // project being benchmarked + "repo": ".", + + // The Python project's subdirectory in your repo. If missing or + // the empty string, the project is assumed to be located at the root + // of the repository. + // "repo_subdir": ".", + + // Customizable commands for building, installing, and + // uninstalling the project. See asv.conf.json documentation. + // + // "install_command": ["in-dir={env_dir} python -mpip install {wheel_file}"], + // "uninstall_command": ["return-code=any python -mpip uninstall -y {project}"], + "build_command": [ + "python make_version.py", + "python setup.py build", + "PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} {build_dir}" + ], + + // List of branches to benchmark. If not provided, defaults to "master" + // (for git) or "default" (for mercurial). + // "branches": ["master"], // for git + // "branches": ["default"], // for mercurial + + // The DVCS being used. If not set, it will be automatically + // determined from "repo" by looking at the protocol in the URL + // (if remote), or by looking for special directories, such as + // ".git" (if local). + // "dvcs": "git", + + // The tool to use to create environments. May be "conda", + // "virtualenv" or other value depending on the plugins in use. + // If missing or the empty string, the tool will be automatically + // determined by looking for tools on the PATH environment + // variable. + "environment_type": "conda", + + // timeout in seconds for installing any dependencies in environment + // defaults to 10 min + //"install_timeout": 600, + + // the base URL to show a commit for the project. + "show_commit_url": "http://github.com/python-control/python-control/commit/", + + // The Pythons you'd like to test against. If not provided, defaults + // to the current version of Python used to run `asv`. + // "pythons": ["2.7", "3.6"], + + // The list of conda channel names to be searched for benchmark + // dependency packages in the specified order + // "conda_channels": ["conda-forge", "defaults"], + + // The matrix of dependencies to test. Each key is the name of a + // package (in PyPI) and the values are version numbers. An empty + // list or empty string indicates to just test against the default + // (latest) version. null indicates that the package is to not be + // installed. If the package to be tested is only available from + // PyPi, and the 'environment_type' is conda, then you can preface + // the package name by 'pip+', and the package will be installed via + // pip (with all the conda available packages installed first, + // followed by the pip installed packages). + // + // "matrix": { + // "numpy": ["1.6", "1.7"], + // "six": ["", null], // test with and without six installed + // "pip+emcee": [""], // emcee is only available for install with pip. + // }, + + // Combinations of libraries/python versions can be excluded/included + // from the set to test. Each entry is a dictionary containing additional + // key-value pairs to include/exclude. + // + // An exclude entry excludes entries where all values match. The + // values are regexps that should match the whole string. + // + // An include entry adds an environment. Only the packages listed + // are installed. The 'python' key is required. The exclude rules + // do not apply to includes. + // + // In addition to package names, the following keys are available: + // + // - python + // Python version, as in the *pythons* variable above. + // - environment_type + // Environment type, as above. + // - sys_platform + // Platform, as in sys.platform. Possible values for the common + // cases: 'linux2', 'win32', 'cygwin', 'darwin'. + // + // "exclude": [ + // {"python": "3.2", "sys_platform": "win32"}, // skip py3.2 on windows + // {"environment_type": "conda", "six": null}, // don't run without six on conda + // ], + // + // "include": [ + // // additional env for python2.7 + // {"python": "2.7", "numpy": "1.8"}, + // // additional env if run on windows+conda + // {"platform": "win32", "environment_type": "conda", "python": "2.7", "libpython": ""}, + // ], + + // The directory (relative to the current directory) that benchmarks are + // stored in. If not provided, defaults to "benchmarks" + // "benchmark_dir": "benchmarks", + + // The directory (relative to the current directory) to cache the Python + // environments in. If not provided, defaults to "env" + "env_dir": ".asv/env", + + // The directory (relative to the current directory) that raw benchmark + // results are stored in. If not provided, defaults to "results". + "results_dir": ".asv/results", + + // The directory (relative to the current directory) that the html tree + // should be written to. If not provided, defaults to "html". + "html_dir": ".asv/html", + + // The number of characters to retain in the commit hashes. + // "hash_length": 8, + + // `asv` will cache results of the recent builds in each + // environment, making them faster to install next time. This is + // the number of builds to keep, per environment. + // "build_cache_size": 2, + + // The commits after which the regression search in `asv publish` + // should start looking for regressions. Dictionary whose keys are + // regexps matching to benchmark names, and values corresponding to + // the commit (exclusive) after which to start looking for + // regressions. The default is to start from the first commit + // with results. If the commit is `null`, regression detection is + // skipped for the matching benchmark. + // + // "regressions_first_commits": { + // "some_benchmark": "352cdf", // Consider regressions only after this commit + // "another_benchmark": null, // Skip regression detection altogether + // }, + + // The thresholds for relative change in results, after which `asv + // publish` starts reporting regressions. Dictionary of the same + // form as in ``regressions_first_commits``, with values + // indicating the thresholds. If multiple entries match, the + // maximum is taken. If no entry matches, the default is 5%. + // + // "regressions_thresholds": { + // "some_benchmark": 0.01, // Threshold of 1% + // "another_benchmark": 0.5, // Threshold of 50% + // }, +} diff --git a/benchmarks/README b/benchmarks/README new file mode 100644 index 000000000..a10bbfc21 --- /dev/null +++ b/benchmarks/README @@ -0,0 +1,39 @@ +This directory contains various scripts that can be used to measure the +performance of the python-control package. The scripts are intended to be +used with the airspeed velocity package (https://pypi.org/project/asv/) and +are mainly intended for use by developers in identfying potential +improvements to their code. + +Running benchmarks +------------------ +To run the benchmarks listed here against the current (uncommitted) code, +you can use the following command from the root directory of the repository: + + PYTHONPATH=`pwd` asv run --python=python + +You can also run benchmarks against specific commits usuing + + asv run + +where is a range of commits to benchmark. To check against the HEAD +of the branch that is currently checked out, use + + asv run HEAD^! + +Code profiling +-------------- +You can also use the benchmarks to profile code and look for bottlenecks. +To profile a given test against the current (uncommitted) code use + + PYTHONPATH=`pwd` asv profile --python=python . + +where is the name of one of the files in the benchmark/ subdirectory +and is the name of a test function in that file. + +If you have the `snakeviz` profiling visualization package installed, the +following command will profile a test against the HEAD of the current branch +and open a graphical representation of the profiled code: + + asv profile --gui snakeviz . HEAD + +RMM, 27 Feb 2021 diff --git a/benchmarks/__init__.py b/benchmarks/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/benchmarks/optimal_bench.py b/benchmarks/optimal_bench.py new file mode 100644 index 000000000..329066579 --- /dev/null +++ b/benchmarks/optimal_bench.py @@ -0,0 +1,216 @@ +# optimal_bench.py - benchmarks for optimal control package +# RMM, 27 Feb 2020 +# +# This benchmark tests the timing for the optimal control module +# (control.optimal) and is intended to be used for helping tune the +# performance of the functions used for optimization-base control. + +import numpy as np +import math +import control as ct +import control.flatsys as flat +import control.optimal as opt +import matplotlib.pyplot as plt +import logging +import time +import os + +# +# Vehicle steering dynamics +# +# The vehicle dynamics are given by a simple bicycle model. We take the state +# of the system as (x, y, theta) where (x, y) is the position of the vehicle +# in the plane and theta is the angle of the vehicle with respect to +# horizontal. The vehicle input is given by (v, phi) where v is the forward +# velocity of the vehicle and phi is the angle of the steering wheel. The +# model includes saturation of the vehicle steering angle. +# +# System state: x, y, theta +# System input: v, phi +# System output: x, y +# System parameters: wheelbase, maxsteer +# +def vehicle_update(t, x, u, params): + # Get the parameters for the model + l = params.get('wheelbase', 3.) # vehicle wheelbase + phimax = params.get('maxsteer', 0.5) # max steering angle (rad) + + # Saturate the steering input (use min/max instead of clip for speed) + phi = max(-phimax, min(u[1], phimax)) + + # Return the derivative of the state + return np.array([ + math.cos(x[2]) * u[0], # xdot = cos(theta) v + math.sin(x[2]) * u[0], # ydot = sin(theta) v + (u[0] / l) * math.tan(phi) # thdot = v/l tan(phi) + ]) + + +def vehicle_output(t, x, u, params): + return x # return x, y, theta (full state) + +vehicle = ct.NonlinearIOSystem( + vehicle_update, vehicle_output, states=3, name='vehicle', + inputs=('v', 'phi'), outputs=('x', 'y', 'theta')) + +x0 = [0., -2., 0.]; u0 = [10., 0.] +xf = [100., 2., 0.]; uf = [10., 0.] +Tf = 10 + +# Define the time horizon (and spacing) for the optimization +horizon = np.linspace(0, Tf, 10, endpoint=True) + +# Provide an intial guess (will be extended to entire horizon) +bend_left = [10, 0.01] # slight left veer + +def time_integrated_cost(): + # Set up the cost functions + Q = np.diag([.1, 10, .1]) # keep lateral error low + R = np.diag([.1, 1]) # minimize applied inputs + quad_cost = opt.quadratic_cost( + vehicle, Q, R, x0=xf, u0=uf) + + res = opt.solve_ocp( + vehicle, horizon, x0, quad_cost, + initial_guess=bend_left, print_summary=False, + # solve_ivp_kwargs={'atol': 1e-2, 'rtol': 1e-2}, + minimize_method='trust-constr', + minimize_options={'finite_diff_rel_step': 0.01}, + ) + + # Only count this as a benchmark if we converged + assert res.success + +def time_terminal_cost(): + # Define cost and constraints + traj_cost = opt.quadratic_cost( + vehicle, None, np.diag([0.1, 1]), u0=uf) + term_cost = opt.quadratic_cost( + vehicle, np.diag([1, 10, 10]), None, x0=xf) + constraints = [ + opt.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] + + res = opt.solve_ocp( + vehicle, horizon, x0, traj_cost, constraints, + terminal_cost=term_cost, initial_guess=bend_left, print_summary=False, + # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + minimize_method='SLSQP', minimize_options={'eps': 0.01} + ) + + # Only count this as a benchmark if we converged + assert res.success + +def time_terminal_constraint(): + # Input cost and terminal constraints + R = np.diag([1, 1]) # minimize applied inputs + cost = opt.quadratic_cost(vehicle, np.zeros((3,3)), R, u0=uf) + constraints = [ + opt.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] + terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] + + res = opt.solve_ocp( + vehicle, horizon, x0, cost, constraints, + terminal_constraints=terminal, initial_guess=bend_left, log=False, + solve_ivp_kwargs={'atol': 1e-3, 'rtol': 1e-2}, + # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + minimize_method='trust-constr', + # minimize_method='SLSQP', minimize_options={'eps': 0.01} + ) + + # Only count this as a benchmark if we converged + assert res.success + +# Reset the timeout value to allow for longer runs +time_terminal_constraint.timeout = 120 + +def time_optimal_basis_vehicle(): + # Set up costs and constriants + Q = np.diag([.1, 10, .1]) # keep lateral error low + R = np.diag([1, 1]) # minimize applied inputs + cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) + constraints = [ opt.input_range_constraint(vehicle, [0, -0.1], [20, 0.1]) ] + terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] + bend_left = [10, 0.05] # slight left veer + near_optimal = [ + [ 1.15073736e+01, 1.16838616e+01, 1.15413395e+01, + 1.11585544e+01, 1.06142537e+01, 9.98718468e+00, + 9.35609454e+00, 8.79973057e+00, 8.39684004e+00, + 8.22617023e+00], + [ -9.99830506e-02, 8.98139594e-03, 5.26385615e-02, + 4.96635954e-02, 1.87316470e-02, -2.14821345e-02, + -5.23025996e-02, -5.50545990e-02, -1.10629834e-02, + 9.83473965e-02] ] + + # Set up horizon + horizon = np.linspace(0, Tf, 10, endpoint=True) + + # Set up the optimal control problem + res = opt.solve_ocp( + vehicle, horizon, x0, cost, + constraints, + terminal_constraints=terminal, + initial_guess=near_optimal, + basis=flat.BezierFamily(4, T=Tf), + minimize_method='trust-constr', + # minimize_method='SLSQP', minimize_options={'eps': 0.01}, + solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + return_states=True, print_summary=False + ) + t, u, x = res.time, res.inputs, res.states + + # Make sure we found a valid solution + assert res.success + np.testing.assert_almost_equal(x[:, -1], xf, decimal=4) + +def time_mpc_iosystem(): + # model of an aircraft discretized with 0.2s sampling time + # Source: https://www.mpt3.org/UI/RegulationProblem + A = [[0.99, 0.01, 0.18, -0.09, 0], + [ 0, 0.94, 0, 0.29, 0], + [ 0, 0.14, 0.81, -0.9, 0], + [ 0, -0.2, 0, 0.95, 0], + [ 0, 0.09, 0, 0, 0.9]] + B = [[ 0.01, -0.02], + [-0.14, 0], + [ 0.05, -0.2], + [ 0.02, 0], + [-0.01, 0]] + C = [[0, 1, 0, 0, -1], + [0, 0, 1, 0, 0], + [0, 0, 0, 1, 0], + [1, 0, 0, 0, 0]] + model = ct.ss2io(ct.ss(A, B, C, 0, 0.2)) + + # For the simulation we need the full state output + sys = ct.ss2io(ct.ss(A, B, np.eye(5), 0, 0.2)) + + # compute the steady state values for a particular value of the input + ud = np.array([0.8, -0.3]) + xd = np.linalg.inv(np.eye(5) - A) @ B @ ud + yd = C @ xd + + # provide constraints on the system signals + constraints = [opt.input_range_constraint(sys, [-5, -6], [5, 6])] + + # provide penalties on the system signals + Q = model.C.transpose() @ np.diag([10, 10, 10, 10]) @ model.C + R = np.diag([3, 2]) + cost = opt.quadratic_cost(model, Q, R, x0=xd, u0=ud) + + # online MPC controller object is constructed with a horizon 6 + ctrl = opt.create_mpc_iosystem( + model, np.arange(0, 6) * 0.2, cost, constraints) + + # Define an I/O system implementing model predictive control + loop = ct.feedback(sys, ctrl, 1) + + # Choose a nearby initial condition to speed up computation + X0 = np.hstack([xd, np.kron(ud, np.ones(6))]) * 0.99 + + Nsim = 12 + tout, xout = ct.input_output_response( + loop, np.arange(0, Nsim) * 0.2, 0, X0) + + # Make sure the system converged to the desired state + np.testing.assert_allclose( + xout[0:sys.nstates, -1], xd, atol=0.1, rtol=0.01) diff --git a/control/tests/optimal_test.py b/control/tests/optimal_test.py index cedfe06fc..fc0ff79d7 100644 --- a/control/tests/optimal_test.py +++ b/control/tests/optimal_test.py @@ -265,7 +265,7 @@ def test_terminal_constraints(sys_args): np.testing.assert_allclose( x1, np.kron(x0.reshape((2, 1)), time[::-1]/Tf), atol=0.1, rtol=0.01) - # Re-run using initial guess = optional and make sure nothing chnages + # Re-run using initial guess = optional and make sure nothing changes res = optctrl.compute_trajectory(x0, initial_guess=u1) np.testing.assert_almost_equal(res.inputs, u1) @@ -422,65 +422,27 @@ def test_ocp_argument_errors(): def test_optimal_basis_simple(): - pass - - -def test_optimal_basis_vehicle(): - # Define a nonlinear system to use (kinematic car) - def vehicle_update(t, x, u, params): - phi = np.clip(u[1], -0.5, 0.5) - return np.array([ - math.cos(x[2]) * u[0], # xdot = cos(theta) v - math.sin(x[2]) * u[0], # ydot = sin(theta) v - (u[0] / 3) * math.tan(phi) # thdot = v/l tan(phi) - ]) - - def vehicle_output(t, x, u, params): - return x # return x, y, theta (full state) - - # Define the vehicle steering dynamics as an input/output system - vehicle = ct.NonlinearIOSystem( - vehicle_update, vehicle_output, states=3, inputs=2, outputs=3) - - # Initial and final conditions - x0 = [0., -2., 0.]; u0 = [10., 0.] - xf = [100., 2., 0.]; uf = [10., 0.] - Tf = 10 - - # Set up costs and constriants - Q = np.diag([.1, 10, .1]) # keep lateral error low - R = np.diag([1, 1]) # minimize applied inputs - cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) - constraints = [ opt.input_range_constraint(vehicle, [0, -0.1], [20, 0.1]) ] - terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] - bend_left = [10, 0.05] # slight left veer - near_optimal = [ - [ 1.15073736e+01, 1.16838616e+01, 1.15413395e+01, - 1.11585544e+01, 1.06142537e+01, 9.98718468e+00, - 9.35609454e+00, 8.79973057e+00, 8.39684004e+00, - 8.22617023e+00], - [ -9.99830506e-02, 8.98139594e-03, 5.26385615e-02, - 4.96635954e-02, 1.87316470e-02, -2.14821345e-02, - -5.23025996e-02, -5.50545990e-02, -1.10629834e-02, - 9.83473965e-02] ] - - # Set up horizon - horizon = np.linspace(0, Tf, 10, endpoint=True) + sys = ct.ss2io(ct.ss([[1, 1], [0, 1]], [[1], [0.5]], np.eye(2), 0, 1)) + + # State and input constraints + constraints = [ + (sp.optimize.LinearConstraint, np.eye(3), [-5, -5, -1], [5, 5, 1]), + ] + + # Quadratic state and input penalty + Q = [[1, 0], [0, 1]] + R = [[1]] + cost = opt.quadratic_cost(sys, Q, R) # Set up the optimal control problem - res = opt.solve_ocp( - vehicle, horizon, x0, cost, - constraints, - terminal_constraints=terminal, - initial_guess=near_optimal, - basis=flat.BezierFamily(4, T=Tf), - minimize_method='trust-constr', minimize_options={'disp': True}, - # minimize_method='SLSQP', minimize_options={'eps': 0.01}, - solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, - return_states=True - ) - t, u, x = res.time, res.inputs, res.states - - # Make sure we found a valid solution + time = np.arange(0, 5, 1) + x0 = [4, 0] + + # Basic optimal control problem + res = opt.solve_ocp(sys, time, x0, cost, constraints, return_x=True) assert res.success - np.testing.assert_almost_equal(x[:, -1], xf, decimal=4) + + # Make sure the constraints were satisfied + np.testing.assert_array_less(np.abs(res.states[0]), 5 + 1e-6) + np.testing.assert_array_less(np.abs(res.states[1]), 5 + 1e-6) + np.testing.assert_array_less(np.abs(res.inputs[0]), 1 + 1e-6) diff --git a/examples/steering-optimal.py b/examples/steering-optimal.py index 3bd14d711..df76ea1ad 100644 --- a/examples/steering-optimal.py +++ b/examples/steering-optimal.py @@ -34,8 +34,8 @@ def vehicle_update(t, x, u, params): l = params.get('wheelbase', 3.) # vehicle wheelbase phimax = params.get('maxsteer', 0.5) # max steering angle (rad) - # Saturate the steering input - phi = np.clip(u[1], -phimax, phimax) + # Saturate the steering input (use min/max instead of clip for speed) + phi = max(-phimax, min(u[1], phimax)) # Return the derivative of the state return np.array([ @@ -127,9 +127,17 @@ def plot_results(t, y, u, figure=None, yf=None): result1 = opt.solve_ocp( vehicle, horizon, x0, quad_cost, initial_guess=bend_left, log=True, # solve_ivp_kwargs={'atol': 1e-2, 'rtol': 1e-2}, - minimize_options={'eps': 0.01}) + # solve_ivp_kwargs={'method': 'RK23', 'atol': 1e-2, 'rtol': 1e-2}, + minimize_method='trust-constr', + minimize_options={'finite_diff_rel_step': 0.01}, + # minimize_options={'eps': 0.01} +) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) +# If we are running CI tests, make sure we succeeded +if 'PYCONTROL_TEST_EXAMPLES' in os.environ: + assert result1.success + # Extract and plot the results (+ state trajectory) t1, u1 = result1.time, result1.inputs t1, y1 = ct.input_output_response(vehicle, horizon, u1, x0) @@ -167,6 +175,10 @@ def plot_results(t, y, u, figure=None, yf=None): minimize_method='SLSQP', minimize_options={'eps': 0.01}) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) +# If we are running CI tests, make sure we succeeded +if 'PYCONTROL_TEST_EXAMPLES' in os.environ: + assert result2.success + # Extract and plot the results (+ state trajectory) t2, u2 = result2.time, result2.inputs t2, y2 = ct.input_output_response(vehicle, horizon, u2, x0) @@ -189,18 +201,24 @@ def plot_results(t, y, u, figure=None, yf=None): terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] # Reset logging to its default values -logging.basicConfig(level=logging.WARN, force=True) +logging.basicConfig( + level=logging.DEBUG, filename="./steering-terminal_constraint.log", + filemode='w', force=True) # Compute the optimal control start_time = time.process_time() result3 = opt.solve_ocp( vehicle, horizon, x0, cost3, constraints, - terminal_constraints=terminal, initial_guess=u2, log=False, + terminal_constraints=terminal, initial_guess=u2, log=True, # solve_ivp_kwargs={'atol': 1e-3, 'rtol': 1e-2}, - solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + solve_ivp_kwargs={'method': 'RK23', 'atol': 1e-4, 'rtol': 1e-2}, minimize_options={'eps': 0.01}) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) +# If we are running CI tests, make sure we succeeded +if 'PYCONTROL_TEST_EXAMPLES' in os.environ: + assert result3.success + # Extract and plot the results (+ state trajectory) t3, u3 = result3.time, result3.inputs t3, y3 = ct.input_output_response(vehicle, horizon, u3, x0) @@ -225,16 +243,21 @@ def plot_results(t, y, u, figure=None, yf=None): terminal_constraints=terminal, initial_guess=u3, basis=flat.BezierFamily(4, T=Tf), + solve_ivp_kwargs={'method': 'RK45', 'atol': 1e-2, 'rtol': 1e-2}, minimize_method='trust-constr', minimize_options={'disp': True}, # method='SLSQP', options={'eps': 0.01} - solve_ivp_kwargs={'atol': 1e-2, 'rtol': 1e-2}, ) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) +# If we are running CI tests, make sure we succeeded +if 'PYCONTROL_TEST_EXAMPLES' in os.environ: + assert result4.success + # Extract and plot the results (+ state trajectory) t4, u4 = result4.time, result4.inputs t4, y4 = ct.input_output_response(vehicle, horizon, u4, x0) plot_results(t4, y4, u4, figure=4, yf=xf[0:2]) +# If we are not running CI tests, display the results if 'PYCONTROL_TEST_EXAMPLES' not in os.environ: plt.show() From d735f794701a1eb5bab4230073eb4ce81ff55160 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 27 Feb 2021 22:45:32 -0800 Subject: [PATCH 210/260] add unit tests for additional coverage --- control/tests/optimal_test.py | 33 +++++++++++++++++++++++++++------ examples/steering-optimal.py | 11 ++++++----- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/control/tests/optimal_test.py b/control/tests/optimal_test.py index fc0ff79d7..d4b3fd6ef 100644 --- a/control/tests/optimal_test.py +++ b/control/tests/optimal_test.py @@ -15,6 +15,7 @@ from control.tests.conftest import slycotonly from numpy.lib import NumpyVersion + def test_finite_horizon_simple(): # Define a linear system with constraints # Source: https://www.mpt3.org/UI/RegulationProblem @@ -108,6 +109,7 @@ def test_discrete_lqr(): # Make sure we got a different solution assert np.any(np.abs(res1.inputs - res2.inputs) > 0.1) + def test_mpc_iosystem(): # model of an aircraft discretized with 0.2s sampling time # Source: https://www.mpt3.org/UI/RegulationProblem @@ -212,6 +214,7 @@ def test_constraint_specification(constraint_list): np.testing.assert_almost_equal( u_openloop, [-1, -1, 0.1393, 0.3361, -5.204e-16], decimal=3) + @pytest.mark.parametrize("sys_args", [ pytest.param( ([[1, 0], [0, 1]], np.eye(2), np.eye(2), 0, True), @@ -319,6 +322,7 @@ def test_terminal_constraints(sys_args): res = optctrl.compute_trajectory(x0, squeeze=True, return_x=True) assert not res.success + def test_optimal_logging(capsys): """Test logging functions (mainly for code coverage)""" sys = ct.ss2io(ct.ss(np.eye(2), np.eye(2), np.eye(2), 0, 1)) @@ -435,14 +439,31 @@ def test_optimal_basis_simple(): cost = opt.quadratic_cost(sys, Q, R) # Set up the optimal control problem - time = np.arange(0, 5, 1) + Tf = 5 + time = np.arange(0, Tf, 1) x0 = [4, 0] # Basic optimal control problem - res = opt.solve_ocp(sys, time, x0, cost, constraints, return_x=True) - assert res.success + res1 = opt.solve_ocp( + sys, time, x0, cost, constraints, + basis=flat.BezierFamily(4, Tf), return_x=True) + assert res1.success # Make sure the constraints were satisfied - np.testing.assert_array_less(np.abs(res.states[0]), 5 + 1e-6) - np.testing.assert_array_less(np.abs(res.states[1]), 5 + 1e-6) - np.testing.assert_array_less(np.abs(res.inputs[0]), 1 + 1e-6) + np.testing.assert_array_less(np.abs(res1.states[0]), 5 + 1e-6) + np.testing.assert_array_less(np.abs(res1.states[1]), 5 + 1e-6) + np.testing.assert_array_less(np.abs(res1.inputs[0]), 1 + 1e-6) + + # Pass an initial guess and rerun + res2 = opt.solve_ocp( + sys, time, x0, cost, constraints, initial_guess=0.99*res1.inputs, + basis=flat.BezierFamily(4, Tf), return_x=True) + assert res2.success + np.testing.assert_almost_equal(res2.inputs, res1.inputs, decimal=3) + + # Run with logging turned on for code coverage + res3 = opt.solve_ocp( + sys, time, x0, cost, constraints, + basis=flat.BezierFamily(4, Tf), return_x=True, log=True) + assert res3.success + np.testing.assert_almost_equal(res3.inputs, res1.inputs, decimal=3) diff --git a/examples/steering-optimal.py b/examples/steering-optimal.py index df76ea1ad..2fc7f4cc2 100644 --- a/examples/steering-optimal.py +++ b/examples/steering-optimal.py @@ -107,8 +107,8 @@ def plot_results(t, y, u, figure=None, yf=None): print("Approach 1: standard quadratic cost") # Set up the cost functions -Q = np.diag([.1, 10, .1]) # keep lateral error low -R = np.diag([.1, 1]) # minimize applied inputs +Q = np.diag([.1, 10, .1]) # keep lateral error low +R = np.diag([.1, 1]) # minimize applied inputs quad_cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) # Define the time horizon (and spacing) for the optimization @@ -209,9 +209,9 @@ def plot_results(t, y, u, figure=None, yf=None): start_time = time.process_time() result3 = opt.solve_ocp( vehicle, horizon, x0, cost3, constraints, - terminal_constraints=terminal, initial_guess=u2, log=True, - # solve_ivp_kwargs={'atol': 1e-3, 'rtol': 1e-2}, - solve_ivp_kwargs={'method': 'RK23', 'atol': 1e-4, 'rtol': 1e-2}, + terminal_constraints=terminal, initial_guess=u2, log=False, + solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + # solve_ivp_kwargs={'method': 'RK23', 'atol': 1e-4, 'rtol': 1e-2}, minimize_options={'eps': 0.01}) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) @@ -246,6 +246,7 @@ def plot_results(t, y, u, figure=None, yf=None): solve_ivp_kwargs={'method': 'RK45', 'atol': 1e-2, 'rtol': 1e-2}, minimize_method='trust-constr', minimize_options={'disp': True}, # method='SLSQP', options={'eps': 0.01} + log=True ) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) From 5838c2fa2da69cab46935d03a801be3ca63275d3 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 27 Feb 2021 23:17:42 -0800 Subject: [PATCH 211/260] clean up steering-optimal example --- examples/steering-optimal.py | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/examples/steering-optimal.py b/examples/steering-optimal.py index 2fc7f4cc2..f6dfe8ac9 100644 --- a/examples/steering-optimal.py +++ b/examples/steering-optimal.py @@ -101,9 +101,6 @@ def plot_results(t, y, u, figure=None, yf=None): # distance form the desired final point while at the same time as not # exerting too much control effort to achieve our goal. # -# Note: depending on what version of SciPy you are using, you might get a -# warning message about precision loss, but the solution is pretty good. -# print("Approach 1: standard quadratic cost") # Set up the cost functions @@ -126,11 +123,8 @@ def plot_results(t, y, u, figure=None, yf=None): start_time = time.process_time() result1 = opt.solve_ocp( vehicle, horizon, x0, quad_cost, initial_guess=bend_left, log=True, - # solve_ivp_kwargs={'atol': 1e-2, 'rtol': 1e-2}, - # solve_ivp_kwargs={'method': 'RK23', 'atol': 1e-2, 'rtol': 1e-2}, minimize_method='trust-constr', minimize_options={'finite_diff_rel_step': 0.01}, - # minimize_options={'eps': 0.01} ) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) @@ -171,7 +165,6 @@ def plot_results(t, y, u, figure=None, yf=None): result2 = opt.solve_ocp( vehicle, horizon, x0, traj_cost, constraints, terminal_cost=term_cost, initial_guess=bend_left, log=True, - # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, minimize_method='SLSQP', minimize_options={'eps': 0.01}) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) @@ -191,13 +184,13 @@ def plot_results(t, y, u, figure=None, yf=None): # with a terminal *constraint* on the state. If a solution is found, # it guarantees we get to exactly the final state. # -# To speeds things up a bit, we initalize the problem using the previous -# optimal controller (which didn't quite hit the final value). -# print("Approach 3: terminal constraints") # Input cost and terminal constraints +R = np.diag([1, 1]) # minimize applied inputs cost3 = opt.quadratic_cost(vehicle, np.zeros((3,3)), R, u0=uf) +constraints = [ + opt.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] # Reset logging to its default values @@ -209,10 +202,10 @@ def plot_results(t, y, u, figure=None, yf=None): start_time = time.process_time() result3 = opt.solve_ocp( vehicle, horizon, x0, cost3, constraints, - terminal_constraints=terminal, initial_guess=u2, log=False, - solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, - # solve_ivp_kwargs={'method': 'RK23', 'atol': 1e-4, 'rtol': 1e-2}, - minimize_options={'eps': 0.01}) + terminal_constraints=terminal, initial_guess=bend_left, log=False, + solve_ivp_kwargs={'atol': 1e-3, 'rtol': 1e-2}, + minimize_method='trust-constr', +) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) # If we are running CI tests, make sure we succeeded @@ -241,12 +234,12 @@ def plot_results(t, y, u, figure=None, yf=None): vehicle, horizon, x0, quad_cost, constraints, terminal_constraints=terminal, - initial_guess=u3, + initial_guess=bend_left, basis=flat.BezierFamily(4, T=Tf), - solve_ivp_kwargs={'method': 'RK45', 'atol': 1e-2, 'rtol': 1e-2}, + # solve_ivp_kwargs={'method': 'RK45', 'atol': 1e-2, 'rtol': 1e-2}, + solve_ivp_kwargs={'atol': 1e-3, 'rtol': 1e-2}, minimize_method='trust-constr', minimize_options={'disp': True}, - # method='SLSQP', options={'eps': 0.01} - log=True + log=False ) print("* Total time = %5g seconds\n" % (time.process_time() - start_time)) From c49ee9038e2e2d94f9d1b4937dba5c901687e7ff Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 28 Feb 2021 21:26:43 -0800 Subject: [PATCH 212/260] updated benchmarks + performance tweaks --- benchmarks/optimal_bench.py | 96 +++++++++++++++++++----------------- control/flatsys/bezier.py | 8 +-- control/iosys.py | 26 ++++++++-- examples/steering-optimal.py | 3 +- 4 files changed, 79 insertions(+), 54 deletions(-) diff --git a/benchmarks/optimal_bench.py b/benchmarks/optimal_bench.py index 329066579..4b34ef04d 100644 --- a/benchmarks/optimal_bench.py +++ b/benchmarks/optimal_bench.py @@ -15,21 +15,7 @@ import time import os -# # Vehicle steering dynamics -# -# The vehicle dynamics are given by a simple bicycle model. We take the state -# of the system as (x, y, theta) where (x, y) is the position of the vehicle -# in the plane and theta is the angle of the vehicle with respect to -# horizontal. The vehicle input is given by (v, phi) where v is the forward -# velocity of the vehicle and phi is the angle of the steering wheel. The -# model includes saturation of the vehicle steering angle. -# -# System state: x, y, theta -# System input: v, phi -# System output: x, y -# System parameters: wheelbase, maxsteer -# def vehicle_update(t, x, u, params): # Get the parameters for the model l = params.get('wheelbase', 3.) # vehicle wheelbase @@ -45,7 +31,6 @@ def vehicle_update(t, x, u, params): (u[0] / l) * math.tan(phi) # thdot = v/l tan(phi) ]) - def vehicle_output(t, x, u, params): return x # return x, y, theta (full state) @@ -53,6 +38,7 @@ def vehicle_output(t, x, u, params): vehicle_update, vehicle_output, states=3, name='vehicle', inputs=('v', 'phi'), outputs=('x', 'y', 'theta')) +# Initial and final conditions x0 = [0., -2., 0.]; u0 = [10., 0.] xf = [100., 2., 0.]; uf = [10., 0.] Tf = 10 @@ -63,7 +49,7 @@ def vehicle_output(t, x, u, params): # Provide an intial guess (will be extended to entire horizon) bend_left = [10, 0.01] # slight left veer -def time_integrated_cost(): +def time_steering_integrated_cost(): # Set up the cost functions Q = np.diag([.1, 10, .1]) # keep lateral error low R = np.diag([.1, 1]) # minimize applied inputs @@ -81,7 +67,7 @@ def time_integrated_cost(): # Only count this as a benchmark if we converged assert res.success -def time_terminal_cost(): +def time_steering_terminal_cost(): # Define cost and constraints traj_cost = opt.quadratic_cost( vehicle, None, np.diag([0.1, 1]), u0=uf) @@ -93,14 +79,35 @@ def time_terminal_cost(): res = opt.solve_ocp( vehicle, horizon, x0, traj_cost, constraints, terminal_cost=term_cost, initial_guess=bend_left, print_summary=False, - # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, - minimize_method='SLSQP', minimize_options={'eps': 0.01} + solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + # minimize_method='SLSQP', minimize_options={'eps': 0.01} + minimize_method='trust-constr', + minimize_options={'finite_diff_rel_step': 0.01}, ) - # Only count this as a benchmark if we converged assert res.success -def time_terminal_constraint(): +# Define integrator and minimizer methods and options/keywords +integrator_table = { + 'RK23_default': ('RK23', {'atol': 1e-4, 'rtol': 1e-2}), + 'RK23_sloppy': ('RK23', {}), + 'RK45_default': ('RK45', {}), + 'RK45_sloppy': ('RK45', {'atol': 1e-4, 'rtol': 1e-2}), +} + +minimizer_table = { + 'trust_default': ('trust-constr', {}), + 'trust_bigstep': ('trust-constr', {'finite_diff_rel_step': 0.01}), + 'SLSQP_default': ('SLSQP', {}), + 'SLSQP_bigstep': ('SLSQP', {'eps': 0.01}), +} + + +def time_steering_terminal_constraint(integrator_name, minimizer_name): + # Get the integrator and minimizer parameters to use + integrator = integrator_table[integrator_name] + minimizer = minimizer_table[minimizer_name] + # Input cost and terminal constraints R = np.diag([1, 1]) # minimize applied inputs cost = opt.quadratic_cost(vehicle, np.zeros((3,3)), R, u0=uf) @@ -111,58 +118,59 @@ def time_terminal_constraint(): res = opt.solve_ocp( vehicle, horizon, x0, cost, constraints, terminal_constraints=terminal, initial_guess=bend_left, log=False, - solve_ivp_kwargs={'atol': 1e-3, 'rtol': 1e-2}, - # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, - minimize_method='trust-constr', - # minimize_method='SLSQP', minimize_options={'eps': 0.01} + solve_ivp_method=integrator[0], solve_ivp_kwargs=integrator[1], + minimize_method=minimizer[0], minimize_options=minimizer[1], ) - # Only count this as a benchmark if we converged assert res.success # Reset the timeout value to allow for longer runs -time_terminal_constraint.timeout = 120 +time_steering_terminal_constraint.timeout = 120 + +# Parameterize the test against different choices of integrator and minimizer +time_steering_terminal_constraint.param_names = ['integrator', 'minimizer'] +time_steering_terminal_constraint.params = ( + ['RK23_default', 'RK23_sloppy', 'RK45_default', 'RK45_sloppy'], + ['trust_default', 'trust_bigstep', 'SLSQP_default', 'SLSQP_bigstep'] +) -def time_optimal_basis_vehicle(): +def time_steering_bezier_basis(nbasis, ntimes): # Set up costs and constriants Q = np.diag([.1, 10, .1]) # keep lateral error low R = np.diag([1, 1]) # minimize applied inputs cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) constraints = [ opt.input_range_constraint(vehicle, [0, -0.1], [20, 0.1]) ] terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] - bend_left = [10, 0.05] # slight left veer - near_optimal = [ - [ 1.15073736e+01, 1.16838616e+01, 1.15413395e+01, - 1.11585544e+01, 1.06142537e+01, 9.98718468e+00, - 9.35609454e+00, 8.79973057e+00, 8.39684004e+00, - 8.22617023e+00], - [ -9.99830506e-02, 8.98139594e-03, 5.26385615e-02, - 4.96635954e-02, 1.87316470e-02, -2.14821345e-02, - -5.23025996e-02, -5.50545990e-02, -1.10629834e-02, - 9.83473965e-02] ] # Set up horizon - horizon = np.linspace(0, Tf, 10, endpoint=True) + horizon = np.linspace(0, Tf, ntimes, endpoint=True) # Set up the optimal control problem res = opt.solve_ocp( vehicle, horizon, x0, cost, constraints, terminal_constraints=terminal, - initial_guess=near_optimal, - basis=flat.BezierFamily(4, T=Tf), + initial_guess=bend_left, + basis=flat.BezierFamily(nbasis, T=Tf), + # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, minimize_method='trust-constr', + minimize_options={'finite_diff_rel_step': 0.01}, # minimize_method='SLSQP', minimize_options={'eps': 0.01}, - solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, return_states=True, print_summary=False ) t, u, x = res.time, res.inputs, res.states # Make sure we found a valid solution assert res.success - np.testing.assert_almost_equal(x[:, -1], xf, decimal=4) -def time_mpc_iosystem(): +# Reset the timeout value to allow for longer runs +time_steering_bezier_basis.timeout = 120 + +# Set the parameter values for the number of times and basis vectors +time_steering_bezier_basis.param_names = ['nbasis', 'ntimes'] +time_steering_bezier_basis.params = ([2, 4, 6], [5, 10, 20]) + +def time_aircraft_mpc(): # model of an aircraft discretized with 0.2s sampling time # Source: https://www.mpt3.org/UI/RegulationProblem A = [[0.99, 0.01, 0.18, -0.09, 0], diff --git a/control/flatsys/bezier.py b/control/flatsys/bezier.py index 8cb303312..1eb7a549f 100644 --- a/control/flatsys/bezier.py +++ b/control/flatsys/bezier.py @@ -15,16 +15,16 @@ # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. -# +# # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. -# +# # 3. Neither the name of the California Institute of Technology nor # the names of its contributors may be used to endorse or promote # products derived from this software without specific prior # written permission. -# +# # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS @@ -48,7 +48,7 @@ class BezierFamily(BasisFamily): This class represents the family of polynomials of the form .. math:: - \phi_i(t) = \sum_{i=0}^n {n \choose i} (T - t)^{n-i} t^i + \phi_i(t) = \sum_{i=0}^n {n \choose i} (T - t)^{n-i} t^i """ def __init__(self, N, T=1): diff --git a/control/iosys.py b/control/iosys.py index e75108e33..7ed4c8b05 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -1522,9 +1522,27 @@ def input_output_response( # Update the parameter values sys._update_params(params) + # + # Define a function to evaluate the input at an arbitrary time + # + # This is equivalent to the function + # + # ufun = sp.interpolate.interp1d(T, U, fill_value='extrapolate') + # + # but has a lot less overhead => simulation runs much faster + def ufun(t): + # Find the value of the index using linear interpolation + idx = np.searchsorted(T, t, side='left') + if idx == 0: + # For consistency in return type, multiple by a float + return U[..., 0] * 1. + else: + dt = (t - T[idx-1]) / (T[idx] - T[idx-1]) + return U[..., idx-1] * (1. - dt) + U[..., idx] * dt + # Create a lambda function for the right hand side - u = sp.interpolate.interp1d(T, U, fill_value="extrapolate") - def ivp_rhs(t, x): return sys._rhs(t, x, u(t)) + def ivp_rhs(t, x): + return sys._rhs(t, x, ufun(t)) # Perform the simulation if isctime(sys): @@ -1574,10 +1592,10 @@ def ivp_rhs(t, x): return sys._rhs(t, x, u(t)) for i in range(len(T)): # Store the current state and output soln.y.append(x) - y.append(sys._out(T[i], x, u(T[i]))) + y.append(sys._out(T[i], x, ufun(T[i]))) # Update the state for the next iteration - x = sys._rhs(T[i], x, u(T[i])) + x = sys._rhs(T[i], x, ufun(T[i])) # Convert output to numpy arrays soln.y = np.transpose(np.array(soln.y)) diff --git a/examples/steering-optimal.py b/examples/steering-optimal.py index f6dfe8ac9..5661e0f38 100644 --- a/examples/steering-optimal.py +++ b/examples/steering-optimal.py @@ -145,8 +145,7 @@ def plot_results(t, y, u, figure=None, yf=None): # inputs). Instead, we can penalize the final state and impose a higher # cost on the inputs, resuling in a more graduate lane change. # -# We also set the solver explicitly (its actually the default one, but shows -# how to do this). +# We also set the solver explicitly. # print("Approach 2: input cost and constraints plus terminal cost") From 178af364be409969ba5760c62159d40e6dc6490d Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Tue, 2 Mar 2021 08:27:33 -0800 Subject: [PATCH 213/260] add missing derivs for Bezier basis --- control/flatsys/bezier.py | 26 ++++++++++++++++------- control/tests/flatsys_test.py | 39 +++++++++++++++++++++++++++++++---- 2 files changed, 54 insertions(+), 11 deletions(-) diff --git a/control/flatsys/bezier.py b/control/flatsys/bezier.py index 1eb7a549f..67b16aa4f 100644 --- a/control/flatsys/bezier.py +++ b/control/flatsys/bezier.py @@ -39,7 +39,7 @@ # SUCH DAMAGE. import numpy as np -from scipy.special import binom +from scipy.special import binom, factorial from .basis import BasisFamily class BezierFamily(BasisFamily): @@ -59,11 +59,23 @@ def __init__(self, N, T=1): # Compute the kth derivative of the ith basis function at time t def eval_deriv(self, i, k, t): """Evaluate the kth derivative of the ith basis function at time t.""" - if k > 0: - raise NotImplementedError("Bezier derivatives not yet available") - elif i > self.N: + if i >= self.N: raise ValueError("Basis function index too high") + elif k >= self.N: + # Higher order derivatives are zero + return np.zeros(t.shape) - # Return the Bezier basis function (note N = # basis functions) - return binom(self.N - 1, i) * \ - (t/self.T)**i * (1 - t/self.T)**(self.N - i - 1) + # Compute the variables used in Bezier curve formulas + n = self.N - 1 + u = t/self.T + + if k == 0: + # No derivative => avoid expansion for speed + return binom(n, i) * u**i * (1-u)**(n-i) + + # Return the kth derivative of the ith Bezier basis function + return binom(n, i) * sum([ + (-1)**(j-i) * + binom(n-i, j-i) * factorial(j)/factorial(j-k) * np.power(u, j-k) + for j in range(max(i, k), n+1) + ]) diff --git a/control/tests/flatsys_test.py b/control/tests/flatsys_test.py index 0239d9455..cdd86fea9 100644 --- a/control/tests/flatsys_test.py +++ b/control/tests/flatsys_test.py @@ -51,7 +51,8 @@ def test_double_integrator(self, xf, uf, Tf): t, y, x = ct.forced_response(sys, T, ud, x1, return_x=True) np.testing.assert_array_almost_equal(x, xd, decimal=3) - def test_kinematic_car(self): + @pytest.mark.parametrize("poly", [fs.PolyFamily(6), fs.BezierFamily(6)]) + def test_kinematic_car(self, poly): """Differential flatness for a kinematic car""" def vehicle_flat_forward(x, u, params={}): b = params.get('wheelbase', 3.) # get parameter values @@ -98,9 +99,6 @@ def vehicle_output(t, x, u, params): return x xf = [100., 2., 0.]; uf = [10., 0.] Tf = 10 - # Define a set of basis functions to use for the trajectories - poly = fs.PolyFamily(6) - # Find trajectory between initial and final conditions traj = fs.point_to_point(vehicle_flat, x0, u0, xf, uf, Tf, basis=poly) @@ -121,3 +119,36 @@ def vehicle_output(t, x, u, params): return x vehicle_flat, T, ud, x0, return_x=True) np.testing.assert_allclose(x, xd, atol=0.01, rtol=0.01) + def test_bezier_basis(self): + bezier = fs.BezierFamily(4) + time = np.linspace(0, 1, 100) + + # Sum of the Bezier curves should be one + np.testing.assert_almost_equal( + 1, sum([bezier(i, time) for i in range(4)])) + + # Sum of derivatives should be zero + for k in range(1, 5): + np.testing.assert_almost_equal( + 0, sum([bezier.eval_deriv(i, k, time) for i in range(4)])) + + # Compare derivatives to formulas + np.testing.assert_almost_equal( + bezier.eval_deriv(1, 0, time), 3 * time - 6 * time**2 + 3 * time**3) + np.testing.assert_almost_equal( + bezier.eval_deriv(1, 1, time), 3 - 12 * time + 9 * time**2) + np.testing.assert_almost_equal( + bezier.eval_deriv(1, 2, time), -12 + 18 * time) + + # Make sure that the second derivative integrates to the first + time = np.linspace(0, 1, 1000) + dt = np.diff(time) + for i in range(4): + for j in (2, 3, 4): + np.testing.assert_almost_equal( + np.diff(bezier.eval_deriv(i, j-1, time)) / dt, + bezier.eval_deriv(i, j, time)[0:-1], decimal=2) + + # Exception check + with pytest.raises(ValueError, match="index too high"): + bezier.eval_deriv(4, 0, time) From 9c87a5bdea1d1089db81ad51bc8815a94aa5517a Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 4 Mar 2021 10:20:07 -0800 Subject: [PATCH 214/260] fixed bug in calculation of pct overshoot that neglects not strictly proper transfer functions. --- control/tests/sisotool_test.py | 12 ++++-------- control/tests/timeresp_test.py | 2 +- control/timeresp.py | 4 ++-- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index c626b8add..b4478f678 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -67,12 +67,9 @@ def test_sisotool(self, sys): initial_point_2, 4) # Check the step response before moving the point - # new array needed because change in compute step response default time step_response_original = np.array( - [0. , 0.0069, 0.0448, 0.124 , 0.2427, 0.3933, 0.5653, 0.7473, - 0.928 , 1.0969]) - #old: np.array([0., 0.0217, 0.1281, 0.3237, 0.5797, 0.8566, 1.116, - # 1.3261, 1.4659, 1.526]) + [0. , 0.0366, 0.2032, 0.4857, 0.82 , 1.1358, 1.3762, 1.507 , + 1.5206, 1.4326]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_original, 4) @@ -115,10 +112,9 @@ def test_sisotool(self, sys): bode_mag_moved, 4) # Check if the step response has changed - # new array needed because change in compute step response default time step_response_moved = np.array( - [0., 0.0072, 0.0516, 0.1554, 0.3281, 0.5681, 0.8646, 1.1987, - 1.5452, 1.875]) + [0. , 0.0415, 0.2687, 0.7248, 1.3367, 1.9505, 2.3765, 2.4469, + 2.0738, 1.2926]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_moved, 4) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 751cd35b0..1436977c7 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -522,7 +522,7 @@ def test_step_robustness(self): @pytest.mark.parametrize( "tfsys, tfinal", - [(TransferFunction(1, [1, .5]), 9.21034), # pole at 0.5 + [(TransferFunction(1, [1, .5]), 17.034386), # pole at 0.5 (TransferFunction(1, [1, .5]).sample(.1), 25), # discrete pole at 0.5 (TransferFunction(1, [1, .5, 0]), 25)]) # poles at 0.5 and 0 def test_auto_generated_time_vector_tfinal(self, tfsys, tfinal): diff --git a/control/timeresp.py b/control/timeresp.py index 9ccf24bf3..774fa489b 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -814,7 +814,7 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, 'SettlingTime': SettlingTime, 'SettlingMin': yout[tr_upper_index:].min(), 'SettlingMax': yout.max(), - 'Overshoot': 100. * (yout.max() - InfValue) / (InfValue - yout[0]), + 'Overshoot': 100. * (yout.max() - InfValue) / InfValue, 'Undershoot': yout.min(), # not very confident about this 'Peak': yout[PeakIndex], 'PeakTime': T[PeakIndex], @@ -1124,7 +1124,7 @@ def _ideal_tfinal_and_dt(sys, is_step=True): default_dt = 0.1 total_cycles = 5 # number of cycles for oscillating modes pts_per_cycle = 25 # Number of points divide a period of oscillation - log_decay_percent = np.log(100) # Factor of reduction for real pole decays + log_decay_percent = np.log(5000) # Factor of reduction for real pole decays if sys._isstatic(): tfinal = default_tfinal From b36d0532f147c07a9e6d3bc7bb6a5978f83021ba Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 4 Mar 2021 11:22:53 -0800 Subject: [PATCH 215/260] slight adjustment of decay time in step response --- control/tests/sisotool_test.py | 8 ++++---- control/tests/timeresp_test.py | 6 +++++- control/timeresp.py | 4 ++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index b4478f678..6df2493cb 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -68,8 +68,8 @@ def test_sisotool(self, sys): # Check the step response before moving the point step_response_original = np.array( - [0. , 0.0366, 0.2032, 0.4857, 0.82 , 1.1358, 1.3762, 1.507 , - 1.5206, 1.4326]) + [0. , 0.021 , 0.124 , 0.3146, 0.5653, 0.8385, 1.0969, 1.3095, + 1.4549, 1.5231]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_original, 4) @@ -113,8 +113,8 @@ def test_sisotool(self, sys): # Check if the step response has changed step_response_moved = np.array( - [0. , 0.0415, 0.2687, 0.7248, 1.3367, 1.9505, 2.3765, 2.4469, - 2.0738, 1.2926]) + [0. , 0.023 , 0.1554, 0.4401, 0.8646, 1.3722, 1.875 , 2.2709, + 2.4633, 2.3827]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_moved, 4) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 1436977c7..37fcff763 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -310,6 +310,10 @@ def test_step_pole_cancellation(self, pole_cancellation, step_info_no_cancellation = step_info(no_pole_cancellation) step_info_cancellation = step_info(pole_cancellation) for key in step_info_no_cancellation: + if key == 'Overshoot': + # skip this test because these systems have no overshoot + # => very sensitive to parameters + continue np.testing.assert_allclose(step_info_no_cancellation[key], step_info_cancellation[key], rtol=1e-4) @@ -522,7 +526,7 @@ def test_step_robustness(self): @pytest.mark.parametrize( "tfsys, tfinal", - [(TransferFunction(1, [1, .5]), 17.034386), # pole at 0.5 + [(TransferFunction(1, [1, .5]), 13.81551), # pole at 0.5 (TransferFunction(1, [1, .5]).sample(.1), 25), # discrete pole at 0.5 (TransferFunction(1, [1, .5, 0]), 25)]) # poles at 0.5 and 0 def test_auto_generated_time_vector_tfinal(self, tfsys, tfinal): diff --git a/control/timeresp.py b/control/timeresp.py index 774fa489b..3df225de9 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -792,7 +792,7 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, T, yout = step_response(sys, T) # Steady state value - InfValue = yout[-1] + InfValue = sys.dcgain() # RiseTime tr_lower_index = (np.where(yout >= RiseTimeLimits[0] * InfValue)[0])[0] @@ -1124,7 +1124,7 @@ def _ideal_tfinal_and_dt(sys, is_step=True): default_dt = 0.1 total_cycles = 5 # number of cycles for oscillating modes pts_per_cycle = 25 # Number of points divide a period of oscillation - log_decay_percent = np.log(5000) # Factor of reduction for real pole decays + log_decay_percent = np.log(1000) # Factor of reduction for real pole decays if sys._isstatic(): tfinal = default_tfinal From be36db44e280793b30195646c678e26a31578fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=94=20jed?= <223258+dapperfu@users.noreply.github.com> Date: Thu, 4 Mar 2021 17:56:58 -0500 Subject: [PATCH 216/260] Matched plurality in the documentation. Code variable and 'return's documentation both indicate multiple poles can be returned. --- control/pzmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/pzmap.py b/control/pzmap.py index a7752e484..d1323e103 100644 --- a/control/pzmap.py +++ b/control/pzmap.py @@ -74,7 +74,7 @@ def pzmap(sys, plot=None, grid=None, title='Pole Zero Map', **kwargs): Returns ------- - pole: array + poles: array The systems poles zeros: array The system's zeros. From 8a9ab951d589b169f916d4527be906f2d8858804 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 6 Mar 2021 17:37:32 -0800 Subject: [PATCH 217/260] initial implementation of optimization for flatsystems This commit allows a cost function and constraints to be passed to the flatsys point_to_point() function and when present will use sp.optimize to find a trajectory. Preliminary unit tests, benchmarks, docstrings and documentation also in place. Switched the order of arguments in point_to_point() so that Tf (or timepts) now comes before the initial and final states, consistent with ordering elsewhere in the package. Make some small updates to optimal.py docstrings and argument names to make things consistent with flatsys. --- .gitignore | 3 + benchmarks/flatsys_bench.py | 142 ++++++++++++++++ benchmarks/optimal_bench.py | 6 +- control/flatsys/flatsys.py | 187 ++++++++++++++++++--- control/optimal.py | 56 +++---- control/tests/flatsys_test.py | 40 ++++- doc/flatsys.rst | 15 +- examples/kincar-flatsys.py | 78 +++++---- examples/steering.ipynb | 297 ++++++++++++++++------------------ 9 files changed, 568 insertions(+), 256 deletions(-) create mode 100644 benchmarks/flatsys_bench.py diff --git a/.gitignore b/.gitignore index b95f1730e..9f0a11c21 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,6 @@ TAGS # Files created by or for asv (airspeed velocity) .asv/ + +# Files created by Spyder +.spyproject/ diff --git a/benchmarks/flatsys_bench.py b/benchmarks/flatsys_bench.py new file mode 100644 index 000000000..63223a725 --- /dev/null +++ b/benchmarks/flatsys_bench.py @@ -0,0 +1,142 @@ +# flatsys_bench.py - benchmarks for flat systems package +# RMM, 2 Mar 2021 +# +# This benchmark tests the timing for the flat system module +# (control.flatsys) and is intended to be used for helping tune the +# performance of the functions used for optimization-based control. + +import numpy as np +import math +import control as ct +import control.flatsys as flat +import control.optimal as opt + +# Vehicle steering dynamics +def vehicle_update(t, x, u, params): + # Get the parameters for the model + l = params.get('wheelbase', 3.) # vehicle wheelbase + phimax = params.get('maxsteer', 0.5) # max steering angle (rad) + + # Saturate the steering input (use min/max instead of clip for speed) + phi = max(-phimax, min(u[1], phimax)) + + # Return the derivative of the state + return np.array([ + math.cos(x[2]) * u[0], # xdot = cos(theta) v + math.sin(x[2]) * u[0], # ydot = sin(theta) v + (u[0] / l) * math.tan(phi) # thdot = v/l tan(phi) + ]) + +def vehicle_output(t, x, u, params): + return x # return x, y, theta (full state) + +# Flatness structure +def vehicle_forward(x, u, params={}): + b = params.get('wheelbase', 3.) # get parameter values + zflag = [np.zeros(3), np.zeros(3)] # list for flag arrays + zflag[0][0] = x[0] # flat outputs + zflag[1][0] = x[1] + zflag[0][1] = u[0] * np.cos(x[2]) # first derivatives + zflag[1][1] = u[0] * np.sin(x[2]) + thdot = (u[0]/b) * np.tan(u[1]) # dtheta/dt + zflag[0][2] = -u[0] * thdot * np.sin(x[2]) # second derivatives + zflag[1][2] = u[0] * thdot * np.cos(x[2]) + return zflag + +def vehicle_reverse(zflag, params={}): + b = params.get('wheelbase', 3.) # get parameter values + x = np.zeros(3); u = np.zeros(2) # vectors to store x, u + x[0] = zflag[0][0] # x position + x[1] = zflag[1][0] # y position + x[2] = np.arctan2(zflag[1][1], zflag[0][1]) # angle + u[0] = zflag[0][1] * np.cos(x[2]) + zflag[1][1] * np.sin(x[2]) + thdot_v = zflag[1][2] * np.cos(x[2]) - zflag[0][2] * np.sin(x[2]) + u[1] = np.arctan2(thdot_v, u[0]**2 / b) + return x, u + +vehicle = flat.FlatSystem( + vehicle_forward, vehicle_reverse, vehicle_update, + vehicle_output, inputs=('v', 'delta'), outputs=('x', 'y', 'theta'), + states=('x', 'y', 'theta')) + +# Initial and final conditions +x0 = [0., -2., 0.]; u0 = [10., 0.] +xf = [100., 2., 0.]; uf = [10., 0.] +Tf = 10 + +# Define the time points where the cost/constraints will be evaluated +timepts = np.linspace(0, Tf, 10, endpoint=True) + +def time_steering_point_to_point(basis_name, basis_size): + if basis_name == 'poly': + basis = flat.PolyFamily(basis_size) + elif basis_name == 'bezier': + basis = flat.BezierFamily(basis_size) + + # Find trajectory between initial and final conditions + traj = flat.point_to_point(vehicle, Tf, x0, u0, xf, uf, basis=basis) + + # Verify that the trajectory computation is correct + x, u = traj.eval([0, Tf]) + np.testing.assert_array_almost_equal(x0, x[:, 0]) + np.testing.assert_array_almost_equal(u0, u[:, 0]) + np.testing.assert_array_almost_equal(xf, x[:, 1]) + np.testing.assert_array_almost_equal(uf, u[:, 1]) + +time_steering_point_to_point.params = (['poly', 'bezier'], [6, 8]) +time_steering_point_to_point.param_names = ["basis", "size"] + +def time_steering_cost(): + # Define cost and constraints + traj_cost = opt.quadratic_cost( + vehicle, None, np.diag([0.1, 1]), u0=uf) + constraints = [ + opt.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] + + traj = flat.point_to_point( + vehicle, timepts, x0, u0, xf, uf, cost=traj_cost + ) + + # Verify that the trajectory computation is correct + x, u = traj.eval([0, Tf]) + np.testing.assert_array_almost_equal(x0, x[:, 0]) + np.testing.assert_array_almost_equal(u0, u[:, 0]) + np.testing.assert_array_almost_equal(xf, x[:, 1]) + np.testing.assert_array_almost_equal(uf, u[:, 1]) + +def skip_steering_bezier_basis(nbasis, ntimes): + # Set up costs and constriants + Q = np.diag([.1, 10, .1]) # keep lateral error low + R = np.diag([1, 1]) # minimize applied inputs + cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) + constraints = [ opt.input_range_constraint(vehicle, [0, -0.1], [20, 0.1]) ] + terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] + + # Set up horizon + horizon = np.linspace(0, Tf, ntimes, endpoint=True) + + # Set up the optimal control problem + res = opt.solve_ocp( + vehicle, horizon, x0, cost, + constraints, + terminal_constraints=terminal, + initial_guess=bend_left, + basis=flat.BezierFamily(nbasis, T=Tf), + # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, + minimize_method='trust-constr', + minimize_options={'finite_diff_rel_step': 0.01}, + # minimize_method='SLSQP', minimize_options={'eps': 0.01}, + return_states=True, print_summary=False + ) + t, u, x = res.time, res.inputs, res.states + + # Make sure we found a valid solution + assert res.success + +# Reset the timeout value to allow for longer runs +skip_steering_bezier_basis.timeout = 120 + +# Set the parameter values for the number of times and basis vectors +skip_steering_bezier_basis.param_names = ['nbasis', 'ntimes'] +skip_steering_bezier_basis.params = ([2, 4, 6], [5, 10, 20]) + diff --git a/benchmarks/optimal_bench.py b/benchmarks/optimal_bench.py index 4b34ef04d..21cabef7e 100644 --- a/benchmarks/optimal_bench.py +++ b/benchmarks/optimal_bench.py @@ -1,5 +1,5 @@ # optimal_bench.py - benchmarks for optimal control package -# RMM, 27 Feb 2020 +# RMM, 27 Feb 2021 # # This benchmark tests the timing for the optimal control module # (control.optimal) and is intended to be used for helping tune the @@ -10,10 +10,6 @@ import control as ct import control.flatsys as flat import control.optimal as opt -import matplotlib.pyplot as plt -import logging -import time -import os # Vehicle steering dynamics def vehicle_update(t, x, u, params): diff --git a/control/flatsys/flatsys.py b/control/flatsys/flatsys.py index a5dec2950..b8400322a 100644 --- a/control/flatsys/flatsys.py +++ b/control/flatsys/flatsys.py @@ -38,7 +38,10 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. +import itertools import numpy as np +import scipy as sp +import scipy.optimize from .poly import PolyFamily from .systraj import SystemTrajectory from ..iosys import NonlinearIOSystem @@ -176,7 +179,7 @@ def forward(self, x, u, params={}): output and its first :math:`q_i` derivatives. """ - pass + raise NotImplementedError("internal error; forward method not defined") def reverse(self, zflag, params={}): """Compute the states and input given the flat flag. @@ -200,7 +203,7 @@ def reverse(self, zflag, params={}): The input to the system corresponding to the flat flag. """ - pass + raise NotImplementedError("internal error; reverse method not defined") def _flat_updfcn(self, t, x, u, params={}): # TODO: implement state space update using flat coordinates @@ -212,8 +215,10 @@ def _flat_outfcn(self, t, x, u, params={}): return np.array(zflag[:][0]) -# Solve a point to point trajectory generation problem for a linear system -def point_to_point(sys, x0, u0, xf, uf, Tf, T0=0, basis=None, cost=None): +# Solve a point to point trajectory generation problem for a flat system +def point_to_point( + sys, timepts, x0, u0, xf, uf, T0=0, basis=None, cost=None, + constraints=None, initial_guess=None, minimize_kwargs={}): """Compute trajectory between an initial and final conditions. Compute a feasible trajectory for a differentially flat system between an @@ -223,34 +228,61 @@ def point_to_point(sys, x0, u0, xf, uf, Tf, T0=0, basis=None, cost=None): ---------- flatsys : FlatSystem object Description of the differentially flat system. This object must - define a function flatsys.forward() that takes the system state and - produceds the flag of flat outputs and a system flatsys.reverse() + define a function `flatsys.forward()` that takes the system state and + produceds the flag of flat outputs and a system `flatsys.reverse()` that takes the flag of the flat output and prodes the state and input. + timepts : float or 1D array_like + The list of points for evaluating cost and constraints, as well as + the time horizon. If given as a float, indicates the final time for + the trajectory (corresponding to xf) + x0, u0, xf, uf : 1D arrays Define the desired initial and final conditions for the system. If any of the values are given as None, they are replaced by a vector of zeros of the appropriate dimension. - Tf : float - The final time for the trajectory (corresponding to xf) - - T0 : float (optional) + T0 : float, optional The initial time for the trajectory (corresponding to x0). If not specified, its value is taken to be zero. - basis : BasisFamily object (optional) + basis : :class:`~control.flat.BasisFamily` object, optional The basis functions to use for generating the trajectory. If not - specified, the PolyFamily basis family will be used, with the minimal - number of elements required to find a feasible trajectory (twice - the number of system states) + specified, the :class:`~control.flat.PolyFamily` basis family will be + used, with the minimal number of elements required to find a feasible + trajectory (twice the number of system states) + + cost : callable + Function that returns the integral cost given the current state + and input. Called as `cost(x, u)`. + + constraints : list of tuples, optional + List of constraints that should hold at each point in the time vector. + Each element of the list should consist of a tuple with first element + given by :meth:`scipy.optimize.LinearConstraint` or + :meth:`scipy.optimize.NonlinearConstraint` and the remaining + elements of the tuple are the arguments that would be passed to those + functions. The following tuples are supported: + + * (LinearConstraint, A, lb, ub): The matrix A is multiplied by stacked + vector of the state and input at each point on the trajectory for + comparison against the upper and lower bounds. + + * (NonlinearConstraint, fun, lb, ub): a user-specific constraint + function `fun(x, u)` is called at each point along the trajectory + and compared against the upper and lower bounds. + + The constraints are applied at each time point along the trajectory. + + minimize_kwargs : str, optional + Pass additional keywords to :func:`scipy.optimize.minimize`. Returns ------- - traj : SystemTrajectory object + traj : :class:`~control.flat.SystemTrajectory` object The system trajectory is returned as an object that implements the - eval() function, we can be used to compute the value of the state + `eval()` function, we can be used to compute the value of the state and input and a given time t. """ @@ -264,15 +296,21 @@ def point_to_point(sys, x0, u0, xf, uf, Tf, T0=0, basis=None, cost=None): if xf is None: xf = np.zeros(sys.nstates) if uf is None: uf = np.zeros(sys.ninputs) + # Process final time + timepts = np.atleast_1d(timepts) + Tf = timepts[-1] + T0 = timepts[0] if len(timepts) > 1 else T0 + # # Determine the basis function set to use and make sure it is big enough # # If no basis set was specified, use a polynomial basis (poor choice...) - if (basis is None): basis = PolyFamily(2*sys.nstates, Tf) + if basis is None: + basis = PolyFamily(2*sys.nstates) # Make sure we have enough basis functions to solve the problem - if (basis.N * sys.ninputs < 2 * (sys.nstates + sys.ninputs)): + if basis.N * sys.ninputs < 2 * (sys.nstates + sys.ninputs): raise ValueError("basis set is too small") # @@ -301,8 +339,10 @@ def point_to_point(sys, x0, u0, xf, uf, Tf, T0=0, basis=None, cost=None): M = np.zeros((2 * flag_tot, basis.N * sys.ninputs)) # Now fill in the rows for the initial and final states + # TODO: vectorize flag_off = 0 coeff_off = 0 + for i in range(sys.ninputs): flag_len = len(zflag_T0[i]) for j in range(basis.N): @@ -335,12 +375,119 @@ def point_to_point(sys, x0, u0, xf, uf, Tf, T0=0, basis=None, cost=None): # [zflag_T0; zflag_tf]. Since everything is linear, just compute the # least squares solution for now. # - # TODO: need to allow cost and constraints... - alpha, residuals, rank, s = np.linalg.lstsq(M, Z, rcond=None) + + + # Look to see if we have costs, constraints, or both + if cost is None and constraints is None: + # Unconstrained => solve a least squares problem + alpha, residuals, rank, s = np.linalg.lstsq(M, Z, rcond=None) + + else: + # Define a function to evaluate the cost along a trajectory + def traj_cost(coeffs): + # Evaluate the costs at the listed time points + costval = 0 + for t in timepts: + M_t = np.zeros((flag_tot, basis.N * sys.ninputs)) + flag_off = 0 + coeff_off = 0 + for i in range(sys.ninputs): + flag_len = len(zflag_T0[i]) + for j, k in itertools.product( + range(basis.N), range(flag_len)): + M_t[flag_off + k, coeff_off + j] = \ + basis.eval_deriv(j, k, t) + flag_off += flag_len + coeff_off += basis.N + + # Compute flag at this time point + zflag = (M_t @ coeffs).reshape(sys.ninputs, -1) + + # Find states and inputs at the time points + x, u = sys.reverse(zflag) + + # Evaluate the cost at this time point + costval += cost(x, u) + return costval + + # If not cost given, override with magnitude of the coefficients + if cost is None: + traj_cost = lambda coeffs: coeffs @ coeffs + + # Process the constraints we were given + if constraints is None: + constraints = [] + elif isinstance(constraints, tuple): + constraints = [constraints] + elif not isinstance(constraints, list): + raise TypeError("trajectory constraints must be a list") + + # Process constraints + if len(constraints) > 0: + # Set up a nonlinear function to evaluate the constraints + def traj_const(coeffs): + # Evaluate the constraints at the listed time points + values = [] + for t in timepts: + # Calculate the states and inputs for the flat output + M_t = np.zeros((flag_tot, basis.N * sys.ninputs)) + flag_off = 0 + coeff_off = 0 + for i in range(sys.ninputs): + flag_len = len(zflag_T0[i]) + for j, k in itertools.product( + range(basis.N), range(flag_len)): + M_t[flag_off + k, coeff_off + j] = \ + basis.eval_deriv(j, k, t) + flag_off += flag_len + coeff_off += basis.N + + # Compute flag at this time point + zflag = (M_t @ coeffs).reshape(sys.ninputs, -1) + + # Find states and inputs at the time points + x, u = sys.reverse(zflag) + + # Evaluate the constraints at this time point + for constraint in constraints: + values.append(constraint[0](x, u)) + lb.append(constraint[1]) + ub.append(constraint[2]) + return values + + # Store upper and lower bounds + lb, ub = [], [], [] + for constraint in constraints: + lb.append(constraint[1]) + ub.append(constraint[2]) + + # Store the constraint as a nonlinear constraint + constraints = [ + sp.optimize.NonlinearConstraint(traj_cost, lb, ub)] + + # Add initial and terminal constraints + constraints += [sp.optimize.LinearConstraint(M, Z, Z)] + + # Process the initial condition + if initial_guess is None: + initial_guess = np.zeros(basis.N * sys.ninputs) + else: + raise NotImplementedError("initial_guess not yet available") + + # Find the optimal solution + res = sp.optimize.minimize( + traj_cost, initial_guess, constraints=constraints, + **minimize_kwargs) + if res.success: + alpha = res.x + else: + raise RuntimeError("Can't solve optimization problem") # # Transform the trajectory from flat outputs to states and inputs # + + # Createa trajectory object to store the resul systraj = SystemTrajectory(sys, basis) # Store the flag lengths and coefficients diff --git a/control/optimal.py b/control/optimal.py index 9ec25b4fc..d60fd0da4 100644 --- a/control/optimal.py +++ b/control/optimal.py @@ -59,7 +59,7 @@ class OptimalControlProblem(): """ def __init__( - self, sys, time_vector, integral_cost, trajectory_constraints=[], + self, sys, timepts, integral_cost, trajectory_constraints=[], terminal_cost=None, terminal_constraints=[], initial_guess=None, basis=None, log=False, **kwargs): """Set up an optimal control problem @@ -73,7 +73,7 @@ def __init__( ---------- sys : InputOutputSystem I/O system for which the optimal input will be computed. - time_vector : 1D array_like + timepts : 1D array_like List of times at which the optimal input should be computed. integral_cost : callable Function that returns the integral cost given the current state @@ -84,8 +84,8 @@ def __init__( first element given by :meth:`~scipy.optimize.LinearConstraint` or :meth:`~scipy.optimize.NonlinearConstraint` and the remaining elements of the tuple are the arguments that would be passed to - those functions. The constrains will be applied at each point - along the trajectory. + those functions. The constraints will be applied at each time + point along the trajectory. terminal_cost : callable, optional Function that returns the terminal cost given the current state and input. Called as terminal_cost(x, u). @@ -121,7 +121,7 @@ def __init__( """ # Save the basic information for use later self.system = sys - self.time_vector = time_vector + self.timepts = timepts self.integral_cost = integral_cost self.terminal_cost = terminal_cost self.terminal_constraints = terminal_constraints @@ -169,7 +169,7 @@ def __init__( constraint_lb, constraint_ub, eqconst_value = [], [], [] # Go through each time point and stack the bounds - for t in self.time_vector: + for t in self.timepts: for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint if np.all(lb == ub): @@ -263,7 +263,7 @@ def _cost_function(self, coeffs): # Simulate the system to get the state _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True, + self.system, self.timepts, inputs, x, return_x=True, solve_ivp_kwargs=self.solve_ivp_kwargs) self.system_simulations += 1 self.last_x = x @@ -279,14 +279,14 @@ def _cost_function(self, coeffs): if ct.isctime(self.system): # Evaluate the costs costs = [self.integral_cost(states[:, i], inputs[:, i]) for - i in range(self.time_vector.size)] + i in range(self.timepts.size)] # Compute the time intervals - dt = np.diff(self.time_vector) + dt = np.diff(self.timepts) # Integrate the cost cost = 0 - for i in range(self.time_vector.size-1): + for i in range(self.timepts.size-1): # Approximate the integral using trapezoidal rule cost += 0.5 * (costs[i] + costs[i+1]) * dt[i] @@ -383,7 +383,7 @@ def _constraint_function(self, coeffs): # Simulate the system to get the state _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True, + self.system, self.timepts, inputs, x, return_x=True, solve_ivp_kwargs=self.solve_ivp_kwargs) self.system_simulations += 1 self.last_x = x @@ -392,7 +392,7 @@ def _constraint_function(self, coeffs): # Evaluate the constraint function along the trajectory value = [] - for i, t in enumerate(self.time_vector): + for i, t in enumerate(self.timepts): for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint if np.all(lb == ub): @@ -469,7 +469,7 @@ def _eqconst_function(self, coeffs): # Simulate the system to get the state _, _, states = ct.input_output_response( - self.system, self.time_vector, inputs, x, return_x=True, + self.system, self.timepts, inputs, x, return_x=True, solve_ivp_kwargs=self.solve_ivp_kwargs) self.system_simulations += 1 self.last_x = x @@ -482,7 +482,7 @@ def _eqconst_function(self, coeffs): # Evaluate the constraint function along the trajectory value = [] - for i, t in enumerate(self.time_vector): + for i, t in enumerate(self.timepts): for constraint in self.trajectory_constraints: type, fun, lb, ub = constraint if np.any(lb != ub): @@ -552,12 +552,12 @@ def _process_initial_guess(self, initial_guess): try: initial_guess = np.broadcast_to( initial_guess.reshape(-1, 1), - (self.system.ninputs, self.time_vector.size)) + (self.system.ninputs, self.timepts.size)) except ValueError: raise ValueError("initial guess is the wrong shape") elif initial_guess.shape != \ - (self.system.ninputs, self.time_vector.size): + (self.system.ninputs, self.timepts.size): raise ValueError("initial guess is the wrong shape") # If we were given a basis, project onto the basis elements @@ -570,7 +570,7 @@ def _process_initial_guess(self, initial_guess): # Default is zero return np.zeros( self.system.ninputs * - (self.time_vector.size if self.basis is None else self.basis.N)) + (self.timepts.size if self.basis is None else self.basis.N)) # # Utility function to convert input vector to coefficient vector @@ -590,12 +590,12 @@ def _inputs_to_coeffs(self, inputs): coeffs = np.zeros((self.system.ninputs, self.basis.N)) for i in range(self.system.ninputs): # Set up the matrices to get inputs - M = np.zeros((self.time_vector.size, self.basis.N)) - b = np.zeros(self.time_vector.size) + M = np.zeros((self.timepts.size, self.basis.N)) + b = np.zeros(self.timepts.size) # Evaluate at each time point and for each basis function # TODO: vectorize - for j, t in enumerate(self.time_vector): + for j, t in enumerate(self.timepts): for k in range(self.basis.N): M[j, k] = self.basis(k, t) b[j] = inputs[i, j] @@ -609,8 +609,8 @@ def _inputs_to_coeffs(self, inputs): # Utility function to convert coefficient vector to input vector def _coeffs_to_inputs(self, coeffs): # TODO: vectorize - inputs = np.zeros((self.system.ninputs, self.time_vector.size)) - for i, t in enumerate(self.time_vector): + inputs = np.zeros((self.system.ninputs, self.timepts.size)) + for i, t in enumerate(self.timepts): for k in range(self.basis.N): phi_k = self.basis(k, t) for inp in range(self.system.ninputs): @@ -680,7 +680,7 @@ def _output(t, x, u, params={}): _update, _output, dt=dt, inputs=self.system.nstates, outputs=self.system.ninputs, states=self.system.ninputs * - (self.time_vector.size if self.basis is None else self.basis.N)) + (self.timepts.size if self.basis is None else self.basis.N)) # Compute the optimal trajectory from the current state def compute_trajectory( @@ -827,17 +827,17 @@ def __init__( if print_summary: ocp._print_statistics() - if return_states and inputs.shape[1] == ocp.time_vector.shape[0]: + if return_states and inputs.shape[1] == ocp.timepts.shape[0]: # Simulate the system if we need the state back _, _, states = ct.input_output_response( - ocp.system, ocp.time_vector, inputs, ocp.x, return_x=True, + ocp.system, ocp.timepts, inputs, ocp.x, return_x=True, solve_ivp_kwargs=ocp.solve_ivp_kwargs) ocp.system_simulations += 1 else: states = None retval = _process_time_response( - ocp.system, ocp.time_vector, inputs, states, + ocp.system, ocp.timepts, inputs, states, transpose=transpose, return_x=return_states, squeeze=squeeze) self.time = retval[0] @@ -866,7 +866,7 @@ def solve_ocp( cost : callable Function that returns the integral cost given the current state - and input. Called as cost(x, u). + and input. Called as `cost(x, u)`. constraints : list of tuples, optional List of constraints that should hold at each point in the time vector. @@ -884,7 +884,7 @@ def solve_ocp( function `fun(x, u)` is called at each point along the trajectory and compared against the upper and lower bounds. - The constraints are applied at each point along the trajectory. + The constraints are applied at each time point along the trajectory. terminal_cost : callable, optional Function that returns the terminal cost given the current state diff --git a/control/tests/flatsys_test.py b/control/tests/flatsys_test.py index cdd86fea9..876ca2718 100644 --- a/control/tests/flatsys_test.py +++ b/control/tests/flatsys_test.py @@ -16,7 +16,7 @@ import control as ct import control.flatsys as fs - +import control.optimal as opt class TestFlatSys: """Test differential flat systems""" @@ -35,7 +35,7 @@ def test_double_integrator(self, xf, uf, Tf): poly = fs.PolyFamily(6) x1, u1, = [0, 0], [0] - traj = fs.point_to_point(flatsys, x1, u1, xf, uf, Tf, basis=poly) + traj = fs.point_to_point(flatsys, Tf, x1, u1, xf, uf, basis=poly) # Verify that the trajectory computation is correct x, u = traj.eval([0, Tf]) @@ -100,7 +100,7 @@ def vehicle_output(t, x, u, params): return x Tf = 10 # Find trajectory between initial and final conditions - traj = fs.point_to_point(vehicle_flat, x0, u0, xf, uf, Tf, basis=poly) + traj = fs.point_to_point(vehicle_flat, Tf, x0, u0, xf, uf, basis=poly) # Verify that the trajectory computation is correct x, u = traj.eval([0, Tf]) @@ -119,6 +119,27 @@ def vehicle_output(t, x, u, params): return x vehicle_flat, T, ud, x0, return_x=True) np.testing.assert_allclose(x, xd, atol=0.01, rtol=0.01) + # Resolve with a cost function + timepts = np.linspace(0, Tf, 10) + traj_cost = opt.quadratic_cost( + vehicle_flat, None, np.diag([0.1, 1]), u0=uf) + constraints = [ + opt.input_range_constraint(vehicle_flat, [8, -0.1], [12, 0.1]) ] + + traj_cost = fs.point_to_point( + vehicle_flat, timepts, x0, u0, xf, uf, cost=traj_cost + ) + + # Verify that the trajectory computation is correct + x_cost, u_cost = traj.eval(T) + np.testing.assert_array_almost_equal(x0, x_cost[:, 0]) + np.testing.assert_array_almost_equal(u0, u_cost[:, 0]) + np.testing.assert_array_almost_equal(xf, x_cost[:, -1]) + np.testing.assert_array_almost_equal(uf, u_cost[:, -1]) + + # Make sure that we got a different answer than before + assert np.any(np.abs(x, x_cost) > 0.1) + def test_bezier_basis(self): bezier = fs.BezierFamily(4) time = np.linspace(0, 1, 100) @@ -143,11 +164,14 @@ def test_bezier_basis(self): # Make sure that the second derivative integrates to the first time = np.linspace(0, 1, 1000) dt = np.diff(time) - for i in range(4): - for j in (2, 3, 4): - np.testing.assert_almost_equal( - np.diff(bezier.eval_deriv(i, j-1, time)) / dt, - bezier.eval_deriv(i, j, time)[0:-1], decimal=2) + for N in range(5): + bezier = fs.BezierFamily(N) + for i in range(N): + for j in range(1, N+1): + np.testing.assert_allclose( + np.diff(bezier.eval_deriv(i, j-1, time)) / dt, + bezier.eval_deriv(i, j, time)[0:-1], + atol=0.01, rtol=0.01) # Exception check with pytest.raises(ValueError, match="index too high"): diff --git a/doc/flatsys.rst b/doc/flatsys.rst index f085347a6..649cc5e57 100644 --- a/doc/flatsys.rst +++ b/doc/flatsys.rst @@ -134,13 +134,13 @@ The number of flat outputs must match the number of system inputs. For a linear system, a flat system representation can be generated using the :class:`~control.flatsys.LinearFlatSystem` class: - flatsys = control.flatsys.LinearFlatSystem(linsys) + sys = control.flatsys.LinearFlatSystem(linsys) For more general systems, the `FlatSystem` object must be created manually - flatsys = control.flatsys.FlatSystem(nstate, ninputs, forward, reverse) + sys = control.flatsys.FlatSystem(nstate, ninputs, forward, reverse) -In addition to the flat system descriptionn, a set of basis functions +In addition to the flat system description, a set of basis functions :math:`\phi_i(t)` must be chosen. The `FlatBasis` class is used to represent the basis functions. A polynomial basis function of the form 1, :math:`t`, :math:`t^2`, ... can be computed using the `PolyBasis` class, which is @@ -152,7 +152,8 @@ Once the system and basis function have been defined, the :func:`~control.flatsys.point_to_point` function can be used to compute a trajectory between initial and final states and inputs: - traj = control.flatsys.point_to_point(x0, u0, xf, uf, Tf, basis=polybasis) + traj = control.flatsys.point_to_point( + sys, Tf, x0, u0, xf, uf, basis=polybasis) The returned object has class :class:`~control.flatsys.SystemTrajectory` and can be used to compute the state and input trajectory between the initial and @@ -163,6 +164,10 @@ final condition: where `T` is a list of times on which the trajectory should be evaluated (e.g., `T = numpy.linspace(0, Tf, M)`. +The :func:`~control.flatsys.point_to_point` function also allows the +specification of a cost function and/or constraints, in the same +format as :func:`~control.optimal.solve_ocp`. + Example ======= @@ -241,7 +246,7 @@ the endpoints. poly = fs.PolyFamily(6) # Find a trajectory between the initial condition and the final condition - traj = fs.point_to_point(vehicle_flat, x0, u0, xf, uf, Tf, basis=poly) + traj = fs.point_to_point(vehicle_flat, Tf, x0, u0, xf, uf, basis=poly) # Create the trajectory t = np.linspace(0, Tf, 100) diff --git a/examples/kincar-flatsys.py b/examples/kincar-flatsys.py index 17a1b71b9..0c25be965 100644 --- a/examples/kincar-flatsys.py +++ b/examples/kincar-flatsys.py @@ -10,6 +10,7 @@ import matplotlib.pyplot as plt import control as ct import control.flatsys as fs +import control.optimal as opt # Function to take states, inputs and return the flat flag @@ -86,7 +87,7 @@ def vehicle_update(t, x, u, params): poly = fs.PolyFamily(6) # Find a trajectory between the initial condition and the final condition -traj = fs.point_to_point(vehicle_flat, x0, u0, xf, uf, Tf, basis=poly) +traj = fs.point_to_point(vehicle_flat, Tf, x0, u0, xf, uf, basis=poly) # Create the desired trajectory between the initial and final condition T = np.linspace(0, Tf, 500) @@ -97,36 +98,57 @@ def vehicle_update(t, x, u, params): vehicle_flat, T, ud, x0, return_x=True) # Plot the open loop system dynamics -plt.figure() +plt.figure(1) plt.suptitle("Open loop trajectory for kinematic car lane change") # Plot the trajectory in xy coordinates -plt.subplot(4, 1, 2) -plt.plot(x[0], x[1]) -plt.xlabel('x [m]') -plt.ylabel('y [m]') -plt.axis([x0[0], xf[0], x0[1]-1, xf[1]+1]) - -# Time traces of the state and input -plt.subplot(2, 4, 5) -plt.plot(t, x[1]) -plt.ylabel('y [m]') - -plt.subplot(2, 4, 6) -plt.plot(t, x[2]) -plt.ylabel('theta [rad]') - -plt.subplot(2, 4, 7) -plt.plot(t, ud[0]) -plt.xlabel('Time t [sec]') -plt.ylabel('v [m/s]') -plt.axis([0, Tf, u0[0] - 1, uf[0] + 1]) - -plt.subplot(2, 4, 8) -plt.plot(t, ud[1]) -plt.xlabel('Ttime t [sec]') -plt.ylabel('$\delta$ [rad]') -plt.tight_layout() +def plot_results(t, x, ud): + plt.subplot(4, 1, 2) + plt.plot(x[0], x[1]) + plt.xlabel('x [m]') + plt.ylabel('y [m]') + plt.axis([x0[0], xf[0], x0[1]-1, xf[1]+1]) + + # Time traces of the state and input + plt.subplot(2, 4, 5) + plt.plot(t, x[1]) + plt.ylabel('y [m]') + + plt.subplot(2, 4, 6) + plt.plot(t, x[2]) + plt.ylabel('theta [rad]') + + plt.subplot(2, 4, 7) + plt.plot(t, ud[0]) + plt.xlabel('Time t [sec]') + plt.ylabel('v [m/s]') + plt.axis([0, Tf, u0[0] - 1, uf[0] + 1]) + + plt.subplot(2, 4, 8) + plt.plot(t, ud[1]) + plt.xlabel('Ttime t [sec]') + plt.ylabel('$\delta$ [rad]') + plt.tight_layout() +plot_results(t, x, ud) + +# Resolve using a different basis and a cost function + +# Define cost and constraints +timepts = np.linspace(0, Tf, 10) +bezier = fs.BezierFamily(8) +traj_cost = opt.quadratic_cost( + vehicle_flat, None, np.diag([0.1, 1]), u0=uf) +constraints = [ + opt.input_range_constraint(vehicle_flat, [8, -0.1], [12, 0.1]) ] + +traj = fs.point_to_point( + vehicle_flat, timepts, x0, u0, xf, uf, cost=traj_cost, basis=bezier, +) +xd, ud = traj.eval(T) + +plt.figure(2) +plt.suptitle("Open loop trajectory for lane change with input penalty") +plot_results(T, xd, ud) # Show the results unless we are running in batch mode if 'PYCONTROL_TEST_EXAMPLES' not in os.environ: diff --git a/examples/steering.ipynb b/examples/steering.ipynb index eb22a5909..c96067902 100644 --- a/examples/steering.ipynb +++ b/examples/steering.ipynb @@ -20,8 +20,8 @@ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import control as ct\n", - "ct.use_fbs_defaults()\n", - "ct.use_numpy_matrix(False)" + "import control.optimal as opt\n", + "ct.use_fbs_defaults()" ] }, { @@ -87,40 +87,16 @@ "To illustrate the dynamics of the system, we create an input that correspond to driving down a curvy road. This trajectory will be used in future simulations as a reference trajectory for estimation and control." ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "RMM notes, 27 Jun 2019:\n", - "* The figure below appears in Chapter 8 (output feedback) as Example 8.3, but I've put it here in the notebook since it is a good way to demonstrate the dynamics of the vehicle.\n", - "* In the book, this figure is created for the linear model and in a manner that I can't quite understand, since the linear model that is used is only for the lateral dynamics. The original file is `OutputFeedback/figures/steering_obs.m`.\n", - "* To create the figure here, I set the initial vehicle angle to be $\\theta(0) = 0.75$ rad and then used an input that gives a figure approximating Example 8.3 To create the lateral offset, I think subtracted the trajectory from the averaged straight line trajectory, shown as a dashed line in the $xy$ figure below.\n", - "* I find the approach that we used in the MATLAB version to be confusing, but I also think the method of creating the lateral error here is a hart to follow. We might instead consider choosing a trajectory that goes mainly vertically, with the 2D dynamics being the $x$, $\\theta$ dynamics instead of the $y$, $\\theta$ dynamics.\n", - "\n", - "KJA comments, 1 Jul 2019:\n", - "\n", - "0. I think we should point out that the reference point is typically the projection of the center of mass of the whole vehicle.\n", - "\n", - "1. The heading angle $\\theta$ must be marked in Figure 3.17b.\n", - "\n", - "2. I think it is useful to start with a curvy road that you have done here but then to specialized to a trajectory that is essentially horizontal, where $y$ is the deviation from the nominal horizontal $x$ axis. Assuming that $\\alpha$ and $\\theta$ are small we get the natural linearization of (3.26) $\\dot x = v$ and $\\dot y =v(\\alpha + \\theta)$\n", - "\n", - "RMM response, 16 Jul 2019:\n", - "* I've changed the trajectory to be about the horizontal axis, but I am ploting things vertically for better figure layout. This corresponds to what is done in Example 9.10 in the text, which I think looks OK.\n", - "\n", - "KJA response, 20 Jul 2019: Fig 8.6a is fine" - ] - }, { "cell_type": "code", "execution_count": 3, "metadata": { - "scrolled": true + "scrolled": false }, "outputs": [ { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfsAAAE8CAYAAADHZhjeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAgAElEQVR4nOzdeXxcZdn4/8+VSTLZt2bpkrTpvrcsXYBSWihlR1AQwUeFgiCCiA/qI/hVgZ8PjxvuIoqioKKIyFIRgVJZWrrQfd/TtE26ZN8zyUzm+v0xEyzNmTQzmZkzk9zv12teSebMmXMFmrnOvV23qCqGYRiGYQxcCXYHYBiGYRhGZJlkbxiGYRgDnEn2hmEYhjHAmWRvGIZhGAOcSfaGYRiGMcAl2h1Af+Tn52tpaandYRh9sGHDhhpVLbA7DqNvzN+WYcSf3j5n4zrZl5aWsn79ervDMPpARA7ZHYPRd+ZvyzDiT2+fs6Yb3zAMwzAGOJPsDcMwDGOAM8neMAzDMAa4uB6zNwwj/qgq6w/V89r242ytaMDdpUwsyuQTc0o4a2Su3eEZxoBkkr1hGFGz5UgDD/1jB5sON5CcmMDM4mwynIm8uu0Yf11/hJvPHcU3r5pCosN0OhpGOJlkbxhGxDW2ufnBG7t5Zu1hCjKcfPvaaVx31gjSkn0fQW2dHh59fS+/e+8gzS4PP7xhJiJic9SGMXCYZG8YRsR4vcqLmyr5zr92UdfayS3nlXLf4glkpiR96HVpyYl86+op5KQl8aNle5lenM2SeaNtitowBh6T7A0jAkQkrw8v86pqQ8SDscnGw/X87ys72Xi4gTNKcnhqyRymjcju9Zx7LhrH5iMNfPdfu1k0qYiRQ9KiFK1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vKSqKiLbgGn2WWwwGKKUMuACYC7wOvB+Vf2yiDwFXCEi/wL+D7haVetE5FrgPrztvAFQ1bUisgJ4ZoTe+zeBS1T1iIhk+7Z9EmhR1dNEJAlYIyIv4HVKrgFOV9VOEckNxy9tCB9G7O3nt8CNwATgdyM8pmfAz54Brz2Y/5nBMB75t6r2+W744/BO9QH4HYBZwHze6f0RBxwb5TXXAA/7eof4O/tdDCwUkQ/4XmfhbR52EfB7f5MxVW0c5bUNYcYIh/08BXwLSMAbjjcYDIZg6QFQVY+I9A1o0e13AATYoapnhuuCqnqLiJwOXAFsFpGTfNe5XVWfH7ivr6uoabQSxZg5e5tR1V7gZeDxaOumZzAYYoY9QIGInAkgIgkiMs9ivzYgYyQnFJEyVX1DVb8J1AMleDscfnZAnkC5iKQBLwCfEJFU33YTxo8yjGdvM77EvDOAD45kf1U9gDcc5399Y6Axg8FgAK9T4Qut/1xEsvB+t/8UOLHl8GPAb0Tk88AHVLVyiNP+QERm4vXmX8K7Mmgr3mmDt8Q7X1AHXKOqz/k8/w0i0gs8i0kmjipMi1sb8a1nfQZ4SlW/GGCfEmAt0BDMWntfAs7dwEZV/VgYzDUYDOMYEXmYkSfvBXPee7B/SaFhGIzYGwwGgwER+RneBLyfqeqvwnTOHwDvBX6kqg+E45yG0DBibzAYDAZDjGMS9AwGg8FgiHGM2BsMBoPBEOMYsTcYDAaDIcYxYm8wGAwGQ4zz/wHrB4zYgyE/LwAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] @@ -197,10 +173,10 @@ "Linearized system dynamics:\n", "\n", "A = [[0. 1.]\n", - " [0. 0.]]\n", + " [0. 0.]]\n", "\n", "B = [[0.5]\n", - " [1. ]]\n", + " [1. ]]\n", "\n", "C = [[1. 0.]]\n", "\n", @@ -253,20 +229,6 @@ "The unit step responses for the closed loop system for different values of the design parameters are shown below. The effect of $\\omega_c$ is shown on the left, which shows that the response speed increases with increasing $\\omega_\\text{c}$. All responses have overshoot less than 5% (15 cm), as indicated by the dashed lines. The settling times range from 30 to 60 normalized time units, which corresponds to about 3–6 s, and are limited by the acceptable lateral acceleration of the vehicle. The effect of $\\zeta_\\text{c}$ is shown on the right. The response speed and the overshoot increase with decreasing damping. Using these plots, we conclude that a reasonable design choice is $\\omega_\\text{c} = 0.07$ and $\\zeta_\\text{c} = 0.7$. " ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "RMM note, 27 Jun 2019: \n", - "* The design guidelines are for $v_0$ = 30 m/s (highway speeds) but most of the examples below are done at lower speed (typically 10 m/s). Also, the eigenvalue locations above are not the same ones that we use in the output feedback example below. We should probably make things more consistent.\n", - "\n", - "KJA comment, 1 Jul 2019: \n", - "* I am all for maikng it consist and choosing e.g. v0 = 30 m/s\n", - "\n", - "RMM comment, 17 Jul 2019:\n", - "* I've updated the examples below to use v0 = 30 m/s for everything except the forward/reverse example. This corresponds to ~105 kph (freeway speeds) and a reasonable bound for the steering angle to avoid slipping is 0.05 rad." - ] - }, { "cell_type": "code", "execution_count": 5, @@ -274,7 +236,7 @@ "outputs": [ { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAE8CAYAAABQLQCwAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAgAElEQVR4nOydd3xUVfbAv3dqeieUJPReQxOkKNhBBOxiVxTrLrrq/qzo6lp2FxUrWBdRwbKKooYuSgcpAZJQkhADIYQU0uvMvPv74w2QkITMpJf79fM+773b3plxODnv3nvOEVJKFAqFQqFQKBRtB0NTC6BQKBQKhUKhaFyUAahQKBQKhULRxlAGoEKhUCgUCkUbQxmACoVCoVAoFG0MZQAqFAqFQqFQtDFMTS1AQxISEiK7du3a1GIoFIpmxs6dOzOllO2aWo76Quk6hUJRHdXpu1ZtAHbt2pUdO3Y0tRgKhaKZIYRI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a2n6TbfQDtmTNPwHMbeX3/xwwOWv+W8DXkun3gPnJ9KXAa9399+KHH8XycO5z7kvboxdmTUTEAUk/A24FjiTNs4EnI+IwgKQngIuAZ4ANEbE4axUfRcTyZLmVwIsREZKWk0kwjW6VNC+ZHg1MAHafJLwfAb+NiF9JuoVMwntHEmSS6Q5gYBJrTRLDM+39HbSxD5e0sP3jIqJG0lFJlcB4oCoiXpBURiZp1gIvR8QjyUvOBtZkreIy4AZJvYBBwF1J+1IyN0I3sxxx7mtzH5z7ioALQGvJfWSGNX6azKuVZQ83mf80a7oha76B5G8u2YU/F/ijJFG8DPRpLSBJfwOMBW7JimlhRPxTk+VuA6K1dbXBSfvQ0vab8QHwOeC7wJ1J29XAL5Nk/jjwiKRBwP6IqEv60Q+ojIitkqYA6yKiNnn9ecCyjnfPzFpwH859jZz7ipiPAbRmRcQe4BfA3yZNrwJflNQv+QY3j8xwREdVAHuTBPg54ILWFpY0g8yQzFcioiFpfpHMMSNDk2UGShqbxDpPUl9J/ckMmTTnINC/E31oaftNrQRuABQRrydto4BNyXR98vN0YGvW6z4PNB5DMxU4XVKppHLge2T+UZlZDjn3tYlzXxHwHkBrzb0k3zgjolrSw8DbyXMPRsR7ksZ1cN3PATdJep/Mbv/FJ1n+FjLDGy8lQw7vRsTXJd0JPK/MGXh1wM0RsTj5ZrkU2EALyToidicHN68Aft3eDkTEB81tP9lmtpXAQuD8rLbNZBLhUk58EVsNDE7iuRH4AvDL5LmpwCPAG2SGW/6lydCTmeWOc18rnPuKgyI6u7fYzNor2ZPwH8BR4HdZx8FkL1MNzGocFjEzK3TOfacOF4BmZmZmKeNjAM3MzMxSxgWgmZmZWcq4ADQzMzNLGReAZmZmZinjAtDMzMwsZVwAmpmZmaWMC0AzMzOzlHEBaGZmZpYy/w+6p13SIk4IPAAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] @@ -374,19 +336,6 @@ "plt.tight_layout()" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "RMM notes, 17 Jul 2019\n", - "* These step responses are *very* slow. Note that the steering wheel angles are about 10X less than a resonable bound (0.05 rad at 30 m/s). A consequence of these low gains is that the tracking controller in Example 8.4 has to use a different set of gains. We could update, but the gains listed here have a rationale that we would have to update as well.\n", - "* Based on the discussion below, I think we should make $\\omega_\\text{c}$ range from 0.5 to 1 (10X faster).\n", - "\n", - "KJA response, 20 Jul 2019: Makes a lot of sense to make $\\omega_\\text{c}$ range from 0.5 to 1 (10X faster). The plots were still in the range 0.05 to 0.1 in the note you sent me.\n", - "\n", - "RMM response: 23 Jul 2019: Updated $\\omega_\\text{c}$ to 10X faster. Note that this makes size of the inputs for the step response quite large, but that is in part because a unit step in the desired position produces an (instantaneous) error of $b = 3$ m $\\implies$ quite a large error. A lateral error of 10 cm with $\\omega_c = 0.7$ would produce an (initial) input of 0.015 rad." - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -434,23 +383,6 @@ "A simulation of the observer for a vehicle driving on a curvy road is shown below. The first figure shows the trajectory of the vehicle on the road, as viewed from above. The response of the observer is shown on the right, where time is normalized to the vehicle length. We see that the observer error settles in about 4 vehicle lengths." ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "RMM note, 27 Jun 2019:\n", - "* As an alternative, we can attempt to estimate the state of the full nonlinear system using a linear estimator. This system does not necessarily converge to zero since there will be errors in the nominal dynamics of the system for the linear estimator.\n", - "* The limits on the $x$ axis for the time plots are different to show the error over the entire trajectory.\n", - "* We should decide whether we want to keep the figure above or the one below for the text.\n", - "\n", - "KJA comment, 1 Jul 2019:\n", - "* I very much like your observation about the nonlinear system. I think it is a very good idea to use your new simulation\n", - "\n", - "RMM comment, 17 Jul 2019: plan to use this version in the text.\n", - "\n", - "KJA comment, 20 Jul 2019: I think this is a big improvement we show that an observer based on a linearized model works on a nonlinear simulation, If possible we could add a line telling why the linear model works and that this is standard procedure in control engineering.\t" - ] - }, { "cell_type": "code", "execution_count": 7, @@ -458,7 +390,7 @@ "outputs": [ { "data":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yMMxZG0CDqu4E3gYu82/6HjhNROr5v7Gdju/xQ3UlA7v8BV5nYNCBdhaRfvgewVyoql7/5q/xtRFp6N8nTURa+WM9XUTiRSQJ3yOSyuwBkg7hHvZ3/X0tAi4BRFV/8m9rDmzwv/f4X9sAmyocNxQobzPTC2gjIrEikgjcje8PkzGmBllZWCVWFoYJqwE05f6H/xumqs4RkZeAX/2fTVDV30SkdTXP/QUwTkTm46vmn36Q/a/B9zhjmv8RwyxVvVxE7gS+FF+Pu1LgalWd7v8mORdYx34KZ1XN9jdmXgh8HugNqOriyq7vv2ZFi4CXgf4VtmXhK/jm8vuXrqVAuj+escAJwLv+z3oBk4Cf8T1euWefR03GmJpjZeEBWFkYPkT1UGuMjTEH4q85eBIoAn6s0O6l4j5zgIHlj0GMMSbcWFkYWiwBNMYYY4yJMNYG0BhjjDEmwlgCaIwxxhgTYSwBNMYYY4yJMJYAGmOMMcZEGEsAjTHGGGMijCWAxhhjjDERxhJAY4wxxpgIYwmgMcYYY0yE+X9K14YU9/+SPAAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] @@ -517,28 +449,6 @@ "## Output Feedback Controller (Example 8.4)" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "RMM note, 27 Jun 2019\n", - "* The feedback gains for the controller below are different that those computed in the eigenvalue placement example (from Ch 7), where an argument was given for the choice of the closed loop eigenvalues. Should we choose a single, consistent set of gains in both places?\n", - "* This plot does not quite match Example 8.4 because a different reference is being used for the laterial position.\n", - "* The transient in $\\delta$ is quiet large. This appears to be due to the error in $\\theta(0)$, which is initialized to zero intead of to `theta_curvy`.\n", - "\n", - "KJA comment, 1 Jul 2019:\n", - "1. The large initial errors dominate the plots.\n", - "\n", - "2. There is somehing funny happening at the end of the simulation, may be due to the small curvature at the end of the path?\n", - "\n", - "RMM comment, 17 Jul 2019:\n", - "* Updated to use the new trajectory\n", - "* We will have the issue that the gains here are different than the gains that we used in Chapter 7. I think that what we need to do is update the gains in Ch 7 (they are too sluggish, as noted above).\n", - "* Note that unlike the original example in the book, the errors do not converge to zero. This is because we are using pure state feedback (no feedforward) => the controller doesn't apply any input until there is an error.\n", - "\n", - "KJA comment, 20 Jul 2019: We may add that state feedback is a proportional controller which does not guarantee that the error goes to zero for example by changing the line \"The tracking error ...\" to \"The tracking error can be improved by adding integral action (Section7.4), later in this chapter \"Disturbance Modeling\" or feedforward (Section 8,5). Should we do an exercises? \t" - ] - }, { "cell_type": "code", "execution_count": 8, @@ -551,12 +461,12 @@ "output_type": "stream", "text": [ "K = [[0.49 0.7448]]\n", - "kf = [[0.49]]\n" + "kf = 0.4899999999999182\n" ] }, { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnUAAAE8CAYAAACmSEdtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAgAElEQVR4nOzdd3zN1xvA8c/J3pGIWEGsELJlWNUSm1KxV3821VYHpQttUdqq1qpRu2jtWXvUXolYsStGxI5Ehsg6vz9upGJkyL25Ief9euV13dxzz3mucPPc8z3nOUJKiaIoiqIoivJqM9B3AIqiKIqiKEreqaROURRFURTlNaCSOkVRFEVRlNeASuoURVEURVFeAyqpUxRFURRFeQ0Y6TuA/ODg4CCdnZ31HYaiKDoSEhJyV0pZTN9xFATq/U5RXm9Zvd8ViqTO2dmZ4OBgfYehKIqOCCGu6DuGgkK93ynK6y2r9zt1+VVRFEVRFOU1oJI6RVEURVGU14BK6hRFURRFUV4DhWJNnVI4JScnExERQWJior5DUbTEzMwMJycnjI2N9R3Kq+tRLOwcC2fXg60TBI6EsgH6jkpRFC1QSZ3y2oqIiMDa2hpnZ2eEEPoOR8kjKSX37t0jIiKC8uXL6zucV1NaKizuCFf2g0sTuBUGc5tC0O/g3k7f0SmKkkfq8qvy2kpMTKRo0aIqoXtNCCE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UQ4xLI0+JiMF0eiVGf4xipjKhSqlyJq3dlFJ+SqmCGJcusuIaUNCGz5Bd/3eyD+gPKBHZYDoXBpwyPc8wPVYAzmSqdx9w0z+lLlBBKeWrlAoExmD8IdJoNDaixzuz0ONdHkTP1Gky8ymmu0QR2amUmgFsNb33nYjsUkqVt7LtpcDzSqlIjNPvm3MpPwjjMkOEaep/u4g8q5R6C1iujLvQ0oCXRGSz6W5wN3CSbAZjEblocgbeCyyx9AOIyP6s+jf1mZl9wEygcaZzsRgHut38ezN1AChi0jMQ6AjMM71XF/gZ2Ihx2eO9O5aANBqNbejxLgf0eJc3USK2zuJqNJrcMN39TwKSgfWZfEwyl9kJNL25PKHRaDR5ET3euQ5t1Gk0Go1Go9HkA7RPnUaj0Wg0Gk0+QBt1Go1Go9FoNPkAbdRpNBqNRqPR5AO0UafRaDQajUaTD9BGnUaj0Wg0Gk0+QBt1Go1Go9FoNPkAbdRpNBqNRqPR5AO0UafRaDQajUaTD/g/o4Yc5ziqSwEAAAAASUVORK5CYII=\n", "text/plain": [ "
" ] @@ -630,23 +540,6 @@ "To illustrate how we can use a two degree-of-freedom design to improve the performance of the system, consider the problem of steering a car to change lanes on a road. We use the non-normalized form of the dynamics, which were derived in Example 3.11." ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "KJA comment, 1 Jul 2019:\n", - "1. I think the reference trajectory is too much curved in the end compare with Example 3.11\n", - "\n", - "In summary I think it is OK to change the reference trajectories but we should make sure that the curvature is less than $\\rho=600 m$ not to have too high acceleratarion.\n", - "\n", - "RMM response, 16 Jul 2019:\n", - "* Not sure if the comment about the trajectory being too curved is referring to this example. The steering angles (and hence radius of curvature/acceleration) are quite low. ??\n", - "\n", - "KJA response, 20 Jul 2019: You are right the curvature is not too small. We could add the sentence \"The small deviations can be eliminated by adding feedback.\"\n", - "\n", - "RMM response, 23 Jul 2019: I think the small deviation you are referring to is in the velocity trace. This occurs because I gave a fixed endpoint in time and so the velocity had to be adjusted to hit that exact point at that time. This doesn't show up in the book, so it won't be a problem ($\\implies$ no additional explanation required)." - ] - }, { "cell_type": "code", "execution_count": 9, @@ -704,6 +597,55 @@ "vehicle_flat = fs.FlatSystem(vehicle_flat_forward, vehicle_flat_reverse, inputs=2, states=3)" ] }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [], + "source": [ + "# Utility function to plot lane change trajectory\n", + "def plot_vehicle_lanechange(traj):\n", + " # Create the trajectory\n", + " t = np.linspace(0, Tf, 100)\n", + " x, u = traj.eval(t)\n", + "\n", + " # Configure matplotlib plots to be a bit bigger and optimize layout\n", + " plt.figure(figsize=[9, 4.5])\n", + "\n", + " # Plot the trajectory in xy coordinate\n", + " plt.subplot(1, 4, 2)\n", + " plt.plot(x[1], x[0])\n", + " plt.xlabel('y [m]')\n", + " plt.ylabel('x [m]')\n", + "\n", + " # Add lane lines and scale the axis\n", + " plt.plot([-4, -4], [0, x[0, -1]], 'k-', linewidth=1)\n", + " plt.plot([0, 0], [0, x[0, -1]], 'k--', linewidth=1)\n", + " plt.plot([4, 4], [0, x[0, -1]], 'k-', linewidth=1)\n", + " plt.axis([-10, 10, -5, x[0, -1] + 5])\n", + "\n", + " # Time traces of the state and input\n", + " plt.subplot(2, 4, 3)\n", + " plt.plot(t, x[1])\n", + " plt.ylabel('y [m]')\n", + "\n", + " plt.subplot(2, 4, 4)\n", + " plt.plot(t, x[2])\n", + " plt.ylabel('theta [rad]')\n", + "\n", + " plt.subplot(2, 4, 7)\n", + " plt.plot(t, u[0])\n", + " plt.xlabel('Time t [sec]')\n", + " plt.ylabel('v [m/s]')\n", + " # plt.axis([0, t[-1], u0[0] - 1, uf[0] + 1])\n", + "\n", + " plt.subplot(2, 4, 8)\n", + " plt.plot(t, u[1]);\n", + " plt.xlabel('Time t [sec]')\n", + " plt.ylabel('$\\delta$ [rad]')\n", + " plt.tight_layout()" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -713,14 +655,14 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": { "scrolled": true }, "outputs": [ { "data": { - "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfQAAAE8CAYAAAA2bUNTAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAgAElEQVR4nOzdeXxU9bn48c+Tyb6QhSyQsIQl7CBLREVFEHBBlFprq3axthXbaltr23vt7b1X7b3t9dfeLvfe2iq2VWutiltFihuIWhfUgMi+rwkhCWEJW/bn98ec0ABZJmHOnJnJ83695pWZM+eceSLHPPP9nu/3+YqqYowxxpjIFuN1AMYYY4w5e5bQjTHGmChgCd0YY4yJApbQjTHGmChgCd0YY4yJApbQjTHGmCjgakIXke+KyDoRWSsiT4pIoohkicjrIrLF+ZnpZgzGGGNMT+BaQheRAuDbQLGqjgF8wA3A3cBSVS0CljqvjTHGGHMW3O5yjwWSRCQWSAb2AnOBx5z3HwM+5XIMxhhjTNSLdevEqlomIv8N7AZOAK+p6msikqeq5c4+5SKS29bxIjIPmAeQkpIyacSIEW6FaoJgxYoV+1U1x+s4wkl2drYWFhZ6HYbpgF23Z7LrNvy1d926ltCde+NzgUHAIeAZEflCoMer6nxgPkBxcbGWlJS4EqcJDhHZ5XUM4aawsBC7bsObXbdnsus2/LV33brZ5T4T2KGqVaraADwPTAEqRKSvE1RfoNLFGIwxxpgewc2Evhs4X0SSRUSAGcAGYCFws7PPzcCLLsZgTFCISH8RWSYiG5yZG9/xOiYTPUTkChHZJCJbReSMgcLi97/O+6tFZGJnx9qMop7HtYSuqh8AzwIrgTXOZ80H7gdmicgWYJbz2phw1wh8T1VHAucDt4vIKI9jMlFARHzAA8CVwCjgxjaurSuBIucxD/hdAMee9YyiusYmGpqau/w7meBoalZqG5oC3t+1e+gAqnoPcM9pm+vwt9aNiRjOQM6WwZxHRGQDU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5EHiTwAUaD2e+dhP62JRPHYu3ctW72YVDV9ao6oa9E7qyzR1VHD6VojKpOt0RuIlwz8H0JcuEN4POA3WtuQimmzl1rmRtjjDFRzlrmxhhjTJSzZG6MMcZEOUvmxhhjTJSzZG6MMcZEuf8P3HI+0AWc8nYAAAAASUVORK5CYII=\n", "text/plain": [ "
" ] @@ -738,50 +680,81 @@ "Tf = xf[0] / uf[0]\n", "\n", "# Define a set of basis functions to use for the trajectories\n", - "poly = fs.PolyFamily(6)\n", + "poly = fs.PolyFamily(8)\n", "\n", "# Find a trajectory between the initial condition and the final condition\n", - "traj = fs.point_to_point(vehicle_flat, x0, u0, xf, uf, Tf, basis=poly)\n", - "\n", - "# Create the trajectory\n", - "t = np.linspace(0, Tf, 100)\n", - "x, u = traj.eval(t)\n", - "\n", - "# Configure matplotlib plots to be a bit bigger and optimize layout\n", - "plt.figure(figsize=[9, 4.5])\n", - "\n", - "# Plot the trajectory in xy coordinate\n", - "plt.subplot(1, 4, 2)\n", - "plt.plot(x[1], x[0])\n", - "plt.xlabel('y [m]')\n", - "plt.ylabel('x [m]')\n", - "\n", - "# Add lane lines and scale the axis\n", - "plt.plot([-4, -4], [0, x[0, -1]], 'k-', linewidth=1)\n", - "plt.plot([0, 0], [0, x[0, -1]], 'k--', linewidth=1)\n", - "plt.plot([4, 4], [0, x[0, -1]], 'k-', linewidth=1)\n", - "plt.axis([-10, 10, -5, x[0, -1] + 5])\n", - "\n", - "# Time traces of the state and input\n", - "plt.subplot(2, 4, 3)\n", - "plt.plot(t, x[1])\n", - "plt.ylabel('y [m]')\n", - "\n", - "plt.subplot(2, 4, 4)\n", - "plt.plot(t, x[2])\n", - "plt.ylabel('theta [rad]')\n", - "\n", - "plt.subplot(2, 4, 7)\n", - "plt.plot(t, u[0])\n", - "plt.xlabel('Time t [sec]')\n", - "plt.ylabel('v [m/s]')\n", - "plt.axis([0, Tf, u0[0] - 1, uf[0] +1])\n", - "\n", - "plt.subplot(2, 4, 8)\n", - "plt.plot(t, u[1]);\n", - "plt.xlabel('Time t [sec]')\n", - "plt.ylabel('$\\delta$ [rad]')\n", - "plt.tight_layout()" + "traj1 = fs.point_to_point(vehicle_flat, Tf, x0, u0, xf, uf, basis=poly) \n", + "plot_vehicle_lanechange(traj1)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Change of basis function" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfcAAAE8CAYAAADdWvhQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAABrEUlEQVR4nO3dd3xcZ5X4/8+Z0UijXixZVrPlXhPHtlId0p0CKRAIhKUEyCaBpW9gCfCDJLvLdwNhKctS4gRCgGxCgIQ4hfTeXeK49ypZsprV25Tz+2NmZNlWGUkzc+8dPe/XS6+RRnfuHElXc+Zp5xFVxTAMwzCM5OGyOgDDMAzDMGLLJHfDMAzDSDImuRuGYRhGkjHJ3TAMwzCSjEnuhmEYhpFkTHI3DMMwjCQT1+QuIl8Xkc0isklEHhARr4gUiMizIrIzfJsfzxgMwzAMY6KJW3IXkTLgK0CVqi4C3MC1wC3A86o6G3g+/LVhGIZhGDES7275FCBdRFKADOAQcBVwX/j79wEfjHMMhmEYhjGhpMTrxKpaIyI/Bg4A3cAzqvqMiBSram34mFoRmTzY40XkRuBGgMzMzGXz5s2LV6i21tbtY39zF5Oz0yjO8VodzrisXbu2UVWLrI5jMCKSB9wDLAIU+BywHfgzUAnsAz6qqkeGO09hYaFWVlbGMVIjEex8rcaKuVadb7jrNG7JPTyWfhUwHWgB/iIin4z28aq6ElgJUFVVpWvWrIlHmLZW29rNZT9/lRX56Tz8heWkpjh7/qOI7Lc6hmH8HHhKVT8iIqmEepq+Q2gI6Q4RuYXQENK3h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rFWIrYqOoCk9gNm2kF/kNiXBgE+CRgq/XDhuNNiGvVtNwNwzAMI8mYlrthGIZhJBmT3A3DMAwjyZjkbhiGYRhJxiR3wzAMw0gy/z9KQN47BBRAJAAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "bezier = fs.BezierFamily(8)\n", + "traj2 = fs.point_to_point(vehicle_flat, Tf, x0, u0, xf, uf, basis=bezier)\n", + "plot_vehicle_lanechange(traj2)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Added cost function" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfUAAAE8CAYAAADZryhtAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAABsr0lEQVR4nO3dd3hcZ5X48e/RqPcuq9iWW9y77DiVNCchnUBIwgIhhDgssMDCUnbZJQks/FhY6i4lvQCbEEqIE0IqKSSxE8sl7t2yrS6r93p+f8wdR3FUZkb3zp0ZvZ/nmUeamTt3jq0rnXnbeUVVMQzDMAwj8sW4HYBhGIZhGPYwSd0wDMMwooRJ6oZhGIYRJUxSNwzDMIwoYZK6YRiGYUQJk9QNwzAMI0o4mtRF5J9FZJeI7BSRR0QkUUSyReR5ETlgfc1yMgbDMAzDmCwcS+oiUgx8HihT1UWAB7gB+DrwoqrOAV607huGYRiGMUFOd7/HAkkiEgskA9XA1cBD1vMPAdc4HINhGIZhTAqxTp1YVatE5L+BY0A38JyqPiciBapaYx1TIyL5I71eRNYB6wBSUlJWzps3z6lQDRtt3rz5hKrmuR2H23Jzc7W0tNTtMAw/mGvWy1yzkWOsa9axpG6NlV8NzABagN+LyEf9fb2q3g3cDVBWVqb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kVetxzxWS2aTiGwXkduGHf9VK6a3RWRSVyCcjMw1ay/TUreBqlaISKOILAcKgK3Wp9LxHFHVHQAisgt4UVVVRHYApc5FbEwis4DzgQV4S/p+UFW/KiKPA5eLyF+A/wGuVtUGEbke+A7wSd8JVPUNEVkPPOVny+abwCWqWiUimdZjtwCtqrpKRBKA10XkObwfZq8BTlfVLhHJtuMfbUQ0c81OgEnq9rkX+AQwBbjfz9f0Dvt+aNj9IczPxrDHX1W13/qg6ME75APg++A4F1gEPC8iWMfUTPA9XwceFJHHAN8OWhcDS0TkQ9b9DLybMV0EPKCqXQCq2jTB9zYin7lmJ8AkDvs8DnwLiMPbjW4Y4aAXQFWHRKRf39nswffBUYBdqnqGXW+oqp8WkdOBy4FtIrLMep9/UtVnhx8rIpcSZvt0G64z1+wEmDF1m6hqH/AS3t2MImbXOGPS2wfkicgZ4N2nWkQWjnBcO5DmzwlFZJaqvqmq3wRO4N2X+1ngH4eNiZ4mIinAc8AnRSTZejysujKNsGSu2TGYlrpNrAlya4Dr/DleVSvwdiH57n9itOcMwymq2md1L/5MRDLw/k34CXDqNpuPAveIyOeBD6nqoTFO+wMRmYO3pfMi3pUd2/F2nW4Rb59pA3CNqj5jtYrKRaQPeBozSdQYg7lmx2a2XrWBeNdCPgU8rqpfHuWYqcAbQGMga9WtSSC3A5tV9WM2hGsYthKRB/F/QlIg570D55c9GZNQNF+zpvvdBqq6W1VnjpbQrWOOq+rUYIrPqOoCk9CNMNYKfFtsLuQBfBRwfd2vEZWi9po1LXXDMAzDiBKmpW4YhmEYUcIkdcMwDMOIEiapG4ZhGEaUMEndMAzDMKLE/wcMK+i2GmZlbwAAAABJRU5ErkJggg==\n", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "timepts = np.linspace(0, Tf, 12)\n", + "poly = fs.PolyFamily(8)\n", + "traj_cost = opt.quadratic_cost(\n", + " vehicle_flat, np.diag([0, 0.1, 0]), np.diag([0.1, 10]), x0=xf, u0=uf)\n", + "constraints = [\n", + " opt.input_range_constraint(vehicle_flat, [8, -0.1], [12, 0.1]) ]\n", + "\n", + "traj3 = fs.point_to_point(\n", + " vehicle_flat, timepts, x0, u0, xf, uf, cost=traj_cost, basis=poly\n", + ")\n", + "plot_vehicle_lanechange(traj3)" ] }, { @@ -1171,7 +1144,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.2" + "version": "3.9.1" } }, "nbformat": 4, From 67a2169b78254d098888bb2b9c90f43a2ec9324f Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 7 Mar 2021 21:12:43 -0800 Subject: [PATCH 218/260] updated docs, unit tests, code fixes --- control/flatsys/bezier.py | 4 +- control/flatsys/flatsys.py | 77 ++++++++++++++++++++--------------- control/iosys.py | 26 ++++++------ control/optimal.py | 28 +++++-------- control/tests/flatsys_test.py | 69 ++++++++++++++++++++++++++----- doc/flatsys.rst | 13 +++--- examples/steering.ipynb | 65 +---------------------------- 7 files changed, 138 insertions(+), 144 deletions(-) diff --git a/control/flatsys/bezier.py b/control/flatsys/bezier.py index 67b16aa4f..5d0d551de 100644 --- a/control/flatsys/bezier.py +++ b/control/flatsys/bezier.py @@ -48,7 +48,9 @@ class BezierFamily(BasisFamily): This class represents the family of polynomials of the form .. math:: - \phi_i(t) = \sum_{i=0}^n {n \choose i} (T - t)^{n-i} t^i + \phi_i(t) = \sum_{i=0}^n {n \choose i} + \left( \frac{t}{T_\text{f}} - t \right)^{n-i} + \left( \frac{t}{T_f} \right)^i """ def __init__(self, N, T=1): diff --git a/control/flatsys/flatsys.py b/control/flatsys/flatsys.py index b8400322a..c8871fbbc 100644 --- a/control/flatsys/flatsys.py +++ b/control/flatsys/flatsys.py @@ -247,9 +247,9 @@ def point_to_point( The initial time for the trajectory (corresponding to x0). If not specified, its value is taken to be zero. - basis : :class:`~control.flat.BasisFamily` object, optional + basis : :class:`~control.flatsys.BasisFamily` object, optional The basis functions to use for generating the trajectory. If not - specified, the :class:`~control.flat.PolyFamily` basis family will be + specified, the :class:`~control.flatsys.PolyFamily` basis family will be used, with the minimal number of elements required to find a feasible trajectory (twice the number of system states) @@ -260,8 +260,8 @@ def point_to_point( constraints : list of tuples, optional List of constraints that should hold at each point in the time vector. Each element of the list should consist of a tuple with first element - given by :meth:`scipy.optimize.LinearConstraint` or - :meth:`scipy.optimize.NonlinearConstraint` and the remaining + given by :class:`scipy.optimize.LinearConstraint` or + :class:`scipy.optimize.NonlinearConstraint` and the remaining elements of the tuple are the arguments that would be passed to those functions. The following tuples are supported: @@ -280,7 +280,7 @@ def point_to_point( Returns ------- - traj : :class:`~control.flat.SystemTrajectory` object + traj : :class:`~control.flatsys.SystemTrajectory` object The system trajectory is returned as an object that implements the `eval()` function, we can be used to compute the value of the state and input and a given time t. @@ -372,10 +372,13 @@ def point_to_point( # # At this point, we need to solve the equation M alpha = zflag, where M # is the matrix constrains for initial and final conditions and zflag = - # [zflag_T0; zflag_tf]. Since everything is linear, just compute the - # least squares solution for now. + # [zflag_T0; zflag_tf]. + # + # If there are no constraints, then we just need to solve a linear + # system of equations => use least squares. Otherwise, we have a + # nonlinear optimal control problem with equality constraints => use + # scipy.optimize.minimize(). # - # Look to see if we have costs, constraints, or both if cost is None and constraints is None: @@ -410,25 +413,26 @@ def traj_cost(coeffs): costval += cost(x, u) return costval - # If not cost given, override with magnitude of the coefficients + # If no cost given, override with magnitude of the coefficients if cost is None: traj_cost = lambda coeffs: coeffs @ coeffs # Process the constraints we were given if constraints is None: - constraints = [] + traj_constraints = [] elif isinstance(constraints, tuple): - constraints = [constraints] + traj_constraints = [constraints] elif not isinstance(constraints, list): raise TypeError("trajectory constraints must be a list") # Process constraints - if len(constraints) > 0: + minimize_constraints = [] + if len(traj_constraints) > 0: # Set up a nonlinear function to evaluate the constraints def traj_const(coeffs): # Evaluate the constraints at the listed time points values = [] - for t in timepts: + for i, t in enumerate(timepts): # Calculate the states and inputs for the flat output M_t = np.zeros((flag_tot, basis.N * sys.ninputs)) flag_off = 0 @@ -439,44 +443,53 @@ def traj_const(coeffs): range(basis.N), range(flag_len)): M_t[flag_off + k, coeff_off + j] = \ basis.eval_deriv(j, k, t) - flag_off += flag_len - coeff_off += basis.N + flag_off += flag_len + coeff_off += basis.N # Compute flag at this time point zflag = (M_t @ coeffs).reshape(sys.ninputs, -1) # Find states and inputs at the time points - x, u = sys.reverse(zflag) - - # Evaluate the constraints at this time point - for constraint in constraints: - values.append(constraint[0](x, u)) - lb.append(constraint[1]) - ub.append(constraint[2]) - return values + states, inputs = sys.reverse(zflag) + + # Evaluate the constraint function along the trajectory + for type, fun, lb, ub in traj_constraints: + if type == sp.optimize.LinearConstraint: + # `fun` is A matrix associated with polytope... + values.append( + np.dot(fun, np.hstack([states, inputs]))) + elif type == sp.optimize.NonlinearConstraint: + values.append(fun(states, inputs)) + else: + raise TypeError("unknown constraint type %s" % + constraint[0]) + return np.array(values).flatten() # Store upper and lower bounds - lb, ub = [], [], [] - for constraint in constraints: - lb.append(constraint[1]) - ub.append(constraint[2]) + const_lb, const_ub = [], [] + for t in timepts: + for type, fun, lb, ub in traj_constraints: + const_lb.append(lb) + const_ub.append(ub) + const_lb = np.array(const_lb).flatten() + const_ub = np.array(const_ub).flatten() # Store the constraint as a nonlinear constraint - constraints = [ - sp.optimize.NonlinearConstraint(traj_cost, lb, ub)] + minimize_constraints = [sp.optimize.NonlinearConstraint( + traj_const, const_lb, const_ub)] # Add initial and terminal constraints - constraints += [sp.optimize.LinearConstraint(M, Z, Z)] + minimize_constraints += [sp.optimize.LinearConstraint(M, Z, Z)] # Process the initial condition if initial_guess is None: initial_guess = np.zeros(basis.N * sys.ninputs) else: - raise NotImplementedError("initial_guess not yet available") + raise NotImplementedError("Initial guess not yet implemented.") # Find the optimal solution res = sp.optimize.minimize( - traj_cost, initial_guess, constraints=constraints, + traj_cost, initial_guess, constraints=minimize_constraints, **minimize_kwargs) if res.success: alpha = res.x diff --git a/control/iosys.py b/control/iosys.py index 7ed4c8b05..6dfec1ca1 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -1423,13 +1423,13 @@ def input_output_response( Parameters ---------- - sys: InputOutputSystem + sys : InputOutputSystem Input/output system to simulate. - T: array-like + T : array-like Time steps at which the input is defined; values must be evenly spaced. - U: array-like or number, optional + U : array-like or number, optional Input array giving input at each time `T` (default = 0). - X0: array-like or number, optional + X0 : array-like or number, optional Initial condition (default = 0). return_x : bool, optional If True, return the values of the state at each time (default = False). @@ -1451,21 +1451,21 @@ def input_output_response( xout : array Time evolution of the state vector (if return_x=True). - Raises - ------ - TypeError - If the system is not an input/output system. - ValueError - If time step does not match sampling time (for discrete time systems) - - Additional parameters - --------------------- + Other parameters + ---------------- solve_ivp_method : str, optional Set the method used by :func:`scipy.integrate.solve_ivp`. Defaults to 'RK45'. solve_ivp_kwargs : str, optional Pass additional keywords to :func:`scipy.integrate.solve_ivp`. + Raises + ------ + TypeError + If the system is not an input/output system. + ValueError + If time step does not match sampling time (for discrete time systems). + """ # # Process keyword arguments diff --git a/control/optimal.py b/control/optimal.py index d60fd0da4..63509ef4f 100644 --- a/control/optimal.py +++ b/control/optimal.py @@ -170,8 +170,7 @@ def __init__( # Go through each time point and stack the bounds for t in self.timepts: - for constraint in self.trajectory_constraints: - type, fun, lb, ub = constraint + for type, fun, lb, ub in self.trajectory_constraints: if np.all(lb == ub): # Equality constraint eqconst_value.append(lb) @@ -181,8 +180,7 @@ def __init__( constraint_ub.append(ub) # Add on the terminal constraints - for constraint in self.terminal_constraints: - type, fun, lb, ub = constraint + for type, fun, lb, ub in self.terminal_constraints: if np.all(lb == ub): # Equality constraint eqconst_value.append(lb) @@ -320,19 +318,19 @@ def _cost_function(self, coeffs): # constraints, which each take inputs [x, u] and evaluate the # constraint. How we handle these depends on the type of constraint: # - # * For linear constraints (LinearConstraint), a combined vector of the - # state and input is multiplied by the polytope A matrix for - # comparison against the upper and lower bounds. + # * For linear constraints (LinearConstraint), a combined (hstack'd) + # vector of the state and input is multiplied by the polytope A matrix + # for comparison against the upper and lower bounds. # # * For nonlinear constraints (NonlinearConstraint), a user-specific # constraint function having the form # - # constraint_fun(x, u) TODO: convert from [x, u] to (x, u) + # constraint_fun(x, u) # # is called at each point along the trajectory and compared against the # upper and lower bounds. # - # * If the upper and lower bound for the constraint is identical, then we + # * If the upper and lower bound for the constraint are identical, then we # separate out the evaluation into two different constraints, which # allows the SciPy optimizers to be more efficient (and stops them from # generating a warning about mixed constraints). This is handled @@ -393,8 +391,7 @@ def _constraint_function(self, coeffs): # Evaluate the constraint function along the trajectory value = [] for i, t in enumerate(self.timepts): - for constraint in self.trajectory_constraints: - type, fun, lb, ub = constraint + for type, fun, lb, ub in self.trajectory_constraints: if np.all(lb == ub): # Skip equality constraints continue @@ -409,8 +406,7 @@ def _constraint_function(self, coeffs): constraint[0]) # Evaluate the terminal constraint functions - for constraint in self.terminal_constraints: - type, fun, lb, ub = constraint + for type, fun, lb, ub in self.terminal_constraints: if np.all(lb == ub): # Skip equality constraints continue @@ -483,8 +479,7 @@ def _eqconst_function(self, coeffs): # Evaluate the constraint function along the trajectory value = [] for i, t in enumerate(self.timepts): - for constraint in self.trajectory_constraints: - type, fun, lb, ub = constraint + for type, fun, lb, ub in self.trajectory_constraints: if np.any(lb != ub): # Skip inequality constraints continue @@ -499,8 +494,7 @@ def _eqconst_function(self, coeffs): constraint[0]) # Evaluate the terminal constraint functions - for constraint in self.terminal_constraints: - type, fun, lb, ub = constraint + for type, fun, lb, ub in self.terminal_constraints: if np.any(lb != ub): # Skip inequality constraints continue diff --git a/control/tests/flatsys_test.py b/control/tests/flatsys_test.py index 876ca2718..7aec67eac 100644 --- a/control/tests/flatsys_test.py +++ b/control/tests/flatsys_test.py @@ -51,8 +51,8 @@ def test_double_integrator(self, xf, uf, Tf): t, y, x = ct.forced_response(sys, T, ud, x1, return_x=True) np.testing.assert_array_almost_equal(x, xd, decimal=3) - @pytest.mark.parametrize("poly", [fs.PolyFamily(6), fs.BezierFamily(6)]) - def test_kinematic_car(self, poly): + @pytest.fixture + def vehicle_flat(self): """Differential flatness for a kinematic car""" def vehicle_flat_forward(x, u, params={}): b = params.get('wheelbase', 3.) # get parameter values @@ -89,11 +89,14 @@ def vehicle_update(t, x, u, params): def vehicle_output(t, x, u, params): return x # Create differentially flat input/output system - vehicle_flat = fs.FlatSystem( + return fs.FlatSystem( vehicle_flat_forward, vehicle_flat_reverse, vehicle_update, vehicle_output, inputs=('v', 'delta'), outputs=('x', 'y', 'theta'), states=('x', 'y', 'theta')) + @pytest.mark.parametrize("poly", [ + fs.PolyFamily(6), fs.PolyFamily(8), fs.BezierFamily(6)]) + def test_kinematic_car(self, vehicle_flat, poly): # Define the endpoints of the trajectory x0 = [0., -2., 0.]; u0 = [10., 0.] xf = [100., 2., 0.]; uf = [10., 0.] @@ -119,26 +122,70 @@ def vehicle_output(t, x, u, params): return x vehicle_flat, T, ud, x0, return_x=True) np.testing.assert_allclose(x, xd, atol=0.01, rtol=0.01) - # Resolve with a cost function + def test_kinematic_car_cost_constr(self, vehicle_flat): + # Define the endpoints of the trajectory + x0 = [0., -2., 0.]; u0 = [10., 0.] + xf = [100., 2., 0.]; uf = [10., 0.] + Tf = 10 + T = np.linspace(0, Tf, 500) + + # Find trajectory between initial and final conditions + traj = fs.point_to_point( + vehicle_flat, Tf, x0, u0, xf, uf, basis=fs.PolyFamily(6)) + x, u = traj.eval(T) + + np.testing.assert_array_almost_equal(x0, x[:, 0]) + np.testing.assert_array_almost_equal(u0, u[:, 0]) + np.testing.assert_array_almost_equal(xf, x[:, -1]) + np.testing.assert_array_almost_equal(uf, u[:, -1]) + + # Solve with a cost function timepts = np.linspace(0, Tf, 10) - traj_cost = opt.quadratic_cost( - vehicle_flat, None, np.diag([0.1, 1]), u0=uf) - constraints = [ - opt.input_range_constraint(vehicle_flat, [8, -0.1], [12, 0.1]) ] + cost_fcn = opt.quadratic_cost( + vehicle_flat, np.diag([0, 0.1, 0]), np.diag([0.1, 1]), x0=xf, u0=uf) traj_cost = fs.point_to_point( - vehicle_flat, timepts, x0, u0, xf, uf, cost=traj_cost + vehicle_flat, timepts, x0, u0, xf, uf, cost=cost_fcn, + basis=fs.PolyFamily(8) ) # Verify that the trajectory computation is correct - x_cost, u_cost = traj.eval(T) + x_cost, u_cost = traj_cost.eval(T) np.testing.assert_array_almost_equal(x0, x_cost[:, 0]) np.testing.assert_array_almost_equal(u0, u_cost[:, 0]) np.testing.assert_array_almost_equal(xf, x_cost[:, -1]) np.testing.assert_array_almost_equal(uf, u_cost[:, -1]) # Make sure that we got a different answer than before - assert np.any(np.abs(x, x_cost) > 0.1) + assert np.any(np.abs(x - x_cost) > 0.1) + + # Make sure that the previous computation had large y deviation + assert np.any(x_cost[1, :] > 2.6) + + # Re-solve with constraint on the y deviation + # timepts = np.array([0, 0.5*Tf, 0.8*Tf, Tf]) + constraints = ( + sp.optimize.LinearConstraint, + np.array([[0, 1, 0, 0, 0]]), -2.6, 2.6) + traj_const = fs.point_to_point( + vehicle_flat, timepts, x0, u0, xf, uf, cost=cost_fcn, + constraints=constraints, basis=fs.PolyFamily(8), + # minimize_kwargs={ + # 'method': 'trust-constr', + # 'options': {'finite_diff_rel_step': 0.01}, + # # 'hess': lambda x: np.zeros((x.size, x.size)) + # } + ) + + # Verify that the trajectory computation is correct + x_const, u_const = traj_const.eval(T) + np.testing.assert_array_almost_equal(x0, x_const[:, 0]) + np.testing.assert_array_almost_equal(u0, u_const[:, 0]) + np.testing.assert_array_almost_equal(xf, x_const[:, -1]) + np.testing.assert_array_almost_equal(uf, u_const[:, -1]) + + # Make sure that the solution respects the bounds + assert np.any(x_const[:, 1] < 2.6) def test_bezier_basis(self): bezier = fs.BezierFamily(4) diff --git a/doc/flatsys.rst b/doc/flatsys.rst index 649cc5e57..df2d6f238 100644 --- a/doc/flatsys.rst +++ b/doc/flatsys.rst @@ -1,4 +1,4 @@ -.. _flatsys-module: +. _flatsys-module: *************************** Differentially flat systems @@ -132,11 +132,11 @@ and their derivatives up to order :math:`q_i`: The number of flat outputs must match the number of system inputs. For a linear system, a flat system representation can be generated using the -:class:`~control.flatsys.LinearFlatSystem` class: +:class:`~control.flatsys.LinearFlatSystem` class:: sys = control.flatsys.LinearFlatSystem(linsys) -For more general systems, the `FlatSystem` object must be created manually +For more general systems, the `FlatSystem` object must be created manually:: sys = control.flatsys.FlatSystem(nstate, ninputs, forward, reverse) @@ -144,20 +144,20 @@ In addition to the flat system description, a set of basis functions :math:`\phi_i(t)` must be chosen. The `FlatBasis` class is used to represent the basis functions. A polynomial basis function of the form 1, :math:`t`, :math:`t^2`, ... can be computed using the `PolyBasis` class, which is -initialized by passing the desired order of the polynomial basis set: +initialized by passing the desired order of the polynomial basis set:: polybasis = control.flatsys.PolyBasis(N) Once the system and basis function have been defined, the :func:`~control.flatsys.point_to_point` function can be used to compute a -trajectory between initial and final states and inputs: +trajectory between initial and final states and inputs:: traj = control.flatsys.point_to_point( sys, Tf, x0, u0, xf, uf, basis=polybasis) The returned object has class :class:`~control.flatsys.SystemTrajectory` and can be used to compute the state and input trajectory between the initial and -final condition: +final condition:: xd, ud = traj.eval(T) @@ -261,6 +261,7 @@ Flat systems classes :toctree: generated/ BasisFamily + BezierFamily FlatSystem LinearFlatSystem PolyFamily diff --git a/examples/steering.ipynb b/examples/steering.ipynb index c96067902..217e3b2db 100644 --- a/examples/steering.ipynb +++ b/examples/steering.ipynb @@ -727,7 +727,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -768,33 +768,6 @@ "With rear-wheel steering the center of mass first moves in the wrong direction and the overall response with rear-wheel steering is significantly delayed compared with that for front-wheel steering. (b) Frequency response for driving forward (dashed) and reverse (solid). Notice that the gain curves are identical, but the phase curve for driving in reverse has non-minimum phase." ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "RMM note, 27 Jun 2019:\n", - "* I cannot recreate the figures in Example 10.11. Since we are looking at the lateral *velocity*, there is a differentiator in the output and this takes the step function and creates an offset at $t = 0$ (intead of a smooth curve).\n", - "* The transfer functions are also different, and I don't quite understand why. Need to spend a bit more time on this one.\n", - "\n", - "KJA comment, 1 Jul 2019: The reason why you cannot recreate figures i Example 10.11 is because the caption in figure is wrong, sorry my fault, the y-axis should be lateral position not lateral velocity. The approximate expression for the transfer functions\n", - "\n", - "$$\n", - "G_{y\\delta}=\\frac{av_0s+v_0^2}{bs} = \\frac{1.5 s + 1}{3s^2}=\\frac{0.5s + 0.33}{s}\n", - "$$\n", - "\n", - "are quite close to the values that you get numerically\n", - "\n", - "In this case I think it is useful to have v=1 m/s because we do not drive to fast backwards.\n", - "\n", - "RMM response, 17 Jul 2019\n", - "* Updated figures below use the same parameters as the running example (the current text uses different parameters)\n", - "* Following the material in the text, a pole is added at s = -1 to approximate the dynamics of the steering system. This is not strictly needed, so we could decide to take it out (and update the text)\n", - "\n", - "KJA comment, 20 Jul 2019: I have been oscillating a bit about this example. Of course it does not make sense to drive in reverse in 30 m/s but it seems a bit silly to change parameters just in this case (if we do we have to motivate it). On the other hand what we are doing is essentially based on transfer functions and a RHP zero. My current view which has changed a few times is to keep the standard parameters. In any case we should eliminate the extra time constant. A small detail, I could not see the time response in the file you sent, do not resend it!, I will look at the final version.\n", - "\n", - "RMM comment, 23 Jul 2019: I think it is OK to have the speed be different and just talk about this in the text. I have removed the extra time constant in the current version." - ] - }, { "cell_type": "code", "execution_count": 11, @@ -900,26 +873,6 @@ "For a lane transfer system we would like to have a nice response without overshoot, and we therefore consider the use of feedforward compensation to provide a reference trajectory for the closed loop system. We choose the desired response as $F_\\text{m}(s) = a^22/(s + a)^2$, where the response speed or aggressiveness of the steering is governed by the parameter $a$." ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "RMM note, 27 Jun 2019:\n", - "* $a$ was used in the original description of the dynamics as the reference offset. Perhaps choose a different symbol here?\n", - "* In current version of Ch 12, the $y$ axis is labeled in absolute units, but it should actually be in normalized units, I think.\n", - "* The steering angle input for this example is quite high. Compare to Example 8.8, above. Also, we should probably make the size of the \"lane change\" from this example match whatever we use in Example 8.8\n", - "\n", - "KJA comments, 1 Jul 2019: Chosen parameters look good to me\n", - "\n", - "RMM response, 17 Jul 2019\n", - "* I changed the time constant for the feedforward model to give something that is more reasonable in terms of turning angle at the speed of $v_0 = 30$ m/s. Note that this takes about 30 body lengths to change lanes (= 9 seconds at 105 kph).\n", - "* The time to change lanes is about 2X what it is using the differentially flat trajectory above. This is mainly because the feedback controller applies a large pulse at the beginning of the trajectory (based on the input error), whereas the differentially flat trajectory spreads the turn over a longer interval. Since are living the steering angle, we have to limit the size of the pulse => slow down the time constant for the reference model.\n", - "\n", - "KJA response, 20 Jul 2019: I think the time for lane change is too long, which may depend on the small steering angles used. The largest steering angle is about 0.03 rad, but we have admitted larger values in previous examples. I suggest that we change the design so that the largest sterring angel is closer to 0.05, see the remark from Bjorn O a lane change could take about 5 s at 30m/s. \n", - "\n", - "RMM response, 23 Jul 2019: I reset the time constant to 0.2, which gives something closer to what we had for trajectory generation. It is still slower, but this is to be expected since it is a linear controller. We now finish the trajectory in 20 body lengths, which is about 6 seconds." - ] - }, { "cell_type": "code", "execution_count": 13, @@ -985,15 +938,6 @@ "Consider a controller based on state feedback combined with an observer where we want a faster closed loop system and choose $\\omega_\\text{c} = 10$, $\\zeta_\\text{c} = 0.707$, $\\omega_\\text{o} = 20$, and $\\zeta_\\text{o} = 0.707$." ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "KJA comment, 20 Jul 2019: This is a really troublesome case. If we keep it as a vehicle steering problem we must have an order of magnitude lower valuer for $\\omega_c$ and $\\omega_o$ and then the zero will not be slow. My recommendation is to keep it as a general system with the transfer function. $P(s)=(s+1)/s^2$. The text then has to be reworded.\n", - "\n", - "RMM response, 23 Jul 2019: I think the way we have it is OK. Our current value for the controller and observer is $\\omega_\\text{c} = 0.7$ and $\\omega_\\text{o} = 1$. Here we way we want something faster and so we got to $\\omega_\\text{c} = 7$ (10X) and $\\omega_\\text{o} = 10$ (10X)." - ] - }, { "cell_type": "code", "execution_count": 14, @@ -1119,13 +1063,6 @@ "ct.gangof4(P, C1, np.logspace(-1, 3, 100))\n", "ct.gangof4(P, C2, np.logspace(-1, 3, 100))" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { From e99273a8e84a947a1618f065decfcf2112f0bfab Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Wed, 10 Mar 2021 20:22:50 -0800 Subject: [PATCH 219/260] added dynamics and output to statespace and iosystems --- control/iosys.py | 74 +++++++++++++++++++++++----- control/statesp.py | 90 +++++++++++++++++++++++++++++++++++ control/tests/statesp_test.py | 64 +++++++++++++++++++++++++ 3 files changed, 215 insertions(+), 13 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 7ed4c8b05..5308fdf74 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -358,7 +358,7 @@ def _update_params(self, params, warning=False): if (warning): warn("Parameters passed to InputOutputSystem ignored.") - def _rhs(self, t, x, u): + def _rhs(self, t, x, u, params={}): """Evaluate right hand side of a differential or difference equation. Private function used to compute the right hand side of an @@ -368,6 +368,39 @@ def _rhs(self, t, x, u): NotImplemented("Evaluation not implemented for system of type ", type(self)) + def dynamics(self, t, x, u, params={}): + """Compute the dynamics of a differential or difference equation. + + Given time `t`, input `u` and state `x`, returns the value of the + right hand side of the dynamical system. If the system is continuous, + returns the time derivative + + dx/dt = f(t, x, u) + + where `f` is the system's (possibly nonlinear) dynamics function. + If the system is discrete-time, returns the next value of `x`: + + x[t+dt] = f(t, x[t], u[t]) + + Where `t` is a scalar. + + The inputs `x` and `u` must be of the correct length. + + Parameters + ---------- + t : float + the time at which to evaluate + x : array_like + current state + u : array_like + input + + Returns + ------- + dx/dt or x[t+dt] : ndarray + """ + return self._rhs(t, x, u, params) + def _out(self, t, x, u, params={}): """Evaluate the output of a system at a given state, input, and time @@ -378,6 +411,31 @@ def _out(self, t, x, u, params={}): # If no output function was defined in subclass, return state return x + def output(self, t, x, u, params={}): + """Compute the output of the system + + Given time `t`, input `u` and state `x`, returns the output of the + system: + + y = g(t, x, u) + + The inputs `x` and `u` must be of the correct length. + + Parameters + ---------- + t : float + the time at which to evaluate + x : array_like + current state + u : array_like + input + + Returns + ------- + y : ndarray + """ + return self._out(t, x, u, params) + def set_inputs(self, inputs, prefix='u'): """Set the number/names of the system inputs. @@ -694,18 +752,8 @@ def _update_params(self, params={}, warning=True): if params and warning: warn("Parameters passed to LinearIOSystems are ignored.") - def _rhs(self, t, x, u): - # Convert input to column vector and then change output to 1D array - xdot = np.dot(self.A, np.reshape(x, (-1, 1))) \ - + np.dot(self.B, np.reshape(u, (-1, 1))) - return np.array(xdot).reshape((-1,)) - - def _out(self, t, x, u): - # Convert input to column vector and then change output to 1D array - y = np.dot(self.C, np.reshape(x, (-1, 1))) \ - + np.dot(self.D, np.reshape(u, (-1, 1))) - return np.array(y).reshape((-1,)) - + _rhs = StateSpace.dynamics + _out = StateSpace.output class NonlinearIOSystem(InputOutputSystem): """Nonlinear I/O system. diff --git a/control/statesp.py b/control/statesp.py index d2b613024..a25f10358 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1227,12 +1227,102 @@ def dcgain(self, warn_infinite=False): return self(0, warn_infinite=warn_infinite) if self.isctime() \ else self(1, warn_infinite=warn_infinite) + def dynamics(self, *args): + """Compute the dynamics of the system + + Given input `u` and state `x`, returns the dynamics of the state-space + system. If the system is continuous, returns the time derivative dx/dt + + dx/dt = A x + B u + + where A and B are the state-space matrices of the system. If the + system is discrete-time, returns the next value of `x`: + + x[t+dt] = A x[t] + B u[t] + + The inputs `x` and `u` must be of the correct length for the system. + + The calling signature is ``out = sys.dynamics(t, x[, u])`` + The first argument `t` is ignored because :class:`StateSpace` systems + are time-invariant. It is included so that the dynamics can be passed + to most numerical integrators, such as scipy's `integrate.solve_ivp` and + for consistency with :class:`IOSystem` systems. + + Parameters + ---------- + t : float (ignored) + time + x : array_like + current state + u : array_like (optional) + input, zero if omitted + + Returns + ------- + dx/dt or x[t+dt] : ndarray + """ + if len(args) not in (2, 3): + raise ValueError("received"+len(args)+"args, expected 2 or 3") + if np.size(args[1]) != self.nstates: + raise ValueError("len(x) must be equal to number of states") + if len(args) == 2: # received t and x, ignore t + return self.A.dot(args[1]).reshape((-1,)) # return as row vector + else: # received t, x, and u, ignore t + if np.size(args[2]) != self.ninputs: + raise ValueError("len(u) must be equal to number of inputs") + return self.A.dot(args[1]).reshape((-1,)) \ + + self.B.dot(args[2]).reshape((-1,)) # return as row vector + + def output(self, *args): + """Compute the output of the system + + Given input `u` and state `x`, returns the output `y` of the + state-space system: + + y = C x + D u + + where A and B are the state-space matrices of the system. + + The calling signature is ``y = sys.output(t, x[, u])`` + The first argument `t` is ignored because :class:`StateSpace` systems + are time-invariant. It is included so that the dynamics can be passed + to most numerical integrators, such as scipy's `integrate.solve_ivp` and + for consistency with :class:`IOSystem` systems. + + The inputs `x` and `u` must be of the correct length for the system. + + Parameters + ---------- + t : float (ignored) + time + x : array_like + current state + u : array_like (optional) + input (zero if omitted) + + Returns + ------- + y : ndarray + """ + if len(args) not in (2, 3): + raise ValueError("received"+len(args)+"args, expected 2 or 3") + if np.size(args[1]) != self.nstates: + raise ValueError("len(x) must be equal to number of states") + if len(args) == 2: # received t and x, ignore t + return self.C.dot(args[1]).reshape((-1,)) # return as row vector + else: # received t, x, and u, ignore t + if np.size(args[2]) != self.ninputs: + raise ValueError("len(u) must be equal to number of inputs") + return self.C.dot(args[1]).reshape((-1,)) \ + + self.D.dot(args[2]).reshape((-1,)) # return as row vector + def _isstatic(self): """True if and only if the system has no dynamics, that is, if A and B are zero. """ return not np.any(self.A) and not np.any(self.B) + # TODO: add discrete time check def _convert_to_statespace(sys, **kw): """Convert a system to state space form (if needed). diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 983b9d7a6..2f86578a4 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -8,6 +8,7 @@ """ import numpy as np +from numpy.testing import assert_array_almost_equal import pytest import operator from numpy.linalg import solve @@ -47,6 +48,17 @@ def sys322(self, sys322ABCD): """3-states square system (2 inputs x 2 outputs)""" return StateSpace(*sys322ABCD) + @pytest.fixture + def sys121(self): + """2 state, 1 input, 1 output (siso) system""" + A121 = [[4., 1.], + [2., -3]] + B121 = [[5.], + [-3.]] + C121 = [[2., -4]] + D121 = [[3.]] + return StateSpace(A121, B121, C121, D121) + @pytest.fixture def sys222(self): """2-states square system (2 inputs x 2 outputs)""" @@ -751,6 +763,58 @@ def test_horner(self, sys322): np.squeeze(sys322.horner(1.j)), mag[:, :, 0] * np.exp(1.j * phase[:, :, 0])) + @pytest.mark.parametrize('x', + [[1, 1], [[1], [1]], np.atleast_2d([1,1]).T]) + @pytest.mark.parametrize('u', [0, 1, np.atleast_1d(2)]) + def test_dynamics_and_output_siso(self, x, u, sys121): + assert_array_almost_equal( + sys121.dynamics(0, x, u), + sys121.A.dot(x).reshape((-1,)) + sys121.B.dot(u).reshape((-1,))) + assert_array_almost_equal( + sys121.output(0, x, u), + sys121.C.dot(x).reshape((-1,)) + sys121.D.dot(u).reshape((-1,))) + + # too few and too many states and inputs + @pytest.mark.parametrize('x', [0, 1, [], [1, 2, 3], np.atleast_1d(2)]) + def test_error_x_dynamics_and_output_siso(self, x, sys121): + with pytest.raises(ValueError): + sys121.dynamics(0, x) + with pytest.raises(ValueError): + sys121.output(0, x) + @pytest.mark.parametrize('u', [[1, 1], np.atleast_1d((2, 2))]) + def test_error_u_dynamics_output_siso(self, u, sys121): + with pytest.raises(ValueError): + sys121.dynamics(0, 1, u) + with pytest.raises(ValueError): + sys121.output(0, 1, u) + + @pytest.mark.parametrize('x', + [[1, 1], [[1], [1]], np.atleast_2d([1,1]).T]) + @pytest.mark.parametrize('u', + [[1, 1], [[1], [1]], np.atleast_2d([1,1]).T]) + def test_dynamics_and_output_mimo(self, x, u, sys222): + assert_array_almost_equal( + sys222.dynamics(0, x, u), + sys222.A.dot(x).reshape((-1,)) + sys222.B.dot(u).reshape((-1,))) + assert_array_almost_equal( + sys222.output(0, x, u), + sys222.C.dot(x).reshape((-1,)) + sys222.D.dot(u).reshape((-1,))) + + # too few and too many states and inputs + @pytest.mark.parametrize('x', [0, 1, [1, 1, 1]]) + def test_error_x_dynamics_mimo(self, x, sys222): + with pytest.raises(ValueError): + sys222.dynamics(0, x) + with pytest.raises(ValueError): + sys222.output(0, x) + @pytest.mark.parametrize('u', [0, 1, [1, 1, 1]]) + def test_error_u_dynamics_mimo(self, u, sys222): + with pytest.raises(ValueError): + sys222.dynamics(0, (1, 1), u) + with pytest.raises(ValueError): + sys222.output(0, (1, 1), u) + + class TestRss: """These are tests for the proper functionality of statesp.rss.""" From 9678bd133eee165c2c9e513d7f94361ae0a801e8 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 11 Mar 2021 09:17:36 -0800 Subject: [PATCH 220/260] add remark in docstring for iosys._rhs and _out that they are intended for fast evaluation. --- control/iosys.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 5308fdf74..4fd3dd5af 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -362,7 +362,9 @@ def _rhs(self, t, x, u, params={}): """Evaluate right hand side of a differential or difference equation. Private function used to compute the right hand side of an - input/output system model. + input/output system model. Intended for fast + evaluation; for a more user-friendly interface + you may want to use :meth:`dynamics`. """ NotImplemented("Evaluation not implemented for system of type ", @@ -405,7 +407,9 @@ def _out(self, t, x, u, params={}): """Evaluate the output of a system at a given state, input, and time Private function used to compute the output of of an input/output - system model given the state, input, parameters, and time. + system model given the state, input, parameters. Intended for fast + evaluation; for a more user-friendly interface you may want to use + :meth:`output`. """ # If no output function was defined in subclass, return state From c0f7d06ff86894d37af3fcef65a9484a93ee0a13 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 11 Mar 2021 09:45:00 -0800 Subject: [PATCH 221/260] fix to possibly fix pytest errors when using matrix --- control/statesp.py | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index a25f10358..9ef476e8e 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1262,16 +1262,20 @@ def dynamics(self, *args): dx/dt or x[t+dt] : ndarray """ if len(args) not in (2, 3): - raise ValueError("received"+len(args)+"args, expected 2 or 3") - if np.size(args[1]) != self.nstates: + raise ValueError("received" + len(args) + "args, expected 2 or 3") + + x = np.reshape(args[1], (-1, 1)) # force to a column in case matrix + if np.size(x) != self.nstates: raise ValueError("len(x) must be equal to number of states") + if len(args) == 2: # received t and x, ignore t - return self.A.dot(args[1]).reshape((-1,)) # return as row vector + return self.A.dot(x).reshape((-1,)) # return as row vector else: # received t, x, and u, ignore t - if np.size(args[2]) != self.ninputs: + u = np.reshape(args[2], (-1, 1)) # force to a column in case matrix + if np.size(u) != self.ninputs: raise ValueError("len(u) must be equal to number of inputs") - return self.A.dot(args[1]).reshape((-1,)) \ - + self.B.dot(args[2]).reshape((-1,)) # return as row vector + return self.A.dot(x).reshape((-1,)) \ + + self.B.dot(u).reshape((-1,)) # return as row vector def output(self, *args): """Compute the output of the system @@ -1306,15 +1310,19 @@ def output(self, *args): """ if len(args) not in (2, 3): raise ValueError("received"+len(args)+"args, expected 2 or 3") - if np.size(args[1]) != self.nstates: + + x = np.reshape(args[1], (-1, 1)) # force to a column in case matrix + if np.size(x) != self.nstates: raise ValueError("len(x) must be equal to number of states") + if len(args) == 2: # received t and x, ignore t - return self.C.dot(args[1]).reshape((-1,)) # return as row vector + return self.C.dot(x).reshape((-1,)) # return as row vector else: # received t, x, and u, ignore t - if np.size(args[2]) != self.ninputs: + u = np.reshape(args[2], (-1, 1)) # force to a column in case matrix + if np.size(u) != self.ninputs: raise ValueError("len(u) must be equal to number of inputs") - return self.C.dot(args[1]).reshape((-1,)) \ - + self.D.dot(args[2]).reshape((-1,)) # return as row vector + return self.C.dot(x).reshape((-1,)) \ + + self.D.dot(u).reshape((-1,)) # return as row vector def _isstatic(self): """True if and only if the system has no dynamics, that is, From 64d0dde4b37675b87edb853f42571ed1b81414e4 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Thu, 11 Mar 2021 09:53:11 -0800 Subject: [PATCH 222/260] another try at fixing failing unit tests --- control/iosys.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 4fd3dd5af..1f33bfc76 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -756,8 +756,17 @@ def _update_params(self, params={}, warning=True): if params and warning: warn("Parameters passed to LinearIOSystems are ignored.") - _rhs = StateSpace.dynamics - _out = StateSpace.output + def _rhs(self, t, x, u): + # Convert input to column vector and then change output to 1D array + xdot = np.dot(self.A, np.reshape(x, (-1, 1))) \ + + np.dot(self.B, np.reshape(u, (-1, 1))) + return np.array(xdot).reshape((-1,)) + + def _out(self, t, x, u): + # Convert input to column vector and then change output to 1D array + y = np.dot(self.C, np.reshape(x, (-1, 1))) \ + + np.dot(self.D, np.reshape(u, (-1, 1))) + return np.array(y).reshape((-1,)) class NonlinearIOSystem(InputOutputSystem): """Nonlinear I/O system. From a8a536b670d7dd868f913c4a8bfa62efcd7c47d5 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 12 Mar 2021 12:18:34 -0800 Subject: [PATCH 223/260] new method keyword in stability_margins; falls back to FRD when numerical inaccuracy in dt polynomial calculation --- control/freqplot.py | 5 ++-- control/margins.py | 50 +++++++++++++++++++++++++++++++++--- control/tests/margin_test.py | 15 ++++++++--- 3 files changed, 60 insertions(+), 10 deletions(-) diff --git a/control/freqplot.py b/control/freqplot.py index 750d84d27..fe18ea27d 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -88,7 +88,7 @@ def bode_plot(syslist, omega=None, plot=True, omega_limits=None, omega_num=None, - margins=None, *args, **kwargs): + margins=None, method='best', *args, **kwargs): """Bode plot for a system Plots a Bode plot for the system over a (optional) frequency range. @@ -117,6 +117,7 @@ def bode_plot(syslist, omega=None, config.defaults['freqplot.number_of_samples']. margins : bool If True, plot gain and phase margin. + method : method to use in computing margins (see :func:`stability_margins`) *args : :func:`matplotlib.pyplot.plot` positional properties, optional Additional arguments for `matplotlib` plots (color, linestyle, etc) **kwargs : :func:`matplotlib.pyplot.plot` keyword properties, optional @@ -373,7 +374,7 @@ def bode_plot(syslist, omega=None, # Show the phase and gain margins in the plot if margins: # Compute stability margins for the system - margin = stability_margins(sys) + margin = stability_margins(sys, method=method) gm, pm, Wcg, Wcp = (margin[i] for i in (0, 1, 3, 4)) # Figure out sign of the phase at the first gain crossing diff --git a/control/margins.py b/control/margins.py index 96b997496..d7d0b7e00 100644 --- a/control/margins.py +++ b/control/margins.py @@ -56,6 +56,7 @@ from . import xferfcn from .lti import issiso, evalfr from . import frdata +from . import freqplot from .exception import ControlMIMONotImplemented __all__ = ['stability_margins', 'phase_crossover_frequencies', 'margin'] @@ -206,6 +207,17 @@ def fun(wdt): return z, w +def _numerical_inaccuracy(sys): + # crude, conservative check for if + # num(z)*num(1/z) << den(z)*den(1/z) for DT systems + num, den, num_inv_zp, den_inv_zq, p_q, dt = _poly_z_invz(sys) + p1 = np.polymul(num, num_inv_zp) + p2 = np.polymul(den, den_inv_zq) + if p_q < 0: + # * z**(-p_q) + x = [1] + [0] * (-p_q) + p1 = np.polymul(p1, x) + return np.linalg.norm(p1) < 1e-3 * np.linalg.norm(p2) # Took the framework for the old function by # Sawyer B. Fuller , removed a lot of the innards @@ -237,25 +249,34 @@ def fun(wdt): # systems -def stability_margins(sysdata, returnall=False, epsw=0.0): +def stability_margins(sysdata, returnall=False, epsw=0.0, method='best'): """Calculate stability margins and associated crossover frequencies. Parameters ---------- - sysdata: LTI system or (mag, phase, omega) sequence + sysdata : LTI system or (mag, phase, omega) sequence sys : LTI system Linear SISO system representing the loop transfer function mag, phase, omega : sequence of array_like Arrays of magnitudes (absolute values, not dB), phases (degrees), and corresponding frequencies. Crossover frequencies returned are in the same units as those in `omega` (e.g., rad/sec or Hz). - returnall: bool, optional + returnall : bool, optional If true, return all margins found. If False (default), return only the minimum stability margins. For frequency data or FRD systems, only margins in the given frequency region can be found and returned. - epsw: float, optional + epsw : float, optional Frequencies below this value (default 0.0) are considered static gain, and not returned as margin. + method : string, optional + Method to use (default is 'best'): + 'poly': use polynomial method if passed a :class:`LTI` system. + 'frd': calculate crossover frequencies using numerical interpolation + of a :class:`FrequencyResponseData` representation of the system if + passed a :class:`LTI` system. + 'best': use the 'poly' method if possible, reverting to 'frd' if it is + detected that numerical inaccuracy is likey to arise in the 'poly' + method for for discrete-time systems. Returns ------- @@ -300,6 +321,27 @@ def stability_margins(sysdata, returnall=False, epsw=0.0): raise ControlMIMONotImplemented( "Can only do margins for SISO system") + if method == 'frd': + # convert to FRD if we got a transfer function + if isinstance(sys, xferfcn.TransferFunction): + omega_sys = freqplot._default_frequency_range(sys) + if sys.isctime(): + sys = frdata.FRD(sys, omega_sys) + else: + omega_sys = omega_sys[omega_sys < np.pi / sys.dt] + sys = frdata.FRD(sys(np.exp(1j*sys.dt*omega_sys)), omega_sys, + smooth=True) + elif method == 'best': + # convert to FRD if anticipated numerical issues + if isinstance(sys, xferfcn.TransferFunction) and not sys.isctime(): + if _numerical_inaccuracy(sys): + omega_sys = freqplot._default_frequency_range(sys) + omega_sys = omega_sys[omega_sys < np.pi / sys.dt] + sys = frdata.FRD(sys(np.exp(1j*sys.dt*omega_sys)), omega_sys, + smooth=True) + elif method != 'poly': + raise ValueError("method " + method + " unknown") + if isinstance(sys, xferfcn.TransferFunction): if sys.isctime(): num_iw, den_iw = _poly_iw(sys) diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index fbd79c60b..fbba9cc54 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -104,7 +104,6 @@ def test_margin_sys(tsys): out = margin(sys) assert_allclose(out, np.array(refout)[[0, 1, 3, 4]], atol=1.5e-3) - def test_margin_3input(tsys): sys, refout, refoutall = tsys """Test margin() function with mag, phase, omega input""" @@ -339,11 +338,11 @@ def test_zmore_stability_margins(tsys_zmore): 'ref,' 'rtol', [( # gh-465 - [2], [1, 3, 2, 0], 1e-2, + [2], [1, 3, 2, 0], 1e-2, [2.9558, 32.390, 0.43584, 1.4037, 0.74951, 0.97079], 2e-3), # the gradient of the function reduces numerical precision ( # 2/(s+1)**3 - [2], [1, 3, 3, 1], .1, + [2], [1, 3, 3, 1], .1, [3.4927, 65.4212, 0.5763, 1.6283, 0.76625, 1.2019], 1e-4), ( # gh-523 @@ -354,5 +353,13 @@ def test_zmore_stability_margins(tsys_zmore): def test_stability_margins_discrete(cnum, cden, dt, ref, rtol): """Test stability_margins with discrete TF input""" tf = TransferFunction(cnum, cden).sample(dt) - out = stability_margins(tf) + out = stability_margins(tf, method='poly') assert_allclose(out, ref, rtol=rtol) + +def test_stability_margins_methods(): + sys = TransferFunction(1, (1, 2)) + """Test stability_margins() function with different methods""" + out = stability_margins(sys, method='best') + out = stability_margins(sys, method='frd') + out = stability_margins(sys, method='poly') + From 12635500e42d89cb4abfbb0fed88d2d6b5594e72 Mon Sep 17 00:00:00 2001 From: jpp Date: Fri, 12 Mar 2021 17:41:03 -0300 Subject: [PATCH 224/260] =?UTF-8?q?Added=205=20test=20for=20step=5Finfo:?= =?UTF-8?q?=201)=20System=20Type=201=20-=20Step=20response=20not=20station?= =?UTF-8?q?ary:=C2=A0=20G(s)=3D1/s(s+1)=202)=20SISO=20system=20with=20unde?= =?UTF-8?q?r=20shoot=20response=20and=20positive=20final=20value=20G(s)=3D?= =?UTF-8?q?(-s+1)/(s=C2=B2+s+1)=203)=20Same=20system=20that=202)=20with=20?= =?UTF-8?q?k=3D-1=204)=20example=20from=20matlab=20online=20help=20https:/?= =?UTF-8?q?/www.mathworks.com/help/control/ref/stepinfo.html=20G(s)=3D(s?= =?UTF-8?q?=C2=B2+5s+5)/(s^4+1.65s^3+6.5s+2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit with stepinfo output:         RiseTime: 3.8456     SettlingTime: 27.9762      SettlingMin: 2.0689      SettlingMax: 2.6873        Overshoot: 7.4915       Undershoot: 0             Peak: 2.6873         PeakTime: 8.0530 5) example from matlab online help https://www.mathworks.com/help/control/ref/stepinfo.html A = [0.68 -0.34; 0.34 0.68]; B = [0.18 -0.05; 0.04 0.11]; C = [0 -1.53; -1.12 -1.10]; D = [0 0; 0.06 -0.37]; sys = StateSpace(A,B,C,D,0.2); examine the response characteristics for the response from the first input to the second output of sys. with stepinfo output:         RiseTime: 0.4000     SettlingTime: 2.8000      SettlingMin: -0.6724      SettlingMax: -0.5188        Overshoot: 24.6476       Undershoot: 11.1224             Peak: 0.6724         PeakTime: 1 --- control/tests/timeresp_test.py | 105 ++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 1 deletion(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 37fcff763..54a349523 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -193,6 +193,35 @@ def pole_cancellation(self): def no_pole_cancellation(self): return TransferFunction([1.881e+06], [188.1, 1.881e+06]) + + @pytest.fixture + def siso_tf_type1(self): + # System Type 1 - Step response not stationary: G(s)=1/s(s+1) + return TransferFunction(1, [1, 1, 0]) + + @pytest.fixture + def siso_tf_kpos(self): + # SISO under shoot response and positive final value G(s)=(-s+1)/(s²+s+1) + return TransferFunction([-1, 1], [1, 1, 1]) + + @pytest.fixture + def siso_tf_kneg(self): + # SISO under shoot response and negative final value k=-1 G(s)=-(-s+1)/(s²+s+1) + return TransferFunction([1, -1], [1, 1, 1]) + + @pytest.fixture + def tf1_matlab_help(self): + # example from matlab online help https://www.mathworks.com/help/control/ref/stepinfo.html + return TransferFunction([1, 5, 5], [1, 1.65, 5, 6.5, 2]) + + @pytest.fixture + def tf2_matlab_help(self): + A = [[0.68, - 0.34], [0.34, 0.68]] + B = [[0.18], [0.04]] + C = [-1.12, - 1.10] + D = [0.06] + sys = StateSpace(A, B, C, D, 0.2) + return sys @pytest.fixture def tsystem(self, @@ -202,7 +231,9 @@ def tsystem(self, siso_dtf0, siso_dtf1, siso_dtf2, siso_dss1, siso_dss2, mimo_dss1, mimo_dss2, mimo_dtf1, - pole_cancellation, no_pole_cancellation): + pole_cancellation, no_pole_cancellation, siso_tf_type1, + siso_tf_kpos, siso_tf_kneg, tf1_matlab_help, + tf2_matlab_help): systems = {"siso_ss1": siso_ss1, "siso_ss2": siso_ss2, "siso_tf1": siso_tf1, @@ -220,6 +251,11 @@ def tsystem(self, "mimo_dtf1": mimo_dtf1, "pole_cancellation": pole_cancellation, "no_pole_cancellation": no_pole_cancellation, + "siso_tf_type1": siso_tf_type1, + "siso_tf_kpos": siso_tf_kpos, + "siso_tf_kneg": siso_tf_kneg, + "tf1_matlab_help": tf1_matlab_help, + "tf2_matlab_help": tf2_matlab_help, } return systems[request.param] @@ -303,6 +339,73 @@ def test_step_info(self): [Strue[k] for k in Sktrue], rtol=rtol) + # tolerance for all parameters could be wrong for some systems ej: discrete systems time parameters tolerance + # could be +/-dt + @pytest.mark.parametrize( + "tsystem, info_true, tolerance", + [("tf1_matlab_help", { + 'RiseTime': 3.8456, + 'SettlingTime': 27.9762, + 'SettlingMin': 2.0689, + 'SettlingMax': 2.6873, + 'Overshoot': 7.4915, + 'Undershoot': 0, + 'Peak': 2.6873, + 'PeakTime': 8.0530, + 'SteadyStateValue': 2.5}, 2e-2), + ("tf2_matlab_help", { + 'RiseTime': 0.4000, + 'SettlingTime': 2.8000, + 'SettlingMin': -0.6724, + 'SettlingMax': -0.5188, + 'Overshoot': 24.6476, + 'Undershoot': 11.1224, + 'Peak': 0.6724, + 'PeakTime': 1, + 'SteadyStateValue': -0.5394}, .2), + ("siso_tf_kpos", { + 'RiseTime': 1.242, + 'SettlingTime': 9.110, + 'SettlingMin': 0.950, + 'SettlingMax': 1.208, + 'Overshoot': 20.840, + 'Undershoot': 27.840, + 'Peak': 1.208, + 'PeakTime': 4.282, + 'SteadyStateValue': 1.0}, 2e-2), + ("siso_tf_kneg", { + 'RiseTime': 1.242, + 'SettlingTime': 9.110, + 'SettlingMin': -1.208, + 'SettlingMax': -0.950, + 'Overshoot': 20.840, + 'Undershoot': 27.840, + 'Peak': 1.208, + 'PeakTime': 4.282, + 'SteadyStateValue': -1.0}, 2e-2), + ("siso_tf_type1", {'RiseTime': np.NaN, + 'SettlingTime': np.NaN, + 'SettlingMin': np.NaN, + 'SettlingMax': np.NaN, + 'Overshoot': np.NaN, + 'Undershoot': np.NaN, + 'Peak': np.Inf, + 'PeakTime': np.Inf, + 'SteadyStateValue': np.NaN}, 2e-2)], + indirect=["tsystem"]) + def test_step_info(self, tsystem, info_true, tolerance): + """ """ + info = step_info(tsystem) + + info_true_sorted = sorted(info_true.keys()) + info_sorted = sorted(info.keys()) + + assert info_sorted == info_true_sorted + + np.testing.assert_allclose([info_true[k] for k in info_true_sorted], + [info[k] for k in info_sorted], + rtol=tolerance) + def test_step_pole_cancellation(self, pole_cancellation, no_pole_cancellation): # confirm that pole-zero cancellation doesn't perturb results From f9641709f8f4b647715ad1e71a2533a8d3757ec0 Mon Sep 17 00:00:00 2001 From: jpp Date: Fri, 12 Mar 2021 17:45:47 -0300 Subject: [PATCH 225/260] Solve issue #337, #565 and #564 --- control/timeresp.py | 79 ++++++++++++++++++++++++++++++++------------- 1 file changed, 56 insertions(+), 23 deletions(-) diff --git a/control/timeresp.py b/control/timeresp.py index 3df225de9..7df7f34d6 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -794,34 +794,67 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, # Steady state value InfValue = sys.dcgain() - # RiseTime - tr_lower_index = (np.where(yout >= RiseTimeLimits[0] * InfValue)[0])[0] - tr_upper_index = (np.where(yout >= RiseTimeLimits[1] * InfValue)[0])[0] - RiseTime = T[tr_upper_index] - T[tr_lower_index] - - # SettlingTime - sup_margin = (1. + SettlingTimeThreshold) * InfValue - inf_margin = (1. - SettlingTimeThreshold) * InfValue - # find Steady State looking for the first point out of specified limits - for i in reversed(range(T.size)): - if((yout[i] <= inf_margin) | (yout[i] >= sup_margin)): - SettlingTime = T[i + 1] - break + # TODO: this could be a function step_info4data(t,y,yfinal) + rise_time: float = np.NaN + settling_time: float = np.NaN + settling_min: float = np.NaN + settling_max: float = np.NaN + peak_value: float = np.Inf + peak_time: float = np.Inf + undershoot: float = np.NaN + overshoot: float = np.NaN + + if not np.isnan(InfValue) and not np.isinf(InfValue): + # Peak + peak_index = np.abs(yout).argmax() + peak_value = np.abs(yout[peak_index]) + peak_time = T[peak_index] + + sup_margin = (1. + SettlingTimeThreshold) * InfValue + inf_margin = (1. - SettlingTimeThreshold) * InfValue + + if InfValue < 0.0: + # RiseTime + tr_lower_index = (np.where(yout <= RiseTimeLimits[0] * InfValue)[0])[0] + tr_upper_index = (np.where(yout <= RiseTimeLimits[1] * InfValue)[0])[0] + # SettlingTime + for i in reversed(range(T.size - 1)): + if (-yout[i] <= np.abs(inf_margin)) | (-yout[i] >= np.abs(sup_margin)): + settling_time = T[i + 1] + break + # Overshoot and Undershoot + overshoot = np.abs(100. * ((-yout).max() - np.abs(InfValue)) / np.abs(InfValue)) + undershoot = np.abs(100. * (-yout).min() / np.abs(InfValue)) + else: + tr_lower_index = (np.where(yout >= RiseTimeLimits[0] * InfValue)[0])[0] + tr_upper_index = (np.where(yout >= RiseTimeLimits[1] * InfValue)[0])[0] + # SettlingTime + for i in reversed(range(T.size - 1)): + if (yout[i] <= inf_margin) | (yout[i] >= sup_margin): + settling_time = T[i + 1] + break + # Overshoot and Undershoot + overshoot = np.abs(100. * (yout.max() - InfValue) / InfValue) + undershoot = np.abs(100. * yout.min() / InfValue) + + # RiseTime + rise_time = T[tr_upper_index] - T[tr_lower_index] + + settling_max = (yout[tr_upper_index:]).max() + settling_min = (yout[tr_upper_index:]).min() - PeakIndex = np.abs(yout).argmax() return { - 'RiseTime': RiseTime, - 'SettlingTime': SettlingTime, - 'SettlingMin': yout[tr_upper_index:].min(), - 'SettlingMax': yout.max(), - 'Overshoot': 100. * (yout.max() - InfValue) / InfValue, - 'Undershoot': yout.min(), # not very confident about this - 'Peak': yout[PeakIndex], - 'PeakTime': T[PeakIndex], + 'RiseTime': rise_time, + 'SettlingTime': settling_time, + 'SettlingMin': settling_min, + 'SettlingMax': settling_max, + 'Overshoot': overshoot, + 'Undershoot': undershoot, + 'Peak': peak_value, + 'PeakTime': peak_time, 'SteadyStateValue': InfValue } - def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, transpose=False, return_x=False, squeeze=None): # pylint: disable=W0622 From 94fe55e73cc1a86fe76b6419f3dde213f449e4eb Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 12 Mar 2021 13:22:30 -0800 Subject: [PATCH 226/260] impoed unit tests --- control/margins.py | 2 +- control/tests/margin_test.py | 24 +++++++++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/control/margins.py b/control/margins.py index d7d0b7e00..38dd4c605 100644 --- a/control/margins.py +++ b/control/margins.py @@ -300,6 +300,7 @@ def stability_margins(sysdata, returnall=False, epsw=0.0, method='best'): determined by the frequency of maximum sensitivity (given by the magnitude of 1/(1+L)). """ + # TODO: FRD method for cont-time systems doesn't work try: if isinstance(sysdata, frdata.FRD): sys = frdata.FRD(sysdata, smooth=True) @@ -408,7 +409,6 @@ def _dstab(w): w_180 = np.array( [sp.optimize.brentq(_arg, sys.omega[i], sys.omega[i+1]) for i in widx]) - # TODO: replace by evalfr(sys, 1J*w) or sys(1J*w), (needs gh-449) w180_resp = sys(1j * w_180) # Find all crossings, note that this depends on omega having diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index fbba9cc54..a8888bfcf 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -356,10 +356,24 @@ def test_stability_margins_discrete(cnum, cden, dt, ref, rtol): out = stability_margins(tf, method='poly') assert_allclose(out, ref, rtol=rtol) + def test_stability_margins_methods(): - sys = TransferFunction(1, (1, 2)) + # the following system gives slightly inaccurate result for DT systems + # because of numerical issues + omegan = 1 + zeta = 0.5 + resonance = TransferFunction(omegan**2, [1, 2*zeta*omegan, omegan**2]) + omegan2 = 100 + resonance2 = TransferFunction(omegan2**2, [1, 2*zeta*omegan2, omegan2**2]) + sys = 5 * resonance * resonance2 + sysd = sys.sample(0.001, 'zoh') """Test stability_margins() function with different methods""" - out = stability_margins(sys, method='best') - out = stability_margins(sys, method='frd') - out = stability_margins(sys, method='poly') - + out = stability_margins(sysd, method='best') + assert_allclose( + (18.876634845228644, 11.244969911924102, 0.40684128014454546, + 9.763585543509473, 4.351735617240803, 2.559873290031937), + stability_margins(sysd, method='poly')) + assert_allclose( + (18.876634740386308, 26.356358386241055, 0.40684127995261044, + 9.763585494645046, 2.3293357226374805, 2.55985695034263), + stability_margins(sysd, method='frd')) From fd80fc8e40af4dbabc7e61ae674d39def1f7ae97 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 12 Mar 2021 22:26:33 +0100 Subject: [PATCH 227/260] support discrete system as input for FRD --- control/frdata.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/control/frdata.py b/control/frdata.py index 3398bfbee..c620984f6 100644 --- a/control/frdata.py +++ b/control/frdata.py @@ -110,9 +110,14 @@ def __init__(self, *args, **kwargs): # the frequency range otherlti = args[0] self.omega = sort(np.asarray(args[1], dtype=float)) - numfreq = len(self.omega) # calculate frequency response at my points - self.fresp = otherlti(1j * self.omega, squeeze=False) + if otherlti.isctime(): + s = 1j * self.omega + self.fresp = otherlti(s, squeeze=False) + else: + z = np.exp(1j * self.omega * otherlti.dt) + self.fresp = otherlti(z, squeeze=False) + else: # The user provided a response and a freq vector self.fresp = array(args[0], dtype=complex) @@ -538,7 +543,10 @@ def _convert_to_FRD(sys, omega, inputs=1, outputs=1): elif isinstance(sys, LTI): omega = np.sort(omega) - fresp = sys(1j * omega) + if sys.isctime(): + fresp = sys(1j * omega) + else: + fresp = sys(np.exp(1j * omega * sys.dt)) if len(fresp.shape) == 1: fresp = fresp[np.newaxis, np.newaxis, :] return FRD(fresp, omega, smooth=True) From 23c4b09ae67bca6415cce13b9113362416dc6286 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 12 Mar 2021 13:41:21 -0800 Subject: [PATCH 228/260] fixes/cleanups suggested by @murrayrm --- control/iosys.py | 9 +++++---- control/statesp.py | 29 ++++++++++------------------- control/tests/statesp_test.py | 14 +++++++++++++- 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 1f33bfc76..e28de59f2 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -370,7 +370,7 @@ def _rhs(self, t, x, u, params={}): NotImplemented("Evaluation not implemented for system of type ", type(self)) - def dynamics(self, t, x, u, params={}): + def dynamics(self, t, x, u): """Compute the dynamics of a differential or difference equation. Given time `t`, input `u` and state `x`, returns the value of the @@ -401,7 +401,7 @@ def dynamics(self, t, x, u, params={}): ------- dx/dt or x[t+dt] : ndarray """ - return self._rhs(t, x, u, params) + return self._rhs(t, x, u) def _out(self, t, x, u, params={}): """Evaluate the output of a system at a given state, input, and time @@ -415,7 +415,7 @@ def _out(self, t, x, u, params={}): # If no output function was defined in subclass, return state return x - def output(self, t, x, u, params={}): + def output(self, t, x, u): """Compute the output of the system Given time `t`, input `u` and state `x`, returns the output of the @@ -438,7 +438,7 @@ def output(self, t, x, u, params={}): ------- y : ndarray """ - return self._out(t, x, u, params) + return self._out(t, x, u) def set_inputs(self, inputs, prefix='u'): """Set the number/names of the system inputs. @@ -768,6 +768,7 @@ def _out(self, t, x, u): + np.dot(self.D, np.reshape(u, (-1, 1))) return np.array(y).reshape((-1,)) + class NonlinearIOSystem(InputOutputSystem): """Nonlinear I/O system. diff --git a/control/statesp.py b/control/statesp.py index 9ef476e8e..758b91ed9 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1227,7 +1227,7 @@ def dcgain(self, warn_infinite=False): return self(0, warn_infinite=warn_infinite) if self.isctime() \ else self(1, warn_infinite=warn_infinite) - def dynamics(self, *args): + def dynamics(self, t, x, u=0): """Compute the dynamics of the system Given input `u` and state `x`, returns the dynamics of the state-space @@ -1242,11 +1242,10 @@ def dynamics(self, *args): The inputs `x` and `u` must be of the correct length for the system. - The calling signature is ``out = sys.dynamics(t, x[, u])`` The first argument `t` is ignored because :class:`StateSpace` systems are time-invariant. It is included so that the dynamics can be passed - to most numerical integrators, such as scipy's `integrate.solve_ivp` and - for consistency with :class:`IOSystem` systems. + to most numerical integrators, such as :func:`scipy.integrate.solve_ivp` + and for consistency with :class:`IOSystem` systems. Parameters ---------- @@ -1261,23 +1260,19 @@ def dynamics(self, *args): ------- dx/dt or x[t+dt] : ndarray """ - if len(args) not in (2, 3): - raise ValueError("received" + len(args) + "args, expected 2 or 3") - - x = np.reshape(args[1], (-1, 1)) # force to a column in case matrix + x = np.reshape(x, (-1, 1)) # force to a column in case matrix if np.size(x) != self.nstates: raise ValueError("len(x) must be equal to number of states") - - if len(args) == 2: # received t and x, ignore t + if u is 0: return self.A.dot(x).reshape((-1,)) # return as row vector else: # received t, x, and u, ignore t - u = np.reshape(args[2], (-1, 1)) # force to a column in case matrix + u = np.reshape(u, (-1, 1)) # force to a column in case matrix if np.size(u) != self.ninputs: raise ValueError("len(u) must be equal to number of inputs") return self.A.dot(x).reshape((-1,)) \ + self.B.dot(u).reshape((-1,)) # return as row vector - def output(self, *args): + def output(self, t, x, u=0): """Compute the output of the system Given input `u` and state `x`, returns the output `y` of the @@ -1287,7 +1282,6 @@ def output(self, *args): where A and B are the state-space matrices of the system. - The calling signature is ``y = sys.output(t, x[, u])`` The first argument `t` is ignored because :class:`StateSpace` systems are time-invariant. It is included so that the dynamics can be passed to most numerical integrators, such as scipy's `integrate.solve_ivp` and @@ -1308,17 +1302,14 @@ def output(self, *args): ------- y : ndarray """ - if len(args) not in (2, 3): - raise ValueError("received"+len(args)+"args, expected 2 or 3") - - x = np.reshape(args[1], (-1, 1)) # force to a column in case matrix + x = np.reshape(x, (-1, 1)) # force to a column in case matrix if np.size(x) != self.nstates: raise ValueError("len(x) must be equal to number of states") - if len(args) == 2: # received t and x, ignore t + if u is 0: return self.C.dot(x).reshape((-1,)) # return as row vector else: # received t, x, and u, ignore t - u = np.reshape(args[2], (-1, 1)) # force to a column in case matrix + u = np.reshape(u, (-1, 1)) # force to a column in case matrix if np.size(u) != self.ninputs: raise ValueError("len(u) must be equal to number of inputs") return self.C.dot(x).reshape((-1,)) \ diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 2f86578a4..1eec5eadb 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -773,6 +773,12 @@ def test_dynamics_and_output_siso(self, x, u, sys121): assert_array_almost_equal( sys121.output(0, x, u), sys121.C.dot(x).reshape((-1,)) + sys121.D.dot(u).reshape((-1,))) + assert_array_almost_equal( + sys121.dynamics(0, x), + sys121.A.dot(x).reshape((-1,))) + assert_array_almost_equal( + sys121.output(0, x), + sys121.C.dot(x).reshape((-1,))) # too few and too many states and inputs @pytest.mark.parametrize('x', [0, 1, [], [1, 2, 3], np.atleast_1d(2)]) @@ -799,6 +805,12 @@ def test_dynamics_and_output_mimo(self, x, u, sys222): assert_array_almost_equal( sys222.output(0, x, u), sys222.C.dot(x).reshape((-1,)) + sys222.D.dot(u).reshape((-1,))) + assert_array_almost_equal( + sys222.dynamics(0, x), + sys222.A.dot(x).reshape((-1,))) + assert_array_almost_equal( + sys222.output(0, x), + sys222.C.dot(x).reshape((-1,))) # too few and too many states and inputs @pytest.mark.parametrize('x', [0, 1, [1, 1, 1]]) @@ -807,7 +819,7 @@ def test_error_x_dynamics_mimo(self, x, sys222): sys222.dynamics(0, x) with pytest.raises(ValueError): sys222.output(0, x) - @pytest.mark.parametrize('u', [0, 1, [1, 1, 1]]) + @pytest.mark.parametrize('u', [1, [1, 1, 1]]) def test_error_u_dynamics_mimo(self, u, sys222): with pytest.raises(ValueError): sys222.dynamics(0, (1, 1), u) From 2b82eef50bde899acaf9477465dc38bf7d03b54a Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 12 Mar 2021 13:57:31 -0800 Subject: [PATCH 229/260] incorporated fix enabled by github #568 --- control/margins.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/control/margins.py b/control/margins.py index 38dd4c605..d01f836e6 100644 --- a/control/margins.py +++ b/control/margins.py @@ -330,16 +330,14 @@ def stability_margins(sysdata, returnall=False, epsw=0.0, method='best'): sys = frdata.FRD(sys, omega_sys) else: omega_sys = omega_sys[omega_sys < np.pi / sys.dt] - sys = frdata.FRD(sys(np.exp(1j*sys.dt*omega_sys)), omega_sys, - smooth=True) + sys = frdata.FRD(sys, omega_sys, smooth=True) elif method == 'best': # convert to FRD if anticipated numerical issues if isinstance(sys, xferfcn.TransferFunction) and not sys.isctime(): if _numerical_inaccuracy(sys): omega_sys = freqplot._default_frequency_range(sys) omega_sys = omega_sys[omega_sys < np.pi / sys.dt] - sys = frdata.FRD(sys(np.exp(1j*sys.dt*omega_sys)), omega_sys, - smooth=True) + sys = frdata.FRD(sys, omega_sys, smooth=True) elif method != 'poly': raise ValueError("method " + method + " unknown") From a75a3d42243517c9f91b247b67f8ce510534769c Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 12 Mar 2021 14:10:06 -0800 Subject: [PATCH 230/260] removed a test that was getting a different reslt on different systems because of numerical problems --- control/tests/margin_test.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index a8888bfcf..6ff9042a3 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -369,10 +369,7 @@ def test_stability_margins_methods(): sysd = sys.sample(0.001, 'zoh') """Test stability_margins() function with different methods""" out = stability_margins(sysd, method='best') - assert_allclose( - (18.876634845228644, 11.244969911924102, 0.40684128014454546, - 9.763585543509473, 4.351735617240803, 2.559873290031937), - stability_margins(sysd, method='poly')) + # confirm getting reasonable results using FRD method assert_allclose( (18.876634740386308, 26.356358386241055, 0.40684127995261044, 9.763585494645046, 2.3293357226374805, 2.55985695034263), From 567b4dbe9a57c5e2a6e3a8f0a509682793c70ed9 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Fri, 12 Mar 2021 14:15:49 -0800 Subject: [PATCH 231/260] relaxed tolerance --- control/tests/margin_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index 6ff9042a3..afeb71efd 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -373,4 +373,4 @@ def test_stability_margins_methods(): assert_allclose( (18.876634740386308, 26.356358386241055, 0.40684127995261044, 9.763585494645046, 2.3293357226374805, 2.55985695034263), - stability_margins(sysd, method='frd')) + stability_margins(sysd, method='frd'), rtol=1e-5) From f02b1bebeaad3b3f8be778406569b7624fd9c760 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 12 Mar 2021 21:48:52 -0800 Subject: [PATCH 232/260] optimize via null space + updated testing This commit changes the way that cost functions and constraints are handled for flat system to carry out optimization only in the null space of the flat system basis coefficients, eliminating the use of an equality constraint for the terminal condition. --- benchmarks/flatsys_bench.py | 39 +------------- control/flatsys/flatsys.py | 58 ++++++++++++++------- control/tests/flatsys_test.py | 88 +++++++++++++++++++++++-------- control/tests/optimal_test.py | 2 +- examples/kincar-flatsys.py | 98 ++++++++++++++++++++++------------- 5 files changed, 171 insertions(+), 114 deletions(-) diff --git a/benchmarks/flatsys_bench.py b/benchmarks/flatsys_bench.py index 63223a725..0c0a5e53a 100644 --- a/benchmarks/flatsys_bench.py +++ b/benchmarks/flatsys_bench.py @@ -94,7 +94,8 @@ def time_steering_cost(): opt.input_range_constraint(vehicle, [8, -0.1], [12, 0.1]) ] traj = flat.point_to_point( - vehicle, timepts, x0, u0, xf, uf, cost=traj_cost + vehicle, timepts, x0, u0, xf, uf, + cost=traj_cost, constraints=constraints, basis=flat.PolyFamily(8) ) # Verify that the trajectory computation is correct @@ -104,39 +105,3 @@ def time_steering_cost(): np.testing.assert_array_almost_equal(xf, x[:, 1]) np.testing.assert_array_almost_equal(uf, u[:, 1]) -def skip_steering_bezier_basis(nbasis, ntimes): - # Set up costs and constriants - Q = np.diag([.1, 10, .1]) # keep lateral error low - R = np.diag([1, 1]) # minimize applied inputs - cost = opt.quadratic_cost(vehicle, Q, R, x0=xf, u0=uf) - constraints = [ opt.input_range_constraint(vehicle, [0, -0.1], [20, 0.1]) ] - terminal = [ opt.state_range_constraint(vehicle, xf, xf) ] - - # Set up horizon - horizon = np.linspace(0, Tf, ntimes, endpoint=True) - - # Set up the optimal control problem - res = opt.solve_ocp( - vehicle, horizon, x0, cost, - constraints, - terminal_constraints=terminal, - initial_guess=bend_left, - basis=flat.BezierFamily(nbasis, T=Tf), - # solve_ivp_kwargs={'atol': 1e-4, 'rtol': 1e-2}, - minimize_method='trust-constr', - minimize_options={'finite_diff_rel_step': 0.01}, - # minimize_method='SLSQP', minimize_options={'eps': 0.01}, - return_states=True, print_summary=False - ) - t, u, x = res.time, res.inputs, res.states - - # Make sure we found a valid solution - assert res.success - -# Reset the timeout value to allow for longer runs -skip_steering_bezier_basis.timeout = 120 - -# Set the parameter values for the number of times and basis vectors -skip_steering_bezier_basis.param_names = ['nbasis', 'ntimes'] -skip_steering_bezier_basis.params = ([2, 4, 6], [5, 10, 20]) - diff --git a/control/flatsys/flatsys.py b/control/flatsys/flatsys.py index c8871fbbc..e386c99ac 100644 --- a/control/flatsys/flatsys.py +++ b/control/flatsys/flatsys.py @@ -42,9 +42,11 @@ import numpy as np import scipy as sp import scipy.optimize +import warnings from .poly import PolyFamily from .systraj import SystemTrajectory from ..iosys import NonlinearIOSystem +from ..timeresp import _check_convert_array # Flat system class (for use as a base class) @@ -217,7 +219,7 @@ def _flat_outfcn(self, t, x, u, params={}): # Solve a point to point trajectory generation problem for a flat system def point_to_point( - sys, timepts, x0, u0, xf, uf, T0=0, basis=None, cost=None, + sys, timepts, x0=0, u0=0, xf=0, uf=0, T0=0, basis=None, cost=None, constraints=None, initial_guess=None, minimize_kwargs={}): """Compute trajectory between an initial and final conditions. @@ -289,12 +291,14 @@ def point_to_point( # # Make sure the problem is one that we can handle # - # TODO: put in tests for flat system input - # TODO: process initial and final conditions to allow x0 or (x0, u0) - if x0 is None: x0 = np.zeros(sys.nstates) - if u0 is None: u0 = np.zeros(sys.ninputs) - if xf is None: xf = np.zeros(sys.nstates) - if uf is None: uf = np.zeros(sys.ninputs) + x0 = _check_convert_array(x0, [(sys.nstates,), (sys.nstates, 1)], + 'Initial state: ', squeeze=True) + u0 = _check_convert_array(u0, [(sys.ninputs,), (sys.ninputs, 1)], + 'Initial input: ', squeeze=True) + xf = _check_convert_array(xf, [(sys.nstates,), (sys.nstates, 1)], + 'Final state: ' , squeeze=True) + uf = _check_convert_array(uf, [(sys.ninputs,), (sys.ninputs, 1)], + 'Final input: ', squeeze=True) # Process final time timepts = np.atleast_1d(timepts) @@ -307,11 +311,16 @@ def point_to_point( # If no basis set was specified, use a polynomial basis (poor choice...) if basis is None: - basis = PolyFamily(2*sys.nstates) + basis = PolyFamily(2 * (sys.nstates + sys.ninputs)) # Make sure we have enough basis functions to solve the problem if basis.N * sys.ninputs < 2 * (sys.nstates + sys.ninputs): raise ValueError("basis set is too small") + elif (cost is not None or constraints is not None) and \ + basis.N * sys.ninputs == 2 * (sys.nstates + sys.ninputs): + warnings.warn("minimal basis specified; optimization not possible") + cost = None + constraints = None # # Map the initial and final conditions to flat output conditions @@ -380,14 +389,18 @@ def point_to_point( # scipy.optimize.minimize(). # - # Look to see if we have costs, constraints, or both - if cost is None and constraints is None: - # Unconstrained => solve a least squares problem - alpha, residuals, rank, s = np.linalg.lstsq(M, Z, rcond=None) + # Start by solving the least squares problem + alpha, residuals, rank, s = np.linalg.lstsq(M, Z, rcond=None) + + if cost is not None or constraints is not None: + # Search over the null space to minimize cost/satisfy constraints + N = sp.linalg.null_space(M) - else: # Define a function to evaluate the cost along a trajectory - def traj_cost(coeffs): + def traj_cost(null_coeffs): + # Add this to the existing solution + coeffs = alpha + N @ null_coeffs + # Evaluate the costs at the listed time points costval = 0 for t in timepts: @@ -418,9 +431,11 @@ def traj_cost(coeffs): traj_cost = lambda coeffs: coeffs @ coeffs # Process the constraints we were given + traj_constraints = constraints if constraints is None: traj_constraints = [] elif isinstance(constraints, tuple): + # TODO: Check to make sure this is really a constraint traj_constraints = [constraints] elif not isinstance(constraints, list): raise TypeError("trajectory constraints must be a list") @@ -429,7 +444,10 @@ def traj_cost(coeffs): minimize_constraints = [] if len(traj_constraints) > 0: # Set up a nonlinear function to evaluate the constraints - def traj_const(coeffs): + def traj_const(null_coeffs): + # Add this to the existing solution + coeffs = alpha + N @ null_coeffs + # Evaluate the constraints at the listed time points values = [] for i, t in enumerate(timepts): @@ -479,11 +497,11 @@ def traj_const(coeffs): traj_const, const_lb, const_ub)] # Add initial and terminal constraints - minimize_constraints += [sp.optimize.LinearConstraint(M, Z, Z)] + # minimize_constraints += [sp.optimize.LinearConstraint(M, Z, Z)] # Process the initial condition if initial_guess is None: - initial_guess = np.zeros(basis.N * sys.ninputs) + initial_guess = np.zeros(basis.N * sys.ninputs - 2 * flag_tot) else: raise NotImplementedError("Initial guess not yet implemented.") @@ -492,9 +510,11 @@ def traj_const(coeffs): traj_cost, initial_guess, constraints=minimize_constraints, **minimize_kwargs) if res.success: - alpha = res.x + alpha += N @ res.x else: - raise RuntimeError("Can't solve optimization problem") + raise RuntimeError( + "Unable to solve optimal control problem\n" + + "scipy.optimize.minimize returned " + res.message) # # Transform the trajectory from flat outputs to states and inputs diff --git a/control/tests/flatsys_test.py b/control/tests/flatsys_test.py index 7aec67eac..ed277360d 100644 --- a/control/tests/flatsys_test.py +++ b/control/tests/flatsys_test.py @@ -122,16 +122,20 @@ def test_kinematic_car(self, vehicle_flat, poly): vehicle_flat, T, ud, x0, return_x=True) np.testing.assert_allclose(x, xd, atol=0.01, rtol=0.01) - def test_kinematic_car_cost_constr(self, vehicle_flat): + def test_flat_cost_constr(self): + # Double integrator system + sys = ct.ss([[0, 1], [0, 0]], [[0], [1]], [[1, 0]], 0) + flat_sys = fs.LinearFlatSystem(sys) + # Define the endpoints of the trajectory - x0 = [0., -2., 0.]; u0 = [10., 0.] - xf = [100., 2., 0.]; uf = [10., 0.] + x0 = [1, 0]; u0 = [0] + xf = [0, 0]; uf = [0] Tf = 10 T = np.linspace(0, Tf, 500) # Find trajectory between initial and final conditions traj = fs.point_to_point( - vehicle_flat, Tf, x0, u0, xf, uf, basis=fs.PolyFamily(6)) + flat_sys, Tf, x0, u0, xf, uf, basis=fs.PolyFamily(8)) x, u = traj.eval(T) np.testing.assert_array_almost_equal(x0, x[:, 0]) @@ -142,11 +146,13 @@ def test_kinematic_car_cost_constr(self, vehicle_flat): # Solve with a cost function timepts = np.linspace(0, Tf, 10) cost_fcn = opt.quadratic_cost( - vehicle_flat, np.diag([0, 0.1, 0]), np.diag([0.1, 1]), x0=xf, u0=uf) + flat_sys, np.diag([0, 0]), 1, x0=xf, u0=uf) traj_cost = fs.point_to_point( - vehicle_flat, timepts, x0, u0, xf, uf, cost=cost_fcn, - basis=fs.PolyFamily(8) + flat_sys, timepts, x0, u0, xf, uf, cost=cost_fcn, + basis=fs.PolyFamily(8), + # initial_guess='lstsq', + # minimize_kwargs={'method': 'trust-constr'} ) # Verify that the trajectory computation is correct @@ -159,22 +165,18 @@ def test_kinematic_car_cost_constr(self, vehicle_flat): # Make sure that we got a different answer than before assert np.any(np.abs(x - x_cost) > 0.1) - # Make sure that the previous computation had large y deviation - assert np.any(x_cost[1, :] > 2.6) - # Re-solve with constraint on the y deviation - # timepts = np.array([0, 0.5*Tf, 0.8*Tf, Tf]) - constraints = ( - sp.optimize.LinearConstraint, - np.array([[0, 1, 0, 0, 0]]), -2.6, 2.6) + lb, ub = [-2, -0.1], [2, 0] + lb, ub = [-2, np.min(x_cost[1])*0.95], [2, 1] + constraints = [opt.state_range_constraint(flat_sys, lb, ub)] + + # Make sure that the previous solution violated at least one constraint + assert np.any(x_cost[0, :] < lb[0]) or np.any(x_cost[0, :] > ub[0]) \ + or np.any(x_cost[1, :] < lb[1]) or np.any(x_cost[1, :] > ub[1]) + traj_const = fs.point_to_point( - vehicle_flat, timepts, x0, u0, xf, uf, cost=cost_fcn, + flat_sys, timepts, x0, u0, xf, uf, cost=cost_fcn, constraints=constraints, basis=fs.PolyFamily(8), - # minimize_kwargs={ - # 'method': 'trust-constr', - # 'options': {'finite_diff_rel_step': 0.01}, - # # 'hess': lambda x: np.zeros((x.size, x.size)) - # } ) # Verify that the trajectory computation is correct @@ -184,8 +186,10 @@ def test_kinematic_car_cost_constr(self, vehicle_flat): np.testing.assert_array_almost_equal(xf, x_const[:, -1]) np.testing.assert_array_almost_equal(uf, u_const[:, -1]) - # Make sure that the solution respects the bounds - assert np.any(x_const[:, 1] < 2.6) + # Make sure that the solution respects the bounds (with some slop) + for i in range(x_const.shape[0]): + assert np.all(x_const[i] >= lb[i] * 1.02) + assert np.all(x_const[i] <= ub[i] * 1.02) def test_bezier_basis(self): bezier = fs.BezierFamily(4) @@ -223,3 +227,43 @@ def test_bezier_basis(self): # Exception check with pytest.raises(ValueError, match="index too high"): bezier.eval_deriv(4, 0, time) + + def test_point_to_point_errors(self): + """Test error and warning conditions in point_to_point()""" + # Double integrator system + sys = ct.ss([[0, 1], [0, 0]], [[0], [1]], [[1, 0]], 0) + flat_sys = fs.LinearFlatSystem(sys) + + # Define the endpoints of the trajectory + x0 = [1, 0]; u0 = [0] + xf = [0, 0]; uf = [0] + Tf = 10 + T = np.linspace(0, Tf, 500) + + # Cost function + timepts = np.linspace(0, Tf, 10) + cost_fcn = opt.quadratic_cost( + flat_sys, np.diag([1, 1]), 1, x0=xf, u0=uf) + + # Try to optimize with insufficient degrees of freedom + with pytest.warns(UserWarning, match="optimization not possible"): + traj = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, cost=cost_fcn, + basis=fs.PolyFamily(6)) + + # Make sure we still solved the problem + x, u = traj.eval(timepts) + np.testing.assert_array_almost_equal(x0, x[:, 0]) + np.testing.assert_array_almost_equal(u0, u[:, 0]) + np.testing.assert_array_almost_equal(xf, x[:, -1]) + np.testing.assert_array_almost_equal(uf, u[:, -1]) + + # Solve with the errors in the various input arguments + with pytest.raises(ValueError, match="Initial state: Wrong shape"): + traj = fs.point_to_point(flat_sys, timepts, np.zeros(3), u0, xf, uf) + with pytest.raises(ValueError, match="Initial input: Wrong shape"): + traj = fs.point_to_point(flat_sys, timepts, x0, np.zeros(3), xf, uf) + with pytest.raises(ValueError, match="Final state: Wrong shape"): + traj = fs.point_to_point(flat_sys, timepts, x0, u0, np.zeros(3), uf) + with pytest.raises(ValueError, match="Final input: Wrong shape"): + traj = fs.point_to_point(flat_sys, timepts, x0, u0, xf, np.zeros(3)) diff --git a/control/tests/optimal_test.py b/control/tests/optimal_test.py index d4b3fd6ef..528313e9d 100644 --- a/control/tests/optimal_test.py +++ b/control/tests/optimal_test.py @@ -459,7 +459,7 @@ def test_optimal_basis_simple(): sys, time, x0, cost, constraints, initial_guess=0.99*res1.inputs, basis=flat.BezierFamily(4, Tf), return_x=True) assert res2.success - np.testing.assert_almost_equal(res2.inputs, res1.inputs, decimal=3) + np.testing.assert_allclose(res2.inputs, res1.inputs, atol=0.01, rtol=0.01) # Run with logging turned on for code coverage res3 = opt.solve_ocp( diff --git a/examples/kincar-flatsys.py b/examples/kincar-flatsys.py index 0c25be965..ca2a946ed 100644 --- a/examples/kincar-flatsys.py +++ b/examples/kincar-flatsys.py @@ -12,6 +12,9 @@ import control.flatsys as fs import control.optimal as opt +# +# System model and utility functions +# # Function to take states, inputs and return the flat flag def vehicle_flat_forward(x, u, params={}): @@ -60,7 +63,6 @@ def vehicle_flat_reverse(zflag, params={}): return x, u - # Function to compute the RHS of the system dynamics def vehicle_update(t, x, u, params): b = params.get('wheelbase', 3.) # get parameter values @@ -71,6 +73,38 @@ def vehicle_update(t, x, u, params): ]) return dx +# Plot the trajectory in xy coordinates +def plot_results(t, x, ud): + plt.subplot(4, 1, 2) + plt.plot(x[0], x[1]) + plt.xlabel('x [m]') + plt.ylabel('y [m]') + plt.axis([x0[0], xf[0], x0[1]-1, xf[1]+1]) + + # Time traces of the state and input + plt.subplot(2, 4, 5) + plt.plot(t, x[1]) + plt.ylabel('y [m]') + + plt.subplot(2, 4, 6) + plt.plot(t, x[2]) + plt.ylabel('theta [rad]') + + plt.subplot(2, 4, 7) + plt.plot(t, ud[0]) + plt.xlabel('Time t [sec]') + plt.ylabel('v [m/s]') + plt.axis([0, Tf, u0[0] - 1, uf[0] + 1]) + + plt.subplot(2, 4, 8) + plt.plot(t, ud[1]) + plt.xlabel('Ttime t [sec]') + plt.ylabel('$\delta$ [rad]') + plt.tight_layout() + +# +# Approach 1: point to point solution, no cost or constraints +# # Create differentially flat input/output system vehicle_flat = fs.FlatSystem( @@ -100,54 +134,48 @@ def vehicle_update(t, x, u, params): # Plot the open loop system dynamics plt.figure(1) plt.suptitle("Open loop trajectory for kinematic car lane change") +plot_results(t, x, ud) -# Plot the trajectory in xy coordinates -def plot_results(t, x, ud): - plt.subplot(4, 1, 2) - plt.plot(x[0], x[1]) - plt.xlabel('x [m]') - plt.ylabel('y [m]') - plt.axis([x0[0], xf[0], x0[1]-1, xf[1]+1]) +# +# Approach #2: add cost function to make lane change quicker +# - # Time traces of the state and input - plt.subplot(2, 4, 5) - plt.plot(t, x[1]) - plt.ylabel('y [m]') +# Define timepoints for evaluation plus basis function to use +timepts = np.linspace(0, Tf, 10) +basis = fs.PolyFamily(8) - plt.subplot(2, 4, 6) - plt.plot(t, x[2]) - plt.ylabel('theta [rad]') +# Define the cost function (penalize lateral error and steering) +traj_cost = opt.quadratic_cost( + vehicle_flat, np.diag([0, 0.1, 0]), np.diag([0.1, 1]), x0=xf, u0=uf) - plt.subplot(2, 4, 7) - plt.plot(t, ud[0]) - plt.xlabel('Time t [sec]') - plt.ylabel('v [m/s]') - plt.axis([0, Tf, u0[0] - 1, uf[0] + 1]) +# Solve for an optimal solution +traj = fs.point_to_point( + vehicle_flat, timepts, x0, u0, xf, uf, cost=traj_cost, basis=basis, +) +xd, ud = traj.eval(T) - plt.subplot(2, 4, 8) - plt.plot(t, ud[1]) - plt.xlabel('Ttime t [sec]') - plt.ylabel('$\delta$ [rad]') - plt.tight_layout() -plot_results(t, x, ud) +plt.figure(2) +plt.suptitle("Lane change with lateral error + steering penalties") +plot_results(T, xd, ud) -# Resolve using a different basis and a cost function +# +# Approach #3: optimal cost with trajectory constraints +# +# Resolve the problem with constraints on the inputs +# -# Define cost and constraints -timepts = np.linspace(0, Tf, 10) -bezier = fs.BezierFamily(8) -traj_cost = opt.quadratic_cost( - vehicle_flat, None, np.diag([0.1, 1]), u0=uf) constraints = [ opt.input_range_constraint(vehicle_flat, [8, -0.1], [12, 0.1]) ] +# Solve for an optimal solution traj = fs.point_to_point( - vehicle_flat, timepts, x0, u0, xf, uf, cost=traj_cost, basis=bezier, + vehicle_flat, timepts, x0, u0, xf, uf, cost=traj_cost, + constraints=constraints, basis=basis, ) xd, ud = traj.eval(T) -plt.figure(2) -plt.suptitle("Open loop trajectory for lane change with input penalty") +plt.figure(3) +plt.suptitle("Lane change with penalty + steering constraints") plot_results(T, xd, ud) # Show the results unless we are running in batch mode From c240e9b02329933c0267512ea91add3f1710582b Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 12 Mar 2021 22:23:33 -0800 Subject: [PATCH 233/260] fix legacy matrix issue in flatsys --- control/flatsys/linflat.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/control/flatsys/linflat.py b/control/flatsys/linflat.py index 41a68537a..6e74ed581 100644 --- a/control/flatsys/linflat.py +++ b/control/flatsys/linflat.py @@ -97,13 +97,14 @@ def __init__(self, linsys, inputs=None, outputs=None, states=None, name=name) # Find the transformation to chain of integrators form + # Note: store all array as ndarray, not matrix zsys, Tr = control.reachable_form(linsys) - Tr = Tr[::-1, ::] # flip rows + Tr = np.array(Tr[::-1, ::]) # flip rows # Extract the information that we need - self.F = zsys.A[0, ::-1] # input function coeffs - self.T = Tr # state space transformation - self.Tinv = np.linalg.inv(Tr) # compute inverse once + self.F = np.array(zsys.A[0, ::-1]) # input function coeffs + self.T = Tr # state space transformation + self.Tinv = np.linalg.inv(Tr) # compute inverse once # Compute the flat output variable z = C x Cfz = np.zeros(np.shape(linsys.C)); Cfz[0, 0] = 1 From 1fe6e866becc076cc59866b334b99e8dd7d69ded Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 12 Mar 2021 22:49:38 -0800 Subject: [PATCH 234/260] additional unit tests for code coverage --- control/flatsys/flatsys.py | 4 +-- control/tests/flatsys_test.py | 64 +++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/control/flatsys/flatsys.py b/control/flatsys/flatsys.py index e386c99ac..ae5167e22 100644 --- a/control/flatsys/flatsys.py +++ b/control/flatsys/flatsys.py @@ -479,8 +479,8 @@ def traj_const(null_coeffs): elif type == sp.optimize.NonlinearConstraint: values.append(fun(states, inputs)) else: - raise TypeError("unknown constraint type %s" % - constraint[0]) + raise TypeError( + "unknown constraint type %s" % type) return np.array(values).flatten() # Store upper and lower bounds diff --git a/control/tests/flatsys_test.py b/control/tests/flatsys_test.py index ed277360d..37be671c3 100644 --- a/control/tests/flatsys_test.py +++ b/control/tests/flatsys_test.py @@ -191,6 +191,17 @@ def test_flat_cost_constr(self): assert np.all(x_const[i] >= lb[i] * 1.02) assert np.all(x_const[i] <= ub[i] * 1.02) + # Solve the same problem with a nonlinear constraint type + nl_constraints = [ + (sp.optimize.NonlinearConstraint, lambda x, u: x, lb, ub)] + traj_nlconst = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, cost=cost_fcn, + constraints=nl_constraints, basis=fs.PolyFamily(8), + ) + x_nlconst, u_nlconst = traj_nlconst.eval(T) + np.testing.assert_almost_equal(x_const, x_nlconst) + np.testing.assert_almost_equal(u_const, u_nlconst) + def test_bezier_basis(self): bezier = fs.BezierFamily(4) time = np.linspace(0, 1, 100) @@ -245,6 +256,26 @@ def test_point_to_point_errors(self): cost_fcn = opt.quadratic_cost( flat_sys, np.diag([1, 1]), 1, x0=xf, u0=uf) + # Solving without basis specified should be OK + traj = fs.point_to_point(flat_sys, timepts, x0, u0, xf, uf) + x, u = traj.eval(timepts) + np.testing.assert_array_almost_equal(x0, x[:, 0]) + np.testing.assert_array_almost_equal(u0, u[:, 0]) + np.testing.assert_array_almost_equal(xf, x[:, -1]) + np.testing.assert_array_almost_equal(uf, u[:, -1]) + + # Adding a cost function generates a warning + with pytest.warns(UserWarning, match="optimization not possible"): + traj = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, cost=cost_fcn) + + # Make sure we still solved the problem + x, u = traj.eval(timepts) + np.testing.assert_array_almost_equal(x0, x[:, 0]) + np.testing.assert_array_almost_equal(u0, u[:, 0]) + np.testing.assert_array_almost_equal(xf, x[:, -1]) + np.testing.assert_array_almost_equal(uf, u[:, -1]) + # Try to optimize with insufficient degrees of freedom with pytest.warns(UserWarning, match="optimization not possible"): traj = fs.point_to_point( @@ -267,3 +298,36 @@ def test_point_to_point_errors(self): traj = fs.point_to_point(flat_sys, timepts, x0, u0, np.zeros(3), uf) with pytest.raises(ValueError, match="Final input: Wrong shape"): traj = fs.point_to_point(flat_sys, timepts, x0, u0, xf, np.zeros(3)) + + # Different ways of describing constraints + constraint = opt.input_range_constraint(flat_sys, -100, 100) + + with pytest.warns(UserWarning, match="optimization not possible"): + traj = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, constraints=constraint, + basis=fs.PolyFamily(6)) + + x, u = traj.eval(timepts) + np.testing.assert_array_almost_equal(x0, x[:, 0]) + np.testing.assert_array_almost_equal(u0, u[:, 0]) + np.testing.assert_array_almost_equal(xf, x[:, -1]) + np.testing.assert_array_almost_equal(uf, u[:, -1]) + + # Constraint that isn't a constraint + with pytest.raises(TypeError, match="must be a list"): + traj = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, constraints=np.eye(2), + basis=fs.PolyFamily(8)) + + # Unknown constraint type + with pytest.raises(TypeError, match="unknown constraint type"): + traj = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, + constraints=[(None, 0, 0, 0)], basis=fs.PolyFamily(8)) + + # Unsolvable optimization + constraint = [opt.input_range_constraint(flat_sys, -0.01, 0.01)] + with pytest.raises(RuntimeError, match="Unable to solve optimal"): + traj = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, constraints=constraint, + basis=fs.PolyFamily(8)) From 0c1d63867d1fe6da82f1a4b055b7f82fb12f0832 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sat, 13 Mar 2021 09:53:07 -0800 Subject: [PATCH 235/260] slight code refactoring to consolidate flag matrix computation --- control/flatsys/flatsys.py | 118 +++++++++++++++------------------- control/tests/flatsys_test.py | 15 +++++ doc/flatsys.rst | 2 +- 3 files changed, 69 insertions(+), 66 deletions(-) diff --git a/control/flatsys/flatsys.py b/control/flatsys/flatsys.py index ae5167e22..1905c4cb8 100644 --- a/control/flatsys/flatsys.py +++ b/control/flatsys/flatsys.py @@ -155,6 +155,8 @@ def __init__(self, if forward is not None: self.forward = forward if reverse is not None: self.reverse = reverse + # Save the length of the flat flag + def forward(self, x, u, params={}): """Compute the flat flag given the states and input. @@ -217,10 +219,33 @@ def _flat_outfcn(self, t, x, u, params={}): return np.array(zflag[:][0]) +# Utility function to compute flag matrix given a basis +def _basis_flag_matrix(sys, basis, flag, t, params={}): + """Compute the matrix of basis functions and their derivatives + + This function computes the matrix ``M`` that is used to solve for the + coefficients of the basis functions given the state and input. Each + column of the matrix corresponds to a basis function and each row is a + derivative, with the derivatives (flag) for each output stacked on top + of each other. + + """ + flagshape = [len(f) for f in flag] + M = np.zeros((sum(flagshape), basis.N * sys.ninputs)) + flag_off = 0 + coeff_off = 0 + for i, flag_len in enumerate(flagshape): + for j, k in itertools.product(range(basis.N), range(flag_len)): + M[flag_off + k, coeff_off + j] = basis.eval_deriv(j, k, t) + flag_off += flag_len + coeff_off += basis.N + return M + + # Solve a point to point trajectory generation problem for a flat system def point_to_point( sys, timepts, x0=0, u0=0, xf=0, uf=0, T0=0, basis=None, cost=None, - constraints=None, initial_guess=None, minimize_kwargs={}): + constraints=None, initial_guess=None, minimize_kwargs={}, **kwargs): """Compute trajectory between an initial and final conditions. Compute a feasible trajectory for a differentially flat system between an @@ -251,9 +276,9 @@ def point_to_point( basis : :class:`~control.flatsys.BasisFamily` object, optional The basis functions to use for generating the trajectory. If not - specified, the :class:`~control.flatsys.PolyFamily` basis family will be - used, with the minimal number of elements required to find a feasible - trajectory (twice the number of system states) + specified, the :class:`~control.flatsys.PolyFamily` basis family + will be used, with the minimal number of elements required to find a + feasible trajectory (twice the number of system states) cost : callable Function that returns the integral cost given the current state @@ -287,6 +312,12 @@ def point_to_point( `eval()` function, we can be used to compute the value of the state and input and a given time t. + Notes + ----- + Additional keyword parameters can be used to fine tune the behavior of + the underlying optimization function. See `minimize_*` keywords in + :func:`OptimalControlProblem` for more information. + """ # # Make sure the problem is one that we can handle @@ -296,7 +327,7 @@ def point_to_point( u0 = _check_convert_array(u0, [(sys.ninputs,), (sys.ninputs, 1)], 'Initial input: ', squeeze=True) xf = _check_convert_array(xf, [(sys.nstates,), (sys.nstates, 1)], - 'Final state: ' , squeeze=True) + 'Final state: ', squeeze=True) uf = _check_convert_array(uf, [(sys.ninputs,), (sys.ninputs, 1)], 'Final input: ', squeeze=True) @@ -305,6 +336,12 @@ def point_to_point( Tf = timepts[-1] T0 = timepts[0] if len(timepts) > 1 else T0 + # Process keyword arguments + minimize_kwargs['method'] = kwargs.pop('minimize_method', None) + minimize_kwargs['options'] = kwargs.pop('minimize_options', {}) + if kwargs: + raise TypeError("unrecognized keywords: ", str(kwargs)) + # # Determine the basis function set to use and make sure it is big enough # @@ -328,8 +365,7 @@ def point_to_point( # We need to compute the output "flag": [z(t), z'(t), z''(t), ...] # and then evaluate this at the initial and final condition. # - # TODO: should be able to represent flag variables as 1D arrays - # TODO: need inputs to fully define the flag + zflag_T0 = sys.forward(x0, u0) zflag_Tf = sys.forward(xf, uf) @@ -340,41 +376,13 @@ def point_to_point( # essentially amounts to evaluating the basis functions and their # derivatives at the initial and final conditions. - # Figure out the size of the problem we are solving - flag_tot = np.sum([len(zflag_T0[i]) for i in range(sys.ninputs)]) + # Compute the flags for the initial and final states + M_T0 = _basis_flag_matrix(sys, basis, zflag_T0, T0) + M_Tf = _basis_flag_matrix(sys, basis, zflag_Tf, Tf) - # Start by creating an empty matrix that we can fill up - # TODO: allow a different number of basis elements for each flat output - M = np.zeros((2 * flag_tot, basis.N * sys.ninputs)) - - # Now fill in the rows for the initial and final states - # TODO: vectorize - flag_off = 0 - coeff_off = 0 - - for i in range(sys.ninputs): - flag_len = len(zflag_T0[i]) - for j in range(basis.N): - for k in range(flag_len): - M[flag_off + k, coeff_off + j] = basis.eval_deriv(j, k, T0) - M[flag_tot + flag_off + k, coeff_off + j] = \ - basis.eval_deriv(j, k, Tf) - flag_off += flag_len - coeff_off += basis.N - - # Create an empty matrix that we can fill up - Z = np.zeros(2 * flag_tot) - - # Compute the flag vector to use for the right hand side by - # stacking up the flags for each input - # TODO: make this more pythonic - flag_off = 0 - for i in range(sys.ninputs): - flag_len = len(zflag_T0[i]) - for j in range(flag_len): - Z[flag_off + j] = zflag_T0[i][j] - Z[flag_tot + flag_off + j] = zflag_Tf[i][j] - flag_off += flag_len + # Stack the initial and final matrix/flag for the point to point problem + M = np.vstack([M_T0, M_Tf]) + Z = np.hstack([np.hstack(zflag_T0), np.hstack(zflag_Tf)]) # # Solve for the coefficients of the flat outputs @@ -404,17 +412,7 @@ def traj_cost(null_coeffs): # Evaluate the costs at the listed time points costval = 0 for t in timepts: - M_t = np.zeros((flag_tot, basis.N * sys.ninputs)) - flag_off = 0 - coeff_off = 0 - for i in range(sys.ninputs): - flag_len = len(zflag_T0[i]) - for j, k in itertools.product( - range(basis.N), range(flag_len)): - M_t[flag_off + k, coeff_off + j] = \ - basis.eval_deriv(j, k, t) - flag_off += flag_len - coeff_off += basis.N + M_t = _basis_flag_matrix(sys, basis, zflag_T0, t) # Compute flag at this time point zflag = (M_t @ coeffs).reshape(sys.ninputs, -1) @@ -452,17 +450,7 @@ def traj_const(null_coeffs): values = [] for i, t in enumerate(timepts): # Calculate the states and inputs for the flat output - M_t = np.zeros((flag_tot, basis.N * sys.ninputs)) - flag_off = 0 - coeff_off = 0 - for i in range(sys.ninputs): - flag_len = len(zflag_T0[i]) - for j, k in itertools.product( - range(basis.N), range(flag_len)): - M_t[flag_off + k, coeff_off + j] = \ - basis.eval_deriv(j, k, t) - flag_off += flag_len - coeff_off += basis.N + M_t = _basis_flag_matrix(sys, basis, zflag_T0, t) # Compute flag at this time point zflag = (M_t @ coeffs).reshape(sys.ninputs, -1) @@ -501,7 +489,7 @@ def traj_const(null_coeffs): # Process the initial condition if initial_guess is None: - initial_guess = np.zeros(basis.N * sys.ninputs - 2 * flag_tot) + initial_guess = np.zeros(M.shape[1] - M.shape[0]) else: raise NotImplementedError("Initial guess not yet implemented.") @@ -514,7 +502,7 @@ def traj_const(null_coeffs): else: raise RuntimeError( "Unable to solve optimal control problem\n" + - "scipy.optimize.minimize returned " + res.message) + "scipy.optimize.minimize returned " + res.message) # # Transform the trajectory from flat outputs to states and inputs diff --git a/control/tests/flatsys_test.py b/control/tests/flatsys_test.py index 37be671c3..373af8dae 100644 --- a/control/tests/flatsys_test.py +++ b/control/tests/flatsys_test.py @@ -331,3 +331,18 @@ def test_point_to_point_errors(self): traj = fs.point_to_point( flat_sys, timepts, x0, u0, xf, uf, constraints=constraint, basis=fs.PolyFamily(8)) + + # Method arguments, parameters + traj_method = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, cost=cost_fcn, + basis=fs.PolyFamily(8), minimize_method='slsqp') + traj_kwarg = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, cost=cost_fcn, + basis=fs.PolyFamily(8), minimize_kwargs={'method': 'slsqp'}) + np.testing.assert_almost_equal( + traj_method.eval(timepts)[0], traj_kwarg.eval(timepts)[0]) + + # Unrecognized keywords + with pytest.raises(TypeError, match="unrecognized keyword"): + traj_method = fs.point_to_point( + flat_sys, timepts, x0, u0, xf, uf, solve_ivp_method=None) diff --git a/doc/flatsys.rst b/doc/flatsys.rst index df2d6f238..b6d2fe962 100644 --- a/doc/flatsys.rst +++ b/doc/flatsys.rst @@ -1,4 +1,4 @@ -. _flatsys-module: +.. _flatsys-module: *************************** Differentially flat systems From 72cb23f208a515e1d558a0050a70c1760ab26dc6 Mon Sep 17 00:00:00 2001 From: Sawyer Fuller Date: Sun, 14 Mar 2021 20:25:05 -0700 Subject: [PATCH 236/260] added warning method when falling back to frd --- control/margins.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/control/margins.py b/control/margins.py index d01f836e6..d22b6a0f7 100644 --- a/control/margins.py +++ b/control/margins.py @@ -51,6 +51,7 @@ """ import math +from warnings import warn import numpy as np import scipy as sp from . import xferfcn @@ -207,7 +208,7 @@ def fun(wdt): return z, w -def _numerical_inaccuracy(sys): +def _likely_numerical_inaccuracy(sys): # crude, conservative check for if # num(z)*num(1/z) << den(z)*den(1/z) for DT systems num, den, num_inv_zp, den_inv_zq, p_q, dt = _poly_z_invz(sys) @@ -334,7 +335,9 @@ def stability_margins(sysdata, returnall=False, epsw=0.0, method='best'): elif method == 'best': # convert to FRD if anticipated numerical issues if isinstance(sys, xferfcn.TransferFunction) and not sys.isctime(): - if _numerical_inaccuracy(sys): + if _likely_numerical_inaccuracy(sys): + warn("stability_margins: Falling back to 'frd' method " + "because of chance of numerical inaccuracy in 'poly' method.") omega_sys = freqplot._default_frequency_range(sys) omega_sys = omega_sys[omega_sys < np.pi / sys.dt] sys = frdata.FRD(sys, omega_sys, smooth=True) From 018d12818b7ab19924eca82a71124d9dbb9835b1 Mon Sep 17 00:00:00 2001 From: jpp Date: Tue, 16 Mar 2021 11:16:05 -0300 Subject: [PATCH 237/260] optimize the code and solve problems with MIMO systems converting to SISO systems from input=0 to output =0 solve problems with non stationary systems doing SteadyStateValue= nan when y_final is inf --- control/timeresp.py | 61 +++++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/control/timeresp.py b/control/timeresp.py index 7df7f34d6..9c7b7a990 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -746,7 +746,8 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, Parameters ---------- - sys : StateSpace or TransferFunction + sys : SISO dynamic system model. Dynamic systems that you can use include: + StateSpace or TransferFunction LTI system to simulate T : array_like or float, optional @@ -785,14 +786,20 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, -------- >>> info = step_info(sys, T) ''' - _, sys = _get_ss_simo(sys) + + if not sys.issiso(): + sys = _mimo2siso(sys,0,0) + warnings.warn(" Internal conversion from a MIMO system to a SISO system," + " the first input and the first output were used (u1 -> y1);" + " it may not be the result you are looking for") + if T is None or np.asarray(T).size == 1: T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) T, yout = step_response(sys, T) # Steady state value - InfValue = sys.dcgain() + InfValue = sys.dcgain().real # TODO: this could be a function step_info4data(t,y,yfinal) rise_time: float = np.NaN @@ -803,8 +810,11 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, peak_time: float = np.Inf undershoot: float = np.NaN overshoot: float = np.NaN - + steady_state_value: float = np.NaN + if not np.isnan(InfValue) and not np.isinf(InfValue): + # SteadyStateValue + steady_state_value = InfValue # Peak peak_index = np.abs(yout).argmax() peak_value = np.abs(yout[peak_index]) @@ -813,29 +823,26 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, sup_margin = (1. + SettlingTimeThreshold) * InfValue inf_margin = (1. - SettlingTimeThreshold) * InfValue - if InfValue < 0.0: - # RiseTime - tr_lower_index = (np.where(yout <= RiseTimeLimits[0] * InfValue)[0])[0] - tr_upper_index = (np.where(yout <= RiseTimeLimits[1] * InfValue)[0])[0] - # SettlingTime - for i in reversed(range(T.size - 1)): - if (-yout[i] <= np.abs(inf_margin)) | (-yout[i] >= np.abs(sup_margin)): - settling_time = T[i + 1] - break - # Overshoot and Undershoot - overshoot = np.abs(100. * ((-yout).max() - np.abs(InfValue)) / np.abs(InfValue)) - undershoot = np.abs(100. * (-yout).min() / np.abs(InfValue)) + # RiseTime + tr_lower_index = (np.where(np.sign(InfValue.real) * (yout- RiseTimeLimits[0] * InfValue) >= 0 )[0])[0] + tr_upper_index = (np.where(np.sign(InfValue.real) * yout >= np.sign(InfValue.real) * RiseTimeLimits[1] * InfValue)[0])[0] + + # SettlingTime + settling_time = T[np.where(np.abs(yout-InfValue) >= np.abs(SettlingTimeThreshold*InfValue))[0][-1]+1] + # Overshoot and Undershoot + y_os = (np.sign(InfValue.real)*yout).max() + dy_os = np.abs(y_os) - np.abs(InfValue) + if dy_os > 0: + overshoot = np.abs(100. * dy_os / InfValue) + else: + overshoot = 0 + + y_us = (np.sign(InfValue.real)*yout).min() + dy_us = np.abs(y_us) + if dy_us > 0: + undershoot = np.abs(100. * dy_us / InfValue) else: - tr_lower_index = (np.where(yout >= RiseTimeLimits[0] * InfValue)[0])[0] - tr_upper_index = (np.where(yout >= RiseTimeLimits[1] * InfValue)[0])[0] - # SettlingTime - for i in reversed(range(T.size - 1)): - if (yout[i] <= inf_margin) | (yout[i] >= sup_margin): - settling_time = T[i + 1] - break - # Overshoot and Undershoot - overshoot = np.abs(100. * (yout.max() - InfValue) / InfValue) - undershoot = np.abs(100. * yout.min() / InfValue) + undershoot = 0 # RiseTime rise_time = T[tr_upper_index] - T[tr_lower_index] @@ -852,7 +859,7 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, 'Undershoot': undershoot, 'Peak': peak_value, 'PeakTime': peak_time, - 'SteadyStateValue': InfValue + 'SteadyStateValue': steady_state_value } def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, From 81ae64f80222f97338af3b52d53b42a993300e3c Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 17 Mar 2021 11:04:04 +0100 Subject: [PATCH 238/260] fix comment format --- control/tests/timeresp_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 54a349523..8705f3805 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -339,8 +339,8 @@ def test_step_info(self): [Strue[k] for k in Sktrue], rtol=rtol) - # tolerance for all parameters could be wrong for some systems ej: discrete systems time parameters tolerance - # could be +/-dt + # tolerance for all parameters could be wrong for some systems + # discrete systems time parameters tolerance could be +/-dt @pytest.mark.parametrize( "tsystem, info_true, tolerance", [("tf1_matlab_help", { From 4381a7ecb12c65a468bd12c57bcd0b75ed477627 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 12 Mar 2021 22:33:48 +0100 Subject: [PATCH 239/260] merge the second example from #523 into test_stability_margins_discrete --- control/tests/margin_test.py | 54 ++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/control/tests/margin_test.py b/control/tests/margin_test.py index afeb71efd..a1246103f 100644 --- a/control/tests/margin_test.py +++ b/control/tests/margin_test.py @@ -336,41 +336,41 @@ def test_zmore_stability_margins(tsys_zmore): @pytest.mark.parametrize( 'cnum, cden, dt,' 'ref,' - 'rtol', + 'rtol, poly_is_inaccurate', [( # gh-465 [2], [1, 3, 2, 0], 1e-2, - [2.9558, 32.390, 0.43584, 1.4037, 0.74951, 0.97079], - 2e-3), # the gradient of the function reduces numerical precision + [ 2.955761, 32.398492, 0.429535, 1.403725, 0.749367, 0.923898], + 1e-5, True), ( # 2/(s+1)**3 [2], [1, 3, 3, 1], .1, [3.4927, 65.4212, 0.5763, 1.6283, 0.76625, 1.2019], - 1e-4), - ( # gh-523 + 1e-4, True), + ( # gh-523 a [1.1 * 4 * np.pi**2], [1, 2 * 0.2 * 2 * np.pi, 4 * np.pi**2], .05, [2.3842, 18.161, 0.26953, 11.712, 8.7478, 9.1504], - 1e-4), + 1e-4, False), + ( # gh-523 b + # H1 = w1**2 / (z**2 + 2*zt*w1 * z + w1**2) + # H2 = w2**2 / (z**2 + 2*zt*w2 * z + w2**2) + # H = H1 * H2 + # w1 = 1, w2 = 100, zt = 0.5 + [5e4], [1., 101., 10101., 10100., 10000.], 1e-3, + [18.8766, 26.3564, 0.406841, 9.76358, 2.32933, 2.55986], + 1e-5, True), ]) -def test_stability_margins_discrete(cnum, cden, dt, ref, rtol): +@pytest.mark.filterwarnings("error") +def test_stability_margins_discrete(cnum, cden, dt, + ref, + rtol, poly_is_inaccurate): """Test stability_margins with discrete TF input""" tf = TransferFunction(cnum, cden).sample(dt) - out = stability_margins(tf, method='poly') + if poly_is_inaccurate: + with pytest.warns(UserWarning, match="numerical inaccuracy in 'poly'"): + out = stability_margins(tf) + # cover the explicit frd branch and make sure it yields the same + # results as the fallback mechanism + out_frd = stability_margins(tf, method='frd') + assert_allclose(out, out_frd) + else: + out = stability_margins(tf) assert_allclose(out, ref, rtol=rtol) - - -def test_stability_margins_methods(): - # the following system gives slightly inaccurate result for DT systems - # because of numerical issues - omegan = 1 - zeta = 0.5 - resonance = TransferFunction(omegan**2, [1, 2*zeta*omegan, omegan**2]) - omegan2 = 100 - resonance2 = TransferFunction(omegan2**2, [1, 2*zeta*omegan2, omegan2**2]) - sys = 5 * resonance * resonance2 - sysd = sys.sample(0.001, 'zoh') - """Test stability_margins() function with different methods""" - out = stability_margins(sysd, method='best') - # confirm getting reasonable results using FRD method - assert_allclose( - (18.876634740386308, 26.356358386241055, 0.40684127995261044, - 9.763585494645046, 2.3293357226374805, 2.55985695034263), - stability_margins(sysd, method='frd'), rtol=1e-5) From 52d8fc3210a26aad883a1b4c0658fa90cfeb7e5f Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 17 Mar 2021 12:29:16 +0100 Subject: [PATCH 240/260] improve error message display, ease poly to frd check --- control/margins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/control/margins.py b/control/margins.py index d22b6a0f7..0b53f26ed 100644 --- a/control/margins.py +++ b/control/margins.py @@ -218,7 +218,7 @@ def _likely_numerical_inaccuracy(sys): # * z**(-p_q) x = [1] + [0] * (-p_q) p1 = np.polymul(p1, x) - return np.linalg.norm(p1) < 1e-3 * np.linalg.norm(p2) + return np.linalg.norm(p1) < 1e-4 * np.linalg.norm(p2) # Took the framework for the old function by # Sawyer B. Fuller , removed a lot of the innards @@ -337,7 +337,8 @@ def stability_margins(sysdata, returnall=False, epsw=0.0, method='best'): if isinstance(sys, xferfcn.TransferFunction) and not sys.isctime(): if _likely_numerical_inaccuracy(sys): warn("stability_margins: Falling back to 'frd' method " - "because of chance of numerical inaccuracy in 'poly' method.") + "because of chance of numerical inaccuracy in 'poly' method.", + stacklevel=2) omega_sys = freqplot._default_frequency_range(sys) omega_sys = omega_sys[omega_sys < np.pi / sys.dt] sys = frdata.FRD(sys, omega_sys, smooth=True) From 67c471951c80d68f59ddcc21ad510355369704ad Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 17 Mar 2021 13:02:02 +0100 Subject: [PATCH 241/260] use new Slycot sb03md57 call signature if available --- control/mateqn.py | 56 +++++++++++++++++++++++++++------------------ control/statefbk.py | 29 +++++++++++++++++------ 2 files changed, 56 insertions(+), 29 deletions(-) diff --git a/control/mateqn.py b/control/mateqn.py index 0b129fd9e..28b01d287 100644 --- a/control/mateqn.py +++ b/control/mateqn.py @@ -5,9 +5,6 @@ # # Author: Bjorn Olofsson -# Python 3 compatibility (needs to go here) -from __future__ import print_function - # Copyright (c) 2011, All rights reserved. # Redistribution and use in source and binary forms, with or without @@ -44,6 +41,34 @@ from .exception import ControlSlycot, ControlArgument from .statesp import _ssmatrix +# Make sure we have access to the right slycot routines +try: + from slycot import sb03md57 + # wrap without the deprecation warning + def sb03md(n, C, A, U, dico, job='X',fact='N',trana='N',ldwork=None): + ret = sb03md57(A, U, C, dico, job, fact, trana, ldwork) + return ret[2:] +except ImportError: + try: + from slycot import sb03md + except ImportError: + sb03md = None + +try: + from slycot import sb04md +except ImportError: + sb04md = None + +try: + from slycot import sb04qd +except ImportError: + sb0qmd = None + +try: + from slycot import sg03ad +except ImportError: + sb04ad = None + __all__ = ['lyap', 'dlyap', 'dare', 'care'] # @@ -93,17 +118,12 @@ def lyap(A, Q, C=None, E=None): state space operations. See :func:`~control.use_numpy_matrix`. """ - # Make sure we have access to the right slycot routines - try: - from slycot import sb03md - except ImportError: + if sb03md is None: raise ControlSlycot("can't find slycot module 'sb03md'") - - try: - from slycot import sb04md - except ImportError: + if sb04md is None: raise ControlSlycot("can't find slycot module 'sb04md'") + # Reshape 1-d arrays if len(shape(A)) == 1: A = A.reshape(1, A.size) @@ -279,19 +299,11 @@ def dlyap(A, Q, C=None, E=None): of the same dimension. """ # Make sure we have access to the right slycot routines - try: - from slycot import sb03md - except ImportError: + if sb03md is None: raise ControlSlycot("can't find slycot module 'sb03md'") - - try: - from slycot import sb04qd - except ImportError: + if sb04qd is None: raise ControlSlycot("can't find slycot module 'sb04qd'") - - try: - from slycot import sg03ad - except ImportError: + if sg03ad is None: raise ControlSlycot("can't find slycot module 'sg03ad'") # Reshape 1-d arrays diff --git a/control/statefbk.py b/control/statefbk.py index 7106449ae..0017412a4 100644 --- a/control/statefbk.py +++ b/control/statefbk.py @@ -47,6 +47,25 @@ from .statesp import _ssmatrix from .exception import ControlSlycot, ControlArgument, ControlDimension +# Make sure we have access to the right slycot routines +try: + from slycot import sb03md57 + # wrap without the deprecation warning + def sb03md(n, C, A, U, dico, job='X',fact='N',trana='N',ldwork=None): + ret = sb03md57(A, U, C, dico, job, fact, trana, ldwork) + return ret[2:] +except ImportError: + try: + from slycot import sb03md + except ImportError: + sb03md = None + +try: + from slycot import sb03od +except ImportError: + sb03od = None + + __all__ = ['ctrb', 'obsv', 'gram', 'place', 'place_varga', 'lqr', 'lqe', 'acker'] @@ -574,7 +593,7 @@ def gram(sys, type): * if `type` is not 'c', 'o', 'cf' or 'of' * if system is unstable (sys.A has eigenvalues not in left half plane) - ImportError + ControlSlycot if slycot routine sb03md cannot be found if slycot routine sb03od cannot be found @@ -614,9 +633,7 @@ def gram(sys, type): if type == 'c' or type == 'o': # Compute Gramian by the Slycot routine sb03md # make sure Slycot is installed - try: - from slycot import sb03md - except ImportError: + if sb03md is None: raise ControlSlycot("can't find slycot module 'sb03md'") if type == 'c': tra = 'T' @@ -634,9 +651,7 @@ def gram(sys, type): elif type == 'cf' or type == 'of': # Compute cholesky factored gramian from slycot routine sb03od - try: - from slycot import sb03od - except ImportError: + if sb03od is None: raise ControlSlycot("can't find slycot module 'sb03od'") tra = 'N' n = sys.nstates From ff960c38ff162cfb70ff8b138518bc35a929abbf Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 17 Mar 2021 17:13:04 +0100 Subject: [PATCH 242/260] enhance step_info to MIMO --- control/timeresp.py | 188 +++++++++++++++++++++++--------------------- 1 file changed, 100 insertions(+), 88 deletions(-) diff --git a/control/timeresp.py b/control/timeresp.py index 9c7b7a990..7a2d1c8a4 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -746,36 +746,43 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, Parameters ---------- - sys : SISO dynamic system model. Dynamic systems that you can use include: - StateSpace or TransferFunction - LTI system to simulate - + sys : LTI system T : array_like or float, optional Time vector, or simulation time duration if a number (time vector is autocomputed if not given, see :func:`step_response` for more detail) - T_num : int, optional Number of time steps to use in simulation if T is not provided as an array (autocomputed if not given); ignored if sys is discrete-time. - SettlingTimeThreshold : float value, optional Defines the error to compute settling time (default = 0.02) - RiseTimeLimits : tuple (lower_threshold, upper_theshold) Defines the lower and upper threshold for RiseTime computation Returns ------- - S: a dictionary containing: - RiseTime: Time from 10% to 90% of the steady-state value. - SettlingTime: Time to enter inside a default error of 2% - SettlingMin: Minimum value after RiseTime - SettlingMax: Maximum value after RiseTime - Overshoot: Percentage of the Peak relative to steady value - Undershoot: Percentage of undershoot - Peak: Absolute peak value - PeakTime: time of the Peak - SteadyStateValue: Steady-state value + S : dict or list of list of dict + If `sys` is a SISO system, S is a dictionary containing: + + RiseTime: + Time from 10% to 90% of the steady-state value. + SettlingTime: + Time to enter inside a default error of 2% + SettlingMin: + Minimum value after RiseTime + SettlingMax: + Maximum value after RiseTime + Overshoot: + Percentage of the Peak relative to steady value + Undershoot: + Percentage of undershoot + Peak: + Absolute peak value + PeakTime: + time of the Peak + SteadyStateValue: + Steady-state value + + If `sys` is a MIMO system, S is a 2D-List of dicts. See Also @@ -786,81 +793,86 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, -------- >>> info = step_info(sys, T) ''' - - if not sys.issiso(): - sys = _mimo2siso(sys,0,0) - warnings.warn(" Internal conversion from a MIMO system to a SISO system," - " the first input and the first output were used (u1 -> y1);" - " it may not be the result you are looking for") + if T is None or np.asarray(T).size == 1: T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) - T, yout = step_response(sys, T) - - # Steady state value - InfValue = sys.dcgain().real - - # TODO: this could be a function step_info4data(t,y,yfinal) - rise_time: float = np.NaN - settling_time: float = np.NaN - settling_min: float = np.NaN - settling_max: float = np.NaN - peak_value: float = np.Inf - peak_time: float = np.Inf - undershoot: float = np.NaN - overshoot: float = np.NaN - steady_state_value: float = np.NaN - - if not np.isnan(InfValue) and not np.isinf(InfValue): - # SteadyStateValue - steady_state_value = InfValue - # Peak - peak_index = np.abs(yout).argmax() - peak_value = np.abs(yout[peak_index]) - peak_time = T[peak_index] - - sup_margin = (1. + SettlingTimeThreshold) * InfValue - inf_margin = (1. - SettlingTimeThreshold) * InfValue - - # RiseTime - tr_lower_index = (np.where(np.sign(InfValue.real) * (yout- RiseTimeLimits[0] * InfValue) >= 0 )[0])[0] - tr_upper_index = (np.where(np.sign(InfValue.real) * yout >= np.sign(InfValue.real) * RiseTimeLimits[1] * InfValue)[0])[0] - - # SettlingTime - settling_time = T[np.where(np.abs(yout-InfValue) >= np.abs(SettlingTimeThreshold*InfValue))[0][-1]+1] - # Overshoot and Undershoot - y_os = (np.sign(InfValue.real)*yout).max() - dy_os = np.abs(y_os) - np.abs(InfValue) - if dy_os > 0: - overshoot = np.abs(100. * dy_os / InfValue) - else: - overshoot = 0 - - y_us = (np.sign(InfValue.real)*yout).min() - dy_us = np.abs(y_us) - if dy_us > 0: - undershoot = np.abs(100. * dy_us / InfValue) - else: - undershoot = 0 - - # RiseTime - rise_time = T[tr_upper_index] - T[tr_lower_index] - - settling_max = (yout[tr_upper_index:]).max() - settling_min = (yout[tr_upper_index:]).min() - - return { - 'RiseTime': rise_time, - 'SettlingTime': settling_time, - 'SettlingMin': settling_min, - 'SettlingMax': settling_max, - 'Overshoot': overshoot, - 'Undershoot': undershoot, - 'Peak': peak_value, - 'PeakTime': peak_time, - 'SteadyStateValue': steady_state_value - } + ret = [[None] * sys.ninputs] * sys.noutputs + for i in range(sys.noutputs): + for j in range(sys.ninputs): + sys_siso = sys[i, j] + T, yout = step_response(sys_siso, T) + + # Steady state value + InfValue = sys_siso.dcgain() + sgnInf = np.sign(InfValue.real) + + rise_time: float = np.NaN + settling_time: float = np.NaN + settling_min: float = np.NaN + settling_max: float = np.NaN + peak_value: float = np.Inf + peak_time: float = np.Inf + undershoot: float = np.NaN + overshoot: float = np.NaN + steady_state_value: complex = np.NaN + + if not np.isnan(InfValue) and not np.isinf(InfValue): + # RiseTime + tr_lower_index = np.where( + sgnInf * (yout - RiseTimeLimits[0] * InfValue) >= 0 + )[0][0] + tr_upper_index = np.where( + sgnInf * (yout - RiseTimeLimits[1] * InfValue) >= 0 + )[0][0] + rise_time = T[tr_upper_index] - T[tr_lower_index] + + # SettlingTime + settling_th = np.abs(SettlingTimeThreshold * InfValue) + not_settled = np.where(np.abs(yout - InfValue) >= settling_th) + settling_time = T[not_settled[0][-1] + 1] + + settling_min = (yout[tr_upper_index:]).min() + settling_max = (yout[tr_upper_index:]).max() + + # Overshoot + y_os = (sgnInf * yout).max() + dy_os = np.abs(y_os) - np.abs(InfValue) + if dy_os > 0: + overshoot = np.abs(100. * dy_os / InfValue) + else: + overshoot = 0 + + # Undershoot + y_us = (sgnInf * yout).min() + dy_us = np.abs(y_us) + if dy_us > 0: + undershoot = np.abs(100. * dy_us / InfValue) + else: + undershoot = 0 + + # Peak + peak_index = np.abs(yout).argmax() + peak_value = np.abs(yout[peak_index]) + peak_time = T[peak_index] + + # SteadyStateValue + steady_state_value = InfValue + + ret[i][j] = { + 'RiseTime': rise_time, + 'SettlingTime': settling_time, + 'SettlingMin': settling_min, + 'SettlingMax': settling_max, + 'Overshoot': overshoot, + 'Undershoot': undershoot, + 'Peak': peak_value, + 'PeakTime': peak_time, + 'SteadyStateValue': steady_state_value + } + + return ret[0][0] if sys.issiso() else ret def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, transpose=False, return_x=False, squeeze=None): From b98008a47765b90661ab0838bcdd00463e2f97ba Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 17 Mar 2021 17:22:23 +0100 Subject: [PATCH 243/260] remove test function with duplicate name --- control/tests/timeresp_test.py | 46 ++++++++-------------------------- 1 file changed, 10 insertions(+), 36 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 8705f3805..bc6de9ea3 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -193,7 +193,7 @@ def pole_cancellation(self): def no_pole_cancellation(self): return TransferFunction([1.881e+06], [188.1, 1.881e+06]) - + @pytest.fixture def siso_tf_type1(self): # System Type 1 - Step response not stationary: G(s)=1/s(s+1) @@ -309,36 +309,6 @@ def test_step_nostates(self, dt): t, y = step_response(sys) np.testing.assert_array_equal(y, np.ones(len(t))) - def test_step_info(self): - # From matlab docs: - sys = TransferFunction([1, 5, 5], [1, 1.65, 5, 6.5, 2]) - Strue = { - 'RiseTime': 3.8456, - 'SettlingTime': 27.9762, - 'SettlingMin': 2.0689, - 'SettlingMax': 2.6873, - 'Overshoot': 7.4915, - 'Undershoot': 0, - 'Peak': 2.6873, - 'PeakTime': 8.0530, - 'SteadyStateValue': 2.50 - } - - S = step_info(sys) - - Sk = sorted(S.keys()) - Sktrue = sorted(Strue.keys()) - assert Sk == Sktrue - # Very arbitrary tolerance because I don't know if the - # response from the MATLAB is really that accurate. - # maybe it is a good idea to change the Strue to match - # but I didn't do it because I don't know if it is - # accurate either... - rtol = 2e-2 - np.testing.assert_allclose([S[k] for k in Sk], - [Strue[k] for k in Sktrue], - rtol=rtol) - # tolerance for all parameters could be wrong for some systems # discrete systems time parameters tolerance could be +/-dt @pytest.mark.parametrize( @@ -394,17 +364,21 @@ def test_step_info(self): 'SteadyStateValue': np.NaN}, 2e-2)], indirect=["tsystem"]) def test_step_info(self, tsystem, info_true, tolerance): - """ """ + """Test step info for SISO systems""" info = step_info(tsystem) info_true_sorted = sorted(info_true.keys()) info_sorted = sorted(info.keys()) - assert info_sorted == info_true_sorted - np.testing.assert_allclose([info_true[k] for k in info_true_sorted], - [info[k] for k in info_sorted], - rtol=tolerance) + for k in info: + np.testing.assert_allclose(info[k], info_true[k], rtol=tolerance, + err_msg=f"key {k} does not match") + + def test_step_info_mimo(self, tsystem, info_true, tolearance): + """Test step info for MIMO systems""" + # TODO: implement + pass def test_step_pole_cancellation(self, pole_cancellation, no_pole_cancellation): From ed633583d3ea2f7612e43c8d65f6604c2f812162 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 17 Mar 2021 22:01:07 +0100 Subject: [PATCH 244/260] add step_info mimo test (TransferFunction) --- control/tests/timeresp_test.py | 174 ++++++++++++++++++++------------- 1 file changed, 106 insertions(+), 68 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index bc6de9ea3..dce0a6a49 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -66,8 +66,8 @@ def siso_ss2(self, siso_ss1): T.initial = siso_ss1.yinitial - 9 T.yimpulse = np.array([86., 70.1808, 57.3753, 46.9975, 38.5766, 31.7344, 26.1668, 21.6292, 17.9245, 14.8945]) - return T + return T @pytest.fixture def siso_tf1(self): @@ -197,31 +197,98 @@ def no_pole_cancellation(self): @pytest.fixture def siso_tf_type1(self): # System Type 1 - Step response not stationary: G(s)=1/s(s+1) - return TransferFunction(1, [1, 1, 0]) + T = TSys(TransferFunction(1, [1, 1, 0])) + T.step_info = { + 'RiseTime': np.NaN, + 'SettlingTime': np.NaN, + 'SettlingMin': np.NaN, + 'SettlingMax': np.NaN, + 'Overshoot': np.NaN, + 'Undershoot': np.NaN, + 'Peak': np.Inf, + 'PeakTime': np.Inf, + 'SteadyStateValue': np.NaN} + return T @pytest.fixture def siso_tf_kpos(self): # SISO under shoot response and positive final value G(s)=(-s+1)/(s²+s+1) - return TransferFunction([-1, 1], [1, 1, 1]) + T = TSys(TransferFunction([-1, 1], [1, 1, 1])) + T.step_info = { + 'RiseTime': 1.242, + 'SettlingTime': 9.110, + 'SettlingMin': 0.950, + 'SettlingMax': 1.208, + 'Overshoot': 20.840, + 'Undershoot': 27.840, + 'Peak': 1.208, + 'PeakTime': 4.282, + 'SteadyStateValue': 1.0} + return T @pytest.fixture def siso_tf_kneg(self): # SISO under shoot response and negative final value k=-1 G(s)=-(-s+1)/(s²+s+1) - return TransferFunction([1, -1], [1, 1, 1]) + T = TSys(TransferFunction([1, -1], [1, 1, 1])) + T.step_info = { + 'RiseTime': 1.242, + 'SettlingTime': 9.110, + 'SettlingMin': -1.208, + 'SettlingMax': -0.950, + 'Overshoot': 20.840, + 'Undershoot': 27.840, + 'Peak': 1.208, + 'PeakTime': 4.282, + 'SteadyStateValue': -1.0} + return T @pytest.fixture def tf1_matlab_help(self): # example from matlab online help https://www.mathworks.com/help/control/ref/stepinfo.html - return TransferFunction([1, 5, 5], [1, 1.65, 5, 6.5, 2]) + T = TSys(TransferFunction([1, 5, 5], [1, 1.65, 5, 6.5, 2])) + T.step_info = { + 'RiseTime': 3.8456, + 'SettlingTime': 27.9762, + 'SettlingMin': 2.0689, + 'SettlingMax': 2.6873, + 'Overshoot': 7.4915, + 'Undershoot': 0, + 'Peak': 2.6873, + 'PeakTime': 8.0530, + 'SteadyStateValue': 2.5} + return T @pytest.fixture - def tf2_matlab_help(self): + def ss2_matlab_help(self): A = [[0.68, - 0.34], [0.34, 0.68]] B = [[0.18], [0.04]] C = [-1.12, - 1.10] D = [0.06] - sys = StateSpace(A, B, C, D, 0.2) - return sys + T = TSys(StateSpace(A, B, C, D, 0.2)) + T.step_info = { + 'RiseTime': 0.4000, + 'SettlingTime': 2.8000, + 'SettlingMin': -0.6724, + 'SettlingMax': -0.5188, + 'Overshoot': 24.6476, + 'Undershoot': 11.1224, + 'Peak': 0.6724, + 'PeakTime': 1, + 'SteadyStateValue': -0.5394} + return T + + @pytest.fixture + def mimo_tf_step(self, tf1_matlab_help, + siso_tf_kpos, + siso_tf_kneg, + siso_tf_type1): + Ta = [[tf1_matlab_help, tf1_matlab_help, siso_tf_kpos], + [siso_tf_kneg, siso_tf_type1, siso_tf_type1]] + T = TSys(TransferFunction( + [[Ti.sys.num[0][0] for Ti in Tr] for Tr in Ta], + [[Ti.sys.den[0][0] for Ti in Tr] for Tr in Ta])) + T.step_info = [[Ti.step_info for Ti in Tr] for Tr in Ta] + return T @pytest.fixture def tsystem(self, @@ -233,7 +300,7 @@ def tsystem(self, mimo_dss1, mimo_dss2, mimo_dtf1, pole_cancellation, no_pole_cancellation, siso_tf_type1, siso_tf_kpos, siso_tf_kneg, tf1_matlab_help, - tf2_matlab_help): + ss2_matlab_help, mimo_tf_step): systems = {"siso_ss1": siso_ss1, "siso_ss2": siso_ss2, "siso_tf1": siso_tf1, @@ -255,7 +322,8 @@ def tsystem(self, "siso_tf_kpos": siso_tf_kpos, "siso_tf_kneg": siso_tf_kneg, "tf1_matlab_help": tf1_matlab_help, - "tf2_matlab_help": tf2_matlab_help, + "ss2_matlab_help": ss2_matlab_help, + "mimo_tf_step": mimo_tf_step, } return systems[request.param] @@ -312,73 +380,43 @@ def test_step_nostates(self, dt): # tolerance for all parameters could be wrong for some systems # discrete systems time parameters tolerance could be +/-dt @pytest.mark.parametrize( - "tsystem, info_true, tolerance", - [("tf1_matlab_help", { - 'RiseTime': 3.8456, - 'SettlingTime': 27.9762, - 'SettlingMin': 2.0689, - 'SettlingMax': 2.6873, - 'Overshoot': 7.4915, - 'Undershoot': 0, - 'Peak': 2.6873, - 'PeakTime': 8.0530, - 'SteadyStateValue': 2.5}, 2e-2), - ("tf2_matlab_help", { - 'RiseTime': 0.4000, - 'SettlingTime': 2.8000, - 'SettlingMin': -0.6724, - 'SettlingMax': -0.5188, - 'Overshoot': 24.6476, - 'Undershoot': 11.1224, - 'Peak': 0.6724, - 'PeakTime': 1, - 'SteadyStateValue': -0.5394}, .2), - ("siso_tf_kpos", { - 'RiseTime': 1.242, - 'SettlingTime': 9.110, - 'SettlingMin': 0.950, - 'SettlingMax': 1.208, - 'Overshoot': 20.840, - 'Undershoot': 27.840, - 'Peak': 1.208, - 'PeakTime': 4.282, - 'SteadyStateValue': 1.0}, 2e-2), - ("siso_tf_kneg", { - 'RiseTime': 1.242, - 'SettlingTime': 9.110, - 'SettlingMin': -1.208, - 'SettlingMax': -0.950, - 'Overshoot': 20.840, - 'Undershoot': 27.840, - 'Peak': 1.208, - 'PeakTime': 4.282, - 'SteadyStateValue': -1.0}, 2e-2), - ("siso_tf_type1", {'RiseTime': np.NaN, - 'SettlingTime': np.NaN, - 'SettlingMin': np.NaN, - 'SettlingMax': np.NaN, - 'Overshoot': np.NaN, - 'Undershoot': np.NaN, - 'Peak': np.Inf, - 'PeakTime': np.Inf, - 'SteadyStateValue': np.NaN}, 2e-2)], + "tsystem, tolerance", + [("tf1_matlab_help", 2e-2), + ("ss2_matlab_help", .2), + ("siso_tf_kpos", 2e-2), + ("siso_tf_kneg", 2e-2), + ("siso_tf_type1", 2e-2)], indirect=["tsystem"]) - def test_step_info(self, tsystem, info_true, tolerance): + def test_step_info(self, tsystem, tolerance): """Test step info for SISO systems""" - info = step_info(tsystem) + info = step_info(tsystem.sys) - info_true_sorted = sorted(info_true.keys()) + info_true_sorted = sorted(tsystem.step_info.keys()) info_sorted = sorted(info.keys()) assert info_sorted == info_true_sorted for k in info: - np.testing.assert_allclose(info[k], info_true[k], rtol=tolerance, - err_msg=f"key {k} does not match") + np.testing.assert_allclose(info[k], tsystem.step_info[k], + rtol=tolerance, + err_msg=f"{k} does not match") - def test_step_info_mimo(self, tsystem, info_true, tolearance): + @pytest.mark.parametrize( + "tsystem, tolerance", + [('mimo_tf_step', 2e-2)], + indirect=["tsystem"]) + def test_step_info_mimo(self, tsystem, tolerance): """Test step info for MIMO systems""" - # TODO: implement - pass + info_dict = step_info(tsystem.sys) + from pprint import pprint + pprint(info_dict) + for i, row in enumerate(info_dict): + for j, info in enumerate(row): + for k in info: + np.testing.assert_allclose( + info[k], tsystem.step_info[i][j][k], + rtol=tolerance, + err_msg=f"{k} for input {j} to output {i} " + "does not match") def test_step_pole_cancellation(self, pole_cancellation, no_pole_cancellation): From 35d8ebaa77de7a01ee876439b4b8978944521a58 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Wed, 17 Mar 2021 22:01:48 +0100 Subject: [PATCH 245/260] fix timevector and list return population for MIMO step_info --- control/timeresp.py | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/control/timeresp.py b/control/timeresp.py index 7a2d1c8a4..bb51d3449 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -793,16 +793,17 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, -------- >>> info = step_info(sys, T) ''' - - - if T is None or np.asarray(T).size == 1: - T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) - - ret = [[None] * sys.ninputs] * sys.noutputs + ret = [] for i in range(sys.noutputs): + retrow = [] for j in range(sys.ninputs): sys_siso = sys[i, j] - T, yout = step_response(sys_siso, T) + if T is None or np.asarray(T).size == 1: + Ti = _default_time_vector(sys_siso, N=T_num, tfinal=T, + is_step=True) + else: + Ti = T + Ti, yout = step_response(sys_siso, Ti) # Steady state value InfValue = sys_siso.dcgain() @@ -826,12 +827,12 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, tr_upper_index = np.where( sgnInf * (yout - RiseTimeLimits[1] * InfValue) >= 0 )[0][0] - rise_time = T[tr_upper_index] - T[tr_lower_index] + rise_time = Ti[tr_upper_index] - Ti[tr_lower_index] # SettlingTime settling_th = np.abs(SettlingTimeThreshold * InfValue) not_settled = np.where(np.abs(yout - InfValue) >= settling_th) - settling_time = T[not_settled[0][-1] + 1] + settling_time = Ti[not_settled[0][-1] + 1] settling_min = (yout[tr_upper_index:]).min() settling_max = (yout[tr_upper_index:]).max() @@ -855,12 +856,12 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, # Peak peak_index = np.abs(yout).argmax() peak_value = np.abs(yout[peak_index]) - peak_time = T[peak_index] + peak_time = Ti[peak_index] # SteadyStateValue steady_state_value = InfValue - ret[i][j] = { + retij = { 'RiseTime': rise_time, 'SettlingTime': settling_time, 'SettlingMin': settling_min, @@ -871,6 +872,9 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, 'PeakTime': peak_time, 'SteadyStateValue': steady_state_value } + retrow.append(retij) + + ret.append(retrow) return ret[0][0] if sys.issiso() else ret From 468ffbff098f5616559e0c9d269312be2c724cff Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Thu, 18 Mar 2021 23:44:00 +0100 Subject: [PATCH 246/260] apply isort --- control/tests/timeresp_test.py | 8 +++----- control/timeresp.py | 19 +++++++++---------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index dce0a6a49..ddbe28fe7 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -15,15 +15,13 @@ import pytest import scipy as sp - import control as ct -from control import (StateSpace, TransferFunction, c2d, isctime, isdtime, - ss2tf, tf2ss) +from control import StateSpace, TransferFunction, c2d, isctime, ss2tf, tf2ss +from control.exception import slycot_check +from control.tests.conftest import slycotonly from control.timeresp import (_default_time_vector, _ideal_tfinal_and_dt, forced_response, impulse_response, initial_response, step_info, step_response) -from control.tests.conftest import slycotonly -from control.exception import slycot_check class TSys: diff --git a/control/timeresp.py b/control/timeresp.py index bb51d3449..405f6768f 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -71,18 +71,17 @@ $Id$ """ -# Libraries that we make use of -import scipy as sp # SciPy library (used all over) -import numpy as np # NumPy library -from scipy.linalg import eig, eigvals, matrix_balance, norm -from numpy import (einsum, maximum, minimum, - atleast_1d) import warnings -from .lti import LTI # base class of StateSpace, TransferFunction -from .xferfcn import TransferFunction -from .statesp import _convert_to_statespace, _mimo2simo, _mimo2siso, ssdata -from .lti import isdtime, isctime + +import numpy as np +import scipy as sp +from numpy import atleast_1d, einsum, maximum, minimum +from scipy.linalg import eig, eigvals, matrix_balance, norm + from . import config +from .lti import (LTI, isctime, isdtime) +from .statesp import _convert_to_statespace, _mimo2simo, _mimo2siso, ssdata +from .xferfcn import TransferFunction __all__ = ['forced_response', 'step_response', 'step_info', 'initial_response', 'impulse_response'] From a1fd47e5f405e2ea0e026871a77ba34ed58adfe9 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 00:00:51 +0100 Subject: [PATCH 247/260] step_info from MIMO step_response --- control/tests/timeresp_test.py | 206 +++++++++++++++++++++------------ control/timeresp.py | 29 ++--- 2 files changed, 149 insertions(+), 86 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index ddbe28fe7..fd22001c0 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -26,8 +26,9 @@ class TSys: """Struct of test system""" - def __init__(self, sys=None): + def __init__(self, sys=None, call_kwargs=None): self.sys = sys + self.kwargs = call_kwargs if call_kwargs else {} def __repr__(self): """Show system when debugging""" @@ -210,15 +211,16 @@ def siso_tf_type1(self): @pytest.fixture def siso_tf_kpos(self): - # SISO under shoot response and positive final value G(s)=(-s+1)/(s²+s+1) + # SISO under shoot response and positive final value + # G(s)=(-s+1)/(s²+s+1) T = TSys(TransferFunction([-1, 1], [1, 1, 1])) T.step_info = { 'RiseTime': 1.242, 'SettlingTime': 9.110, - 'SettlingMin': 0.950, + 'SettlingMin': 0.90, 'SettlingMax': 1.208, 'Overshoot': 20.840, - 'Undershoot': 27.840, + 'Undershoot': 28.0, 'Peak': 1.208, 'PeakTime': 4.282, 'SteadyStateValue': 1.0} @@ -226,23 +228,25 @@ def siso_tf_kpos(self): @pytest.fixture def siso_tf_kneg(self): - # SISO under shoot response and negative final value k=-1 G(s)=-(-s+1)/(s²+s+1) + # SISO under shoot response and negative final value + # k=-1 G(s)=-(-s+1)/(s²+s+1) T = TSys(TransferFunction([1, -1], [1, 1, 1])) T.step_info = { 'RiseTime': 1.242, 'SettlingTime': 9.110, 'SettlingMin': -1.208, - 'SettlingMax': -0.950, + 'SettlingMax': -0.90, 'Overshoot': 20.840, - 'Undershoot': 27.840, + 'Undershoot': 28.0, 'Peak': 1.208, 'PeakTime': 4.282, 'SteadyStateValue': -1.0} return T @pytest.fixture - def tf1_matlab_help(self): - # example from matlab online help https://www.mathworks.com/help/control/ref/stepinfo.html + def siso_tf_step_matlab(self): + # example from matlab online help + # https://www.mathworks.com/help/control/ref/stepinfo.html T = TSys(TransferFunction([1, 5, 5], [1, 1.65, 5, 6.5, 2])) T.step_info = { 'RiseTime': 3.8456, @@ -257,37 +261,82 @@ def tf1_matlab_help(self): return T @pytest.fixture - def ss2_matlab_help(self): - A = [[0.68, - 0.34], [0.34, 0.68]] - B = [[0.18], [0.04]] - C = [-1.12, - 1.10] - D = [0.06] + def mimo_ss_step_matlab(self): + A = [[0.68, -0.34], + [0.34, 0.68]] + B = [[0.18, -0.05], + [0.04, 0.11]] + C = [[0, -1.53], + [-1.12, -1.10]] + D = [[0, 0], + [0.06, -0.37]] T = TSys(StateSpace(A, B, C, D, 0.2)) - T.step_info = { - 'RiseTime': 0.4000, - 'SettlingTime': 2.8000, - 'SettlingMin': -0.6724, - 'SettlingMax': -0.5188, - 'Overshoot': 24.6476, - 'Undershoot': 11.1224, - 'Peak': 0.6724, - 'PeakTime': 1, - 'SteadyStateValue': -0.5394} + T.kwargs['step_info'] = {'T': 4.6} + T.step_info = [[{'RiseTime': 0.6000, + 'SettlingTime': 3.0000, + 'SettlingMin': -0.5999, + 'SettlingMax': -0.4689, + 'Overshoot': 15.5072, + 'Undershoot': 0., + 'Peak': 0.5999, + 'PeakTime': 1.4000, + 'SteadyStateValue': -0.5193}, + {'RiseTime': 0., + 'SettlingTime': 3.6000, + 'SettlingMin': -0.2797, + 'SettlingMax': -0.1043, + 'Overshoot': 118.9918, + 'Undershoot': 0, + 'Peak': 0.2797, + 'PeakTime': .6000, + 'SteadyStateValue': -0.1277}], + [{'RiseTime': 0.4000, + 'SettlingTime': 2.8000, + 'SettlingMin': -0.6724, + 'SettlingMax': -0.5188, + 'Overshoot': 24.6476, + 'Undershoot': 11.1224, + 'Peak': 0.6724, + 'PeakTime': 1, + 'SteadyStateValue': -0.5394}, + {'RiseTime': 0.0000, # (*) + 'SettlingTime': 3.4000, + 'SettlingMin': -0.1034, + 'SettlingMax': -0.1485, + 'Overshoot': 132.0170, + 'Undershoot': 79.222, # 0. in MATLAB + 'Peak': 0.4350, + 'PeakTime': .2, + 'SteadyStateValue': -0.1875}]] + # (*): MATLAB gives 0.4 here, but it is unclear what + # 10% and 90% of the steady state response mean, when + # the step for this channel does not start a 0 for + # 0 initial conditions return T @pytest.fixture - def mimo_tf_step(self, tf1_matlab_help, - siso_tf_kpos, - siso_tf_kneg, - siso_tf_type1): - Ta = [[tf1_matlab_help, tf1_matlab_help, siso_tf_kpos], - [siso_tf_kneg, siso_tf_type1, siso_tf_type1]] + def siso_ss_step_matlab(self, mimo_ss_step_matlab): + T = copy(mimo_ss_step_matlab) + T.sys = T.sys[1, 0] + T.step_info = T.step_info[1][0] + return T + + @pytest.fixture + def mimo_tf_step_info(self, + siso_tf_kpos, siso_tf_kneg, + siso_tf_step_matlab): + Ta = [[siso_tf_kpos, siso_tf_kneg, siso_tf_step_matlab], + [siso_tf_step_matlab, siso_tf_kpos, siso_tf_kneg]] T = TSys(TransferFunction( [[Ti.sys.num[0][0] for Ti in Tr] for Tr in Ta], [[Ti.sys.den[0][0] for Ti in Tr] for Tr in Ta])) T.step_info = [[Ti.step_info for Ti in Tr] for Tr in Ta] + # enforce enough sample points for all channels (they have different + # characteristics) + T.kwargs['step_info'] = {'T_num': 2000} return T + @pytest.fixture def tsystem(self, request, @@ -297,8 +346,9 @@ def tsystem(self, siso_dss1, siso_dss2, mimo_dss1, mimo_dss2, mimo_dtf1, pole_cancellation, no_pole_cancellation, siso_tf_type1, - siso_tf_kpos, siso_tf_kneg, tf1_matlab_help, - ss2_matlab_help, mimo_tf_step): + siso_tf_kpos, siso_tf_kneg, + siso_tf_step_matlab, siso_ss_step_matlab, + mimo_ss_step_matlab, mimo_tf_step_info): systems = {"siso_ss1": siso_ss1, "siso_ss2": siso_ss2, "siso_tf1": siso_tf1, @@ -319,9 +369,10 @@ def tsystem(self, "siso_tf_type1": siso_tf_type1, "siso_tf_kpos": siso_tf_kpos, "siso_tf_kneg": siso_tf_kneg, - "tf1_matlab_help": tf1_matlab_help, - "ss2_matlab_help": ss2_matlab_help, - "mimo_tf_step": mimo_tf_step, + "siso_tf_step_matlab": siso_tf_step_matlab, + "siso_ss_step_matlab": siso_ss_step_matlab, + "mimo_ss_step_matlab": mimo_ss_step_matlab, + "mimo_tf_step": mimo_tf_step_info, } return systems[request.param] @@ -375,46 +426,60 @@ def test_step_nostates(self, dt): t, y = step_response(sys) np.testing.assert_array_equal(y, np.ones(len(t))) - # tolerance for all parameters could be wrong for some systems - # discrete systems time parameters tolerance could be +/-dt - @pytest.mark.parametrize( - "tsystem, tolerance", - [("tf1_matlab_help", 2e-2), - ("ss2_matlab_help", .2), - ("siso_tf_kpos", 2e-2), - ("siso_tf_kneg", 2e-2), - ("siso_tf_type1", 2e-2)], - indirect=["tsystem"]) - def test_step_info(self, tsystem, tolerance): - """Test step info for SISO systems""" - info = step_info(tsystem.sys) + def assert_step_info_match(self, sys, info, info_ref): + """Assert reasonable step_info accuracy""" - info_true_sorted = sorted(tsystem.step_info.keys()) - info_sorted = sorted(info.keys()) - assert info_sorted == info_true_sorted + if sys.isdtime(strict=True): + dt = sys.dt + else: + _, dt = _ideal_tfinal_and_dt(sys, is_step=True) - for k in info: - np.testing.assert_allclose(info[k], tsystem.step_info[k], - rtol=tolerance, + for k in ['RiseTime', 'SettlingTime', 'PeakTime']: + np.testing.assert_allclose(info[k], info_ref[k], atol=dt, err_msg=f"{k} does not match") + for k in ['Overshoot', 'Undershoot', 'Peak', 'SteadyStateValue']: + np.testing.assert_allclose(info[k], info_ref[k], rtol=5e-3, + err_msg=f"{k} does not match") + + # steep gradient right after RiseTime + absrefinf = np.abs(info_ref['SteadyStateValue']) + if info_ref['RiseTime'] > 0: + y_next_sample_max = 0.8*absrefinf/info_ref['RiseTime']*dt + else: + y_next_sample_max = 0 + for k in ['SettlingMin', 'SettlingMax']: + if (np.abs(info_ref[k]) - 0.9 * absrefinf) > y_next_sample_max: + # local min/max peak well after signal has risen + np.testing.assert_allclose(info[k], info_ref[k], rtol=1e-3) + + @pytest.mark.parametrize( + "tsystem", + ["siso_tf_step_matlab", + "siso_ss_step_matlab", + "siso_tf_kpos", + "siso_tf_kneg", + "siso_tf_type1"], + indirect=["tsystem"]) + def test_step_info(self, tsystem): + """Test step info for SISO systems""" + step_info_kwargs = tsystem.kwargs.get('step_info',{}) + info = step_info(tsystem.sys, **step_info_kwargs) + self.assert_step_info_match(tsystem.sys, info, tsystem.step_info) @pytest.mark.parametrize( - "tsystem, tolerance", - [('mimo_tf_step', 2e-2)], + "tsystem", + ['mimo_ss_step_matlab', + 'mimo_tf_step'], indirect=["tsystem"]) - def test_step_info_mimo(self, tsystem, tolerance): + def test_step_info_mimo(self, tsystem): """Test step info for MIMO systems""" - info_dict = step_info(tsystem.sys) - from pprint import pprint - pprint(info_dict) + step_info_kwargs = tsystem.kwargs.get('step_info',{}) + info_dict = step_info(tsystem.sys, **step_info_kwargs) for i, row in enumerate(info_dict): for j, info in enumerate(row): for k in info: - np.testing.assert_allclose( - info[k], tsystem.step_info[i][j][k], - rtol=tolerance, - err_msg=f"{k} for input {j} to output {i} " - "does not match") + self.assert_step_info_match(tsystem.sys, + info, tsystem.step_info[i][j]) def test_step_pole_cancellation(self, pole_cancellation, no_pole_cancellation): @@ -422,13 +487,10 @@ def test_step_pole_cancellation(self, pole_cancellation, # https://github.com/python-control/python-control/issues/440 step_info_no_cancellation = step_info(no_pole_cancellation) step_info_cancellation = step_info(pole_cancellation) - for key in step_info_no_cancellation: - if key == 'Overshoot': - # skip this test because these systems have no overshoot - # => very sensitive to parameters - continue - np.testing.assert_allclose(step_info_no_cancellation[key], - step_info_cancellation[key], rtol=1e-4) + self.assert_step_info_match(no_pole_cancellation, + step_info_no_cancellation, + step_info_cancellation) + @pytest.mark.parametrize( "tsystem, kwargs", diff --git a/control/timeresp.py b/control/timeresp.py index 405f6768f..9fbe808c3 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -792,20 +792,18 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, -------- >>> info = step_info(sys, T) ''' + if T is None or np.asarray(T).size == 1: + T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) + T, Yout = step_response(sys, T, squeeze=False) + ret = [] for i in range(sys.noutputs): retrow = [] for j in range(sys.ninputs): - sys_siso = sys[i, j] - if T is None or np.asarray(T).size == 1: - Ti = _default_time_vector(sys_siso, N=T_num, tfinal=T, - is_step=True) - else: - Ti = T - Ti, yout = step_response(sys_siso, Ti) + yout = Yout[i, j, :] # Steady state value - InfValue = sys_siso.dcgain() + InfValue = sys.dcgain() if sys.issiso() else sys.dcgain()[i, j] sgnInf = np.sign(InfValue.real) rise_time: float = np.NaN @@ -826,12 +824,15 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, tr_upper_index = np.where( sgnInf * (yout - RiseTimeLimits[1] * InfValue) >= 0 )[0][0] - rise_time = Ti[tr_upper_index] - Ti[tr_lower_index] + rise_time = T[tr_upper_index] - T[tr_lower_index] # SettlingTime - settling_th = np.abs(SettlingTimeThreshold * InfValue) - not_settled = np.where(np.abs(yout - InfValue) >= settling_th) - settling_time = Ti[not_settled[0][-1] + 1] + settled = np.where( + np.abs(yout/InfValue -1) >= SettlingTimeThreshold)[0][-1]+1 + # MIMO systems can have unsettled channels without infinite + # InfValue + if settled < len(T): + settling_time = T[settled] settling_min = (yout[tr_upper_index:]).min() settling_max = (yout[tr_upper_index:]).max() @@ -855,10 +856,10 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, # Peak peak_index = np.abs(yout).argmax() peak_value = np.abs(yout[peak_index]) - peak_time = Ti[peak_index] + peak_time = T[peak_index] # SteadyStateValue - steady_state_value = InfValue + steady_state_value = InfValue.real retij = { 'RiseTime': rise_time, From 238482e43788c524424715ef8faf9dfe88cffca2 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 00:37:10 +0100 Subject: [PATCH 248/260] reenable masked timevector test, and really test if we get the tfinal --- control/tests/timeresp_test.py | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index fd22001c0..23fccbef7 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -706,20 +706,23 @@ def test_step_robustness(self): (TransferFunction(1, [1, .5, 0]), 25)]) # poles at 0.5 and 0 def test_auto_generated_time_vector_tfinal(self, tfsys, tfinal): """Confirm a TF with a pole at p simulates for tfinal seconds""" - np.testing.assert_almost_equal( - _ideal_tfinal_and_dt(tfsys)[0], tfinal, decimal=4) + ideal_tfinal, ideal_dt = _ideal_tfinal_and_dt(tfsys) + np.testing.assert_allclose(ideal_tfinal, tfinal, rtol=1e-4) + T = _default_time_vector(tfsys) + np.testing.assert_allclose(T[-1], tfinal, atol=0.5*ideal_dt) @pytest.mark.parametrize("wn, zeta", [(10, 0), (100, 0), (100, .1)]) - def test_auto_generated_time_vector_dt_cont(self, wn, zeta): + def test_auto_generated_time_vector_dt_cont1(self, wn, zeta): """Confirm a TF with a natural frequency of wn rad/s gets a dt of 1/(ratio*wn)""" dtref = 0.25133 / wn tfsys = TransferFunction(1, [1, 2*zeta*wn, wn**2]) - np.testing.assert_almost_equal(_ideal_tfinal_and_dt(tfsys)[1], dtref) + np.testing.assert_almost_equal(_ideal_tfinal_and_dt(tfsys)[1], dtref, + decimal=5) - def test_auto_generated_time_vector_dt_cont(self): + def test_auto_generated_time_vector_dt_cont2(self): """A sampled tf keeps its dt""" wn = 100 zeta = .1 @@ -746,21 +749,23 @@ def test_default_timevector_long(self): def test_default_timevector_functions_c(self, fun): """Test that functions can calculate the time vector automatically""" sys = TransferFunction(1, [1, .5, 0]) + _tfinal, _dt = _ideal_tfinal_and_dt(sys) # test impose number of time steps tout, _ = fun(sys, T_num=10) assert len(tout) == 10 # test impose final time - tout, _ = fun(sys, 100) - np.testing.assert_allclose(tout[-1], 100., atol=0.5) + tout, _ = fun(sys, T=100.) + np.testing.assert_allclose(tout[-1], 100., atol=0.5*_dt) @pytest.mark.parametrize("fun", [step_response, impulse_response, initial_response]) - def test_default_timevector_functions_d(self, fun): + @pytest.mark.parametrize("dt", [0.1, 0.112]) + def test_default_timevector_functions_d(self, fun, dt): """Test that functions can calculate the time vector automatically""" - sys = TransferFunction(1, [1, .5, 0], 0.1) + sys = TransferFunction(1, [1, .5, 0], dt) # test impose number of time steps is ignored with dt given tout, _ = fun(sys, T_num=15) @@ -768,7 +773,7 @@ def test_default_timevector_functions_d(self, fun): # test impose final time tout, _ = fun(sys, 100) - np.testing.assert_allclose(tout[-1], 100., atol=0.5) + np.testing.assert_allclose(tout[-1], 100., atol=0.5*dt) @pytest.mark.parametrize("tsystem", From cc90d8d5a3024a7eae7ff5329c5665a63ba17657 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 00:37:52 +0100 Subject: [PATCH 249/260] include tfinal in auto generated timevector --- control/tests/sisotool_test.py | 12 ++++-------- control/timeresp.py | 14 ++++++++------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/control/tests/sisotool_test.py b/control/tests/sisotool_test.py index 6df2493cb..14e9692c1 100644 --- a/control/tests/sisotool_test.py +++ b/control/tests/sisotool_test.py @@ -68,8 +68,8 @@ def test_sisotool(self, sys): # Check the step response before moving the point step_response_original = np.array( - [0. , 0.021 , 0.124 , 0.3146, 0.5653, 0.8385, 1.0969, 1.3095, - 1.4549, 1.5231]) + [0. , 0.0216, 0.1271, 0.3215, 0.5762, 0.8522, 1.1114, 1.3221, + 1.4633, 1.5254]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_original, 4) @@ -113,8 +113,8 @@ def test_sisotool(self, sys): # Check if the step response has changed step_response_moved = np.array( - [0. , 0.023 , 0.1554, 0.4401, 0.8646, 1.3722, 1.875 , 2.2709, - 2.4633, 2.3827]) + [0. , 0.0237, 0.1596, 0.4511, 0.884 , 1.3985, 1.9031, 2.2922, + 2.4676, 2.3606]) assert_array_almost_equal( ax_step.lines[0].get_data()[1][:10], step_response_moved, 4) @@ -157,7 +157,3 @@ def test_sisotool_mimo(self, sys222, sys221): # but 2 input, 1 output should with pytest.raises(ControlMIMONotImplemented): sisotool(sys221) - - - - diff --git a/control/timeresp.py b/control/timeresp.py index 9fbe808c3..aa8bfedfe 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -1303,16 +1303,18 @@ def _default_time_vector(sys, N=None, tfinal=None, is_step=True): # only need to use default_tfinal if not given; N is ignored. if tfinal is None: # for discrete time, change from ideal_tfinal if N too large/small - N = int(np.clip(ideal_tfinal/sys.dt, N_min_dt, N_max))# [N_min, N_max] - tfinal = sys.dt * N + # [N_min, N_max] + N = int(np.clip(np.ceil(ideal_tfinal/sys.dt)+1, N_min_dt, N_max)) + tfinal = sys.dt * (N-1) else: - N = int(tfinal/sys.dt) - tfinal = N * sys.dt # make tfinal an integer multiple of sys.dt + N = int(np.ceil(tfinal/sys.dt)) + 1 + tfinal = sys.dt * (N-1) # make tfinal an integer multiple of sys.dt else: if tfinal is None: # for continuous time, simulate to ideal_tfinal but limit N tfinal = ideal_tfinal if N is None: - N = int(np.clip(tfinal/ideal_dt, N_min_ct, N_max)) # N<-[N_min, N_max] + # [N_min, N_max] + N = int(np.clip(np.ceil(tfinal/ideal_dt)+1, N_min_ct, N_max)) - return np.linspace(0, tfinal, N, endpoint=False) + return np.linspace(0, tfinal, N, endpoint=True) From 01ef6668470ef4444fdc6ff274ad760d3c47b359 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 00:58:14 +0100 Subject: [PATCH 250/260] mimo is slycot only --- control/tests/timeresp_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 23fccbef7..12ca55e46 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -469,7 +469,7 @@ def test_step_info(self, tsystem): @pytest.mark.parametrize( "tsystem", ['mimo_ss_step_matlab', - 'mimo_tf_step'], + pytest.param('mimo_tf_step', marks=slycotonly)], indirect=["tsystem"]) def test_step_info_mimo(self, tsystem): """Test step info for MIMO systems""" From 20ed3682b1977acf4b98ce22d5d116c1d10559b6 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 12:52:55 +0100 Subject: [PATCH 251/260] Describe MIMO step_info return and add doctest example --- control/timeresp.py | 49 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/control/timeresp.py b/control/timeresp.py index aa8bfedfe..a68b25521 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -740,7 +740,7 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9)): - ''' + """ Step response characteristics (Rise time, Settling Time, Peak and others). Parameters @@ -781,7 +781,9 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, SteadyStateValue: Steady-state value - If `sys` is a MIMO system, S is a 2D-List of dicts. + If `sys` is a MIMO system, `S` is a 2D list of dicts. To get the + step response characteristics from the j-th input to the i-th output, + access ``S[i][j]`` See Also @@ -790,8 +792,47 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, Examples -------- - >>> info = step_info(sys, T) - ''' + >>> from control import step_info, TransferFunction + >>> sys = TransferFunction([-1, 1], [1, 1, 1]) + >>> S = step_info(sys) + >>> for k in S: + ... print(f"{k}: {S[k]:3.4}") + ... + RiseTime: 1.256 + SettlingTime: 9.071 + SettlingMin: 0.9011 + SettlingMax: 1.208 + Overshoot: 20.85 + Undershoot: 27.88 + Peak: 1.208 + PeakTime: 4.187 + SteadyStateValue: 1.0 + + MIMO System: Simulate until a final time of 10. Get the step response + characteristics for the second input and specify a 5% error until the + signal is considered settled. + + >>> from numpy import sqrt + >>> from control import step_info, StateSpace + >>> sys = StateSpace([[-1., -1.], + ... [1., 0.]], + ... [[-1./sqrt(2.), 1./sqrt(2.)], + ... [0, 0]], + ... [[sqrt(2.), -sqrt(2.)]], + ... [[0, 0]]) + >>> S = step_info(sys, T=10., SettlingTimeThreshold=0.05) + >>> for k, v in S[0][1].items(): + ... print(f"{k}: {float(v):3.4}") + RiseTime: 1.212 + SettlingTime: 6.061 + SettlingMin: -1.209 + SettlingMax: -0.9184 + Overshoot: 20.87 + Undershoot: 28.02 + Peak: 1.209 + PeakTime: 4.242 + SteadyStateValue: -1.0 + """ if T is None or np.asarray(T).size == 1: T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) T, Yout = step_response(sys, T, squeeze=False) From 43d73f0e08b3ad1edf7ba6541679fcb21e7194bd Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 15:12:24 +0100 Subject: [PATCH 252/260] support time series of response data in step_info --- control/tests/timeresp_test.py | 66 +++++++++++++++++++------ control/timeresp.py | 89 ++++++++++++++++++++++------------ 2 files changed, 111 insertions(+), 44 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 12ca55e46..6ec23e27e 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -427,8 +427,7 @@ def test_step_nostates(self, dt): np.testing.assert_array_equal(y, np.ones(len(t))) def assert_step_info_match(self, sys, info, info_ref): - """Assert reasonable step_info accuracy""" - + """Assert reasonable step_info accuracy.""" if sys.isdtime(strict=True): dt = sys.dt else: @@ -460,10 +459,28 @@ def assert_step_info_match(self, sys, info, info_ref): "siso_tf_kneg", "siso_tf_type1"], indirect=["tsystem"]) - def test_step_info(self, tsystem): - """Test step info for SISO systems""" - step_info_kwargs = tsystem.kwargs.get('step_info',{}) - info = step_info(tsystem.sys, **step_info_kwargs) + @pytest.mark.parametrize( + "systype, time_2d", + [("lti", False), + ("time response data", False), + ("time response data", True), + ]) + def test_step_info(self, tsystem, systype, time_2d): + """Test step info for SISO systems.""" + step_info_kwargs = tsystem.kwargs.get('step_info', {}) + if systype == "time response data": + # simulate long enough for steady state value + tfinal = 3 * tsystem.step_info['SettlingTime'] + if np.isnan(tfinal): + pytest.skip("test system does not settle") + t, y = step_response(tsystem.sys, T=tfinal, T_num=5000) + sysdata = y + step_info_kwargs['T'] = t[np.newaxis, :] if time_2d else t + else: + sysdata = tsystem.sys + + info = step_info(sysdata, **step_info_kwargs) + self.assert_step_info_match(tsystem.sys, info, tsystem.step_info) @pytest.mark.parametrize( @@ -471,15 +488,37 @@ def test_step_info(self, tsystem): ['mimo_ss_step_matlab', pytest.param('mimo_tf_step', marks=slycotonly)], indirect=["tsystem"]) - def test_step_info_mimo(self, tsystem): - """Test step info for MIMO systems""" - step_info_kwargs = tsystem.kwargs.get('step_info',{}) - info_dict = step_info(tsystem.sys, **step_info_kwargs) + @pytest.mark.parametrize( + "systype", ["lti", "time response data"]) + def test_step_info_mimo(self, tsystem, systype): + """Test step info for MIMO systems.""" + step_info_kwargs = tsystem.kwargs.get('step_info', {}) + if systype == "time response data": + tfinal = 3 * max([S['SettlingTime'] + for Srow in tsystem.step_info for S in Srow]) + t, y = step_response(tsystem.sys, T=tfinal, T_num=5000) + sysdata = y + step_info_kwargs['T'] = t + else: + sysdata = tsystem.sys + + info_dict = step_info(sysdata, **step_info_kwargs) + for i, row in enumerate(info_dict): for j, info in enumerate(row): - for k in info: - self.assert_step_info_match(tsystem.sys, - info, tsystem.step_info[i][j]) + self.assert_step_info_match(tsystem.sys, + info, tsystem.step_info[i][j]) + + def test_step_info_invalid(self): + """Call step_info with invalid parameters.""" + with pytest.raises(ValueError, match="time series data convention"): + step_info(["not numeric data"]) + with pytest.raises(ValueError, match="time series data convention"): + step_info(np.ones((10, 15))) # invalid shape + with pytest.raises(ValueError, match="matching time vector"): + step_info(np.ones(15), T=np.linspace(0, 1, 20)) # time too long + with pytest.raises(ValueError, match="matching time vector"): + step_info(np.ones((2, 2, 15))) # no time vector def test_step_pole_cancellation(self, pole_cancellation, no_pole_cancellation): @@ -491,7 +530,6 @@ def test_step_pole_cancellation(self, pole_cancellation, step_info_no_cancellation, step_info_cancellation) - @pytest.mark.parametrize( "tsystem, kwargs", [("siso_ss2", {}), diff --git a/control/timeresp.py b/control/timeresp.py index a68b25521..53144d7d2 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -1,9 +1,7 @@ -# timeresp.py - time-domain simulation routines -# -# This file contains a collection of functions that calculate time -# responses for linear systems. +""" +timeresp.py - time-domain simulation routines. -"""The :mod:`~control.timeresp` module contains a collection of +The :mod:`~control.timeresp` module contains a collection of functions that are used to compute time-domain simulations of LTI systems. @@ -21,9 +19,7 @@ See :ref:`time-series-convention` for more information on how time series data are represented. -""" - -"""Copyright (c) 2011 by California Institute of Technology +Copyright (c) 2011 by California Institute of Technology All rights reserved. Copyright (c) 2011 by Eike Welk @@ -75,12 +71,12 @@ import numpy as np import scipy as sp -from numpy import atleast_1d, einsum, maximum, minimum +from numpy import einsum, maximum, minimum from scipy.linalg import eig, eigvals, matrix_balance, norm from . import config -from .lti import (LTI, isctime, isdtime) -from .statesp import _convert_to_statespace, _mimo2simo, _mimo2siso, ssdata +from .lti import isctime, isdtime +from .statesp import StateSpace, _convert_to_statespace, _mimo2simo, _mimo2siso from .xferfcn import TransferFunction __all__ = ['forced_response', 'step_response', 'step_info', 'initial_response', @@ -209,7 +205,7 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, Parameters ---------- - sys : LTI (StateSpace or TransferFunction) + sys : StateSpace or TransferFunction LTI system to simulate T : array_like, optional for discrete LTI `sys` @@ -284,9 +280,9 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False, See :ref:`time-series-convention`. """ - if not isinstance(sys, LTI): - raise TypeError('Parameter ``sys``: must be a ``LTI`` object. ' - '(For example ``StateSpace`` or ``TransferFunction``)') + if not isinstance(sys, (StateSpace, TransferFunction)): + raise TypeError('Parameter ``sys``: must be a ``StateSpace`` or' + ' ``TransferFunction``)') # If return_x was not specified, figure out the default if return_x is None: @@ -738,20 +734,24 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, squeeze=squeeze, input=input, output=output) -def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, +def step_info(sysdata, T=None, T_num=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9)): """ Step response characteristics (Rise time, Settling Time, Peak and others). Parameters ---------- - sys : LTI system + sysdata : StateSpace or TransferFunction or array_like + The system data. Either LTI system to similate (StateSpace, + TransferFunction), or a time series of step response data. T : array_like or float, optional Time vector, or simulation time duration if a number (time vector is autocomputed if not given, see :func:`step_response` for more detail) + Required, if sysdata is a time series of response data. T_num : int, optional Number of time steps to use in simulation if T is not provided as an - array (autocomputed if not given); ignored if sys is discrete-time. + array; autocomputed if not given; ignored if sysdata is a + discrete-time system or a time series or response data. SettlingTimeThreshold : float value, optional Defines the error to compute settling time (default = 0.02) RiseTimeLimits : tuple (lower_threshold, upper_theshold) @@ -760,7 +760,8 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, Returns ------- S : dict or list of list of dict - If `sys` is a SISO system, S is a dictionary containing: + If `sysdata` corresponds to a SISO system, S is a dictionary + containing: RiseTime: Time from 10% to 90% of the steady-state value. @@ -781,9 +782,9 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, SteadyStateValue: Steady-state value - If `sys` is a MIMO system, `S` is a 2D list of dicts. To get the - step response characteristics from the j-th input to the i-th output, - access ``S[i][j]`` + If `sysdata` corresponds to a MIMO system, `S` is a 2D list of dicts. + To get the step response characteristics from the j-th input to the + i-th output, access ``S[i][j]`` See Also @@ -833,18 +834,46 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, PeakTime: 4.242 SteadyStateValue: -1.0 """ - if T is None or np.asarray(T).size == 1: - T = _default_time_vector(sys, N=T_num, tfinal=T, is_step=True) - T, Yout = step_response(sys, T, squeeze=False) + if isinstance(sysdata, (StateSpace, TransferFunction)): + if T is None or np.asarray(T).size == 1: + T = _default_time_vector(sysdata, N=T_num, tfinal=T, is_step=True) + T, Yout = step_response(sysdata, T, squeeze=False) + InfValues = np.atleast_2d(sysdata.dcgain()) + retsiso = sysdata.issiso() + noutputs = sysdata.noutputs + ninputs = sysdata.ninputs + else: + # Time series of response data + errmsg = ("`sys` must be a LTI system, or time response data" + " with a shape following the python-control" + " time series data convention.") + try: + Yout = np.array(sysdata, dtype=float) + except ValueError: + raise ValueError(errmsg) + if Yout.ndim == 1 or (Yout.ndim == 2 and Yout.shape[0] == 1): + Yout = Yout[np.newaxis, np.newaxis, :] + retsiso = True + elif Yout.ndim == 3: + retsiso = False + else: + raise ValueError(errmsg) + if T is None or Yout.shape[2] != len(np.squeeze(T)): + raise ValueError("For time response data, a matching time vector" + " must be given") + T = np.squeeze(T) + noutputs = Yout.shape[0] + ninputs = Yout.shape[1] + InfValues = Yout[:, :, -1] ret = [] - for i in range(sys.noutputs): + for i in range(noutputs): retrow = [] - for j in range(sys.ninputs): + for j in range(ninputs): yout = Yout[i, j, :] # Steady state value - InfValue = sys.dcgain() if sys.issiso() else sys.dcgain()[i, j] + InfValue = InfValues[i, j] sgnInf = np.sign(InfValue.real) rise_time: float = np.NaN @@ -869,7 +898,7 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, # SettlingTime settled = np.where( - np.abs(yout/InfValue -1) >= SettlingTimeThreshold)[0][-1]+1 + np.abs(yout/InfValue-1) >= SettlingTimeThreshold)[0][-1]+1 # MIMO systems can have unsettled channels without infinite # InfValue if settled < len(T): @@ -917,7 +946,7 @@ def step_info(sys, T=None, T_num=None, SettlingTimeThreshold=0.02, ret.append(retrow) - return ret[0][0] if sys.issiso() else ret + return ret[0][0] if retsiso else ret def initial_response(sys, T=None, X0=0., input=0, output=None, T_num=None, transpose=False, return_x=False, squeeze=None): From 6587f6922bc5c8069e22480d5ae710c8bc77c68f Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 15:37:55 +0100 Subject: [PATCH 253/260] add yfinal parameter to step_info --- control/tests/timeresp_test.py | 35 ++++++++++++++++++++++------------ control/timeresp.py | 16 ++++++++++++---- 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/control/tests/timeresp_test.py b/control/tests/timeresp_test.py index 6ec23e27e..a576d0903 100644 --- a/control/tests/timeresp_test.py +++ b/control/tests/timeresp_test.py @@ -451,6 +451,15 @@ def assert_step_info_match(self, sys, info, info_ref): # local min/max peak well after signal has risen np.testing.assert_allclose(info[k], info_ref[k], rtol=1e-3) + @pytest.mark.parametrize( + "yfinal", [True, False], ids=["yfinal", "no yfinal"]) + @pytest.mark.parametrize( + "systype, time_2d", + [("ltisys", False), + ("time response", False), + ("time response", True), + ], + ids=["ltisys", "time response (n,)", "time response (1,n)"]) @pytest.mark.parametrize( "tsystem", ["siso_tf_step_matlab", @@ -459,16 +468,10 @@ def assert_step_info_match(self, sys, info, info_ref): "siso_tf_kneg", "siso_tf_type1"], indirect=["tsystem"]) - @pytest.mark.parametrize( - "systype, time_2d", - [("lti", False), - ("time response data", False), - ("time response data", True), - ]) - def test_step_info(self, tsystem, systype, time_2d): + def test_step_info(self, tsystem, systype, time_2d, yfinal): """Test step info for SISO systems.""" step_info_kwargs = tsystem.kwargs.get('step_info', {}) - if systype == "time response data": + if systype == "time response": # simulate long enough for steady state value tfinal = 3 * tsystem.step_info['SettlingTime'] if np.isnan(tfinal): @@ -478,22 +481,26 @@ def test_step_info(self, tsystem, systype, time_2d): step_info_kwargs['T'] = t[np.newaxis, :] if time_2d else t else: sysdata = tsystem.sys + if yfinal: + step_info_kwargs['yfinal'] = tsystem.step_info['SteadyStateValue'] info = step_info(sysdata, **step_info_kwargs) self.assert_step_info_match(tsystem.sys, info, tsystem.step_info) + @pytest.mark.parametrize( + "yfinal", [True, False], ids=["yfinal", "no_yfinal"]) + @pytest.mark.parametrize( + "systype", ["ltisys", "time response"]) @pytest.mark.parametrize( "tsystem", ['mimo_ss_step_matlab', pytest.param('mimo_tf_step', marks=slycotonly)], indirect=["tsystem"]) - @pytest.mark.parametrize( - "systype", ["lti", "time response data"]) - def test_step_info_mimo(self, tsystem, systype): + def test_step_info_mimo(self, tsystem, systype, yfinal): """Test step info for MIMO systems.""" step_info_kwargs = tsystem.kwargs.get('step_info', {}) - if systype == "time response data": + if systype == "time response": tfinal = 3 * max([S['SettlingTime'] for Srow in tsystem.step_info for S in Srow]) t, y = step_response(tsystem.sys, T=tfinal, T_num=5000) @@ -501,6 +508,10 @@ def test_step_info_mimo(self, tsystem, systype): step_info_kwargs['T'] = t else: sysdata = tsystem.sys + if yfinal: + step_info_kwargs['yfinal'] = [[S['SteadyStateValue'] + for S in Srow] + for Srow in tsystem.step_info] info_dict = step_info(sysdata, **step_info_kwargs) diff --git a/control/timeresp.py b/control/timeresp.py index 53144d7d2..4f407f925 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -734,8 +734,8 @@ def step_response(sys, T=None, X0=0., input=None, output=None, T_num=None, squeeze=squeeze, input=input, output=output) -def step_info(sysdata, T=None, T_num=None, SettlingTimeThreshold=0.02, - RiseTimeLimits=(0.1, 0.9)): +def step_info(sysdata, T=None, T_num=None, yfinal=None, + SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9)): """ Step response characteristics (Rise time, Settling Time, Peak and others). @@ -752,6 +752,11 @@ def step_info(sysdata, T=None, T_num=None, SettlingTimeThreshold=0.02, Number of time steps to use in simulation if T is not provided as an array; autocomputed if not given; ignored if sysdata is a discrete-time system or a time series or response data. + yfinal: scalar or array_like, optional + Steady-state response. If not given, sysdata.dcgain() is used for + systems to simulate and the last value of the the response data is + used for a given time series of response data. Scalar for SISO, + (noutputs, ninputs) array_like for MIMO systems. SettlingTimeThreshold : float value, optional Defines the error to compute settling time (default = 0.02) RiseTimeLimits : tuple (lower_threshold, upper_theshold) @@ -838,7 +843,10 @@ def step_info(sysdata, T=None, T_num=None, SettlingTimeThreshold=0.02, if T is None or np.asarray(T).size == 1: T = _default_time_vector(sysdata, N=T_num, tfinal=T, is_step=True) T, Yout = step_response(sysdata, T, squeeze=False) - InfValues = np.atleast_2d(sysdata.dcgain()) + if yfinal: + InfValues = np.atleast_2d(yfinal) + else: + InfValues = np.atleast_2d(sysdata.dcgain()) retsiso = sysdata.issiso() noutputs = sysdata.noutputs ninputs = sysdata.ninputs @@ -864,7 +872,7 @@ def step_info(sysdata, T=None, T_num=None, SettlingTimeThreshold=0.02, T = np.squeeze(T) noutputs = Yout.shape[0] ninputs = Yout.shape[1] - InfValues = Yout[:, :, -1] + InfValues = np.atleast_2d(yfinal) if yfinal else Yout[:, :, -1] ret = [] for i in range(noutputs): From a878846400f8fbb29c2babaa02bae461ae7e40ff Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 15:53:58 +0100 Subject: [PATCH 254/260] include yfinal in matlab.stepinfo call signature --- control/matlab/timeresp.py | 69 +++++++++++++++++++++++++------------- control/timeresp.py | 6 ++-- 2 files changed, 49 insertions(+), 26 deletions(-) diff --git a/control/matlab/timeresp.py b/control/matlab/timeresp.py index 31b761bcd..b1fa24bb0 100644 --- a/control/matlab/timeresp.py +++ b/control/matlab/timeresp.py @@ -64,38 +64,59 @@ def step(sys, T=None, X0=0., input=0, output=None, return_x=False): transpose=True, return_x=return_x) return (out[1], out[0], out[2]) if return_x else (out[1], out[0]) -def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, + +def stepinfo(sysdata, T=None, yfinal=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9)): - ''' + """ Step response characteristics (Rise time, Settling Time, Peak and others). Parameters ---------- - sys: StateSpace, or TransferFunction - LTI system to simulate - - T: array-like or number, optional + sysdata : StateSpace or TransferFunction or array_like + The system data. Either LTI system to similate (StateSpace, + TransferFunction), or a time series of step response data. + T : array_like or float, optional Time vector, or simulation time duration if a number (time vector is - autocomputed if not given) - - SettlingTimeThreshold: float value, optional + autocomputed if not given). + Required, if sysdata is a time series of response data. + yfinal : scalar or array_like, optional + Steady-state response. If not given, sysdata.dcgain() is used for + systems to simulate and the last value of the the response data is + used for a given time series of response data. Scalar for SISO, + (noutputs, ninputs) array_like for MIMO systems. + SettlingTimeThreshold : float, optional Defines the error to compute settling time (default = 0.02) - - RiseTimeLimits: tuple (lower_threshold, upper_theshold) + RiseTimeLimits : tuple (lower_threshold, upper_theshold) Defines the lower and upper threshold for RiseTime computation Returns ------- - S: a dictionary containing: - RiseTime: Time from 10% to 90% of the steady-state value. - SettlingTime: Time to enter inside a default error of 2% - SettlingMin: Minimum value after RiseTime - SettlingMax: Maximum value after RiseTime - Overshoot: Percentage of the Peak relative to steady value - Undershoot: Percentage of undershoot - Peak: Absolute peak value - PeakTime: time of the Peak - SteadyStateValue: Steady-state value + S : dict or list of list of dict + If `sysdata` corresponds to a SISO system, S is a dictionary + containing: + + RiseTime: + Time from 10% to 90% of the steady-state value. + SettlingTime: + Time to enter inside a default error of 2% + SettlingMin: + Minimum value after RiseTime + SettlingMax: + Maximum value after RiseTime + Overshoot: + Percentage of the Peak relative to steady value + Undershoot: + Percentage of undershoot + Peak: + Absolute peak value + PeakTime: + time of the Peak + SteadyStateValue: + Steady-state value + + If `sysdata` corresponds to a MIMO system, `S` is a 2D list of dicts. + To get the step response characteristics from the j-th input to the + i-th output, access ``S[i][j]`` See Also @@ -105,11 +126,13 @@ def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, Examples -------- >>> S = stepinfo(sys, T) - ''' + """ from ..timeresp import step_info # Call step_info with MATLAB defaults - S = step_info(sys, T, None, SettlingTimeThreshold, RiseTimeLimits) + S = step_info(sysdata, T=T, T_num=None, yfinal=yfinal, + SettlingTimeThreshold=SettlingTimeThreshold, + RiseTimeLimits=RiseTimeLimits) return S diff --git a/control/timeresp.py b/control/timeresp.py index 4f407f925..630eff03a 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -746,18 +746,18 @@ def step_info(sysdata, T=None, T_num=None, yfinal=None, TransferFunction), or a time series of step response data. T : array_like or float, optional Time vector, or simulation time duration if a number (time vector is - autocomputed if not given, see :func:`step_response` for more detail) + autocomputed if not given, see :func:`step_response` for more detail). Required, if sysdata is a time series of response data. T_num : int, optional Number of time steps to use in simulation if T is not provided as an array; autocomputed if not given; ignored if sysdata is a discrete-time system or a time series or response data. - yfinal: scalar or array_like, optional + yfinal : scalar or array_like, optional Steady-state response. If not given, sysdata.dcgain() is used for systems to simulate and the last value of the the response data is used for a given time series of response data. Scalar for SISO, (noutputs, ninputs) array_like for MIMO systems. - SettlingTimeThreshold : float value, optional + SettlingTimeThreshold : float, optional Defines the error to compute settling time (default = 0.02) RiseTimeLimits : tuple (lower_threshold, upper_theshold) Defines the lower and upper threshold for RiseTime computation From 8c9e807ec64c62cde1dc6e174580099dfac8afd9 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Fri, 19 Mar 2021 23:44:48 +0100 Subject: [PATCH 255/260] discard zero imaginary part for sys.dcgain() --- control/lti.py | 7 +++++++ control/statesp.py | 25 ++++++++++++++++++------- control/tests/freqresp_test.py | 12 ++++++------ control/tests/statesp_test.py | 7 +++---- control/tests/xferfcn_test.py | 6 +++--- control/xferfcn.py | 15 +++++++++++---- 6 files changed, 48 insertions(+), 24 deletions(-) diff --git a/control/lti.py b/control/lti.py index 30569863a..01d04e020 100644 --- a/control/lti.py +++ b/control/lti.py @@ -208,6 +208,13 @@ def dcgain(self): raise NotImplementedError("dcgain not implemented for %s objects" % str(self.__class__)) + def _dcgain(self, warn_infinite): + zeroresp = self(0 if self.isctime() else 1, + warn_infinite=warn_infinite) + if np.all(np.logical_or(np.isreal(zeroresp), np.isnan(zeroresp.imag))): + return zeroresp.real + else: + return zeroresp # Test to see if a system is SISO def issiso(sys, strict=False): diff --git a/control/statesp.py b/control/statesp.py index d2b613024..c75e6f66a 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1216,16 +1216,27 @@ def dcgain(self, warn_infinite=False): .. math: G(1) = C (I - A)^{-1} B + D + Parameters + ---------- + warn_infinite : bool, optional + By default, don't issue a warning message if the zero-frequency + gain is infinite. Setting `warn_infinite` to generate the warning + message. + Returns ------- - gain : ndarray - An array of shape (outputs,inputs); the array will either be the - zero-frequency (or DC) gain, or, if the frequency response is - singular, the array will be filled with (inf + nanj). - + gain : (outputs, inputs) ndarray or scalar + Array or scalar value for SISO systems, depending on + config.defaults['control.squeeze_frequency_response']. + The value of the array elements or the scalar is either the + zero-frequency (or DC) gain, or `inf`, if the frequency response + is singular. + + For real valued systems, the empty imaginary part of the + complex zero-frequency response is discarded and a real array or + scalar is returned. """ - return self(0, warn_infinite=warn_infinite) if self.isctime() \ - else self(1, warn_infinite=warn_infinite) + return self._dcgain(warn_infinite) def _isstatic(self): """True if and only if the system has no dynamics, that is, diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 983330af0..2ef426151 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -423,7 +423,7 @@ def test_dcgain_consistency(): sys_ss = ctrl.tf2ss(sys_tf) assert 0 in sys_ss.pole() - # Finite (real) numerator over 0 denominator => inf + nanj + # Finite (real) numerator over 0 denominator => inf np.testing.assert_equal( sys_tf(0, warn_infinite=False), complex(np.inf, np.nan)) np.testing.assert_equal( @@ -433,9 +433,9 @@ def test_dcgain_consistency(): np.testing.assert_equal( sys_ss(0j, warn_infinite=False), complex(np.inf, np.nan)) np.testing.assert_equal( - sys_tf.dcgain(warn_infinite=False), complex(np.inf, np.nan)) + sys_tf.dcgain(warn_infinite=False), np.inf) np.testing.assert_equal( - sys_ss.dcgain(warn_infinite=False), complex(np.inf, np.nan)) + sys_ss.dcgain(warn_infinite=False), np.inf) # Set up transfer function with pole, zero at the origin sys_tf = ctrl.tf([1, 0], [1, 0]) @@ -448,7 +448,7 @@ def test_dcgain_consistency(): np.testing.assert_equal( sys_tf(0j, warn_infinite=False), complex(np.nan, np.nan)) np.testing.assert_equal( - sys_tf.dcgain(warn_infinite=False), complex(np.nan, np.nan)) + sys_tf.dcgain(warn_infinite=False), np.nan) # Set up state space version sys_ss = ctrl.tf2ss(ctrl.tf([1, 0], [1, 1])) * \ @@ -462,7 +462,7 @@ def test_dcgain_consistency(): np.testing.assert_equal( sys_ss(0j, warn_infinite=False), complex(np.nan, np.nan)) np.testing.assert_equal( - sys_ss.dcgain(warn_infinite=False), complex(np.nan, np.nan)) + sys_ss.dcgain(warn_infinite=False), np.nan) elif 0 in sys_ss.pole(): # Pole at the origin, but zero elsewhere => should get (inf + nanj) np.testing.assert_equal( @@ -470,7 +470,7 @@ def test_dcgain_consistency(): np.testing.assert_equal( sys_ss(0j, warn_infinite=False), complex(np.inf, np.nan)) np.testing.assert_equal( - sys_ss.dcgain(warn_infinite=False), complex(np.inf, np.nan)) + sys_ss.dcgain(warn_infinite=False), np.inf) else: # Near pole/zero cancellation => nothing sensible to check pass diff --git a/control/tests/statesp_test.py b/control/tests/statesp_test.py index 983b9d7a6..6a7509001 100644 --- a/control/tests/statesp_test.py +++ b/control/tests/statesp_test.py @@ -498,7 +498,7 @@ def test_dc_gain_cont(self): np.testing.assert_allclose(sys2.dcgain(), expected) sys3 = StateSpace(0., 1., 1., 0.) - np.testing.assert_equal(sys3.dcgain(), complex(np.inf, np.nan)) + np.testing.assert_equal(sys3.dcgain(), np.inf) def test_dc_gain_discr(self): """Test DC gain for discrete-time state-space systems.""" @@ -516,7 +516,7 @@ def test_dc_gain_discr(self): # summer sys = StateSpace(1, 1, 1, 0, True) - np.testing.assert_equal(sys.dcgain(), complex(np.inf, np.nan)) + np.testing.assert_equal(sys.dcgain(), np.inf) @pytest.mark.parametrize("outputs", range(1, 6)) @pytest.mark.parametrize("inputs", range(1, 6)) @@ -539,7 +539,7 @@ def test_dc_gain_integrator(self, outputs, inputs, dt): c = np.eye(max(outputs, states))[:outputs, :states] d = np.zeros((outputs, inputs)) sys = StateSpace(a, b, c, d, dt) - dc = np.full_like(d, complex(np.inf, np.nan), dtype=complex) + dc = np.full_like(d, np.inf, dtype=float) if sys.issiso(): dc = dc.squeeze() @@ -953,4 +953,3 @@ def test_xferfcn_ndarray_precedence(op, tf, arr): ss = ct.tf2ss(tf) result = op(arr, ss) assert isinstance(result, ct.StateSpace) - diff --git a/control/tests/xferfcn_test.py b/control/tests/xferfcn_test.py index b892655e9..06e7fc9d8 100644 --- a/control/tests/xferfcn_test.py +++ b/control/tests/xferfcn_test.py @@ -807,7 +807,7 @@ def test_dcgain_cont(self): np.testing.assert_equal(sys2.dcgain(), 2) sys3 = TransferFunction(6, [1, 0]) - np.testing.assert_equal(sys3.dcgain(), complex(np.inf, np.nan)) + np.testing.assert_equal(sys3.dcgain(), np.inf) num = [[[15], [21], [33]], [[10], [14], [22]]] den = [[[1, 3], [2, 3], [3, 3]], [[1, 5], [2, 7], [3, 11]]] @@ -827,13 +827,13 @@ def test_dcgain_discr(self): # differencer sys = TransferFunction(1, [1, -1], True) - np.testing.assert_equal(sys.dcgain(), complex(np.inf, np.nan)) + np.testing.assert_equal(sys.dcgain(), np.inf) # differencer, with warning sys = TransferFunction(1, [1, -1], True) with pytest.warns(RuntimeWarning, match="divide by zero"): np.testing.assert_equal( - sys.dcgain(warn_infinite=True), complex(np.inf, np.nan)) + sys.dcgain(warn_infinite=True), np.inf) # summer sys = TransferFunction([1, -1], [1], True) diff --git a/control/xferfcn.py b/control/xferfcn.py index 50e4870a8..3e48c7f24 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -1070,12 +1070,19 @@ def dcgain(self, warn_infinite=False): Returns ------- - gain : ndarray - The zero-frequency gain + gain : (outputs, inputs) ndarray or scalar + Array or scalar value for SISO systems, depending on + config.defaults['control.squeeze_frequency_response']. + The value of the array elements or the scalar is either the + zero-frequency (or DC) gain, or `inf`, if the frequency response + is singular. + + For real valued systems, the empty imaginary part of the + complex zero-frequency response is discarded and a real array or + scalar is returned. """ - return self(0, warn_infinite=warn_infinite) if self.isctime() \ - else self(1, warn_infinite=warn_infinite) + return self._dcgain(warn_infinite) def _isstatic(self): """returns True if and only if all of the numerator and denominator From 9a54254eec86d99aacbf3df30e693c139dc2af1c Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Sat, 20 Mar 2021 00:55:28 +0100 Subject: [PATCH 256/260] Apply review suggestions by @murrayrm: revert comment change, remove parameter --- control/tests/freqresp_test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/control/tests/freqresp_test.py b/control/tests/freqresp_test.py index 2ef426151..321580ba7 100644 --- a/control/tests/freqresp_test.py +++ b/control/tests/freqresp_test.py @@ -423,7 +423,7 @@ def test_dcgain_consistency(): sys_ss = ctrl.tf2ss(sys_tf) assert 0 in sys_ss.pole() - # Finite (real) numerator over 0 denominator => inf + # Finite (real) numerator over 0 denominator => inf + nanj np.testing.assert_equal( sys_tf(0, warn_infinite=False), complex(np.inf, np.nan)) np.testing.assert_equal( @@ -433,9 +433,9 @@ def test_dcgain_consistency(): np.testing.assert_equal( sys_ss(0j, warn_infinite=False), complex(np.inf, np.nan)) np.testing.assert_equal( - sys_tf.dcgain(warn_infinite=False), np.inf) + sys_tf.dcgain(), np.inf) np.testing.assert_equal( - sys_ss.dcgain(warn_infinite=False), np.inf) + sys_ss.dcgain(), np.inf) # Set up transfer function with pole, zero at the origin sys_tf = ctrl.tf([1, 0], [1, 0]) @@ -448,7 +448,7 @@ def test_dcgain_consistency(): np.testing.assert_equal( sys_tf(0j, warn_infinite=False), complex(np.nan, np.nan)) np.testing.assert_equal( - sys_tf.dcgain(warn_infinite=False), np.nan) + sys_tf.dcgain(), np.nan) # Set up state space version sys_ss = ctrl.tf2ss(ctrl.tf([1, 0], [1, 1])) * \ @@ -462,7 +462,7 @@ def test_dcgain_consistency(): np.testing.assert_equal( sys_ss(0j, warn_infinite=False), complex(np.nan, np.nan)) np.testing.assert_equal( - sys_ss.dcgain(warn_infinite=False), np.nan) + sys_ss.dcgain(), np.nan) elif 0 in sys_ss.pole(): # Pole at the origin, but zero elsewhere => should get (inf + nanj) np.testing.assert_equal( @@ -470,7 +470,7 @@ def test_dcgain_consistency(): np.testing.assert_equal( sys_ss(0j, warn_infinite=False), complex(np.inf, np.nan)) np.testing.assert_equal( - sys_ss.dcgain(warn_infinite=False), np.inf) + sys_ss.dcgain(), np.inf) else: # Near pole/zero cancellation => nothing sensible to check pass From 89dcf3c13b16b76db7807c95979094d9d02d4f33 Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 19 Mar 2021 19:19:40 -0700 Subject: [PATCH 257/260] change u == 0 test to avoid py3.8+ syntax warning --- control/statesp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index 2445cd865..b86219030 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1238,7 +1238,7 @@ def dcgain(self, warn_infinite=False): """ return self._dcgain(warn_infinite) - def dynamics(self, t, x, u=0): + def dynamics(self, t, x, u=None): """Compute the dynamics of the system Given input `u` and state `x`, returns the dynamics of the state-space @@ -1274,7 +1274,7 @@ def dynamics(self, t, x, u=0): x = np.reshape(x, (-1, 1)) # force to a column in case matrix if np.size(x) != self.nstates: raise ValueError("len(x) must be equal to number of states") - if u is 0: + if u is None: return self.A.dot(x).reshape((-1,)) # return as row vector else: # received t, x, and u, ignore t u = np.reshape(u, (-1, 1)) # force to a column in case matrix @@ -1283,7 +1283,7 @@ def dynamics(self, t, x, u=0): return self.A.dot(x).reshape((-1,)) \ + self.B.dot(u).reshape((-1,)) # return as row vector - def output(self, t, x, u=0): + def output(self, t, x, u=None): """Compute the output of the system Given input `u` and state `x`, returns the output `y` of the @@ -1317,7 +1317,7 @@ def output(self, t, x, u=0): if np.size(x) != self.nstates: raise ValueError("len(x) must be equal to number of states") - if u is 0: + if u is None: return self.C.dot(x).reshape((-1,)) # return as row vector else: # received t, x, and u, ignore t u = np.reshape(u, (-1, 1)) # force to a column in case matrix From 9b671f92c36d382ca9d45b678477c3f8dfc2855d Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 19 Mar 2021 19:39:38 -0700 Subject: [PATCH 258/260] fix broken links to murray.cds.caltech.edu --- examples/pvtol-lqr-nested.ipynb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/pvtol-lqr-nested.ipynb b/examples/pvtol-lqr-nested.ipynb index ceb6424c0..59e97472a 100644 --- a/examples/pvtol-lqr-nested.ipynb +++ b/examples/pvtol-lqr-nested.ipynb @@ -20,9 +20,9 @@ "## System Description\n", "This example uses a simplified model for a (planar) vertical takeoff and landing aircraft (PVTOL), as shown below:\n", "\n", - "![PVTOL diagram](http://www.cds.caltech.edu/~murray/wiki/images/7/7d/Pvtol-diagram.png)\n", + "![PVTOL diagram](https://murray.cds.caltech.edu/images/murray.cds/7/7d/Pvtol-diagram.png)\n", "\n", - "![PVTOL dynamics](http://www.cds.caltech.edu/~murray/wiki/images/b/b7/Pvtol-dynamics.png)\n", + "![PVTOL dynamics](https://murray.cds.caltech.edu/images/murray.cds/b/b7/Pvtol-dynamics.png)\n", "\n", "The position and orientation of the center of mass of the aircraft is denoted by $(x,y,\\theta)$, $m$ is the mass of the vehicle, $J$ the moment of inertia, $g$ the gravitational constant and $c$ the damping coefficient. The forces generated by the main downward thruster and the maneuvering thrusters are modeled as a pair of forces $F_1$ and $F_2$ acting at a distance $r$ below the aircraft (determined by the geometry of the thrusters).\n", "\n", @@ -307,11 +307,10 @@ "\n", "To design a controller for the lateral dynamics of the vectored thrust aircraft, we make use of a \"inner/outer\" loop design methodology. We begin by representing the dynamics using the block diagram\n", "\n", - "\n", - "where\n", - " \n", + "\n", + "\n", "The controller is constructed by splitting the process dynamics and controller into two components: an inner loop consisting of the roll dynamics $P_i$ and control $C_i$ and an outer loop consisting of the lateral position dynamics $P_o$ and controller $C_o$.\n", - "\n", + "\n", "The closed inner loop dynamics $H_i$ control the roll angle of the aircraft using the vectored thrust while the outer loop controller $C_o$ commands the roll angle to regulate the lateral position.\n", "\n", "The following code imports the libraries that are required and defines the dynamics:" @@ -547,7 +546,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.9" + "version": "3.9.1" } }, "nbformat": 4, From 2782228a6f70b5e9dafb4b65c18a911af5e46aba Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Fri, 19 Mar 2021 21:21:54 -0700 Subject: [PATCH 259/260] TRV: sphinx documentation typo --- doc/optimal.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/optimal.rst b/doc/optimal.rst index 38bfca0db..9538c28c2 100644 --- a/doc/optimal.rst +++ b/doc/optimal.rst @@ -66,7 +66,7 @@ intended to hold at all instants in time along the trajectory. A common use of optimization-based control techniques is the implementation of model predictive control (also called receding horizon control). In -model predict control, a finite horizon optimal control problem is solved, +model predictive control, a finite horizon optimal control problem is solved, generating open-loop state and control trajectories. The resulting control trajectory is applied to the system for a fraction of the horizon length. This process is then repeated, resulting in a sampled data feedback From 3956994336f1d7de60c3ea5106698538be360577 Mon Sep 17 00:00:00 2001 From: Ben Greiner Date: Sat, 20 Mar 2021 13:23:38 +0100 Subject: [PATCH 260/260] dcgain and step_info post PR merge cleanup --- control/statesp.py | 2 +- control/timeresp.py | 2 +- control/xferfcn.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/control/statesp.py b/control/statesp.py index b86219030..03349b0ac 100644 --- a/control/statesp.py +++ b/control/statesp.py @@ -1225,7 +1225,7 @@ def dcgain(self, warn_infinite=False): Returns ------- - gain : (outputs, inputs) ndarray or scalar + gain : (noutputs, ninputs) ndarray or scalar Array or scalar value for SISO systems, depending on config.defaults['control.squeeze_frequency_response']. The value of the array elements or the scalar is either the diff --git a/control/timeresp.py b/control/timeresp.py index 630eff03a..eafe10992 100644 --- a/control/timeresp.py +++ b/control/timeresp.py @@ -937,7 +937,7 @@ def step_info(sysdata, T=None, T_num=None, yfinal=None, peak_time = T[peak_index] # SteadyStateValue - steady_state_value = InfValue.real + steady_state_value = InfValue retij = { 'RiseTime': rise_time, diff --git a/control/xferfcn.py b/control/xferfcn.py index 3e48c7f24..99603b253 100644 --- a/control/xferfcn.py +++ b/control/xferfcn.py @@ -1070,7 +1070,7 @@ def dcgain(self, warn_infinite=False): Returns ------- - gain : (outputs, inputs) ndarray or scalar + gain : (noutputs, ninputs) ndarray or scalar Array or scalar value for SISO systems, depending on config.defaults['control.squeeze_frequency_response']. The value of the array elements or the scalar is either the @@ -1080,7 +1080,6 @@ def dcgain(self, warn_infinite=False): For real valued systems, the empty imaginary part of the complex zero-frequency response is discarded and a real array or scalar is returned. - """ return self._dcgain(warn_infinite)