diff --git a/src/utils/simplex.ts b/src/utils/simplex.ts index 161a699..d3ffb9c 100644 --- a/src/utils/simplex.ts +++ b/src/utils/simplex.ts @@ -157,7 +157,7 @@ function ApplyMainLoop(oldMatrix: number[][], rowlength: number): number[][] { const pivotRowIndex = ratios.indexOf(minRatio); // i /// Init the new matrix - const newMatrix = structuredClone(matrix); + const newMatrix: number[][] = structuredClone(matrix); const pivot = matrix[pivotRowIndex][pivotColIndex]; // 3) apply on the pivot row the inverse of the pivot