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

update

parent 7cf9342c
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ public class Main {
spx.tabAux();
else
spx.pivot(0);
spx.printSimplex("pivot");
sc.close();
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
......
......@@ -18,9 +18,9 @@ public class Simplex {
for (int i = 0; i < x; i++) {
for (int j = 0; j < y; j++) {
if (matEcart[i][j] < 0.0)
System.out.print(matEcart[i][j] + " ");
System.out.printf("%.2f ", matEcart[i][j]);
else
System.out.print(" " + matEcart[i][j] + " ");
System.out.printf(" %.2f ", matEcart[i][j]);
}
System.out.println();
}
......@@ -82,7 +82,6 @@ public class Simplex {
}
}
}
printSimplex("pivot");
for (int j = 0; j < this.y; j++)
if (!signe(this.matEcart[x - 1][j])) {
has_neg = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment