How can I minimize a function over certain elements of two matrices?
Show older comments
Hi everyone, I am trying to minimize the following function: x=sumabs(A*Omega*A'-Sigma) where all of the inputs are 6x6 matrices. I need, however, to minimize only over the choice of certain elements in A and Sigma. I defined a starting value vector sv=[3 4 5 6 7 8 1 1 1 1 1 1]' and pre-allocated Matrix A and Sigma as follows: A =
1 3 4 0 0 0
5 1 6 0 0 0
7 8 1 0 0 0
0 0 0 1 3 4
0 0 0 5 1 6
0 0 0 7 8 1
and Sigma =
1 0 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 0 1 0 0
0 0 0 0 1 0
0 0 0 0 0 1
Omega has the following form: Omega =
31.7281 42.2014 22.9941 0 0 0
42.2014 57.2294 31.2287 0 0 0
22.9941 31.2287 17.7333 0 0 0
0 0 0 267.9891 321.6098 158.4370
0 0 0 321.6098 392.2539 193.2416
0 0 0 158.4370 193.2416 96.1085
Hence x should be minimized only(!) over the choice of the off-diagonal values in the diagonal block sub-matrices of A (i.e. 3 4 5 6 7 8) and over the choice of the diagonal elements in Sigma. Does anyone maybe have an idea how one could set this up in Matlab? Any help would be much appreciated! Thank you!
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!