each generate the error, that no corresponding function call exists.
e.g for lines 1 and 3: no matching function for call to ‘ACADO::OCP::subjectTo(ACADO::DifferentialEquation&, int)’. I also can’t find the function calls in the online documentation.
Were they replaced by other functions, or what am I missing?
Thank you in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for posting this problem. Actually, the functionality
you are referring to got deprecated in the meanwhile---unfortunately,
the web-tutorial seems to be not updated yet.
The correct way to setup a multi-stage process is to define
new states/controls for each stage (you may even have different
numbers states on the stages) and re-scale all stage duration
to [0,T] (such that all have equal length). Then you can
simply stack everything into one ODE and formulate the
transition/jump conditions in form of coupled boundary value
constraints.
Best,
Boris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A couple of questions about the setup of a multi-stage process:
Is it possible, in some way, to setup the problem in order to have a different duration for the two phases?
Is it possible to have a small example of how to correctly implement a problem like this? I tried to do so by following your advice but didn't manage to get a working piece of code (I have just begun learning ACADO, so I am not very confident about what I am doing :) ).
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I worked in the jo-jo example of ACADO that seems not to work. I found a solution to implement Multi-stage. Here is the piece of code that runs and gives the good results. As I red in the forum, I have defined new states for each phase.
Hi,
In the tutorial “Optimal Control of Hybrid- and Multi-Stage Processes”, I have a problem getting the example code to compile.
The lines:
each generate the error, that no corresponding function call exists.
e.g for lines 1 and 3: no matching function for call to ‘ACADO::OCP::subjectTo(ACADO::DifferentialEquation&, int)’. I also can’t find the function calls in the online documentation.
Were they replaced by other functions, or what am I missing?
Thank you in advance.
Hi,
Thanks for posting this problem. Actually, the functionality
you are referring to got deprecated in the meanwhile---unfortunately,
the web-tutorial seems to be not updated yet.
The correct way to setup a multi-stage process is to define
new states/controls for each stage (you may even have different
numbers states on the stages) and re-scale all stage duration
to [0,T] (such that all have equal length). Then you can
simply stack everything into one ODE and formulate the
transition/jump conditions in form of coupled boundary value
constraints.
Best,
Boris
Hi!
A couple of questions about the setup of a multi-stage process:
Thanks!
Hi, has anyone working example with setting up multi-stage problem in acado? Thank you in davance, Dmitry
Hi,
I worked in the jo-jo example of ACADO that seems not to work. I found a solution to implement Multi-stage. Here is the piece of code that runs and gives the good results. As I red in the forum, I have defined new states for each phase.
int main( )
{
USING_NAMESPACE_ACADO
// out_states.print("/home/laboratoire/mnt/E/Bureau/ElodieP/GIT_Vrille_ACADO/out_states_norm.txt", "", PS_PLAIN);
}