Hi all,

I have a matrix, let’s call it A, as an input which has the following characteristics:

Total number of rows=n

Total number of columns=m

n<m

we also have a binary variable, x, and its index is m. it means we have:

x(1), x(2),…,x(m).

during the optimization process n out of m “x” should be equal to one and other x’s are zero.

For those x’s which are equal to one the corresponding column of matrix A should be distracted and be placed in a new matrix.

For instance if m=4 and x(1) and x(2) are equal to 1 then columns 1 and 2 from matrix A should be placed in a new matrix and columns 3 and 4 of Matrix A should be placed in another matrix.

How can I do this process?

Again, we know the number of x’s that should be equal to one.