Skip to main content

Risk-Based Optimization tool using CVXPY and CVXPYgen

Project description

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)

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.

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

cvxriskopt-0.1.3.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

cvxRiskOpt-0.1.3-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cvxriskopt-0.1.3.tar.gz
Algorithm Hash digest
SHA256 267d5e2dc47221c165556a9f6eebc8564b5afe721832e8d813050ddd006b38b4
MD5 f9a21294f17f7d884ad54c3c78e163ef
BLAKE2b-256 5dae1c1f758039e8f0372dc9b396c956f4a3d3028c75f09dda91050031aad816

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cvxRiskOpt-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 26.9 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0693f970ad41ce998d81e31263bc23371b2341239ddf9809e4522b6ca8cdc13c
MD5 2270b589a7db8a80d9b27eda79176615
BLAKE2b-256 dbac3085c16965841718e1015311b3c7b9872eca50d76badf737ab8a28817e8e

See more details on using hashes here.

Supported by

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