Controller design in state space, optimisation