bads icon indicating copy to clipboard operation
bads copied to clipboard

Inaccurate error when all variables fixed

Open gkaguirre opened this issue 7 years ago • 1 comments

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.

gkaguirre avatar Feb 19 '18 01:02 gkaguirre

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).

lacerbi avatar Feb 19 '18 09:02 lacerbi