Tim-Salzmann / l4casadi

Use PyTorch Models with CasADi for data-driven optimization or learning-based optimal control. Supports Acados.
MIT License
335 stars 21 forks source link

Problems with running acados.py #40

Closed Ucccccc closed 2 months ago

Ucccccc commented 2 months ago

Hello, may I ask if you have ever encountered this problem? I successfully built the python interface of acados on windows, then, I tried using realtime and Naive and both worked fine. I ran mpc_mlp_example.py and got the normal result as shown in Figure 1. However, when I ran acados.py, it prompted me that the L4CasADi link failed as shown in Figure 2. image

image

Tim-Salzmann commented 2 months ago

This seems to be Windows? "collect2.exe"

Windows is not officially supported.

Ucccccc commented 2 months ago

Yes I am using windows build, does l4casadi not support windows currently?

Tim-Salzmann commented 2 months ago

Unfortunately, it does not. I am surprised that Naive and Realtime do work, but this is good to know.

Also see: https://github.com/Tim-Salzmann/l4casadi/issues/24

Ucccccc commented 2 months ago

OK, thanks, but it seems that realtime is not much different from this, there are two more paths

Tim-Salzmann commented 2 months ago

If this answers your questions, feel free to close the issue.

Thanks Tim

Ucccccc commented 2 months ago

Does Real-time L4CasADi only support MLP? Does it support CNN model?

Tim-Salzmann commented 2 months ago

Real-time L4CasADi supports any PyTorch model. Naive L4CasADi only supports MLPs.

Ucccccc commented 2 months ago

THANKS!!!