I am using the ACADO toolkit to minimize the time for a small aircraft to go from takeoff to cruise. I have 4 differential states: velocity, range, height, and flight path angle, and 1 control: u. When I run the code, I get an error:
[ACADO] Error: The integration routine stopped as the required accuracy can not be obtained
Code: (RET_UNSUCCESSFUL_RETURN_FROM_INTEGRATOR_RK45)
Consequently, I also get several other errors stating that the NLP Solver Fails, and that the initialization of the optimization algorithm failed. I'm not exactly sure what I am doing wrong that the algorithm is not working. This is my first time using ACADO, and I am struggling to find good resources. Code below:
To add to this post, the cost function I am trying to solve is below. I suspect that I am using the incorrect method to solve this, as there is nowhere to define the weighted matrices, but I still do not understand why my program is failing. The insert image functionality does not seem to work in these forums, so the imgur link below is a way to see the cost function. https://imgur.com/a/wAJAm89
Last edit: Derek Biega 2018-11-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've also tried implementing this function using LSQ, and am receiving the exact same error. I have no idea what could be wrong. here is that altered code:
Full error output: [ACADO] Error: The integration routine stopped as the required accuracy can not be obtained
Code: (RET_UNSUCCESSFUL_RETURN_FROM_INTEGRATOR_RK45)
File: C:\Users\djbie\ACADOtoolkit\acado\integrator\integrator_runge_kutta.cpp
Line: 1394
So I've found out that this error is being triggered due to the values I select for my constraints. However, I do not understand why my selected values are flagging the system as such.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using the ACADO toolkit to minimize the time for a small aircraft to go from takeoff to cruise. I have 4 differential states: velocity, range, height, and flight path angle, and 1 control: u. When I run the code, I get an error:
Consequently, I also get several other errors stating that the NLP Solver Fails, and that the initialization of the optimization algorithm failed. I'm not exactly sure what I am doing wrong that the algorithm is not working. This is my first time using ACADO, and I am struggling to find good resources. Code below:
To add to this post, the cost function I am trying to solve is below. I suspect that I am using the incorrect method to solve this, as there is nowhere to define the weighted matrices, but I still do not understand why my program is failing. The insert image functionality does not seem to work in these forums, so the imgur link below is a way to see the cost function.
https://imgur.com/a/wAJAm89
Last edit: Derek Biega 2018-11-21
I've also tried implementing this function using LSQ, and am receiving the exact same error. I have no idea what could be wrong. here is that altered code:
Full error output:
[ACADO] Error: The integration routine stopped as the required accuracy can not be obtained
Code: (RET_UNSUCCESSFUL_RETURN_FROM_INTEGRATOR_RK45)
File: C:\Users\djbie\ACADOtoolkit\acado\integrator\integrator_runge_kutta.cpp
Line: 1394
[ACADO] Error: Initialization of NLP solver failed
Code: (RET_UNABLE_TO_INTEGRATE_SYSTEM)
File: C:\Users\djbie\ACADOtoolkit\acado\dynamic_discretization\shooting_method.cpp
Line: 279
[ACADO] Error: Initialization of NLP solver failed
Code: (RET_NLP_INIT_FAILED)
File: C:\Users\djbie\ACADOtoolkit\acado\nlp_solver\scp_method.cpp
Line: 217
[ACADO] Error: Initialization of optimization algorithm failed
Code: (RET_OPTALG_INIT_FAILED)
File: C:\Users\djbie\ACADOtoolkit\acado\optimization_algorithm\optimization_algorithm_base.cpp
Line: 587
Update:
So I've found out that this error is being triggered due to the values I select for my constraints. However, I do not understand why my selected values are flagging the system as such.
Hi,
I actually receive the same errors as you. I don't know if you figured it out.
Thank you!
Hi,
three years later and now I am gettting this since no one answered its hopeless outhere
Thank you for your response
Le jeu. 21 juil. 2022 à 21:07, Youssef Elshebani youssef93@users.sourceforge.net a écrit :