Skip to main content

FFFA: A Nature-Inspired Optimization Algorithm

Project description

FFFA: Food Finding Foxes Algorithm

PyPI Version License Downloads Python Versions GitHub Stars Last Commit Open Issues

FFFA is a nature-inspired single-solution optimization algorithm that mimics the foraging behavior of foxes.
It is designed for solving path optimization problems (e.g., shortest path, graph-based problems) where a weight matrix is provided as input.


Installation

You can install FFFA directly from PyPI (after publishing):

pip install fffa

Usage Example

from fffa import fff

Example weighted adjacency matrix

weight_matrix = [
    [0, 2, 9, 0],
    [1, 0, 6, 4],
    [0, 7, 0, 8],
    [6, 3, 0, 0]
]

best_path, best_cost = fff(weight_matrix)

print("Best Path:", best_path)
print("Best Cost:", best_cost)

Features

Nature-inspired single-solution optimization algorithm

Works with any weighted adjacency matrix

Simple API with minimal dependencies

Lightweight and easy to integrate

Project Structure

FFFA/
│── fffa/                 # Main package
│   ├── __init__.py
│   ├── fff.py            # Main algorithm
│   ├── update.py         # Helper functions
│── tests/                # Test cases
│   └── test.py
│── requirements.txt      # Dependencies
│── README.md             # Documentation
│── setup.py              # Packaging setup
│── LICENSE

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

fffa-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fffa-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file fffa-0.1.1.tar.gz.

File metadata

  • Download URL: fffa-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fffa-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ed5a2f0448b4a4b1c1d8f7da9f3fbaf0b91d83c7aad496eb06618358c318de58
MD5 8f35fa6e31935bb0c1e3f8e9faf97d66
BLAKE2b-256 8baab897f616cea7297874b289dbee2798714790e4246718e4d4274fa23181bf

See more details on using hashes here.

File details

Details for the file fffa-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fffa-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fffa-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81680fc47019ad7ea54eef0eda00af5d6449b6fc610023d684882756cb945d38
MD5 b2d6cbaa7e67ce0877efaa0b11411852
BLAKE2b-256 fc554783204e96e5a1a66c10f089fe8d1cda59b63f9167197e11a335a58868fa

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