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

Nonlineay constraints get violated in the result. #476

Open
Lbaron980810 opened this issue Oct 29, 2022 · 2 comments
Open

Nonlineay constraints get violated in the result. #476

Lbaron980810 opened this issue Oct 29, 2022 · 2 comments

Comments

@Lbaron980810
Copy link

Hi there:
During my optimization, I applied LN_COBYLA since it supports arbitrary nonlinear constraint. My "constraint function" is actually a collision avoidance function. The function returns 10.0 when collision hits, so that the constraint should be view as unsatisfied.
However, the result in experiment shows the constraint is not satisfied, and the algorithm can still get finished and converge. Can anyone give me some advice?
Thanks sincerely!
Screenshot from 2022-10-29 21-14-44

@stevengj
Copy link
Owner

The function returns 10.0 when collision hits, so that the constraint should be view as unsatisfied.

COBYLA assumes that the function is differentiable, so if you have a discontinuous function that's going to have unpredictable effects on convergence.

@Lbaron980810
Copy link
Author

The function returns 10.0 when collision hits, so that the constraint should be view as unsatisfied.

COBYLA assumes that the function is differentiable, so if you have a discontinuous function that's going to have unpredictable effects on convergence.

Make sense. So is there any method can handle my problem?

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