I am trying to use to minimize functionality in scipy.optimize. I am trying to varying a matrix (10 by 6) of weights as the input parameter of the function. However, when I attempt to perform the minimization, the matrix changes into a 1-dimensional vector preventing the matrices in the function from aligning. As shown in the Error msg below, my 10 by 6 matrix is being converted to a vector.
Has anyone had similar issues with scipy.optimize in the past? Any input would be much appreciated.
ValueError: shapes (2364,10) and (60,) not aligned: 10 (dim 1) != 60 (dim 0)