Skip to main content

Optimization framework for Daisy

Project description

daisypy-optim

Framework for optimization of Daisy parameters.

Overview

The framework can be used in two ways

  1. As a self-contained environment
  2. As a regular python module

Self contained optimization environment

The idea of self-contained environment is to create a repository that contains everything that is needed for the optimization (except the Daisy binary). This allow easy sharing, version control and archiving. This type of optimization is defined by

  • a single dai file template
  • zero or more python file templates
  • a python script that runs the simulation

A tool is included that generates the python script based on user input. Once generated, it can be adapted to specific needs. To start using daisypy-optim this way look at

Regular python modules

It is also possible to use daisypy-optim as a regular python module. Simply install with

pip install daisypy-optim

To enable CMA-ES

pip install daisypy-optim[cma]

To enable scikit-optimize

pip install daisypy-optim[skopt]

All of the above

pip install daisypy-optim[cma,skopt]

And look at the examples and tests to see how to setup an optimization

Chossing an optimization method

There are several optimization methods available

  • sequential : A greedy approach that fixes one parameter at a time. Works well when optimizing few paramaters.
  • cma : CMA-ES. Works well for larger number of parameters and when the outcome depends strongly on parameter combinations. Does not work for single parameters.
  • skopt : scikit-optimize. Bayesian optimization. Very slow. Will be replaced with a BoTorch/Ax method.

Continuous/categorical parameters

Both continuous and categorical parameters are supported. Currently, the sequential method treats everything as categorial parameters (by sampling a fixed number of values from the continuous parameters). The other methods requires continuous parameters.

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

daisypy_optim-0.2.0.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

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

daisypy_optim-0.2.0-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: daisypy_optim-0.2.0.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for daisypy_optim-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3d5cad2dcb615494b9848621b7ad015f4ea196577d8a4edd3c45ecc630fb2175
MD5 614c0d9d4f27e82d6d515a06b873ef43
BLAKE2b-256 04dea6e69863cc8b061340bcb83fd9634ffb5322dbbd96d9122da570ba55359d

See more details on using hashes here.

Provenance

The following attestation bundles were made for daisypy_optim-0.2.0.tar.gz:

Publisher: python-publish.yml on daisy-model/daisypy-optim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: daisypy_optim-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for daisypy_optim-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46313b91d3ef148eb3eb0182568e4b97e36d7fd61f1c3d1da72ba4a2239531f1
MD5 f46815a35b57d16bf89036e8adb9f886
BLAKE2b-256 36e8c6208ac45661ac465e6b4439ad738fb5c7f65f6f42f115915cb368a00631

See more details on using hashes here.

Provenance

The following attestation bundles were made for daisypy_optim-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on daisy-model/daisypy-optim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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