A deterministic affine-quadratic optimal control problem∗. (25th June 2014)