Added More Flexible Support for Mac OS X#2
Added More Flexible Support for Mac OS X#2kwesiRutledge wants to merge 3 commits intomit-drl:masterfrom
Conversation
…sion 11.5.2 (Minus the modifications which need to be done to make_lib.go for lp_solve support).
… script make_lib.go
|
hi kwesiRutledge , I am glad that this project is still progressing. I am also looking for how gurobi works under golang , |
|
Thank you for the message, @mojinfu ! This pull request has not gotten a response in ~10 days, so this project might not be active anymore. :/ The only other gurobi package for Go that I know of is gurobi.go. But this package seems to be even older than |
|
One follow-up on this, @mojinfu ; I started a new branch of gurobi.go that I think I'll update regularly. If you're still interested in using Gurobi, then feel free to track that as well. |
|
hi kwesiRutledge , i did it. The most difficult thing to implement is to implement the callback function in gurobi optimize function, which is input as a parameter. but sorry ,i'm working for Tsla company , so i can not share my repo or any code . if you have any question , you can ask me, and i will very happy to answer. |
|
Thanks for the update, @mojinfu ! If I have any questions, then I will be sure to ask you about it through email! |
These changes do the following:
vendor.jsonfile which does not seem to be used in more recent version of Go.More on Point 1:
Modified the install.sh file so that it installs both
lp_solveandswigvia Homebrew. Also, created a new filemake_lib.gowhich is called when the Operating System is found to be Mac OS X.make_lib.gocreates thelib.gofile by detecting thegurobiandlp_solveversions and then properly writing the cgo directives inlib.go.The installation of goop failed for me because the code has hardcoded a version of Gurobi into it;
make_lib.gosolves this problem by looking into the Mac's file system to determine the version of Gurobi installed and then incorporates that intolib.go.