acados / acados

Fast and embedded solvers for nonlinear optimal control
Other
825 stars 251 forks source link

swarming solution failed #822

Closed johnwaneboy closed 6 months ago

johnwaneboy commented 2 years ago

i run the demo of example_sim.m, example_ocp.m, example_closed_loop.m in acados/examples/acados_matlab_octave/swarming but it always solution failed ~~~~

johnwaneboy commented 2 years ago

image

FreyJo commented 2 years ago

On which acados version are you? What error do you get when running example_sim?

johnwaneboy commented 2 years ago

example_sim could run sucessfully image

FreyJo commented 2 years ago

ok, just the example_ocp doesn't work for you. Can you switch to the latest acados version and check if it works? The version you have seems at least 6 months old.

johnwaneboy commented 2 years ago

thanks ! I will try later, and I have build the the same model in python + ubuntu, but if I set the path constraints(con_h_expr) such as the minimum distance between agents, then solution will fail, even I set the lh to infinitesimal and the uh to infinity.

johnwaneboy commented 2 years ago

I have switched to the latest version, the exampleclosed loop. and example_ ocp.m stil solution failed.

FreyJo commented 2 years ago

Did you also update the submodules? What OS are you using? Can you copy the output of the failing example here?

johnwaneboy commented 2 years ago

Ihave reinstalled the acados, my environment is ubuntu 18.06 with python 3.6. when i run my demo, if there is no constraints, it works well, but when i add constraint, it return status 4

image

johnwaneboy commented 2 years ago

Thank you very much for helping solve the problem . What other information can I supply to help you solve the problem ?

sandmaennchen commented 6 months ago

Is this still an issue? The example works for me using the current acados version.