) {
float minTemp = matrix [minRInd] [j];
for (int i = 0; i <= ReadFile.colCount; i + +) {
matrix [i] [j] + = matrix [i] [minCInd] *-minTemp;
}
}
for (int i = 0; i
for (int j = 0; j
int k = j + 1;
String tempS = "x" + k;
if (tempS.equals (ReadFile.varCol [i]))
solution [j] = matrix [ReadFile.colCount] [i +1];
}
}
tempCInd = minCInd;
}
// перевіряє, оптимально чи поточне рішення
static boolean checkSolved (float matrix [] []) {
solved = true;
for (int i = 0; i <= ReadFile.colCount; i + +) {
if (matrix [i] [0] <0)
solved = false;
}
if (solved) {
JOptionPane.showMessageDialog (null, "задача вирішена");
tempCInd = 0;
}
return solved;
}
}