Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infeasible issue about MPC-CBF #16

Open
Lawliet9666 opened this issue Nov 23, 2024 · 1 comment
Open

infeasible issue about MPC-CBF #16

Lawliet9666 opened this issue Nov 23, 2024 · 1 comment

Comments

@Lawliet9666
Copy link

Lawliet9666 commented Nov 23, 2024

When I run the code directly without modifying the parameters, it seems that MPCCBF encounters an infeasible issue (diagnostics.problem=1), while DCLF-DCBF runs fine. Could you please help me figure this out?

testGamma
Run MPC-CBF with gamma 0.100000
solver time: 0.038811
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 testGamma (line 50)
controller_mpc_cbf_list{ind}.sim(time_total);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@docterrobin
Copy link

I also encountered the same problem, the reason for this problem is the failure of ipopt solution due to inconsistent yalmip version, someone has already given the corresponding yalmip version in the second question under this issue directory, you can try to solve the problem by changing yalmip version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants