Barge Loading


    {  Exmpl9.2-1_BargeLoading.mpl  }

    {  Applications of Optimization with Xpress-MP  }

    {  Chapter 9.2,  Barge Loading,  Size: 19x49,  Page 171 }

!#define prob2
!#define prob3

TITLE
    BargeLoad;

INDEX
    client := 1..7;
    wagon := 1..3;

DATA
    Availability[client] := (12, 31, 20, 25, 50, 40, 60);
    LotSize[client]      := (10,  8,  6,  9, 15, 10, 12);
    Price[client]        := 100*(10,  6,  6,  8, 12,  8, 11);
    Cost[client]         := (80, 70, 85, 80, 73, 70, 80);
    LotProfit[client]    := Price - Cost*LotSize;
    Capacity := 1500;

VARIABLE
    Load[client];

MODEL

    MAX Profit = SUM(client: LotProfit*Load);

SUBJECT TO

    CapacityLimits -> CAPL:
        SUM(client: LotSize*Load) <= Capacity;

#ifdef prob2
BOUNDS
    Load <= Availability;
#endif

#ifdef prob3
INTEGER
    Load;
#endif
END


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