go-nlopt / nlopt Goto Github PK
View Code? Open in Web Editor NEWA NLopt implementation for Go
License: MIT License
A NLopt implementation for Go
License: MIT License
I'd like to perform nonlinear optimization (without a Jacobian) and with both equality and inequality constraints is this possible?
In order to make this library easier to use from most places, I'm wondering if statically linking nlopt is better. wasmer for go does this https://github.com/wasmerio/wasmer-go/blob/master/wasmer/cgo.go. It also allows doing this in a custom way https://github.com/wasmerio/wasmer-go/blob/master/wasmer/cgo_with_custom_wasmer_runtime.go. We could do something similar with the default being static and then dynamic being chosen.
I could put a PR for this but I wanted to get input first since it's a larger change with consequences.
After having go-nlopt/nlopt working for quite a while, it is now broken. Since the last commits a few days ago, after I
go get -u github.com/go-nlopt/nlopt
I get
# github.com/go-nlopt/nlopt
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_get_param':
/tmp/go-build/cgo-gcc-prolog:404: undefined reference to `nlopt_get_param'
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_has_param':
/tmp/go-build/cgo-gcc-prolog:538: undefined reference to `nlopt_has_param'
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_nth_param':
/tmp/go-build/cgo-gcc-prolog:558: undefined reference to `nlopt_nth_param'
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_num_params':
/tmp/go-build/cgo-gcc-prolog:577: undefined reference to `nlopt_num_params'
/usr/bin/ld: $WORK/b001/_x002.o: in function `_cgo_0ecb1bc70fc3_Cfunc_nlopt_set_param':
/tmp/go-build/cgo-gcc-prolog:921: undefined reference to `nlopt_set_param'
collect2: error: ld returned 1 exit status
Any ideas? It has happened to all the users of the package that I make that makes use of go-nlopt/nlopt (a variety of ubuntu, fedora, installations). So it seems to be something more broad than just my own machine.
Thanks!
HI:
I want to debug go-nlopt in the Windows environment, but I didn't run it. I don't know how to set up the running environment.
Gcc version 11.2.0
Mingw get version 0.6.2 beta 20131004-1
I downloaded NLopt. v2.6.1x86_ 64-w64-mingw32.tar.gz, but I don't know how to load it into go-nlopt. Can the author provide me with some help using it? Thank you very much!
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.