Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate error when all variables fixed #5

Open
gkaguirre opened this issue Feb 19, 2018 · 1 comment
Open

Inaccurate error when all variables fixed #5

gkaguirre opened this issue Feb 19, 2018 · 1 comment

Comments

@gkaguirre
Copy link

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.

@lacerbi
Copy link
Collaborator

lacerbi commented Feb 19, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants