Diet Problem



   {  Exmpl2.3_DietProblem.mpl  }

   {  Murty, Operations Research, Deterministic Optimization Models  }

   {  Chapter 2,  Example 2.3,  Diet Problem,  Size: 3x2,  Page 31  }

TITLE
    DietProblem;

INDEX
    grain  :=  1..2;
    nutri  :=  (Starch, Protein, Vitamins);

DATA
    NutriUnits[nutri,grain] := (5, 7,
                                4, 2,
                                2, 1);

    MinDailyReq[nutri] := (8, 15, 3);

    GrainCost[grain]   := (0.60, 0.35);

VARIABLES
    Amount[grain];  !Kg

MODEL

    MIN TotalCost = SUM(grain: GrainCost * Amount);

SUBJECT TO

    Requirement[nutri]:

        SUM(grain: NutriUnits * Amount)  >=  MinDailyReq;

END




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