High-dimensional global optimization and sampling toolkit for complex and non-differentiable problems.
Project description
hdim-opt: High-Dimensional Optimization Toolkit
A modern optimization package to accelerate convergence in complex, high-dimensional problems. Includes the QUASAR evolutionary algorithm, HDS exploitative QMC sampler, Sobol sensitivity analysis, and signal waveform decomposition.
All core functions, listed below, are single-line executable and require three essential parameters: [obj_function, bounds, n_samples].
- quasar: QUASAR optimization for high-dimensional, non-differentiable problems.
- hyperellipsoid: Generate a non-uniform Hyperellipsoid Density sequence, to focus sample distributions.
- sobol: Generate a uniform Sobol sequence (via SciPy).
- sensitivity: Perform Sobol sensitivity analysis to measure each variable's importance on objective function results (via SALib).
- waveform: Decompose the input waveform array (handles time- and frequency-domain via FFT / IFFT) into a diagnostic summary.
Installation
Installed via hdim_opt directly from PyPI:
pip install hdim_opt
Example Usage:
import hdim_opt as h
# Parameter Space
n_dimensions = 30
bounds = [(-100,100)] * n_dimensions
n_samples = 1000
obj_func = h.test_functions.rastrigin
time, pulse = h.waveform_analysis.e1_waveform()
# Functions
solution, fitness = h.quasar(obj_func, bounds)
sens_matrix = h.sensitivity(obj_func, bounds)
hds_samples = h.hyperellipsoid(n_samples, bounds)
sobol_samples = h.sobol(n_samples, bounds)
isotropic_samples = h.isotropize(sobol_samples)
signal_data = h.waveform(x=time,y=pulse)
QUASAR Optimizer
QUASAR (Quasi-Adaptive Search with Asymptotic Reinitialization) is a quantum-inspired evolutionary algorithm, highly efficient for minimizing high-dimensional, non-differentiable, and non-parametric objective functions.
- Benefit: Significant improvements in convergence speed and solution quality compared to contemporary optimizers. (Reference: [https://arxiv.org/abs/2511.13843]).
HDS Sampler
HDS (Hyperellipsoid Density Sampling) 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. Results in higher average optimization solution quality when used for population initialization compared to uniform QMC methods. (Reference: [https://arxiv.org/abs/2511.07836]).
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.3.1.tar.gz.
File metadata
- Download URL: hdim_opt-1.3.1.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f77fef75df41065b77469a9d69bda49d48de610bb6714f3cd5c3064b9643f8db
|
|
| MD5 |
6f951c4641fc38fd39f8c248175564a0
|
|
| BLAKE2b-256 |
3362c1708e131c33326bc927973af5f954b7116d64a35bc0167b9b172bab38e0
|
File details
Details for the file hdim_opt-1.3.1-py3-none-any.whl.
File metadata
- Download URL: hdim_opt-1.3.1-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b41e46dea82785443e63e2426e1babea6efa4f7afc29c46d93674931073093cc
|
|
| MD5 |
e37fbf66cacdcdb1cbcfe927aff50afe
|
|
| BLAKE2b-256 |
107ad2c7757c5b25c34108026d3b29dec97059f2c8e06eb8b426b2fa8443e523
|