Optimization and control problems in the design of a variable reluctance motor drive