Linear optimal control in multi-segment marketing