Optimization toolkit for complex, high-dimensional, non-differentiable problems.
Project description
hdim-opt: High-Dimensional Optimization Toolkit
A modern optimization suite for complex, high-dimensional problems. This package provides state-of-the-art algorithms to accelerate convergence, including the QUASAR evolutionary algorithm and HDS non-uniform QMC sampler.
Installation
Installed via hdim-opt directly from PyPI:
pip install hdim-opt
QUASAR Optimizer (Quasi-Adaptive Search with Asymptotic Reinitialization)
QUASAR is a quantum-inspired evolutionary algorithm, highly efficient for minimizing complex high-dimensional, non-differentiable, and non-parametric objective functions.
- Benefit: Statistically significant improvements in convergence speed and solution quality compared to contemporary optimizers.
Quick Use Example:
import hdim_opt
import numpy as np
def obj_func(x):
y = np.sum(x**2)
return y
# define search space
n_dim = 100
bounds = [(-100,100)] * n_dim
# run QUASAR
solution, fitness = hdim_opt.quasar(func=obj_func, bounds=bounds)
HDS Sampler (Hyperellipsoid Density Sampling)
HDS is a non-uniform Quasi-Monte Carlo sampling method specifically designed to exploit promising regions of the search space.
-
Benefit: Provides control over the sample distribution, and results in higher average optimization solution quality when used for population initialization compared to uniform QMC methods.
-
Reference: See experimental trials and analysis: [https://arxiv.org/abs/2511.07836].
Quick Use Example:
import hdim_opt
# define search space
n_dim = 100
bounds = [(-100,100)] * n_dim
n_samples = 1000
# generate HDS samples
hds_samples = hdim_opt.hds(n_samples, bounds)
Additional functions include:
- sobol() to generate uniform Sobol samples (via SciPy)
- sensitivity() to perform Sobol sensitivity analysis (via SALib)
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 hdim_opt-1.0.2.tar.gz.
File metadata
- Download URL: hdim_opt-1.0.2.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
055ad34834de7c38f01283dd4347c445975f66ff26092ee7a547a0f99707ee17
|
|
| MD5 |
a8d1f918d0e57e7ac4254ea1e7c5e02c
|
|
| BLAKE2b-256 |
fcf09713d69655478ae925e12f6e02fd05cac4886bff45b52b42338958ffa215
|
File details
Details for the file hdim_opt-1.0.2-py3-none-any.whl.
File metadata
- Download URL: hdim_opt-1.0.2-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc1327f96914d37fec17fd5a27985910966199938a1d35c3687bce01d4e0c647
|
|
| MD5 |
ee90da37c30d1c143c9e33aa2db54017
|
|
| BLAKE2b-256 |
b1e7afe9d2cbcead3806bf3f758fa15b4d72cc6f23175ac5afe66b378250f3b5
|