Implement WeightedSumOfExpressions.
Hi,
I just started with PICOS as I am trying to port some code from Matlab to Python and was looking for a YALMIP alternative. So far it is great, so thank you for your work!
I did notice that a lot of operations were not supported on norms when writing constraints. For example, the following expression (assuming X
to be a variable column vector of size 4):
abs(X[1] - X[0]) + abs(X[3] - X[2])
yields the following exception:
TypeError: unsupported operand type(s) for +: 'Norm' and 'Norm'
(and the same happens with almost all other operations I tried except for **2
which is accepted on the norm).
I wonder if there is any particular reason behind this, or if it is just a feature that is yet to be implemented (as constraints of this form are permitted in YALMIP).
Edited by Maximilian Stahlberg