Abstract: A new simple and effective method for solving ill-conditioned linear systems is presented in this paper. This method tried mainly not to decrease the error caused in direct solving, instead, it tries to transfer this error to a medium variable. At the same time, a parameter is introduced. In order to obtain the best parameter, PSO is used. An algorithm based on this method is presented, and examples show that this algorithm could solve extremely ill-conditioned linear systems correctly and stably.
Introduction: The Challenge of Ill-Conditioned Systems
In computational linear algebra, solving the system $Ax = b$ is a fundamental task. However, many real-world systems are "ill-conditioned," meaning the coefficient matrix $A$ is highly sensitive to small perturbations. The sensitivity is measured by the condition number $\kappa(A)$. When $\kappa(A)$ is large, even microscopic rounding errors during computation can lead to wildly inaccurate solutions.
Traditional direct solvers like Gaussian Elimination often fail in these scenarios, producing "numerical garbage" when the condition number exceeds the precision of the machine. For a standard computer, a matrix with a condition number of $10^{15}$ typically results in the loss of 15 decimal places of accuracy.
Methodology: The Error Transfer Method
The authors propose a novel "Error Transfer Method with Auto-Parameter" that shifts the focus from error reduction to error management.
1. Variable Transformation
Instead of solving for $x$ directly, the method introduces a transformation $x = C\tilde{y}$, where $C$ is a non-singular matrix. The original equation $Ax = b$ is rewritten as $AC\tilde{y} = b$.
2. Parameter Introduction
The matrix $C$ is specifically defined as $C = \omega A^T$, where $\omega$ is a scalar parameter. The system becomes $A(\omega A^T)\tilde{y} = b$. The underlying hypothesis is that while the intermediate variable $\tilde{y}$ may absorb numerical errors, the subsequent transformation back to $x$ minimizes the impact of these errors on the final solution.
3. Optimization via Particle Swarm Optimization (PSO)
To determine the optimal value for the parameter $\omega$, the researchers employ Particle Swarm Optimization (PSO). PSO is a metaheuristic algorithm that simulates social behavior to explore the search space. In this context, the "swarm" searches for an $\omega$ that minimizes the residual error function: $F(\omega) = ||A\omega A^T \tilde{y} - b||$
Experimental Evaluation
The algorithm was tested against three notoriously ill-conditioned matrices known for being computational "nightmares":
- Hilbert Matrix: A square matrix where entries are unit fractions $1 / (i + j - 1)$.
- Pascal Matrix: A matrix whose entries are binomial coefficients.
- Max-Value Matrix: A matrix defined by $H_{i,j} = \max\{i, j\}$.
These matrices were evaluated at scales ranging from $n=10$ to $n=100$ to observe how the algorithm handled increasing instability.
Key Results and Discussion
The proposed "Method 3" (Error Transfer with PSO) was compared against standard Gaussian Elimination (Method 1).
As shown in the results, Gaussian Elimination fails significantly as the system order increases, often producing negative values or values orders of magnitude away from the true solution (e.g., getting -35.97 for a value that should be 10). In contrast, Method 3 maintains high precision and stability, even when dealing with condition numbers as high as $1.35 \times 10^{21}$, a regime where traditional solvers are completely unusable.
Conclusion
The Error Transfer Method offers a robust alternative for solving extremely ill-conditioned systems. By utilizing PSO to adaptively tune the transformation parameter, the algorithm achieves stability over a wide range of matrix types and scales. While the iterative nature of PSO introduces a higher computational cost compared to direct solvers, the gain in reliability for critical engineering applications—such as structural analysis or fluid dynamics—is substantial. Future work will focus on optimizing the PSO phase to improve execution speed.
Summary updated