Metadata-Version: 2.4
Name: hdim_opt
Version: 1.0.8
Summary: Optimization toolkit for high-dimensional, non-differentiable problems.
Author-email: Julian Soltes <jsoltes@regis.edu>
License: MIT
Project-URL: Repository, https://github.com/jgsoltes/hdim_opt
Keywords: optimization,high-dimensional,sampling,QUASAR,HDS
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: scipy
Provides-Extra: hds
Requires-Dist: pandas; extra == "hds"
Requires-Dist: scikit-learn; extra == "hds"
Requires-Dist: joblib; extra == "hds"
Provides-Extra: sensitivity
Requires-Dist: pandas; extra == "sensitivity"
Requires-Dist: SALib; extra == "sensitivity"

# 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:

```bash
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:

```python
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:
```python
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)
