> Discrete Optimization > Food Manufacturing 2: Using Logical Constraints > Representing the Data > What Is the Objective?

On a monthly basis, the profit can be represented as the sale price per ton (150) multiplied by the amount produced minus the cost of production and storage, like this:

profit += 150 * produce[i] - IloScalProd(cost[i], 
                                         buy[i]) - 5 * IloSum(store[i]);