-
Notifications
You must be signed in to change notification settings - Fork 98
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
n-dim state space #4
Comments
Hi,thanks for your code! |
Hi @lucattycord thanks for feedback. I'm currently have trouble in mathworks license, and cannot use MATLAB. I think there needs only slight modification to use in higher dimension case. What exactly "there are errors in the number of dimensions." is? like, which part of code? p.s. just few minutes ago, I inquired mathworks about my license stuff, so hopefully I can use matlab in few days and can fix this problem |
Could you provide the code (or A, B, C, Q, R values) to reproduce the bug? Although current However, I cannot find this naive method can work well in higher dimension. Also, could be nice if you made me a pull request once you can fix the bug. |
addpath('../src/') % fix random seed k_e=10^(-5); % xm(k+1)=A_m*xm(k)+B_m**u(k) %A_m % make your own discrete linear system with disturbance Q = diag([1,1,1,1,1,1,1,1,1,1,1]); W_vertex = [0.15,-0.12; 0.1,-0.13; 0.11,-0.11; 0.12,-0.1; 0.14,-0.11; 0.13,-0.14; 0.08,-0.15; 0.09,-0.09; 0.05,0.08; 0.15,-0.1; 0.13,-0.2]; % construct disturbance Linear system % constraints on state Xc and input Uc % create a tube_mpc simulater % The robust MPC guidances the path inside the robust MPI-set so that the path will reach the robust MPI-set in N_horizon. for i = 1:15 |
My main question lies in the dimension of W. If my status is 11x1 dimension, then due to the upper and lower limits, W is 11x2. |
Hi,I have modified it to 6-dimensional, you can go to my homepage to see. |
Current version support only 2-dim state space. It will be better if the software can deal with arbitrary dim state space. To this end, there will be two tasks required:
Task1) support n-dim space in
OptimalControler.m
.Task2) develop a visualization tool which can handle n-dim state space. [if possible]
Task2 might be difficult as some nice idea is necessary to neatly visualize over 4dim spaces.
The text was updated successfully, but these errors were encountered: