All Projects → heirung → pytope

heirung / pytope

Licence: MIT license
Minimal package for operations on polytopes, zonotopes, and invariant sets.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pytope

polytope
Geometric operations on polytopes of any dimension
Stars: ✭ 51 (+96.15%)
Mutual labels:  polytope, polyhedron
dingo
A python library for metabolic networks sampling and analysis
Stars: ✭ 29 (+11.54%)
Mutual labels:  polytope
d3.geometer
[NOT MAINTAINED] A D3js library for drawing polytopes, angles, coordinates, geometries and more.
Stars: ✭ 18 (-30.77%)
Mutual labels:  polytope
SDLP
Seidel's LP Algorithm: Linear-Complexity Linear Programming for Small-Dimensional Variables
Stars: ✭ 36 (+38.46%)
Mutual labels:  polytope
pypoman
Python module for polyhedral geometry
Stars: ✭ 26 (+0%)
Mutual labels:  polyhedron

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 some of the currently implemented operations (see demo.py); the third uses pytope to plot a robust MPC trajectory (obtained with 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).

pytope is experimental, fragile, largely untested, and probably buggy.

Illustration of various polytope operations
Figure: Illustration of various polytope operations.

The Minkowski sum of two polytopes
Figure: The Minkowski sum of two polytopes.

Robust MPC trajectory from Mayne et al. (2005)
Figure: Robust MPC trajectory from Mayne et al. (2005), combining Figures 1 and 2.

Outer ε-approximation of a minimal RPI
Figure: Outer ε-approximation of a minimal robust positively invariant (MRPI) set – a reproduction of the example in Raković et al. (2005).

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].