Skip to content

Solving a linear programming task by the method of parameter evolution

Notifications You must be signed in to change notification settings

GrigoryKrasnochub/go-linear-programming-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-linear-programming-task

Solving a linear programming task by the method of parameter evolution

Examples

Main page
Application interface
"Calc finish" message
Application interface

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

Решение задачи линейного программирования методом эволюции параметра, все подробности выше!

About

Solving a linear programming task by the method of parameter evolution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages