Skip to main content

LSSA

LSSA (Lost Sheep Search Algorithm) is an adaptive continuous black-box optimisation algorithm.

This package provides the frozen research implementation used for out-of-sample validation. Development candidates such as the B20 branch are kept separate from the stable package release.

Installation

pip install lssaopt

The PyPI distribution is named lssaopt; the Python import remains lssa.

Quick start

import numpy as np
from lssa import minimize_lssa

class Sphere:
    d = 5
    lo = -5.0
    hi = 5.0

    def eval(self, x):
        x = np.asarray(x, dtype=float)
        return float(np.dot(x, x))

x_best, f_best = minimize_lssa(Sphere(), max_fes=2000, seed=0)
print(f_best, x_best)

The problem object must provide:

  • d: dimensionality
  • lo: scalar lower bound
  • hi: scalar upper bound
  • eval(x): objective function returning a scalar

API

minimize_lssa(problem, max_fes=4000, population=30, seed=0, return_metadata=False)

LSSA performs minimisation. For reproducibility, set seed explicitly.

Status

Initial PyPI release: 0.1.0.

Metadata

Release files for lssaopt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lssaopt 0.1.0
File Size Uploaded
lssaopt-0.1.0.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lssaopt 0.1.0
File Interpreter ABI Platform
lssaopt-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / lssaopt-0.1.0.tar.gz

Download URL lssaopt-0.1.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce02c460180d4768bb7fe592bcbe99a6d3cb5274bd208ef5ab2c1c3d6ccf40b2
BLAKE2b-256 checksum
How to use checksums
6a7d2dc24126d0d19ccbb841394341579d0eacbbecba0e5c0c35d3aa7d65ada3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / lssaopt-0.1.0-py3-none-any.whl

Download URL lssaopt-0.1.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3cd79d617acf6eca9e27f9107ca3cd1ead50ed58dab890654a3442c510bc90e
BLAKE2b-256 checksum
How to use checksums
3e17e2bef385ec9bf8311ef64c642e03b93dd0adb94666d0ff8d24af6ab33fd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page