Optimization Models for Applications in Portfolio Management and Advertising Industry