Nonlinear Algebraic Approximation in Control systems
Project description
Nonlinear Algebraic Approximation of Control Systems
A Python implementation of an algorithm for construction homogeneous approximations of nonlinear control systems. For description of the algoritm refer to ...
Installation
You can install the package using pip
pip install napalm-control
How to use
The main part of the package is implemented in a single class called ControlSystem. This class describes a control system and its methods implement the algorithm of approximation of given system.
from napalm_control.approximation_tools import ControlSystem
Given a system you can initialize it the following way
system = ControlSystem(a, b)
where a and b are corresponding vectors.
Note: the vectors must be composed out of sympy symbols or numbers. For example, consider a system:
Then the implementation using the package would be as follows:
import sympy as sym
from napalm_control.approximation_tools import ControlSystem
x1, t = sym.symbols('x_1 t')
a = sym.Matrix([0, -sym.Rational(1, 2)*x1**2 - 4*t*x1 - 3*t**2*x1, -x1**2 - 2*t*x1 - 3*t**2*x1])
b = sym.Matrix([-1, 0, 0])
system = ControlSystem(a, b)
Project details
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 napalm_control-0.0.6.tar.gz
.
File metadata
- Download URL: napalm_control-0.0.6.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a42ea2c3b9c22527fa15524a7a5c6be8a4059b8734c3feca7a32b09d4f6fb1b0 |
|
MD5 | f89764724a1b7172d6ed6d26a5b6e4d0 |
|
BLAKE2b-256 | f2f9db5fc34f42463dda7135d4391cf59f638736135630c3ca427301a80e6df0 |
File details
Details for the file napalm_control-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: napalm_control-0.0.6-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86f7fe1cb67e5890523090ebecfe36ff140961e63dc7fc35b987daa16f73e407 |
|
MD5 | e85148528eac77b62f432b16d87bb78c |
|
BLAKE2b-256 | 2948b71110bd8142e9c04b36a5e9dc0f1c86324016fb18ed2c1be5e520c8ef72 |