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.

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

  • pareto: Easily create a multi-objective Pareto front trade-off analysis using QUASAR.

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

  • isotropize/deisotropize: Isotropize the input data using 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
bounds = [(-100,100)] * n_dimensions
n_samples = 1000
obj_func = h.test_functions.rastrigin

# Optimization
solution, fitness = h.quasar(obj_func, bounds)
sens_matrix = h.sensitivity(obj_func, bounds)
pareto_front = h.pareto(obj_func, bounds, [])

# Sampling
hds_samples = h.hyperellipsoid(n_samples, bounds)
iso_samples, params = h.isotropize(hds_samples)
kde = h.lorentzian(solution, 3.0, iso_samples)

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.5.tar.gz (33.0 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.5-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hdim_opt-1.3.5.tar.gz
  • Upload date:
  • Size: 33.0 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.3.5.tar.gz
Algorithm Hash digest
SHA256 787770531b5d9bc281ef3967a26729c2b0b03a974bc3d63b5142c8ca75f0794b
MD5 8d0861f22d3afeca79c05f06973ebfcc
BLAKE2b-256 52e2d46b6f51013eed2adcda8947ca6d4284ba5dfb18dd4b9ef6d401a9fed1ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdim_opt-1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 34.6 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.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 36bfd508f8b838449244745ab2b8e319c2b21edf17e1027dd0e7a336b4f9c622
MD5 f81d70580f94d0198dda82e1cbcd9e6c
BLAKE2b-256 b3a5ef3157a0f1526339a88ef756a985574b2787425ad45d1d9b430d0d26985d

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