Text this: Necessary optimal conditions for singular control in the discrete systems with distributed control