Assignment of Production Batches to Machines


    {  Exmpl8.6-1_MachineAssignment.mpl  }

    {  Applications of Optimization with Xpress-MP  }

    {  Chapter 8.6,  Assignment of Production Batches to Machines,  Size: 15x50,  Page 160 }


TITLE
    MachineAssignment;

INDEX
    mach := 1..5;
    prod := 1..10;

DATA
    Cap[mach] := (18,19,25,19,20);
    Dur[mach,prod]  :=  ( 8,15,14,23, 8,16, 8,25, 9,17,
                         15, 7,23,22,11,11,12,10,17,16,
                         21,20, 6,22,24,10,24, 9,21,14,
                         20,11, 8,14, 9, 5, 6,19,19, 7,
                          8,13,13,13,10,20,25,16,16,17);
    Cost[mach,prod] :=  (17,21,22,18,24,15,20,18,19,18,
                         23,16,21,16,17,16,19,25,18,21,
                         16,20,16,25,24,16,17,19,19,18,
                         19,19,22,22,20,16,19,17,21,19,
                         18,19,15,15,21,25,16,16,23,15);

VARIABLE
    MUse[mach,prod];

MODEL

    MIN TotalCosts = SUM(mach,prod: Cost * MUse);

SUBJECT TO

    AssignMachine[prod] -> AMAC:
        SUM(mach: MUse) = 1;

    MachineCapability[mach] -> CAP:
        SUM(prod: Dur * MUse) <= Cap;

BINARY
    MUse;

END


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