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
Developement
The ropt-nomad
source distribution can be found on
GitHub. To install from source, enter
the ropt-pymoo
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
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
Hashes for ropt_nomad-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da4048481572610d21b41fa6f1f56cf2337b4a2243baae428cfbf84ef628a3ca |
|
MD5 | cd50eb809a065b0aed074f22069bd0f6 |
|
BLAKE2b-256 | d23b053ec8d1c06e9f6055c53eed0b83c87b724229ad674c020724a31b5e5bd5 |