Skip to content

Commit 5df49f6

Browse files
committed
Create main class and rules interface #1
0 parents  commit 5df49f6

File tree

9 files changed

+1874
-0
lines changed

9 files changed

+1874
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.buildpath
2+
.phpunit.result.cache
3+
.project
4+
.settings/
5+
vendor/

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Fgsl Genetic Algorithm
2+
3+
## How to use:
4+
5+
Create a class that implements `Fgsl\GeneticAlgorithm\RulesInterface`. This class must define fitness function and other constraints.
6+
7+
Inject an instance of rules class in an intance of `Fgsl\GeneticAlgorithm\GeneticAlgorithm` and call method `execute`.
8+
9+
You can see processing details enabling verbose parameter in class constructor.

composer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name" : "fgsl/geneticalgorithm",
3+
"description" : "Fgsl Genetic Algorithm",
4+
"type" : "component",
5+
"keywords" : [
6+
"artificial intelligence",
7+
"computational intelligence",
8+
"evolutionary computation",
9+
"genetic algorithm"
10+
],
11+
"homepage" : "https://github.com/fgsl/geneticalgorithm",
12+
"license" : "AGPL-3.0-only",
13+
"autoload" : {
14+
"psr-4" : {
15+
"Fgsl\\GeneticAlgorithm\\" : "src/Fgsl/GeneticAlgorithm",
16+
"Fgsl\\Test\\GeneticAlgorithm\\" : "tests/Fgsl/GeneticAlgorithm"
17+
}
18+
},
19+
"require" : {
20+
"php" : ">=7.0",
21+
"phpunit/phpunit" : "^8.3"
22+
},
23+
"config" : {
24+
"secure-http" : false
25+
}
26+
}

0 commit comments

Comments
 (0)