summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYanzhenXiangRobotics <xyz000327@gmail.com>2023-05-24 17:21:48 +0200
committerYanzhenXiangRobotics <xyz000327@gmail.com>2023-05-24 17:21:48 +0200
commitace609eb706d907c4997a76849e7a260c3a12b6c (patch)
tree518d8841f894ecf714d2e88c1941fddd681273b9
parentTake deliverables for Robust MPC from yanzhen (diff)
downloadmpc_pe-ace609eb706d907c4997a76849e7a260c3a12b6c.tar.gz
mpc_pe-ace609eb706d907c4997a76849e7a260c3a12b6c.zip
ADD: passed 1-24
Diffstat (limited to '')
-rw-r--r--.gitignore1
-rw-r--r--MPC_TS_SC_params.matbin0 -> 223 bytes
-rw-r--r--templates/lqr_maxPI.m2
3 files changed, 2 insertions, 1 deletions
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
--- /dev/null
+++ b/MPC_TS_SC_params.mat
Binary files 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;