-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added More Flexible Support for Mac OS X #2
base: master
Are you sure you want to change the base?
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.json
file 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_solve
andswig
via Homebrew. Also, created a new filemake_lib.go
which is called when the Operating System is found to be Mac OS X.make_lib.go
creates thelib.go
file by detecting thegurobi
andlp_solve
versions 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.go
solves this problem by looking into the Mac's file system to determine the version of Gurobi installed and then incorporates that intolib.go
.