We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83bdd83 commit 1ffd24dCopy full SHA for 1ffd24d
src/positiveLinearCombination.js
@@ -128,19 +128,3 @@ export function positiveLinearCombination(base, vector, options = {}) {
128
return solutions;
129
}
130
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