Input = [1 0 0 0; 0 1 1 0; 0 0 0 1; 1 0 0 0; 0 1 0 1; 0 0 1 0; 0 0 1 0; 1 0 0 0; 0 1 0 1] I want the columns which, when combined, should go as close as they can get to a column of ones. Here, if we combine the first, third and fourth column I get a column of ones. What is the algorithm to do this for bigger matrices (120 x 70)?
MATLAB: What is the way to get an optimum or near optimum combination of different columns (contains 1 and 0 only) to be equal to particular column (In the case, it’s all 1 column)
columncombinationknapsacklinear programmingoptimization
Best Answer