A wide variety of laser applications, that often require radiation with specific characteristics, and relative flexibility of laser configurations offer a prospect of designing systems with the parameters on demand. The inverse laser design problem is to find the system architecture that provides for the generation of the desired laser output. However, typically, such inverse problems for nonlinear systems are sensitive to the computation of the gradients of a target (fitness) function making direct back propagation approach challenging. We apply here particle swarm optimization algorithm that does not rely on the gradients of the fitness function to the design of a fiber 8-figure laser cavity. This technique allows us to determine the lase...