'How can I create a variable array in numpy?
In my use case, I need to find an optimal array w with some constraints on the equation -
wT x M x w - rT x w
where wT is the transpose of w and M and rT are known. So, I basically wish to assign the column vector w values like
[w1 w2 w3 .... wn] and obtain an equation in terms of these variables, which I can effectively solve and optimize.
What is the easiest way to do so in numpy?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
