math/p5-AI-Genetic 0.05_1 FreeBSD
Pure Perl genetic algorithm implementation
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- math, perl5
- Package size
- 32.2 KiB, 69.0 KiB installed
Description
This module implements a Genetic Algorithm (GA) in pure Perl. Other Perl modules that achieve the same thing (perhaps better, perhaps worse) do exist. Please check CPAN. I mainly wrote this module to satisfy my own needs, and to learn something about GAs along the way.
I will not go into the details of GAs here, but here are the bare basics. Plenty of information can be found on the web.
In a GA, a population of individuals compete for survival. Each individual is designated by a set of genes that define its behaviour. Individuals that perform better (as defined by the fitness function) have a higher chance of mating with other individuals. When two individuals mate, they swap some of their genes, resulting in an individual that has properties from both of its "parents". Every now and then, a mutation occurs where some gene randomly changes value, resulting in a different individual. If all is well defined, after a few generations, the population should converge on a "good-enough" solution to the problem being tackled.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | math/p5-AI-Genetic | 0.05_1 |
| DragonFly | math/p5-AI-Genetic | 0.05_1 |
Install
Binary package:
pkg install p5-AI-Genetic
From the ports tree:
cd /usr/ports/math/p5-AI-Genetic/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-AI-Genetic>0:math/p5-AI-Genetic
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.05_1 | 0.05_1 | 0.05_1 | 0.05_1 | 0.05_1 |
| FreeBSD:14:quarterly | 0.05_1 | 0.05_1 | n/a | 0.05_1 | 0.05_1 |
| FreeBSD:15:latest | 0.05_1 | 0.05_1 | n/a | 0.05_1 | 0.05_1 |
| FreeBSD:15:quarterly | 0.05_1 | 0.05_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.05_1 | 0.05_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 14
- %%PERL5_MAN3%%/AI::Genetic.3.gz
- %%PERL5_MAN3%%/AI::Genetic::Individual.3.gz
- %%PERL5_MAN3%%/AI::Genetic::OpCrossover.3.gz
- %%PERL5_MAN3%%/AI::Genetic::OpMutation.3.gz
- %%PERL5_MAN3%%/AI::Genetic::OpSelection.3.gz
- %%SITE_PERL%%/AI/Genetic.pm
- %%SITE_PERL%%/AI/Genetic/Defaults.pm
- %%SITE_PERL%%/AI/Genetic/IndBitVector.pm
- %%SITE_PERL%%/AI/Genetic/IndListVector.pm
- %%SITE_PERL%%/AI/Genetic/IndRangeVector.pm
- %%SITE_PERL%%/AI/Genetic/Individual.pm
- %%SITE_PERL%%/AI/Genetic/OpCrossover.pm
- %%SITE_PERL%%/AI/Genetic/OpMutation.pm
- %%SITE_PERL%%/AI/Genetic/OpSelection.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| AI-Genetic-0.05.tar.gz | 16981 | f6048a4be49bdc0e6ce8b5ecfbb673a4ff277c0e51389821c69104b708913422 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.