Numerical method for solving optimal control problem of the linear differential systems with inequality constraints