Implement a constrained optimal control in a conventional level controller: Part 2