Quadratic Assignment Problem

Hi I am trying to solve a Quadratic Assignment Problem in Grasshopper. I have data on the distances and flow matrices of my problem these are 11 by 11 matrices. I am struggling to create a program that gets me the total final cost. This is what my program looks like for now. I end up with an 11 by 11 matrix of +infinity values.

Any help would be greatly appreciated.