How to formulate the constrained optimization problem?

79 Views Asked by At

I have a linear problem, which I want to maximize.

There are 4 candy boxes. For each of them, I have these facts:

  1. On selling 100 candies from box A we earn 150 dollars.
  2. On selling 400 candies from box B we earn 250 dollars.
  3. On selling 130 candies from box C we earn 190 dollars.
  4. On selling 10 candies from box D we earn 50 dollars.

The problem I would like to formulate is..how to maximize the dollars earned by selling the "optimal" candies more frequently? In other words, how to find the right coefficients i.e (W)*A + (X)*B + (Y)*C + (Z)*D which can dictate the respective frequencies (or percentage distribution) with which I should sell these candies to maximize the dollars earned?

Please help. Thanks in advance.