I am currently handling a problem that requires me to generate a matrix containing only values between 0,1 and 2, such that sum of the column and row matches the one that is given.
Example:
Image of the problem
What I want to get is the values inside the table, such that the sum matches colsum and rowsum. Is there a way we can get it done using VBA?
1.4m articles
1.4m replys
5 comments
57.0k users