how to get the optimal combination of a large data matrix??
Show older comments
I have a 50*24 matrix .. i used a code which reshuffles the elements of each row randomly. using a while loop, i can generate many combinations, but i need the optimal one, but the problem is, there is a huge number of combinations for a 50*24 matrix, what's the way so that i cam extract the optimal one among all the possible combinations. the code which i used to randomly shuffle the matrix, is given below and i found it from here MATLAB file exchange..
[M,N]=size(B1);
% rowIndex=repmat((1:M)',[1 N]);
% [~,randomizedColIndex]=sort(rand(M,N),2);
% newLinearIndex=sub2ind([M,N],rowIndex,randomizedColIndex);
% B=B1(newLinearIndex);
% Btotal=[Afixed;B]
Accepted Answer
More Answers (0)
Categories
Find more on 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!