A NOMAD backend for the ropt robust optimization packages
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 on
GitHubPages or on Read the
Docs). 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
Developement
To install, enter the distribution directory and execute:
pip install .
Running the tests
To run the test suite, install the necessary dependencies and execute pytest
:
pip install .[test]
pytest
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.1.0.tar.gz
.
File metadata
- Download URL: ropt_nomad-0.1.0.tar.gz
- Upload date:
- Size: 23.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca246f3a0dfb0d6af5bf271400d66efd7c523b76241ee49c6261f3827636388b |
|
MD5 | 9742d05a0dc364bfd0a8e4288e3f4b82 |
|
BLAKE2b-256 | 820a8dbc912f71516465ad1a564618e31f83b163fb48a3a065398ad68547e28c |
File details
Details for the file ropt_nomad-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ropt_nomad-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 503452642e0aaf1e2c5dbf8892e6c653970c9047177b18427a790ff78562f570 |
|
MD5 | 076ce0629dd3be7c9c69a93bb94d8d85 |
|
BLAKE2b-256 | 6642e0f95d97330eb4efe55f85664c251e7cd4c00445b4ce6fdc5a7b784a6491 |