Measures Concepts
GitHub icon

mpl

mpl - Programming language

< >

mpl is a programming language created in 1988.

#1194on PLDB 36Years Old


Example from the web:
{ 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

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout