Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.2.3 instead.
Reason given by maintainers: Release candidate superseded by 0.2.1

YAPSS: Yet Another Pseudo-Spectral Solver

YAPSS is a Python library for formulating and solving optimal-control problems with pseudospectral methods.

YAPSS provides:

  • Legendre-Gauss, Legendre-Gauss-Radau, and Legendre-Gauss-Lobatto collocation methods, using a computational approach based on the GPOPS-II algorithm of Patterson and Rao (2014)
  • Multiple differentiation approaches: automatic differentiation via CasADi, user-supplied derivatives, and central-difference numerical differentiation for problems not amenable to automatic differentiation
  • Multi-phase problems and segmented meshes
  • An interface designed to identify common formulation errors early
  • Worked examples as both Python scripts and Jupyter notebooks

Start here

  1. Install YAPSS.
  2. Work through the tutorial to define and solve a first problem.
  3. Browse the examples for complete applications.

Installation

YAPSS requires Python 3.10 or later. Install it into a virtual environment with pip:

$ python -m venv yapss-env
$ source yapss-env/bin/activate
(yapss-env) $ python -m pip install --upgrade pip
(yapss-env) $ python -m pip install yapss

Alternatively, install it with Conda:

$ conda create -n yapss-env python=3.10
$ conda activate yapss-env
(yapss-env) $ conda install -c conda-forge yapss

Verify the Installation

Run the HS071 example, a small constrained optimization problem:

(yapss-env) $ python -m yapss.examples.hs071

YAPSS is installed correctly if the run finishes, and the output ends with

Objective value
f(x*) = 1.701402e+01

YAPSS solution is correct.

The value of the final digits of the objective may vary between platforms and solver versions.

Where to go next

License

YAPSS is licensed under the MIT License. See the License page for more information.

Documentation

The documentation is available on Read the Docs.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yapss-0.2.1rc1.tar.gz (231.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yapss-0.2.1rc1-py3-none-any.whl (133.8 kB view details)

Uploaded Python 3

File details

Details for the file yapss-0.2.1rc1.tar.gz.

File metadata

  • Download URL: yapss-0.2.1rc1.tar.gz
  • Upload date:
  • Size: 231.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for yapss-0.2.1rc1.tar.gz
Algorithm Hash digest
SHA256 fcdb8f9adae09c18f2aee3f041f8afae7f7cb0566fd0eb87faf052ce47f3e3f6
MD5 2d74bf0679caa209517088fca50ed29a
BLAKE2b-256 870cc4ddbd4113645cef2af18adda280e99f8fa8b77dbc345b42d8f69f1a5608

See more details on using hashes here.

Provenance

The following attestation bundles were made for yapss-0.2.1rc1.tar.gz:

Publisher: publish.yml on stevenrhall/yapss

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yapss-0.2.1rc1-py3-none-any.whl.

File metadata

  • Download URL: yapss-0.2.1rc1-py3-none-any.whl
  • Upload date:
  • Size: 133.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for yapss-0.2.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 609e965ecabfe873337b6ca4f7b1b20e6c401080274354804fea2f3b81028ada
MD5 f74322a6dcc38781ecf94fb9783603c2
BLAKE2b-256 9a6f6469c37918200e8bcfd8cd84f12776ffb4d00ac350976d529e5312f72965

See more details on using hashes here.

Provenance

The following attestation bundles were made for yapss-0.2.1rc1-py3-none-any.whl:

Publisher: publish.yml on stevenrhall/yapss

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

This release

0.2.1rc1 This release

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page