标签「go」下的文章
go-遗传算法-简单实现
ga(genetic algorithm)遗传算法
求x+10*sin(5*x)+7*cos(4*x) 在[0,9]
的最大值
go tool pprof
- 加入代码
import _ "net/http/pprof" go func() { log.Println(http.ListenAndServe("localhost:6060", nil)) }()
- 编译并运行
- 新窗口打开命令行
ga(genetic algorithm)遗传算法
求x+10*sin(5*x)+7*cos(4*x) 在[0,9]
的最大值
import _ "net/http/pprof"
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()