Production of Alloys


    {  Exmpl6.1-1_AlloyProd.mpl  }

    {  Applications of Optimization with Xpress-MP  }

    {  Chapter 6.1,  Production of Alloys,  Size: 8x8,  Page 85 }


TITLE
   AlloyProd;

INDEX
   comp := (c,cu,mn);
   raw  := (irn1,irn2,irn3,cp1,cp2,al1,al2);

DATA
   Mingrade[comp] := (2,0.4,1.2);
   Maxgrade[comp] := (3,0.6,1.65);
   RawMatComp[raw,comp] := (2.5,  0, 1.3,
                              3,  0, 0.8,
                              0,0.3,   0,
                              0, 90,   0,
                              0, 96,   4,
                              0,0.4, 1.2,
                              0,0.6,   0);
   RawAvail[raw] := (400,300,600,500,200,300,250);
   RawCost[raw]  := (200,250,150,220,240,200,165);
   Demand := 500;

VARIABLE
   VUse[raw];
   Produce;

MODEL
   MIN TotCost = SUM(raw: VUse * RawCost);

SUBJECT TO
   CalcProd -> CLPD:
       SUM(raw: VUse) = Produce;
   MinGradeComp[comp] -> MNGC:
       SUM(raw: VUse * RawMatComp) >= Mingrade * Produce;
   MaxGradeComp[comp] -> MXGC:
       SUM(raw: VUse * RawMatComp) <= Maxgrade * Produce;
   MeetDemand -> MDem:
       SUM(raw: VUse) = Demand;

BOUNDS
   VUse <= RawAvail;



Back To Top | Maximal Home Page | List of Models | Previous Page | Next Page