A NOMAD plugin for the ropt robust optimization package
Project description
A NOMAD optimizer plugin for ropt
This package installs a plugin for the ropt ensemble optimizer package, giving access to algorithms from the NOMAD optimization package.
Dependencies
This code has been tested with Python versions 3.8-3.11 on linux.
The backend requires the NOMAD optimizer, which will be installed as a dependency from PyPI.
Installation
From PyPI:
pip install ropt-nomad
Usage
An optimization by ropt using the plugin works mostly as any other optimization run (see also the ropt documentation). However, there are a few things to consider:
- Gradients are not used, any specifications relating to gradient calculations in ropt are ignored.
- Some standard optimization parameters that can be specified in the
optimization section are ignored, specifically:
algorithm
tolerance
- Only inequality constraints are supported by
NOMAD
. - Linear and non-linear constraints are both supported. Linear constraints are not supported directly, but are internally converted to non-linear constraints.
- Additional options can be passed as a list of strings via the
options
field in the optimizer configuration. You can use any option that is supported by theNOMAD
python interface, with the following exceptions:- The
DIMENSION
and cannot be overridden. - The
MAX_ITERATIONS
keyword can only be used if themax_iterations
field is not set in the optimizer configuration. BB_OUTPUT_TYPE
can be overridden, which is useful to change the type of constraint handling.
- The
Development
The ropt-nomad
source distribution can be found on
GitHub. It uses a standard
pyproject.toml
file, which contains build information and configuration
settings for various tools. A development environment can be set up with
compatible tools of your choice.
The ropt-nomad
package uses ruff (for
formatting and linting), mypy (for static typing),
and pytest (for running the test suite).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ropt_nomad-0.9.0.tar.gz
.
File metadata
- Download URL: ropt_nomad-0.9.0.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10d7c1b75eb69dadf171654f3cc3857dc7552113b362487db18f264ef4adfc6a |
|
MD5 | 4aadb37cfe16444c628bdca81bdf8022 |
|
BLAKE2b-256 | 1d19e55ec1c1022de5af2ff5e5d6321538db41e857445b1f61ee01a7232cfa51 |
Provenance
The following attestation bundles were made for ropt_nomad-0.9.0.tar.gz
:
Publisher:
release.yml
on TNO-ropt/ropt-nomad
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ropt_nomad-0.9.0.tar.gz
- Subject digest:
10d7c1b75eb69dadf171654f3cc3857dc7552113b362487db18f264ef4adfc6a
- Sigstore transparency entry: 146381342
- Sigstore integration time:
- Predicate type:
File details
Details for the file ropt_nomad-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: ropt_nomad-0.9.0-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49c4e198c26661e7957083ec75f75fcccc75b996fdd50dae965d915ea699a206 |
|
MD5 | 038c1a285065f3d15b95e5547157aaf1 |
|
BLAKE2b-256 | 1dcb65d5f46edf1cb27d84b4e380de61479f479decb7eff95529fae2c52c30db |
Provenance
The following attestation bundles were made for ropt_nomad-0.9.0-py3-none-any.whl
:
Publisher:
release.yml
on TNO-ropt/ropt-nomad
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ropt_nomad-0.9.0-py3-none-any.whl
- Subject digest:
49c4e198c26661e7957083ec75f75fcccc75b996fdd50dae965d915ea699a206
- Sigstore transparency entry: 146381344
- Sigstore integration time:
- Predicate type: