Optimal control of a switched reluctance drive by a direct method using a discrete variational principle | IEEE Conference Publication | IEEE Xplore