draffensperger / golp Goto Github PK
View Code? Open in Web Editor NEWGo bindings for LPSolve, a Mixed Integer Linear Programming (MILP) solver
License: MIT License
Go bindings for LPSolve, a Mixed Integer Linear Programming (MILP) solver
License: MIT License
Hi I'm trying to use your package on Windows and I get this message while I'm trying to compile the basic example on README.md:
# github.com/draffensperger/golp
cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
Is there something I can do to make it works?
Thank you!
Your instructions in the readme say that it should be in lib/lpsolve but the lp.go actually says ./lpsolve. Which is it?
Also when you say "Project" I'm not sure where you want that to be... is that $GOPATH? or is that the code Im using to use lpsolve, or is it actualy in $GOPATH/src/github.com/draffenspeerger/golp/lpsolve?
Might be good to note in the docs that golp works great under Debian 8 if you delete the two "#cgo linux" lines and run:
sudo apt-get install liblpsolve55-dev
When I trying to use the command to get the package from github, I have the error message popup fatal error: lp_lib.h: No such file or directory compilation terminated.
I installed lp_solve_5.5.2.3_IDE_Setup.exe and retried the command and I still have the problem.
Thanks for the help.
I have followed your documentation for Debian 8+ and Linux distributions, but it did not deliver the expected result. However, I have found a solution without forking this repo and modifying #cgo lines in lp.go.
You can set LDFLAGS and CFLAGS with environment variables like:
export CGO_LDFLAGS=" -llpsolve55 -lm -ldl -lcolamd"
export CGO_CFLAGS="-I/usr/include/lpsolve"
Documentation should probably be updated and I will submit a small PR for README.md.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.