Skip to main content

A NOMAD backend 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:

  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

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

ropt_nomad-0.2.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

ropt_nomad-0.2.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file ropt_nomad-0.2.0.tar.gz.

File metadata

  • Download URL: ropt_nomad-0.2.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ropt_nomad-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8c96caba61ebcb30582b5a9a10d9bc36db330afc3f3b6331a17f4ea061b62d9a
MD5 f40525a8d51fd7df377aeaaf5da74c6a
BLAKE2b-256 e555db25218ee99fdc00e731d300b34fcdf66a99dac553a78c1b027b1730069a

See more details on using hashes here.

File details

Details for the file ropt_nomad-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ropt_nomad-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ropt_nomad-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5234cee9ead88ca16329c339c9ad3d1cf14f687ef2ae310958c0b58cd40e274
MD5 d6120dce48748cad171f848de3a73c0d
BLAKE2b-256 4dc2a0556c0eb6fb7de1f929e8f75d89e7cf44094c29241be3bcf94205d52a0f

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