Inaccurate error when all variables fixed
When bads is called with LB, UB, pLB, and pUB all equivalent (and thus fixing every dimension of the search), this error is returned:
Error using bads (line 343) If no starting point is provided, PLB and PUB need to be specified. Error in fixedbads (line 41) [x_free,fval] = bads(fun_fix,x0,LB,UB,PLB,PUB,nonbcon_fix,options); Error in bads (line 386)
The motivation for wanting to call BADS with every dimension fixed is to obtain the value of the objective function (and non linear constraint) from a nested function. This allows for a tidy arrangement of the code.
Thanks for spotting this, good point. It seems a non-critical issue; I should be able to have a look at it in the following days (other stuff in the queue).