Pretty Darn Good Control: applications in optimal control