Skip to content
Snippets Groups Projects
Commit ae6ebff8 authored by thibault.capt's avatar thibault.capt
Browse files

print

parent f1e279bd
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,7 @@ public class Simplex { ...@@ -134,6 +134,7 @@ public class Simplex {
for (int i = 0; i < mat.getY(); i++) { for (int i = 0; i < mat.getY(); i++) {
mat.setData(id, i, mat.getData(id, i) / val_pivot); mat.setData(id, i, mat.getData(id, i) / val_pivot);
} }
for (int i = 0; i < mat.getX(); i++) { for (int i = 0; i < mat.getX(); i++) {
val_pivot = mat.getData(i, firstNeg); val_pivot = mat.getData(i, firstNeg);
for (int j = 0; j < mat.getY(); j++) { for (int j = 0; j < mat.getY(); j++) {
...@@ -143,6 +144,9 @@ public class Simplex { ...@@ -143,6 +144,9 @@ public class Simplex {
} }
} }
mat.matrixPrint("Pivot numéro " + this.nbPivot, 2); mat.matrixPrint("Pivot numéro " + this.nbPivot, 2);
System.out.println("colonne du pivot: " + firstNeg);
System.out.println("ligne du pivot: " + id);
System.out.println("Valeur du pivot: " + val_pivot);
for (int j = 0; j < mat.getY(); j++) for (int j = 0; j < mat.getY(); j++)
if (signe(mat.getData(mat.getX() - 1, j))) { if (signe(mat.getData(mat.getX() - 1, j))) {
has_neg = true; has_neg = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment