Skip to main content

High-dimensional numerical optimization and sampling toolkit for complex, non-differentiable problems.

Project description

hdim-opt: High-Dimensional Optimization Toolkit

Modern optimization package to accelerate convergence in complex, high-dimensional problems. Includes the QUASAR evolutionary algorithm, HDS exploitative QMC sampler, Sobol sensitivity analysis, signal waveform decomposition, and data transformations.

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 problems.

  • hyperellipsoid: Generate a non-uniform hyperellipsoid density sequence.

  • analyze: Numerically analyze any given dataset.

  • sensitivity: Sensitivity analysis to quantify each variable's influence on the objective (via SALib).

  • lorentzian: Fit a Lorentzian/Cauchy kernel density estimation to the data ensemble.

  • isotropize/deisotropize: Isotropize the input data using zero-phase component analysis (ZCA).

  • 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 = 30
n_samples = 1000
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
iso_samples, iso_params = h.isotropize(ellipsoid_samples) # Isotropize data
h.analyze(ellipsoid_samples) # Analyze any dataset

# Optimization
solution, fitness = h.quasar(obj_func, bounds, init=iso_samples) # QUASAR evolutionary optimization
Si, S2 = h.sensitivity(obj_func, bounds) # Sobol sensitivity analysis
kde = h.lorentzian(solution, sigma=150.0, ensemble=ellipsoid_samples, verbose=True) # Lorentzian KDE

# Waveforms
t, signal = h.waveform_analysis.e1_waveform(noise=0.1) # Waveform generation
summary = h.waveform(t,signal) # 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 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hdim_opt-1.4.2.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

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

hdim_opt-1.4.2-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file hdim_opt-1.4.2.tar.gz.

File metadata

  • Download URL: hdim_opt-1.4.2.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for hdim_opt-1.4.2.tar.gz
Algorithm Hash digest
SHA256 2e93de20b50a00b46a62a79b972f03bf4ddeeda8f94082203939e41057fbbbd1
MD5 ad50904c0ad5788d7a29519d2188e04c
BLAKE2b-256 5caad6aa747e52c05fb1b8d08c8c7fc7970d74e26988c256847d2cb98b5019b3

See more details on using hashes here.

File details

Details for the file hdim_opt-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: hdim_opt-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for hdim_opt-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d867860edc11151d09e15db29a64339445b6398063b5cb5aa4635bfd6fccc23
MD5 ac40b4c884fbef928126e9471e123a27
BLAKE2b-256 0f8a62d4d905ff96a5de2387a576e299fd72770d5cd8e8723577dcfb743ee744

See more details on using hashes here.

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