rmcantin / bayesopt

BayesOpt: A toolbox for bayesian optimization, experimental design and stochastic bandits.
GNU Affero General Public License v3.0
396 stars 92 forks source link

Using BayesOpt as an library #32

Closed jerry1249756 closed 3 months ago

jerry1249756 commented 3 months ago

Hi, I would like to ask how to integrate Bayesopt into my project. I have compiled the Bayesopt alone successfully, and the examples in the bin/work fine too.

I try a minimal example as follows, where the include and lib are directly copied from the original Bayesopt after compilation, and the main.cpp here I tried is copied from 'bo_cont.cpp'. When I use this and compile, it does not run as in the Bayesopt. Are there any suggestions on how to integrate it into another project with libraries only?

Thanks for your kind help! test.zip