calling gurobi from golang
Hi!
Does anyone have experience calling Gurobi to solve a MIP from golang? Currently we are using OR-TOOLS to call CBC to solve the same, but I want to evaluate Gurobi for that.
For OR-TOOLS wrapper to golang we are using this: https://github.com/gonzojive/or-tools-go/
I tried just setting GUROBI_HOME but that did not work:
terminate called after throwing an instance of 'absl::lts_20210324::BadStatusOrAccess'
what(): Bad StatusOr access
SIGABRT: abort
PC=0x7249652969fc m=9 sigcode=18446744073709551610
signal arrived during cgo execution
So I am wondering if there are any best practices on calling Gurobi from golang. I did not find any hits for "golang" on these forums so maybe this is a rare use case?
Another option would be to use CGO and write the wrapper myself but I figured such a wrapper must exist already.
I did find this but wanted to check with the experts first before doing work to integrate it!
https://github.com/MatProGo-dev/Gurobi.go/tree/main
Thanks!
Jesse
サインインしてコメントを残してください。
コメント
0件のコメント