Skip to main content

Optimization toolkit for 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 algorithms to accelerate convergence, including the QUASAR evolutionary algorithm and HDS non-uniform QMC sampler.

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

  • quasar: QUASAR optimization.
  • hds: Generate a non-uniform HDS sample sequence.
  • sensitivity: Perform a global Sobol sensitivity analysis (via SALib).
  • sobol: Generate a uniform sample sequence (via SciPy).

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, 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

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

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

# 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. 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 = 2
bounds = [(0,1)] * n_dim

# optional weights
weights = {
            0 : {'center': 0.25, 'std': 0.33},
            1 : {'center': 0.25, 'std': 0.33}
            }

# generate HDS samples
hds_samples = hdim_opt.hds(n_samples=10000, bounds=bounds, 
                    weights=weights, verbose=True)

Additional functions include:

  • Sobol sampling (via SciPy):
    • sobol(n_samples, bounds)
  • Sensitivity analysis (via SALib):
    • sensitivity(func, bounds)

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.8.tar.gz (22.7 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.8-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hdim_opt-1.0.8.tar.gz
  • Upload date:
  • Size: 22.7 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.8.tar.gz
Algorithm Hash digest
SHA256 ef8e985b3373571657a3c804a89aab9bb293b55523adcc38c921cc7536ea6914
MD5 320a4a40bce742f1f92dab200a2be12e
BLAKE2b-256 6be40599ac5d6fc4d4b0fcc49d8a4e67bac5633495e7eab357c1ecbb7aca58a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hdim_opt-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 24.4 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ae61d898fe6a954fc51407f50366012c15685223b760cd29872f72ba1d37916f
MD5 b53d67bcb1123bef52f960a78dc5eff6
BLAKE2b-256 1b2ec4ae30ef5132eda723c364241c06b9be1d5ee27828d9de81db683bb369bf

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