hdim-opt: High-Dimensional Optimization Toolkit
Numerical optimization package for complex, high-dimensional problems. Includes the QUASAR evolutionary algorithm, Hyperellipsoid QMC sampling, and several streamlined functions derived from existing libraries for ease of use.
All core functions, listed below, are single-line executable and require three essential parameters: [obj_function, bounds, n_samples]:
Optimization
- quasar: QUASAR optimization.
- minimize: Optimization using gradient-based minimization (via SciPy.minimize).
- sensitivity: Sensitivity analysis to quantify each variable's influence on the objective (via SALib).
Sampling
- hyperellipsoid: Generate hyperellipsoidal sample sequence; may accelerate optimization.
- uniform: Generate uniform QMC sample sequences (via Scipy.stats.qmc).
- isotropize/deisotropize: Isotropize the input data using zero-phase component analysis (ZCA).
- lorentzian: Fit a Lorentzian/Cauchy kernel density estimation to the data.
Analysis
- analyze: Numerically analyze any given dataset.
- waveform: Decompose the input waveform signal array 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 = 10
n_samples = 2**10
bounds = [(-100,100)] * n_dimensions
obj_func = h.test_functions.rastrigin # Test function
### Sampling
ellipsoid_samples = h.hyperellipsoid(n_samples, bounds, verbose=True) # Hyperellipsoid sampling
uniform_samples = h.uniform(n_samples, bounds, method='sobol') # Uniform sampling
iso_samples, iso_params = h.isotropize(ellipsoid_samples) # Isotropize data
kde = h.lorentzian(solution, 150.0, ellipsoid_samples, verbose=True) # KDE
### Optimization
solution, fitness = h.quasar(obj_func, bounds, init=ellipsoid_samples) # evolutionary optimization
local_sol, local_fit = h.minimize(obj_func, bounds, init=solution) # evolutionary optimization
Si, S2 = h.sensitivity(obj_func, bounds) # sensitivity analysis
### Analysis
h.analyze(ellipsoid_samples) # Analyze any numerical dataset
summary = h.waveform(iso_samples[:,0], iso_samples[:,1]) # Waveform analysis
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 parameter space.
- Benefit: Provides control over high-dimensional sample distributions. Results in higher average solution quality when initializing optimization. (Reference: [https://arxiv.org/abs/2511.07836]).
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.4.80.tar.gz.
File metadata
- Download URL: hdim_opt-1.4.80.tar.gz
- Upload date:
- Size: 38.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb2f484c09618e586f1536d9d68b038ecba86a886ba8111cb8f08228847a6a1b
|
|
| MD5 |
d7cc0472490f14c46165b5868653d0ef
|
|
| BLAKE2b-256 |
44b1416cbc070c51948f822877cfbf0f078f13e0884ffae176339f9da0790297
|
File details
Details for the file hdim_opt-1.4.80-py3-none-any.whl.
File metadata
- Download URL: hdim_opt-1.4.80-py3-none-any.whl
- Upload date:
- Size: 39.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a76a2ba51348e81eabc10e59b18bbc9f11215932873722a0bf54bdfb061421fd
|
|
| MD5 |
ebfef5986205f066eb085b785120eb44
|
|
| BLAKE2b-256 |
a7e828727d71034e56c6438dbe0f1a1ea69104c321b9ade4455b1ff557b47a2c
|