| Crates.io | shgo-rs |
| lib.rs | shgo-rs |
| version | 0.2.0 |
| created_at | 2025-08-22 01:39:42.247364+00 |
| updated_at | 2025-09-03 02:38:14.803278+00 |
| description | A Rust implementation of a wrapper for the SHGO optimization algorithm from scipy.optimize |
| homepage | |
| repository | https://github.com/jpswensen/shgo-rs |
| max_upload_size | |
| id | 1805787 |
| size | 75,883 |
A Rust wrapper for the Python/SciPy implementation of the shgo global optimization algorithm
OptimizeResult, MinimizerKwargs, and ShgoOptions to mirror their Python counterpartsargs parameter of mixed types.args parameter in Pythonpython3.13t -m venv env
source env/bin/activate
pip install scipy
source env/bin/activate
RUSTFLAGS="-C target-cpu=native" cargo run --release --example basic_rosen
RUSTFLAGS="-C target-cpu=native" cargo run --release --example rastrigin_partial
RUSTFLAGS="-C target-cpu=native" cargo run --release --example rastrigin_extra_parameters
RUSTFLAGS="-C target-cpu=native" cargo run --release --example rastrigin_fake_long
RUSTFLAGS="-C target-cpu=native" cargo run --release --example cattle_feed_dict
RUSTFLAGS="-C target-cpu=native" cargo run --release --example cattle_feed_structured
RUSTFLAGS="-C target-cpu=native" and --release to create an optimized buildcargo run --example <name_of_example> it will make a debug versionshgo-rs = { git = "https://github.com/jpswensen/shgo-rs" }
test_rastrigin_fake_long_partial() example, I do see the processor usage spike the percentage relative to the number of workers, but then it falls back to about 1-CPU load for the latter portions of the solution. I also see (if I print out thread ID) that it is running on different threads, but still not sure if simultaneous)