In this paper a numerical algorithm for solving a fuzzy linear system of equations (FLS) is considered. This system would be changed into an optimization problem which is based on Particle Swarm optimization (PSO) algorithm. The efficiency of algorithm is illustrated by some numerical examples.