From ace609eb706d907c4997a76849e7a260c3a12b6c Mon Sep 17 00:00:00 2001 From: YanzhenXiangRobotics Date: Wed, 24 May 2023 17:21:48 +0200 Subject: ADD: passed 1-24 --- .gitignore | 1 + MPC_TS_SC_params.mat | Bin 0 -> 223 bytes templates/lqr_maxPI.m | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 MPC_TS_SC_params.mat diff --git a/.gitignore b/.gitignore index 48819e3..ff84add 100644 --- a/.gitignore +++ b/.gitignore @@ -137,6 +137,7 @@ templates/linearController.p templates/TestFunction_simulate.p templates/TestFunction_LQR.p templates/TestFunction_generate_system.p +tbxmanager/ templates/TestFunction_generate_constraints.p templates/TestFunction_MPC_TUBE_script.p templates/TestFunction_generate_disturbances.p diff --git a/MPC_TS_SC_params.mat b/MPC_TS_SC_params.mat new file mode 100644 index 0000000..2ff2f68 Binary files /dev/null and b/MPC_TS_SC_params.mat differ diff --git a/templates/lqr_maxPI.m b/templates/lqr_maxPI.m index 251d766..99b5b22 100644 --- a/templates/lqr_maxPI.m +++ b/templates/lqr_maxPI.m @@ -33,7 +33,7 @@ function [H, h] = lqr_maxPI(Q, R, params) systemLQR.x.with('setConstraint'); systemLQR.x.setConstraint = Xp; InvSetLQR = systemLQR.invariantSet(); - InvSetLQR.plot(), alpha(0.25), title('Invariant Set for Triple Integrator under LQR Control'), xlabel('x_1'), ylabel('x_2'), zlabel('x_3'); +% InvSetLQR.plot(), alpha(0.25), title('Invariant Set for Triple Integrator under LQR Control'), xlabel('x_1'), ylabel('x_2'), zlabel('x_3'); H=InvSetLQR.A; h=InvSetLQR.b; -- cgit v1.2.1