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

As you know from Describing the Problem, there are a variety of constraints in this problem.

For each type of oil, there must be 500 tons in storage at the end of the plan. That idea can be expressed like this:

      for (p = 0; p < nbProducts; p++) {
        store[nbMonths-1][p].setBounds(500, 500);
      }

The constraints on production in each month can all be expressed as statements in a for-loop: