This release is a pre-release and may not be stable for production use.
Rapid Optimization Library (ROL)
ROL (as in rock and roll) is a high-performance C++ library for numerical optimization. ROL brings an extensive collection of state-of-the-art optimization algorithms to virtually any application. Its programming interface supports any computational hardware, including heterogeneous many-core systems with digital and analog accelerators. ROL has been used with great success for optimal control, optimal design, inverse problems, image processing and mesh optimization, in application areas including geophysics, structural dynamics, fluid dynamics, electromagnetics, quantum computing, hypersonics and geospatial imaging.
For additional details, see https://rol.sandia.gov.
Feature highlights:
- Vector abstractions and matrix-free interface for universal applicability
- Modern algorithms for unconstrained and constrained optimization
- Easy-to-use methods for stochastic and risk-aware optimization
- Fast and robust algorithms for nonsmooth optimization
- Trust-region methods for inexact and adaptive computations
- PDE-OPT application development kit for PDE-constrained optimization
- Interfaces and algorithms for optimal experimental design
Getting Started
ROL is a C++ library with a cmake build system. There are minimal third-party library requirements consisting of BLAS and LAPACK which also require a suitable Fortran compiler on the system. On Linux-based systems with an apt package manager, the dependencies may be installed with
apt install cmake gfortran libopenblas-dev liblapack3
Some typical configure scripts may be found in the .github/workflows/ directory.
An in-source release build including ROL's examples and tests may be configured
from within the source directory with
cmake -D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D ENABLE_EXAMPLES:BOOL=ON \
-D ENABLE_TESTS:BOOL=ON \
-B build \
-D CMAKE_INSTALL_PREFIX=build/install \
.
After a successful configure, ROL is built by then changing
to the build directory and running make
cd build
make
One can then install it
make install
Building against ROL
Assuming we have a directory called 'roltest' which contains files we would like to run using ROL. In /dir/to/roltest, create a CMakeLists.txt with the following:
cmake_minimum_required(VERSION 3.10)
project(test)
set(CMAKE_CXX_STANDARD 17)
enable_language(C)
enable_language(CXX)
message(STATUS "ROL directory is: ${ROL_DIR}/include")
include_directories("${ROL_DIR}/include") #one down for all files
find_library(ROL_LIB NAMES rol librol PATHS ${ROL_DIR}/lib NO_DEFAULT_PATH)
if(ROL_LIB)
message(STATUS "We found ROL!")
else()
message(FATAL_ERROR "ROL library not found!")
endif()
add_library(rol::rol UNKNOWN IMPORTED)
set_target_properties(rol::rol PROPERTIES IMPORTED_LOCATION "${ROL_LIB}")
add_executable(ROLtest mytest.cpp)
target_link_libraries(ROLtest PRIVATE rol::rol)
add_executable(ROLtest mytest.cpp)
The file in mytest then simply tests that it can find a basic ROL type:
#include "ROL_StdVector.hpp"
typedef double RealT;
int main() {
int dim = 100;
ROL::StdVector<RealT> x(dim);
x.randomize(-1.0, 1.0);
std::cout << "What's the norm of x? " << x.norm() << std::endl;
}
Compiling and executing should then be a matter of:
$ cmake . -DROL_DIR=/Users/../path/to/rol/build/install
$ make
$ ./ROLtest
What's the norm of x? "some random number"
Python Interface
The python pip package rol-python is the official python interface to ROL. It is available at https://pypi.org/project/rol-python/ and can be installed via
pip install rol-python
Copyright and License
See COPYRIGHT and LICENSE.
Questions?
Contact team or developers:
- ROL Team (GitHub handle: @sandialabs/rol)
- Drew Kouri (GitHub handle: dpkouri or dpkouri@sandia.gov)
- Denis Ridzal (GitHub handle: dridzal or dridzal@sandia.gov)
Metadata
Release files for rol-python 2026.8.28.dev1935
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rol_python-2026.8.28.dev1935.tar.gz | 3.9 MB | With provenance | Details |
Built distributions (wheels)
Total release size: 300.0 MB
Release files / rol_python-2026.8.28.dev1935.tar.gz
| Download URL | rol_python-2026.8.28.dev1935.tar.gz |
|---|---|
| Size | 3.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e46dce40911dd14a6a642460b542541cc7e264013482dc12a22f54ec608b352
|
|
BLAKE2b-256 checksum How to use checksums |
9fb6cfb6c0c0c1f02e838cd7333868f37cef0dc9515a2907bd3d9c2c2a312e45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 29.2 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ef979c08a2d8709cdec821468aaeedf0117318857481dd0303341b1d8081b86b
|
|
BLAKE2b-256 checksum How to use checksums |
96377b0fe34e80bc7483f6092161b5ae0e9c4c6109b4a0dd7bd252c8bdd70b49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.2 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9c0ba2709792e8094fb7a14d9a10985c184223f0f52b026010d993cc3627c36b
|
|
BLAKE2b-256 checksum How to use checksums |
dc0e915f2676b486eb5025385361e599921692616bb9771a4264a2a797602373
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 29.2 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a7c42890c56e72493917c0910a934ca4fbf7fb2bff7d2e42e068bc7d2cd43a0a
|
|
BLAKE2b-256 checksum How to use checksums |
364eeb45014c8cf8f3aa733b8778e970f94c7eb03b00fa9c484df537579f04ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.2 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c62de60eeb3482df26656f8fb7db24e2c3002021893d20e887ad26363f295c95
|
|
BLAKE2b-256 checksum How to use checksums |
d711bac124d049a478b8cd471c87a7d26a995b098014d93d1b19c1e5797c704c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 29.2 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e001d9afd882993b6ed765fe55ee8cd443afacaaf6f6a6cafc4c2d675b2e76c3
|
|
BLAKE2b-256 checksum How to use checksums |
4df4383ab88021ca066cf5c78b23f4d7fc37186969a7d0f2bdc89d479f6d40ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.2 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
18e206b37ad8ce26b6247fbd7da42c2787374cf804abe36b9fac8e976fc8c3a3
|
|
BLAKE2b-256 checksum How to use checksums |
2b811a15caae7d7b110e4706da553cd2f65fc4595c88826a5501cab9ba179a60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 29.1 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
8da7e660a297d930ae2b635ce0be399c88964394b149cfda2b24db3b5a410c9d
|
|
BLAKE2b-256 checksum How to use checksums |
027241458b7eb856dab9e8b0b33e0a3df4b807d4b3d0798364247dc5be6892a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.1 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7828815d89a1800ddf9cbb8af9534ca18b0624d9ff46f11167567d5d094d444d
|
|
BLAKE2b-256 checksum How to use checksums |
b0f2ff2a52ec462a8162864af90dca42f9a6f54f27defe66179470d8eb0fd108
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 29.1 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f094460fd6c0adfd1ca3a941fb2ece370a99fb36ef144916ebf63b0b605bccd9
|
|
BLAKE2b-256 checksum How to use checksums |
31a80191fc9efa7b0470ee66a297ebc4ea5693f423d86f1424310f0480a86ebb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.1 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3879e0f24d349288957198d0c12752835d3f1ef103cf9f61c0f4faee54a0ac76
|
|
BLAKE2b-256 checksum How to use checksums |
531b91679919f93e1a879bab1b9cbc048f2101f1687721c1737571554a39ab7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 29.1 MB |
| Tags | CPython 3.9 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ebf3fa613e0ef5aee44952030bfe6088ec0a8de8ad480924c2e10a5a97ee2589
|
|
BLAKE2b-256 checksum How to use checksums |
c9f184f0e7006ca0baf5da5ee46dd3ef9678ca1d7255f4b228ab54c7bfc00a65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.1 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
903473e48485c16eb4016328d55291f8d474dda341337d54cc41e7f52b1b3b03
|
|
BLAKE2b-256 checksum How to use checksums |
3aa5d9db92811d0d43a92706bf647344333779b904254893eb1b4d3f2a8b3011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 29.1 MB |
| Tags | CPython 3.8 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
02325bbdde0049a9e93f859d66967584da6f8f116f3a923c40f04f8dd2a120c8
|
|
BLAKE2b-256 checksum How to use checksums |
96edea810d3668412271f608e18db28d45c1c9a40a3e64a0649dc329c9f0dac0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / rol_python-2026.8.28.dev1935-cp38-cp38-macosx_11_0_arm64.whl
| Download URL | rol_python-2026.8.28.dev1935-cp38-cp38-macosx_11_0_arm64.whl |
|---|---|
| Size | 13.1 MB |
| Tags | CPython 3.8 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6fee504fa81a4deefbd11e2a60d0ad2bbda5da68daa5f8cd3a38282510c03d5f
|
|
BLAKE2b-256 checksum How to use checksums |
49ce082ef384701219130fdc139b0903d0e146f9eb9e6829362829f34d47fd2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logSecurity for rol-python 2026.8.28.dev1935
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 15 files in this release have been uploaded with provenance metadata.
Attestation for rol_python-2026.8.28.dev1935.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.