Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grigorykrasnochub/go-linear-programming-task
Solving a linear programming task by the method of parameter evolution
https://github.com/grigorykrasnochub/go-linear-programming-task
Last synced: 2 days ago
JSON representation
Solving a linear programming task by the method of parameter evolution
- Host: GitHub
- URL: https://github.com/grigorykrasnochub/go-linear-programming-task
- Owner: GrigoryKrasnochub
- Created: 2020-05-24T13:02:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T11:03:57.000Z (over 4 years ago)
- Last Synced: 2023-03-06T21:27:31.383Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-linear-programming-task
Solving a linear programming task by the method of parameter evolution
## Examples
Main page
![Application interface](docs/interface-main.png)
"Calc finish" message
![Application interface](docs/interface-calc.png)
## Is work in progress?
No. It was my study project, and I just want to forget it :). But I'm ready to check any pull requests, or answer some questions.
## Key features
- It's work
- Interface by fyne, so you could build it for any platform
- Simple statistic module, with output in csv format
## Linear statistic module usage
Just add it to main.go
```
log.SetOutput(ioutil.Discard)
linprogtask.CalcRandom(10, 100, 100, "filepath", true)
```
And comment
```
program := _interface.InitInterface()
program.ShowInterface()
```
So main.go file should looks something like that
```
package main
import (
"io/ioutil"
"log"
"math/rand"
"time"
"github.com/GrigoryKrasnochub/go-linear-programming-task/linprogtask"
)
func main() {
rand.Seed(time.Now().UTC().UnixNano())
//program := _interface.InitInterface()
//program.ShowInterface()
//Disable logs
log.SetOutput(ioutil.Discard)
linprogtask.CalcRandom(10, 100, 100, "filepath", true)
}
```
### Statistic module csv output
Output of statistic module return data in csv format. So you can use any program you like, to open and analyze it.
So you can save it to file, just use function CalcRandom, with filepath parameter.# Ru docs
Решение задачи линейного программирования методом эволюции параметра, все подробности выше!