Closed Vonct closed 1 year ago
Sorry I have no longer access to Matlab, but maybe @KarasevPavel can help. He seems to have a working updated fork of the matlab code.
Thanks for your reply, I would ask if he know how to solver the problems!
Hello @Vonct!
Have You compiled the MEX interface of hpipm for the Matlab?
If not, You need to
navigate inside the hpipm/interfaces/matlab_octave folder
Open Matlab from this folder
Run env.m script inside Matlab from this folder to set some variables for hpipm. (Make sure, that BLASFEO path is correct inside the env.m script
Open compile_mex_all.m function from the same folder and run it in Matlab
After making these steps
close the Matlab
navigate in the MPCC/Matlab folder
source env.sh with your path for the HPIPM and BLASFEO
Open Matlab from this terminal and run simulation.m script.
Hope it will help You
Hi @KarasevPavel ! Thanks for your help, now I can run the code successfully :)
Thanks @KarasevPavel
Hi,I was trying to run the code in MATLAB (based on Ubuntu20.04 & WSL2)
But I met some errors that were about calling hpipm solver, but I don't know what to do. Hopefully, who run the code successfully can help me :)
What did I do
https://github.com/giaf/hpipm
source env.sh
and then open matlab in the same terminal (I modified the env.sh file to set the PATH corret)set path
)error I met when I run simulation.m