> Discrete Optimization > Food Manufacturing 2: Using Logical Constraints > Representing the Data > What Is the Objective? |
What Is the Objective? |
INDEX PREVIOUS NEXT |
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]); |
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |