This paper presents the linear electromagnetic motor (LEM) which consists of two solenoids and a slide control with neodymium magnet bars placed on its end. The work of the electromagnetic motor is based on the phenomenon of electromagnetic repulsion. The device also includes an electromagnetic brake which allows to stop the slider or to hold the slider in a fixed position, without electricity supply. The range of the slider movement is up to 50mm. The paper deals with the problem of implementation of the Genetic Algorithm GA to calculate Pareto-optimal solutions. In this process, the functions of voltage powering solenoids used to control the position of the linear electromagnetic motor are evaluated. This procedure assumes minimizing two conflicted criteria: the time of movement of the motor and the energy input. In this case the device works in the open-loop system without a feedback loop. The results of the application of the conventional PID controller are also presented, which allows precision positioning up to 1µm. The experimental results are compared with Matlab-Simulink simulations.