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
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file invrs_opt-0.12.1.tar.gz.
File metadata
- Download URL: invrs_opt-0.12.1.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e942054e0d0715c93ede85bc76d56ec30227775adfec777b33cf53a61a59803
|
|
| MD5 |
02a138b6bd91792345689e5110cc737a
|
|
| BLAKE2b-256 |
6ece27c2f411ef86cfe3ddda20758a59fb25c0ebea5bda8e859d5e34a6e523fb
|
File details
Details for the file invrs_opt-0.12.1-py3-none-any.whl.
File metadata
- Download URL: invrs_opt-0.12.1-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e1d645076a3fae521c48f338ccd993a9a0ce9a9fd953c45010d8957a44b0d5
|
|
| MD5 |
3ff32f5da85d59674c4534f974053b97
|
|
| BLAKE2b-256 |
62126ab8428097434b372e788cb62b1a3e6e3648ad0a954fbae9126cb74d12cf
|