Skip to main content

Optimization toolkit for complex, high-dimensional, non-differentiable problems.

Project description

hdim-opt: High-Dimensional Optimization Toolkit

A modern optimization suite for complex, high-dimensional problems. This package provides state-of-the-art algorithms to accelerate convergence, including the QUASAR evolutionary algorithm and HDS non-uniform QMC sampler.


Installation

Installed via hdim-opt directly from PyPI:

pip install hdim-opt

QUASAR Optimizer (Quasi-Adaptive Search with Asymptotic Reinitialization)

QUASAR is a quantum-inspired evolutionary algorithm, highly efficient for minimizing complex high-dimensional, non-differentiable, and non-parametric objective functions.

  • Benefit: Statistically significant improvements in convergence speed and solution quality compared to contemporary optimizers.

  • Reference: See experimental trials and analysis: [https://arxiv.org/abs/2511.13843].

Quick Use Example:

import hdim_opt
import numpy as np

def obj_func(x):
    y = np.sum(x**2)
    return y

# define search space
n_dim = 100
bounds = [(-100,100)] * n_dim

# run QUASAR
solution, fitness = hdim_opt.quasar(func=obj_func, bounds=bounds)

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, and results in higher average optimization solution quality when used for population initialization compared to uniform QMC methods.

  • Reference: See experimental trials and analysis: [https://arxiv.org/abs/2511.07836].

Quick Use Example:

import hdim_opt

# define search space
n_dim = 100
bounds = [(-100,100)] * n_dim
n_samples = 1000

# generate HDS samples
hds_samples = hdim_opt.hds(n_samples, bounds)

Additional functions include:

  • sobol() to generate uniform Sobol samples (via SciPy)
  • sensitivity() to perform Sobol sensitivity analysis (via SALib) (work in progress)

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.6.tar.gz (18.6 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.6-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hdim_opt-1.0.6.tar.gz
Algorithm Hash digest
SHA256 85d7389f671f84c2494c33f93eacd4752be72869b7fe583ebfd950a77f85e2a5
MD5 3f9e00dee5cd7aa1818592a72bb6d4b5
BLAKE2b-256 6827a664d22501c97d5381bf678c20dff020c07d1d3180cafcb0ae09968843f2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hdim_opt-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 163b7d2854a255bb74803c8db0a9bf0255d84a50f3484068f30a4cf174be85d4
MD5 1a9c206539c8f2fd118ea2c99ca8924d
BLAKE2b-256 53d83d6a61179b782af9c384adcfcaed99f7b65e4b00c5e23a75b5e09acaebfe

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