Skip to main content

Optimization toolkit for high-dimensional, 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 and HDS exploitative QMC sampler.

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.
  • hds: Generate an exploitative HDS sequence, to distribute samples in focused regions.
  • 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).

Installation

Installed via hdim_opt directly from PyPI:

pip install hdim_opt

Example Usage:

import hdim_opt as h

# Parameter Space
n_dimensions = 100
bounds = [(-100,100)] * n_dimensions
n_samples = 1000
obj_func = h.test_functions.rastrigin

solution, fitness = h.quasar(obj_func, bounds)
sens_matrix = h.sensitivity(obj_func, bounds)
hds_samples = h.hds(n_samples, bounds)
sobol_samples = h.sobol(n_samples, bounds)

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 (Hyperellipsoid Density Sampling)

HDS 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.2.1.tar.gz (23.4 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.2.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hdim_opt-1.2.1.tar.gz
  • Upload date:
  • Size: 23.4 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.2.1.tar.gz
Algorithm Hash digest
SHA256 8f4277d34f53d807323a31590d81d7c91b28bb5bc3432d8e5966db76cf0e470c
MD5 d432d10c3e5e73dd8799336434e869cd
BLAKE2b-256 5ca7b1e67d35bebd8086c3c74ae6a252072201194e010d190c3f1ff7b2692657

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdim_opt-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.5 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a85a786471e374bc20a3c3dd078c38a12756e0b9b03aef81494ea022e9bd94f6
MD5 7addaa411ac3614c4b9c1e5d09f2365f
BLAKE2b-256 90fcee2e114ae3fab238a4d239598e2c0b5561bd4e0c43171f8764ddef68038e

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