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 non-uniform QMC sampler.

All core functions, listed below, are single-line executable and require three essential parameters: [obj_function, bounds, n_samples].

  • quasar: QUASAR optimization.
  • hds: Generate a non-uniform HDS sequence, for a dense sample distribution.
  • sobol: Generate a highly uniform sample 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

# Optimization
solution, fitness = h.quasar(obj_func, bounds)

# Analysis
sens_matrix = h.sensitivity(obj_func, bounds)

# Sample Sequences
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.0.9.tar.gz (22.5 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.0.9-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hdim_opt-1.0.9.tar.gz
  • Upload date:
  • Size: 22.5 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.0.9.tar.gz
Algorithm Hash digest
SHA256 073afdc70d238b2cfd8d909b76df7948dc9c00cfa90b32873bf00fca18ab95bd
MD5 d865c7fcffe1024c7a5014c029e4e45b
BLAKE2b-256 3be043d602e29251af7152063130735961a3d0efa2af6649792b8dad81919ab8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdim_opt-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 24.3 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.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e7179ede118efc8f7972354fb641206087116bd161d7f2033af09b4163b057cd
MD5 41ef63fe3416f8d01203284a9fbef9d3
BLAKE2b-256 0341e3cad0f3a3416d08f33d6e4e61be953b3321a6683e5f0027e3638b827042

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