When I setup a Vector with 4 symbolic variables, it is ok. But an error happens for 5 variable, the detail is posted at below. Is the symbolic variable limited below 5?
My code for 5 variables:
const Variable x0{"x0"};
const Variable x1{"x1"};
const Variable x2{"x2"};
const Variable x3{"x3"};
const Variable x4{"x4"};
Eigen::Matrix<Variable, 5, 1> x(x0,x1,x2,x3,x4);
Results:
error: no matching constructor for initialization of 'Eigen::Matrix<Variable, 5, 1>'
Eigen::Matrix<Variable, 5, 1> x(x0,x1,x2,x3,x4);