From ae6ebff823fa62e26ac216e22a7207f023a722c2 Mon Sep 17 00:00:00 2001 From: "thibault.capt" <thibault.capt@etu.hesge.ch> Date: Mon, 16 Jan 2023 14:53:34 +0100 Subject: [PATCH] print --- src/Simplex.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Simplex.java b/src/Simplex.java index ed62bd0..161b42d 100644 --- a/src/Simplex.java +++ b/src/Simplex.java @@ -134,6 +134,7 @@ public class Simplex { for (int i = 0; i < mat.getY(); i++) { mat.setData(id, i, mat.getData(id, i) / val_pivot); } + for (int i = 0; i < mat.getX(); i++) { val_pivot = mat.getData(i, firstNeg); for (int j = 0; j < mat.getY(); j++) { @@ -143,6 +144,9 @@ public class Simplex { } } 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++) if (signe(mat.getData(mat.getX() - 1, j))) { has_neg = true; -- GitLab