Skip to main content

CVXPY Risk Optimization

A package for risk-based optimization using CVXPY and CVXPYgen.

Installation

Installing from PyPI

The package can be installed using pip:

pip install cvxRiskOpt

Notes:

  • The installation will also include cvxpy and cvxpygen.
  • Please refer to cvxpy's documentation for installing additional solvers.
  • Compiling code with Clarabel requires Rust, Eigen, and cbindgen. (e.g. These can be installed with homebrew on MacOS)
  • Compiled code using the ECOS solver is licensed under the GNU General Public License v3.0.
  • Please refer to the cvxpygen documentation for more details about compiled code.

Installing from source

  • Clone/Download the package
  • Create and activate conda env
conda create --name cvxRiskOpt python=3.10 pip -y
conda activate cvxRiskOpt
  • Install dependencies (see setup.py)
  • Install the package
python3 -m pip install -e .

Tests

To run tests, execute the following from the root of the package.

pytest

Examples

There are several examples in examples demonstrating the usage of the package.

Download files

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

Source Distribution

cvxriskopt-0.2.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

cvxRiskOpt-0.2.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file cvxriskopt-0.2.0.tar.gz.

File metadata

  • Download URL: cvxriskopt-0.2.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.14

File hashes

Hashes for cvxriskopt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b21e1b6421ba7c0d41ccfee1e44ecdd99b8b8b5ab46dc3cc409a57171020ae41
MD5 636ceb9cd22ca82d3b7425b25c9777c5
BLAKE2b-256 a00258a53aa5a1e8194dbe8ad64911e5f8bef5772cc42d6abfedd19fa3510b99

See more details on using hashes here.

File details

Details for the file cvxRiskOpt-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cvxRiskOpt-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.14

File hashes

Hashes for cvxRiskOpt-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f91b04e8a3770076f75e5ac11b6bdd4e97d4940599d9526f7c10e56987223183
MD5 fcc3644dc67e4ae8a422bc5dce2f36db
BLAKE2b-256 ec975bdcc38df0413c548592b11069561739dde043de2eaf367d55b4fa7c6613

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

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