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, 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).
  • isotropize: Isotropizes the input matrix.
  • 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


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.3.2.tar.gz (29.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.3.2-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hdim_opt-1.3.2.tar.gz
Algorithm Hash digest
SHA256 fabf345c1b5628c41e4e5e0ae1923a7efbbcc7a79cbcbaa45e08619e203cff8d
MD5 a746d3b7781239098b6516e08225389b
BLAKE2b-256 a9832c730cb0eb276fd134bf651f7475a4a8deaf00582d6a4979dad82ff47557

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdim_opt-1.3.2-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

Hashes for hdim_opt-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 000b62ace2f8d1b8ced85329ec72d8233713b7caa4ce094f7d6c34b5df33a550
MD5 c8e9618709f1aad18c86ebb8e36b379e
BLAKE2b-256 d38af003532a4afbe69bb75872a440a9af705fb6f162bf09ef352f5714c21eac

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