The paper is devoted to finding the set value of the torque of an electromechanical energy converter with a solid rotor by solving an optimization problem in the Optimetrics module of the Ansys Maxwell software. A feature of the material described in the paper is the simultaneous optimization solution using the Sequential Nonlinear Programming (Gradient) algorithm and the solution of the field problem using the finite element method to determine the torque at each step of the iteration. The paper describes in detail the setting of the research tasks, the basic model of the electromechanical energy converter with a solid rotor in Ansys Maxwell 2D, the settings of the Optimetrics module, the task of the objective function and varied parameters, the convergence task with respect to the magnitude of the rotation torque, and the derivation and analysis of the results obtained during the optimization. The techniques described in this paper can be applied to any other type of electric machines.