<div class="section abstract"><div class="htmlview paragraph">This paper presents a numerical methodology to generate lookup tables that provide <i>d</i>- and <i>q</i>-axis stator current references for the control of electric motors. The main novelty with respect to other literature references is the introduction of the iron power losses in the equivalent-circuit electric motor model implemented in the optimization routine. The lookup tables generation algorithm discretizes the motor operating domain and, given proper constraints on maximum stator current and magnetic flux, solves a numerical optimization problem for each possible operating point to determine the combination of <i>d</i>- and <i>q</i>- axis stator currents that minimizes the imposed objective function while generating the desired torque. To demonstrate the versatility of the proposed approach, two different variants of this numerical interpretation of the motor control problem are proposed: Maximum Torque Per Ampere and Minimum Electromagnetic Power Loss. A practical example of calculation of the lookup tables for the control of an induction machine is presented and the results of a steady-state performance analysis are shown.</div></div>