-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
mpl.scroll
55 lines (42 loc) · 1.46 KB
/
mpl.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import ../code/conceptPage.scroll
id mpl
name mpl
appeared 1988
tags pl
website http://www.maximalsoftware.com/mpl/
relatedConcepts gams ampl
fileExtensions mpl
country United States
originCommunity Maximal Software, Inc.
reference http://www.gmu.edu/schools/vse/seor/syllabi/02F/mplman.pdf
example
{ Planning.mpl }
{ Aggregate production planning for 12 months }
TITLE
Production_Planning;
INDEX
product = 1..3;
month = (January,February,March,April,May,June,July,
August,September,October,November,December);
DATA
price[product] := (105.09, 234.00, 800.00);
Demand[month,product] := 1000 DATAFILE(demand.dat);
ProductionCapacity[product] := 1000 (10, 42, 14);
ProductionCost[product] := (64.30, 188.10, 653.20);
InventoryCost := 8.8 ;
DECISION VARIABLES
Inventory[product,month] -> Invt
Production[product,month] -> Prod
Sales[product,month] -> Sale
MACRO
Revenues := SUM(product,month: price * Sales);
TotalCost := SUM(product,month: InventoryCost * Inventory
+ ProductionCost * Production);
MODEL
MAX Profit = Revenues - TotalCost ;
SUBJECT TO
InventoryBalance[product,month] -> IBal :
Inventory = Inventory[month-1] + Production - Sales ;
BOUNDS
Sales < ProductionCapacity ; Inventory[month="January..November]" < 90000 ;
Inventory[month="December]" ; END