[RBFOpt] RBFOPT
Pascal Zeugin
pascal.zeugin at mecos.com
Mon Nov 19 11:47:35 EST 2018
Hi,
first and foremost I would like to thank you for sharing such a cool library, you guys are awesome! I installed rbfopt recently. The installation worked well but I always get a runtime error when running the example script as bonmin solver is not found. Of course I have downloaded the binaries from https://www.coin-or.org/download/binary/OptimizationSuite/
and installed the optimization suite 1.7.4.
I installed it at the default path:
C:/Program Files (x86)/COIN-OR/1.7.4
And in my python script I programmed the following:
import rbfopt
import numpy as np
mypath = 'C:\\Program Files (x86)\\COIN-OR\\1.7.4\\win32-msvc9\\bin'
settings = rbfopt.RbfoptSettings(minlp_solver_path=mypath, nlp_solver_path=mypath)
def obj_funct(x):
return x[0]*x[1] - x[2]
bb = rbfopt.RbfoptUserBlackBox(3, np.array([0] * 3), np.array([10] * 3),
np.array(['R', 'I', 'R']), obj_funct)
settings = rbfopt.RbfoptSettings(max_evaluations=50)
alg = rbfopt.RbfoptAlgorithm(settings, bb)
val, x, itercount, evalcount, fast_evalcount = alg.optimize()
Unfortunately, I get an error:
File "c:\users\c565785\appdata\local\programs\python\python36\lib\site-packages\rbfopt\rbfopt_aux_problems.py", line 279, in minimize_rbf
raise RuntimeError('Solver ' + 'bonmin' + 'not found')
RuntimeError: Solver bonminnot found
What is going wrong? Didn't I provide the correct path?
Thank you in advance for your help.
Warm regards from Switzerland
Pascal Zeugin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/rbfopt/attachments/20181119/701eb836/attachment.html>
More information about the RBFOpt
mailing list