Skip to main content

Python wrapper for TinyMPC

Project description

Python wrapper for TinyMPC.

Installation

pip install tinympc

For development installation (optional):

git clone https://github.com/TinyMPC/tinympc-python.git
cd tinympc-python
pip install -e .

Examples

The examples/ directory contains several demonstration files:

Basic Examples

  • cartpole_example_one_solve.py - Single solve for cartpole problem
  • cartpole_example_mpc.py - MPC implementation for cartpole
  • cartpole_example_mpc_constrained.py - MPC with constraints

Code Generation Examples

Note: Quadrotor Code generation examples require autograd: pip install autograd

  • cartpole_example_code_generation.py - Code generation for cartpole
  • quadrotor_hover_code_generation.py - Code generation for quadrotor hover
    • For online hyperparameter tuning, set ENABLE_ADAPTIVE_RHO = True in the file

Documentation

Documentation and examples can be found here.

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

tinympc-0.0.5.tar.gz (1.2 MB view details)

Uploaded Source

File details

Details for the file tinympc-0.0.5.tar.gz.

File metadata

  • Download URL: tinympc-0.0.5.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for tinympc-0.0.5.tar.gz
Algorithm Hash digest
SHA256 80046bd2cb89e55caedd011e273e85825c19c519e489fed3a527ca2925be4544
MD5 74490476ebd12ee1e8450892934c2aa7
BLAKE2b-256 082d166db08a7d756acc5fe0d4727ed6d12e1950fea020add483e91b07a36b42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page