Skip to content
Snippets Groups Projects
Commit 2583ba5d authored by odri's avatar odri
Browse files

Switch OSQP list size to 15000 for longer horizon

parent 91edb354
No related branches found
No related tags found
No related merge requests found
...@@ -240,7 +240,7 @@ class MPC { ...@@ -240,7 +240,7 @@ class MPC {
Eigen::MatrixXd x_f_applied; // Next predicted state of the robot + Desired contact forces to reach it Eigen::MatrixXd x_f_applied; // Next predicted state of the robot + Desired contact forces to reach it
// Matrix ML // Matrix ML
const static int size_nz_ML = 5000; const static int size_nz_ML = 15000;
csc *ML; // Compressed Sparse Column matrix csc *ML; // Compressed Sparse Column matrix
// Indices that are used to udpate ML // Indices that are used to udpate ML
...@@ -250,17 +250,17 @@ class MPC { ...@@ -250,17 +250,17 @@ class MPC {
// TODO FOR S ???? // TODO FOR S ????
// Matrix NK // Matrix NK
const static int size_nz_NK = 5000; const static int size_nz_NK = 15000;
double v_NK_up[size_nz_NK] = {}; // maxtrix NK (upper bound) double v_NK_up[size_nz_NK] = {}; // maxtrix NK (upper bound)
double v_NK_low[size_nz_NK] = {}; // maxtrix NK (lower bound) double v_NK_low[size_nz_NK] = {}; // maxtrix NK (lower bound)
double v_warmxf[size_nz_NK] = {}; // maxtrix NK (lower bound) double v_warmxf[size_nz_NK] = {}; // maxtrix NK (lower bound)
// Matrix P // Matrix P
const static int size_nz_P = 5000; const static int size_nz_P = 15000;
csc *P; // Compressed Sparse Column matrix csc *P; // Compressed Sparse Column matrix
// Matrix Q // Matrix Q
const static int size_nz_Q = 5000; const static int size_nz_Q = 15000;
double Q[size_nz_Q] = {}; // Q is full of zeros double Q[size_nz_Q] = {}; // Q is full of zeros
// OSQP solver variables // OSQP solver variables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment