TUMcps / AROC

Toolbox for Automated Controller Synthesis
GNU General Public License v3.0
17 stars 3 forks source link

Possible compatability issue #3

Open luistapia007 opened 1 year ago

luistapia007 commented 1 year ago

Possible issue noticed inside MATLAB script ". \algorithms\linSysMPC\linSysMPC.m". On lines 184 and 185,  the function "project" is called. Matlab flags this function as an error and mentions "'project' has been removed. With appropriate code changes, use 'projfwd' instead."

Examples from AROC were run with: Matlab R2023a, AROC_2022, CORA_2022, MOSEK (without operator overloading)

KochdumperNiklas commented 1 year ago

Thanks for reporting this. Matlab indeed flags the function "project" as incorrect syntax in newer versions. However, "project" is a function from the CORA toolbox, and I think Matlab just does not recognize that the CORA toolbox is installed (or just on the Matlab path). I tested the code by running the two files "examples/linSysMPC/example_linSysMPC_doubleIntegrator.m" and "examples/linSysMPC/example_linSysPlatoon.m", which both call the file "/algorithms/linSysMPC/linSysMPC.m" and it worked fine on my computer, even with Matlab version R2023a. If this issue resulted in an error when you ran the code on your computer please let us know, then we will take another look into this.