Open mcamurri opened 1 year ago
I have just installed matlab on Ubuntu 20.04, used the Ipopt
zip file provided for linux, and installed the YALMIP master according to instructions.
And I've got the exact same problem:
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in the
first matrix matches the number of rows in the second matrix. To operate on each element
of the matrix individually, use TIMES (.*) for elementwise multiplication.
Error in MPCCBF/sim (line 33)
xk = self.system.A * xk + self.system.B * uk;
Error in test (line 115)
controller_mpc_cbf_one.sim(time_total);
Related documentation
The only code that succeeds is the first part of test.m
where DCLF-DCBF
is executed.
The problem is indeed caused by IPOPT
not being able to find a feasible solution.
I solved by looking for a YALMIP
release that was closer to the date of publication of the ACC 2021 paper.
The release R20210331 worked for me on Matlab 2023b
and Ubuntu 20.04
.
I had applied some other fixes to be able to use all scripts, see #13 #14 and #15
Please specify in your README.md
the correct version of YALMIP
to use.
Thanks for sharing the code with the research community!
The solution proposed by @Highlight123 in #8 seems not to be working for me.
I'm using MATLAB 2023b on Windows 10 Enterprise
packages
folder and adding it to the MATLAB path as well.When running the
test.m
example file, I encounter the following error when the MPC-CBF portion of the code is executed:Note that I encounter the same error in any other execution of the other tests:
Is there any other place where to look for an IPOPT version that works on Windows?