[RBFOpt] RBFOPT

Giacomo Nannicini giacomo.n at gmail.com
Mon Nov 19 12:48:19 EST 2018


Hi Pascal,
you need to give the path to the solver executable files, not just
their directory. E.g:
C:\\Program Files (x86)\\COIN-OR\\1.7.4\\win32-msvc9\\bin\\bonmin
C:\\Program Files (x86)\\COIN-OR\\1.7.4\\win32-msvc9\\bin\\ipopt

Please not that I always forget how to write Windows paths in Python
correctly, so you may have to experiment a bit with this.
The alternative is to put the bonmin and ipopt executables in some
directory that is already in your PATH (or add their bin/ directory to
the PATH). In that case, you do not need to specify the path.

Best,

Giacomo
On Mon, Nov 19, 2018 at 12:03 PM Pascal Zeugin <pascal.zeugin at mecos.com> wrote:
>
> 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
>
>
>
> _______________________________________________
> RBFOpt mailing list
> RBFOpt at list.coin-or.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_rbfopt&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=8FaVxIx99H879Ebkij38NpcRZoYLK-7QMl1LqyvBccA&m=JzQKimKyuAuEsMqgUrRBgnvZPbF4Zj5pUDdcpK1gJDU&s=skvXchkaBaOy1NCznVXkO5MLROo6x0mLKheKIIQt97U&e=



More information about the RBFOpt mailing list