Skip to main content

Optimization framework for Daisy

Project description

Optimization framework for Daisy

A python based framework for optimizing parameters in Daisy.

Features

  • Multiple optimization methods: a greedy sequential optimizer, CMA-ES, and Bayesian optimizers
  • Optimization across multiple scenarios
  • Single or multi-objective optimization
  • Optimization of parameters in both Daisy (.dai) and Python (.py) files
  • Support for categorical and continuous parameters (depending on optimizer)

Getting started

The framework is available on https://pypi.org/ and can be installed with pip

pip install daisypy-optim

By default this will only install the greedy sequential optimizer. For most problems you will want to use either CMA-ES or a Bayesian optimizer. The CMA-ES optimizer can be installed with

pip install daisypy-optim[cma]

and the Bayesian optimizers with

pip install daisypy-optim[ax]

Note that the Bayesian optimizers pulls in a lot of dependencies.

Examples

There are several examples illustrating how to optimize parameters in various situations. They all share a common structure

  1. Setup a DaisyRunner that knows how to run Daisy
  2. Setup a FileGenerator that can generate .dai and .py
  3. Define the parameters that should be optimized for
  4. Define the objective that should be optimized
  5. Setup and run an optimizer

See doc/examples for an overview of the examples.

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.4.1.tar.gz (76.8 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.4.1-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: daisypy_optim-0.4.1.tar.gz
  • Upload date:
  • Size: 76.8 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.4.1.tar.gz
Algorithm Hash digest
SHA256 507a90ac5c9072e9b210dc3834650a3bdb746492284a131f82b3b415c5335519
MD5 a552c5744b11849db78bb07aba53a2e9
BLAKE2b-256 724b7b08854e22e83c5c207066503e0377fec7c292640b14616ffb1cf955a884

See more details on using hashes here.

Provenance

The following attestation bundles were made for daisypy_optim-0.4.1.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.4.1-py3-none-any.whl.

File metadata

  • Download URL: daisypy_optim-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 53.2 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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5c1e0508d17edf9422007358909237373348d22e3c3587dc116e2e79242b703
MD5 b9c3bfa6a9fe0664d059b1ee4b924278
BLAKE2b-256 b0c9db5bd5876dfe1fac9cc60d43b556f228ec33791c08916fe93507817b656e

See more details on using hashes here.

Provenance

The following attestation bundles were made for daisypy_optim-0.4.1-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