Optimizing the entries of a matrix. Finding an analytic solution as a function of the entries
Show older comments
Dear all Lets say you have a 2x2 matrix A=[a b,(s-c) d]. You want to find the constants a,b,c,d such as det(A)=0 and the real part of s is as small as possible. Are there any easy ways to do this? I've tried going through all a,b,c,d with for-loops to visualize the solution. This was however very time-consuming for the general case (my code might be bad=)) I'm very grateful for all suggestions
Answers (1)
Andrei Bobrov
on 13 Mar 2012
eg
abcd = reshape(randi(12,2,1)*[1,.35],[],1);
1 Comment
Hannes Frenander
on 13 Mar 2012
Categories
Find more on Surrogate Optimization 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!