mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
Adding port math/p5-AI-Genetic, A pure Perl genetic algorithm implementation.
Approved by: tobez (implicit)
This commit is contained in:
parent
fe17764b33
commit
c17167b0ad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156456
@ -144,6 +144,7 @@
|
||||
SUBDIR += oleo
|
||||
SUBDIR += orpie
|
||||
SUBDIR += p5-AI-DecisionTree
|
||||
SUBDIR += p5-AI-Genetic
|
||||
SUBDIR += p5-AI-NeuralNet-BackProp
|
||||
SUBDIR += p5-AI-NeuralNet-Mesh
|
||||
SUBDIR += p5-AI-Perceptron
|
||||
|
26
math/p5-AI-Genetic/Makefile
Normal file
26
math/p5-AI-Genetic/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# New ports collection makefile for: AI-Genetic
|
||||
# Date created: 19 Feb 2006
|
||||
# Whom: Aaron Dalton <aaron@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= AI-Genetic
|
||||
PORTVERSION= 0.04
|
||||
CATEGORIES= math perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= AI
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= aaron@FreeBSD.org
|
||||
COMMENT= A pure Perl genetic algorithm implementation
|
||||
|
||||
MAN3= AI::Genetic.3 \
|
||||
AI::Genetic::Individual.3 \
|
||||
AI::Genetic::OpCrossover.3 \
|
||||
AI::Genetic::OpMutation.3 \
|
||||
AI::Genetic::OpSelection.3
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
math/p5-AI-Genetic/distinfo
Normal file
3
math/p5-AI-Genetic/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (AI-Genetic-0.04.tar.gz) = 332664e17ed89f3f64c073dfd609131a
|
||||
SHA256 (AI-Genetic-0.04.tar.gz) = ef047d937b02ec12f985ee96ad4e408e2a520007f41382f5dd0003099be98d97
|
||||
SIZE (AI-Genetic-0.04.tar.gz) = 16652
|
20
math/p5-AI-Genetic/pkg-descr
Normal file
20
math/p5-AI-Genetic/pkg-descr
Normal file
@ -0,0 +1,20 @@
|
||||
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.
|
||||
|
||||
WWW: http://search.cpan.org/dist/AI-Genetic
|
||||
Author: Ala Qumsieh <aqumsieh@cpan.org>
|
14
math/p5-AI-Genetic/pkg-plist
Normal file
14
math/p5-AI-Genetic/pkg-plist
Normal file
@ -0,0 +1,14 @@
|
||||
%%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
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/AI/Genetic/.packlist
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/AI/Genetic
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/AI
|
||||
@dirrm %%SITE_PERL%%/AI/Genetic
|
||||
@dirrmtry %%SITE_PERL%%/AI
|
Loading…
Reference in New Issue
Block a user