A steady-state optimal control problem