Text this: Direct optimal control of duffing dynamics /