Skip to main content

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:

  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.

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


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.7.0.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

ropt_nomad-0.7.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ropt_nomad-0.7.0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ropt_nomad-0.7.0.tar.gz
Algorithm Hash digest
SHA256 f4b5e7d87a167610696d049e450f5c1eefd813a5a25b61feb5f00c938c2e5dc6
MD5 b5e02454bd0aba9c51f2be4f7bf4015e
BLAKE2b-256 596d27a2de4f2543c03e3324592ec9884d97ac1b28609357a71f6122449d5673

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ropt_nomad-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ropt_nomad-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1b93a9e7a7cd934a0cd87c465ab7fed60f2827ee6b20aa98a8852012134eeb8
MD5 f45afb57b7b0819bca83f632fbc5dab7
BLAKE2b-256 68d2b6d1dde29eb99e72fbf86510f713b48df70f1a6e848f3e7a513105711672

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