Hello,
I am currently trying to solve a problem using a brute force method but because I last worked with excel a while ago, my logic/algorithm creation is very rusty.
Here is the problem.
I need an algorithm to try all possible permutations for 12 numbers where each number can only be between 1 and 3 so that is only 531,441 possible permutations (This will at most increase to 4 which is still only 16 million permutations).
It needs to put in the permutation in the 12 cells end whenever a constraint cell is equal to zero. (The cell is 0 only when all constraints are not broken).
I have no idea how to do this. I would think it would involve a For and Do While loop but for the life of me I can't figure it out.
Help is greatly appreciated.
ChrisSS2ChrisTodorovSolverReworked2.xlsm
I added the excel file I am currently working on, the problem is on Output 5 sheet.
Bookmarks