Skip to content

Commit 1ffd24d

Browse files
committed
small fix
1 parent 83bdd83 commit 1ffd24d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/positiveLinearCombination.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,3 @@ export function positiveLinearCombination(base, vector, options = {}) {
128128
return solutions;
129129
}
130130
}
131-
132-
let base = new Matrix([
133-
[0, 20, 100, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
134-
[0, 0, 0, 0, 0, 30, 100, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
135-
[0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 100, 5, 0, 0, 0, 0, 0, 0],
136-
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 100, 15, 0, 0, 0],
137-
[0, 0, 0, 0, 0, 0, 0, 10, 100, 10, 0, 0, 0, 0, 0, 0, 0, 0],
138-
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 100, 10]
139-
]);
140-
let vector = new Matrix(
141-
[[0, 20, 100, 20, 0, 0, 0, 0, 0, 5, 100, 5, 0, 0, 0, 20, 200, 20]]);
142-
let solutions = Matrix.zeros(1, base.columns);
143-
144-
solutions = positiveLinearCombination(base, vector);
145-
146-
console.table(solutions);

0 commit comments

Comments
 (0)