Solution of a linear regulator problem with quadratic performance index and state variable constraints