A quadratic regulator problem related to identification problems and singular systems