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

from direct to stogo -> NLOPT_INVALID_ARGS #200

Closed
UnixJunkie opened this issue Jul 7, 2023 · 5 comments
Closed

from direct to stogo -> NLOPT_INVALID_ARGS #200

UnixJunkie opened this issue Jul 7, 2023 · 5 comments

Comments

@UnixJunkie
Copy link

If I switch from direct to stogo for global optimization, I get this error.
With direct, the optimization is going on (but I guess it would work way
better if I exploit the gradient, hence the trial switch to stogo).

@odow
Copy link
Member

odow commented Jan 15, 2024

Do you have a reproducible example? I don't fully understand what you mean.

@UnixJunkie
Copy link
Author

No, I don't have a minimal example (way too much work to get one).
I have a problem where direct works; if I change the algorithm from direct to stogo, I get this error.

@odow
Copy link
Member

odow commented Jan 15, 2024

Do you have constraints? stogo does not support constraints other than bound constraints.

@UnixJunkie
Copy link
Author

UnixJunkie commented Jan 15, 2024 via email

@odow
Copy link
Member

odow commented Aug 16, 2024

From the documentation: https://nlopt.readthedocs.io/en/latest/NLopt_Reference/#error-codes-negative-return-values

NLOPT_INVALID_ARGS happens because "Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera)."

It's impossible to say what the problem is without a reproducible example, so I'm going to close this issue. If you're still experiencing an issue and you have a reproducible example, please comment below and I will reopen the issue.

@odow odow closed this as completed Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants