Why my nonlinear constraints are not satisfied?

3 visualizaciones (últimos 30 días)
Orcan Maktal
Orcan Maktal el 20 de Mayo de 2021
Editada: Orcan Maktal el 20 de Mayo de 2021
I have a problem with my optimization. I am creating a trajectory between 2 stationary points. I have 4 free parameters (K1,K2,K3,K4) to define the motion inbetween these 2 points. I applied constraints on the speed and acceleration of the trajectory. The motion definition is done by 2 nested functions. gamma is the first function that takes 4 free parameters and it maps between [0,1]. u is the main function that connects these 2 points. So in the end, the trajectory is defined as :
x=x0+(xf-x0)*u
To see the bounds of 4 free parameters, I run the code with random free parameter set inbetween -10e6*ones(1,4) and 10e6*ones(1,4). However the problem is fmincon says it solves the problem but nonlinear constraints are disregarded. I also tried with genetic algorithm but that did not help either. Could you help me what do I do wrong about this? I provided the code. Thanks for help.

Respuestas (0)

Categorías

Más información sobre Nonlinear Optimization en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by