Skip to main content

Algorithms for inverse design

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

invrs-opt - Optimization algorithms for inverse design

v0.10.2

Overview

The invrs-opt package defines an optimizer API intended for topology optimization, inverse design, or AI-guided design. It (currently) implements the L-BFGS-B optimization algorithm along with some variants. The API is intended to be general so that new algorithms can be accommodated, and is inspired by the functional optimizer approach used in jax. Example usage is as follows:

initial_params = ...

optimizer = invrs_opt.lbfgsb()
state = optimizer.init(initial_params)

for _ in range(steps):
    params = optimizer.params(state)
    value, grad = jax.value_and_grad(loss_fn)(params)
    state = optimizer.update(grad=grad, value=value, params=params, state=state)

Optimizers in invrs-opt are compatible with custom types defined in the totypes package. The basic lbfgsb optimizer enforces bounds for custom types, while the density_lbfgsb optimizer implements a filter-and-threshold operation for DensityArray2D types to ensure that solutions have the correct length scale.

Install

pip install invrs_opt

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

invrs_opt-0.10.2.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

invrs_opt-0.10.2-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file invrs_opt-0.10.2.tar.gz.

File metadata

  • Download URL: invrs_opt-0.10.2.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for invrs_opt-0.10.2.tar.gz
Algorithm Hash digest
SHA256 42264f4cae821226cf9c46b4493febe613e8e443f71295a56e273afbd467a3cc
MD5 a856e90fdece24fff85f5cd2d0a7bd07
BLAKE2b-256 2f0dde42e11468aa633b59d9f512c978b5450d4549cf0558a7e2fd8046f3855e

See more details on using hashes here.

File details

Details for the file invrs_opt-0.10.2-py3-none-any.whl.

File metadata

  • Download URL: invrs_opt-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for invrs_opt-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed53a70925d0e32861de99c6bf69a25892f15857b535a84be7e33e67aaceb98
MD5 c4658fd9952c3adf4f27644bd2176c57
BLAKE2b-256 522b3d297734eb26463aa7f01482956d09287937d61a01a15248ae09d56b152b

See more details on using hashes here.

Supported by

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