. "Side effects and other parameters, such as power consumption and current magnitude, are also quantified and minimized according to a cost function." . . .