optimization _ maximum profit.pdf