Product Mix with Setup Costs    Model: PRODMIX

In a product mix model, the decision is how much of a number of different products should be produced to maximize total revenue. Each of the products competes for a number of scarce resources. In this example, we produce six different flying machines from six different raw materials. This model also has the feature that, should we produce a given product, we incur a fixed setup cost.

MODEL:

SETS:

  PLANES/ ROCKET, METEOR, STREAK,

   COMET, JET, BIPLANE /:

    PROFIT, SETUP, QUANTITY, BUILD;

  RESOURCES /STEEL, COPPER, PLASTIC,

   RUBBER, GLASS, PAINT/: AVAILABLE;

  RXP( RESOURCES, PLANES): USAGE;

ENDSETS

DATA:

  PROFIT SETUP =

    30     35

    45     20

    24     60

    26     70

    24     75

    30     30;    

  AVAILABLE =

   800 1160 1780 1050 1360 1240;

  USAGE =  1 4 0 4 2 0

           4 5 3 0 1 0

           0 3 8 0 1 0

           2 0 1 2 1 5

           2 4 2 2 2 4

           1 4 1 4 3 4;

ENDDATA

 

MAX = @SUM( PLANES:

PROFIT * QUANTITY - SETUP * BUILD);

 

@FOR( RESOURCES( I):

@SUM( PLANES( J):

 USAGE( I, J) * QUANTITY( J)) <=

  AVAILABLE( I)

);

@FOR( PLANES:

QUANTITY <= 400 * BUILD;

 @BIN( BUILD)

);

@FOR( PLANES:

@GIN( QUANTITY)

);

 

END

Model: PRODMIX