Optimal Control And Optimization Of Sto