OPTIMAL CONTROL AND ADVERTISING POLICY