Use of Luus–Jaakola optimization procedure for singular optimal control problems