Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/briot/adafuzzy
A fuzzy inference system library for Ada
https://github.com/briot/adafuzzy
Last synced: 14 days ago
JSON representation
A fuzzy inference system library for Ada
- Host: GitHub
- URL: https://github.com/briot/adafuzzy
- Owner: briot
- Created: 2016-01-08T17:04:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-12T17:03:23.000Z (almost 9 years ago)
- Last Synced: 2024-07-31T20:41:25.383Z (3 months ago)
- Language: Ada
- Size: 44.9 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ada - ada-fuzzy - A fuzzy inference system library for Ada. (Libraries / System Modeling)
README
Ada Fuzzy
=========This package provides a library to create fuzzy inference systems
in Ada.For more information on fuzzy inference, see
https://en.wikipedia.org/wiki/Fuzzy_control_system
and
http://fr.mathworks.com/help/fuzzy/fuzzy-inference-process.htmlCompiling
==========To compile this library, you need to install the GNAT compiler
and the GNAT Components Library (gnatcoll) first.Then type::
make
Demos
=====Thermostat
----------See `examples/example.adb` for a simple demo that shows how
to create a fuzzy inference engine programmatically.
This demo simulates a thermostat that tries to smoothly maintain
the temperature around 20 C, while at period interval we randomly
nudge it.Basically, we give the system rules like:
if temperature is COLD then power is FULL
if temperature is MEDIUM then power is MEDIUM
if temperature is HOT then power is LOWthen provide a temperature, and let the system compute what the
output should be.
We need a bit more setup, though, to define what the terms
COLD, MEDIUM, HOT, FULL and LOW mean.Type::
make
./examples/obj/exampleto compile and run this demo
Robot
-----Another demo is provided. The goal is to control a robot so that
it reaches its target while avoiding obstacles. The rules are
described in an external file `examples/robot.fcl`, which
you can modify before restarting the demo.This file is written in the Fuzzy Controller Language, for which
you can find a description at
http://www.fuzzytech.com/binaries/ieccd1.pdfThis demo requires GtkAda on your system.
Type::
make all robot
to compile and run this demo.