Metadata-Version: 2.5
Name: geneticsar
Version: 0.1.1
Summary: Genetic algorithm optimisation of nested species-area relationship sampling
Project-URL: Homepage, https://github.com/jmcmeen/geneticsar
Project-URL: Source, https://github.com/jmcmeen/geneticsar
Project-URL: Changelog, https://github.com/jmcmeen/geneticsar/blob/main/CHANGELOG.md
Project-URL: Bug Tracker, https://github.com/jmcmeen/geneticsar/issues
Author-email: John McMeen <johnmcmeen@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Python: >=3.10
Requires-Dist: numpy>=1.22
Provides-Extra: dev
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff<0.18,>=0.17; extra == 'dev'
Description-Content-Type: text/markdown

# geneticsar

Genetic algorithm optimisation of nested species-area relationship sampling.
Searches over orderings with a small permutation GA; the fitness that scores
an ordering by its SAR fit is built on [nestsar](https://pypi.org/project/nestsar/)
and [sars](https://pypi.org/project/sars/).

```python
import geneticsar

result = geneticsar.evolve(n=20, fitness=my_score, generations=100, seed=0)
result.best, result.best_fitness
```

## Development

```sh
make install   # create .venv with dev tooling
make check     # lint, format check, tests
```
