Polytope operations --- limited functionality
Project description
pytope
Package with a limited set of operations for polytopes, zonotopes, and invariant sets.
The currently implemented features include
- constructing polytopes from inequalities (halfspace representation), vertices, and upper and lower bounds,
- linear mapping (multiplying a matrix M and a polytope P: M P),
- the Minkowski sum and Pontryagin difference of polytopes,
- the intersection of polytopes, and
- simple plotting.
The figures below are generated with pytope. The first two illustrate the currently implemented operations (see demo.py); the third uses pytope to plot a robust MPC trajectory (implemented in CasADi, combining Figures 1 and 2 from Mayne et al. (2005)) (with a rough approximation of the disturbance sequence); the fourth shows an outer ε-approximation of a minimal robust positively invariant (or MRPI) set (computed with pytope), reproducing the example from Raković et al. (2005).
Most of pytope is experimental, fragile, largely untested, and buggy.
Figure: Illustration of various polytope operations.
Figure: The Minkowski sum of two polytopes.
Figure: Robust MPC trajectory from Mayne et al. (2005), combining Figures 1 and 2.
Figure: Outer ε-approximation of a minimal robust positively invariant (MRPI) set – a reproduction of the example in Raković et al. (2005).
References
- Mayne, D.Q., Seron, M.M., & Raković, S.V. (2005). Robust model predictive control of constrained linear systems with bounded disturbances. Automatica, 41(2), 219–224.
- Raković, S.V., Kerrigan, E.C., Kouramas, K.I., & Mayne, D.Q. (2005). Invariant approximations of the minimal robust positively invariant set. IEEE Transactions on Automatic Control, 50(3), 406–410.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytope-0.0.4.tar.gz
.
File metadata
- Download URL: pytope-0.0.4.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0caf6abd840bf5cfacbae80e887ed8c6f5c0d0c2089fb531899a0206d3a11145
|
|
MD5 |
8b3c81cea778c76b5195a3875a56aed4
|
|
BLAKE2b-256 |
f13847d1a335b132ce14de93336152694c01d406ef71eeb408a43ae7170922d0
|
File details
Details for the file pytope-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pytope-0.0.4-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4e86f8d240c38ac229368ee481e459b4171fb88729fc5a7505d43f9e36a7afed
|
|
MD5 |
afdd059f1fa2fe5db95af5168b18f29a
|
|
BLAKE2b-256 |
e3bb0f422fa1e1a0613389ac20b18a31ff841f91739539d09e03178912ded122
|