nlopt icon indicating copy to clipboard operation
nlopt copied to clipboard

Nonlineay constraints get violated in the result.

Open Lbaron980810 opened this issue 3 years ago • 2 comments

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

Lbaron980810 avatar Oct 29 '22 13:10 Lbaron980810

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.

stevengj avatar Oct 31 '22 12:10 stevengj

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?

Lbaron980810 avatar Oct 31 '22 12:10 Lbaron980810