Lines Matching defs:system
345 solve(EquationSystem& system)
348 if (!system.GaussJordan())
355 for (int row = 0; row < system.Rows(); row++) {
356 if (system.B(row) > 0 || fuzzy_equals(system.B(row), 0))
359 double bValue = fabs(system.B(row));
371 for (int col = system.Rows(); col < system.Columns(); col++) {
372 double value = system.A(smallestBRow, col);
383 system.SwapColumn(smallestBRow, negValueCol);
386 system.GaussJordan(smallestBRow);
474 EquationSystem system(nConstraints, nVariables + nConstraints);
484 system.B(rowIndex) = constraint->RightSide();
489 system.A(rowIndex, columnIndex) = coefficient;
492 system.A(rowIndex, slackIndex) = 1;
495 system.A(rowIndex, slackIndex) = -1;
501 system.SetRows(rowIndex);
503 system.RemoveLinearlyDependentRows();
504 system.RemoveUnusedVariables();
506 if (!solve(system))
510 system.Results(results, nVariables + nConstraints);
511 TRACE("base system solved\n");