Skip to main content

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:

  1. Gradients are not used, any specifications relating to gradient calculations in ropt are ignored.
  2. Some standard optimization parameters that can be specified in the optimization section are ignored, specifically:
    • algorithm
    • tolerance
  3. Only inequality constraints are supported by NOMAD.
  4. Linear and non-linear constraints are both supported. Linear constraints are not supported directly, but are internally converted to non-linear constraints.
  5. 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 the NOMAD python interface, with the following exceptions:
    • The DIMENSION and cannot be overridden.
    • The MAX_ITERATIONS keyword can only be used if the max_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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ropt_nomad-0.1.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

ropt_nomad-0.1.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

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

Hashes for ropt_nomad-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ca246f3a0dfb0d6af5bf271400d66efd7c523b76241ee49c6261f3827636388b
MD5 9742d05a0dc364bfd0a8e4288e3f4b82
BLAKE2b-256 820a8dbc912f71516465ad1a564618e31f83b163fb48a3a065398ad68547e28c

See more details on using hashes here.

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

Hashes for ropt_nomad-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 503452642e0aaf1e2c5dbf8892e6c653970c9047177b18427a790ff78562f570
MD5 076ce0629dd3be7c9c69a93bb94d8d85
BLAKE2b-256 6642e0f95d97330eb4efe55f85664c251e7cd4c00445b4ce6fdc5a7b784a6491

See more details on using hashes here.

Supported by

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