An open API service indexing awesome lists of open source software.

https://github.com/fang2hou/easyga

A simple genetic algorithm golang package.
https://github.com/fang2hou/easyga

Last synced: about 1 month ago
JSON representation

A simple genetic algorithm golang package.

Awesome Lists containing this project

README

        

# EasyGA
![](https://img.shields.io/badge/Go-1.9+-green.svg?longCache=true&style=flat) ![](https://img.shields.io/badge/Ritsumei-Team%203%40Topic%20In%20IT%20III-blue.svg?colorA=990000&colorB=444444&longCache=true&style=flat)

EasyGA is a go-lang package that would help you create your own genetic algorithm to solve NP-hard problems.
For now, EasyGA support customization for selection, crossover, mutation and fitness function.

This project is created by team 3 of Ritsumeikan Univ Topic In IT III course.

# Installation
## Use as Module (Go 1.11+)
Initialize the project with vgo.
```shell
go mod init
```
Add `import` in you code.
```go
import github.com/fang2hou/easyga
```
Build once, go-tools will download easyga automatically.
```shell
go build
```

## Classic
Same as other go package, just run the code below with terminal program or command prompt.
```shell
go get -u github.com/fang2hou/easyga
```
Go-tools will help you to install EasyGA to your `$GOPATH` in seconds.

# Usage
Here is no documentation currently.

You can check files in `_examples` folder, it's an easy-to-use package.

# Author
[Zhou Fang](https://github.com/fang2hou)
[Junjie Xu](https://github.com/junj2ejj)

Feel free to pull request if you want.

# License
[MIT](LICENSE)
A part of the structure is inspired by [GAHelloWorld](https://github.com/jsvazic/GAHelloWorld)