From system model to optimal control - A tool chain for