AtsushiSakai / AtsushiSakai/PyAdvancedControl

some bug ?

Open
#3 3 comments 0 reactions 1 assignee Claimed by @AtsushiSakai View on GitHub
Dominant language
Python
Stars
555
Forks
173
PR merge metrics
No merged PRs in 30d

Description

when i run mpc_path_tracking and mpc_sample

Traceback (most recent call last):
File "main.py", line 177, in
Main()
File "main.py", line 129, in Main
ustar, xstar, cost = CalcInput(A, B, C, x, u)
File "main.py", line 84, in CalcInput
constr = [x[:, t + 1] == A * x[:, t] + B * u[:, t] + C]
File "/usr/local/lib/python3.5/dist-packages/cvxpy/expressions/expression.py", line 46, in cast_op
return binary_op(self, other)
File "/usr/local/lib/python3.5/dist-packages/cvxpy/expressions/expression.py", line 452, in __add__
return cvxtypes.add_expr()([self, other])
File "/usr/local/lib/python3.5/dist-packages/cvxpy/atoms/affine/add_expr.py", line 33, in __init__
super(AddExpression, self).__init__(*arg_groups)
File "/usr/local/lib/python3.5/dist-packages/cvxpy/atoms/atom.py", line 45, in __init__
self._shape = self.shape_from_args()
File "/usr/local/lib/python3.5/dist-packages/cvxpy/atoms/affine/add_expr.py", line 41, in shape_from_args
return u.shape.sum_shapes([arg.shape for arg in self.args])
File "/usr/local/lib/python3.5/dist-packages/cvxpy/utilities/shape.py", line 49, in sum_shapes
len(shapes)*" %s" % tuple(shapes))
ValueError: Cannot broadcast dimensions (4,) (4, 1)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.