SlideShare une entreprise Scribd logo
1  sur  23
Mathematical Modelling
Basic Lingo Tutorial
MA Ilhami
adha@untirta.ac.id
Mathematical Modelling (Neumaier, 2003)
• A mathematical model is a description of a system using
mathematical concepts and language Mathematical modeling is the
art of translating problems from an application area into tractable
mathematical formulations whose theoretical and numerical analysis
provides insight, answers, and guidance useful for the originating
application.
• The creating of mathematical formulas to represent a real world
problem in mathematical terms
MA Ilhami
Why Mathematical Model?
• is indispensable in many applications
• is successful in many further applications
• gives precision and direction for problem solution
• enables a thorough understanding of the system modeled
• prepares the way for better design or control of a system
• allows the efficient use of modern computing capabilities
MA Ilhami
Mathematical Models
• First-Principle Model (Mechanistic Model): based on physical laws
(newton equation). Descriptive, explaining.
• Stochastic Model: based on distributions, averages (risk model, or
machine’s reliability model). Capable to deal with random
phenomena, hard to distinguish relations.
• Empirical/data Model: based on (historical) patterns, data. Not
explaining, relations based on reality.
MA Ilhami
Mathematical Model Cycles
Specify the
problem
Set up a
metaphor
Formulate
mathematical
model
Solve
mathematical
problem
Interpret
solution
Compare with
reality
Use model to
explain, predict,
decide, or design
Real World
MA Ilhami
1. Specify the problem
• You are a new student of industrial engineering master degree of
UGM. You have two options, whether you are going to buy a used
motorcycle or using Gojek as your daily driver? Model it using a
mathematical model.
• The problem is.. “What is cheaper whether to buy a used motorcycle
of using Gojek as your daily driver?
MA Ilhami
2. Set a metaphor (ex. Rich Picture)
Gojek Rp. 10jt Bensin Service
Cuci
Motor
Tambal
Ban
Spare
part
P
Parking
Fee
For sale
?
Campus activity
Hangout
MA Ilhami
2. Set a metaphor (ex. Influence Diagram)
Total biaya transportasi lokal selama S2
Biaya
investasi
motor
X1 = beli motor seken
Biaya
operasion
al
Biaya
perawata
n
Biaya tak
terduga
Biaya
Parkir
Nilai jual
kembali
Biaya ke
kampus
via Gojek
X2 = pakai Gojek
Biaya
hangout
via Gojek
Harga motor
bekas
Frekuensi
isi bensin
Biaya
sekali isi
bensin
Frekuensi
service
Biaya
sekali
service
Frekuensi
cuci motor
Biaya per
cuci motor
Frekuensi
tambal ban
Biaya
tambal ban
Frekuensi
parkir
Biaya
sekali
parkir
Frekuensi ke
kampus
Biaya order
ke kampus
Frekuensi
main/jalan
Biaya
order main
Harga jual
kembali
Jumlah hari
selama s2
Biaya
cuci
motor
Frekuensi
ganti part
Biaya ganti
sparepart
MA Ilhami
3. Formulate Mathematical Model (Notations)
No Parameter Simbol Nilai Satuan
1 Jumlah Hari selama S2 d 730 Hari
2 Harga motor seken Hm 10000000 Rp
3 Biaya isi bensin Bm 20000 Rp/isi
4 Frekuensi isi bensin Fb 3 Hari/isi
5 Biaya sekali service Bs 150000 Rp/service
6 Frekuensi service Fs 2 bulan/service
7 Biaya sekali cuci motor Bc 15000 Rp/cuci
8 Frekuensi cuci motor Fc 1 minggu/cuci
9 Biaya tambal ban Bt 25000 Rp/tambal
10 Frekuensi tambal ban Ft 6 bulan/tambal
11 Biaya sparepart Bsp 500000 Rp/ganti
12 Frekuensi ganti sparepart Fsp 6 bulan/ganti
13 Biaya parkir Bp 2000 Rp/minggu
14 Frekuensi parkir Fp 2 1/minggu
15 Harga jual kembali motor Hjm 8000000 Rp
16 Biaya rutin ke kampus Gojek Bo 7000 Rp/order
17 Frekuensi ke kampus Gojek Fo 2 kali/hari
18 Biaya hangout via gojek Ho 7000 Rp/order
19 Frekuensi order hangout Hf 4 kali/minggu
No Variabel Keputusan Simbol Tipe
1 Keputusan membeli motor X1 Biner
2 Keputusan menggunakan Gojek X2 Biner
Model assumptions:
1. there are 365 days a year, and in two years the student will definitely be graduated
2. A motorcycle's price is Rp. 10,000,000.00 on average and its depreciation is one million rupiahs a year.
3. The motorcycle will be sold at the end of the study.
4. You will always pay Rp. 20,000.00 each time you fill the gasoline.
5. etc...
Model boundaries:
1. The student has two options only, which are buying a used motorcycle or using Gojek as a daily driver.
2. Etc…
No Fungsi Tujuan Simbol Tipe
1 Biaya investasi motor BIM Riil
2 Biaya operasional motor BOM Riil
3 Biaya perawatan BPM Riil
4 Biaya rutin lainnya BRM Riil
5 Biaya tak terduga BTM Riil
6 Biaya parkir BPR Riil
7 Pendapatan penjualan motor PPM Riil
8 Biaya order Gojek BOG Riil
9 Biaya hangout Gojek BHG Riil
MA Ilhami
3. Formulate Mathematical Model (Formulation)
Biaya operational (BOM) = X1*(d/Fb)*Bm
X1 = beli
motor seken
Biaya
operasional
Frekuensi isi
bensin (Fb)
Biaya sekali isi
bensin (Bm)
Jumlah hari
selama s2 (d)
Dimana:
d = jumlah hari selama s2 (2 tahun x 365 = 730 hari)
Fb = frekuensi isi bensi (3 hari sekali)
Bm = biaya sekali isi bensin (Rp. 20.000)
MA Ilhami
3. Formulate Mathematical Model (Formulation)
X1 = beli
motor seken
Biaya
perawatan
Frekuensi service
rutin (Fs)
Biaya sekali
service rutin (Bs)
Jumlah hari
selama s2 (d)
Biaya perawatan (BPM) = X1*(d/(Fs*30))*Bs
Dimana:
d = jumlah hari selama s2 (2 tahun x 365 = 730 hari)
Fs = frekuensi service (2 bulan sekali)
Bs = biaya sekali service (Rp. 150.000,-)
MA Ilhami
3. Formulate Mathematical Model (Formulation)
Biaya dan Pendapatan Terkait Motor:
Biaya operational (BOM) = X1*(d/Fb)*Bm
Biaya investasi motor (BIM) = X1*Hm
Biaya perawatan (BPM) = X1*(d/(Fs*30))*Bs
Biaya rutin (BRM) = X1*((d/7)/Fc)*Bc
Biaya tak terduga (BTM) = X1*((d/30)/(Fsp))*Bsp + X1*((d/30)/(Ft))*Bt
Biaya parkir (BPR) = X1*((d/7)*Fp)*Bp
Penjualan penjualan motor (PPM) = X1*Hjm
Biaya dan Pendapatan Terkait Gojek:
Biaya order Gojek (BOG) = X2*d*Fo*Bo
Biaya hangout Gojek (BHG) = X2*d*Ho*Ho
Objective Function = X1*(d/Fb)*Bm + X1*Hm + X1*(d/(Fs*30))*Bs +
X1*((d/7)/Fc)*Bc + X1*((d/30)/(Fsp))*Bsp + X1*((d/30)/(Ft))*Bt +
X1*((d/7)*Fp)*Bp - X1*Hjm + X2*d*Fo*Bo + X2*(Hf*d/7)*Ho
Objective Function = BOM + BIM + BPM + BRM + BTM + BPR – PPM + BOG + BHG
MA Ilhami
3. Formulate Mathematical Model (Constraints)
Choice Constraint: only one choice may be selected X1 or X2
X1 + X2 = 1
Binary Constraint: the decision variables are binary.
X1, X2 Є {0,1}
MA Ilhami
4. Solve The Mathematical Problem (Using Lingo)
Declaration of indexes or set of indexes
Declaration of parameters
Declaration of the objective
function followed by constraints
MA Ilhami
4. Solve The Mathematical Problem (Using Lingo)
MA Ilhami
4. Solve The Mathematical Problem (Using Lingo)
MA Ilhami
5. Interpret the solution
Objective function reflects the cost we spend if the
decision variable is selected (which is Rp. 12.802.260)
The selected decision variable is X1 = 1 (we should by
used motor cycle)
MA Ilhami
Let’s complicate the problem a little bit …
Model assumptions:
1. There are 365 days a year, and in two years the student will definitely be graduated
2. A motorcycle's price is Rp. 10,000,000.00 on average and its depreciation is 1.2 million rupiahs a year.
3. The motorcycle will be sold at the end of the study.
4. You will always pay Rp. 20,000.00 each time you fill the gasoline.
5. etc...
So the decisions become…
Some parameters have changed…
MA Ilhami
Excel Dataset (Using Define Name)
MA Ilhami
The Modified Lingo Code…
MA Ilhami
The Solutions (in the orange table)
MA Ilhami
Sensitivity Analysis
• Think several parameters that have significant effects on the decision
or objective function.
• Let say: Hjm (motor cycle’s selling price after 2 years) or Bm (Gasoline
price).
• Try to change the parameters’ value and draw a graphic of
parameters and objective function.
MA Ilhami
Sensitivity of Hjmt(t = 1)
Hjmt (t=1) 8,800,000 8,810,000 8,820,000 8,830,000 8,835,000 8,840,000
BELI MOTOR
Bbesin - - - - 2,433,333 2,433,333
Bservice - - - - 912,500 912,500
Bcuci - - - - 782,143 782,143
Bpart - - - - 1,013,889 1,013,889
Btambal - - - - 50,694 50,694
Bparkir - - - - 208,571 208,571
Bmotor
GOJEK
Borderkampus 10,220,000 10,220,000 10,220,000 10,220,000 5,110,000 5,110,000
Bordermain 2,920,000 2,920,000 2,920,000 2,920,000 1,460,000 1,460,000
Hitung OF 13,140,000 13,140,000 13,140,000 13,140,000 13,136,131 13,131,131
X11 - - - - 1 1
X12 1 1 1 1 - -
MA Ilhami

Contenu connexe

Similaire à Lingo tutorial 1

3. eng. cost and estimation
3. eng. cost and estimation3. eng. cost and estimation
3. eng. cost and estimationMohsin Siddique
 
3 150316005311-conversion-gate01
3 150316005311-conversion-gate013 150316005311-conversion-gate01
3 150316005311-conversion-gate01abidiqbal55
 
IE-301_OptionalProject_Group2_Report
IE-301_OptionalProject_Group2_ReportIE-301_OptionalProject_Group2_Report
IE-301_OptionalProject_Group2_ReportSarp Uzel
 
Mathematical Investigation on Emission of Bio Diesel in Internal Combustion E...
Mathematical Investigation on Emission of Bio Diesel in Internal Combustion E...Mathematical Investigation on Emission of Bio Diesel in Internal Combustion E...
Mathematical Investigation on Emission of Bio Diesel in Internal Combustion E...IJSRD
 
IRJET - A Dynamic Model and Analysis of Innovative E-Bike
IRJET -  	  A Dynamic Model and Analysis of Innovative E-BikeIRJET -  	  A Dynamic Model and Analysis of Innovative E-Bike
IRJET - A Dynamic Model and Analysis of Innovative E-BikeIRJET Journal
 
Lpp through graphical analysis
Lpp through graphical analysis Lpp through graphical analysis
Lpp through graphical analysis YuktaBansal1
 
[중소기업청] 디시티엔지니어링 홍보문서
[중소기업청] 디시티엔지니어링 홍보문서[중소기업청] 디시티엔지니어링 홍보문서
[중소기업청] 디시티엔지니어링 홍보문서startupkorea
 
IRJET- Design and Analysis of Electric Bike Chassis
IRJET-  	  Design and Analysis of Electric Bike ChassisIRJET-  	  Design and Analysis of Electric Bike Chassis
IRJET- Design and Analysis of Electric Bike ChassisIRJET Journal
 
1. (TCO 2) An example of a period cost is (Points 5)       ins.docx
1. (TCO 2) An example of a period cost is (Points  5)       ins.docx1. (TCO 2) An example of a period cost is (Points  5)       ins.docx
1. (TCO 2) An example of a period cost is (Points 5)       ins.docxhyacinthshackley2629
 
Mechanical Design Engineer_Jignesh Bhagat
Mechanical Design Engineer_Jignesh BhagatMechanical Design Engineer_Jignesh Bhagat
Mechanical Design Engineer_Jignesh BhagatJignesh Bhagat
 
Car care project feasibility study
Car care project feasibility studyCar care project feasibility study
Car care project feasibility studyWalid Saafan
 
Modeling and Performance Analysis of a Converted Electric Vehicle Using Forwa...
Modeling and Performance Analysis of a Converted Electric Vehicle Using Forwa...Modeling and Performance Analysis of a Converted Electric Vehicle Using Forwa...
Modeling and Performance Analysis of a Converted Electric Vehicle Using Forwa...IRJET Journal
 

Similaire à Lingo tutorial 1 (20)

Group D
Group DGroup D
Group D
 
Group D
Group DGroup D
Group D
 
3. eng. cost and estimation
3. eng. cost and estimation3. eng. cost and estimation
3. eng. cost and estimation
 
3 150316005311-conversion-gate01
3 150316005311-conversion-gate013 150316005311-conversion-gate01
3 150316005311-conversion-gate01
 
IE-301_OptionalProject_Group2_Report
IE-301_OptionalProject_Group2_ReportIE-301_OptionalProject_Group2_Report
IE-301_OptionalProject_Group2_Report
 
Mathematical Investigation on Emission of Bio Diesel in Internal Combustion E...
Mathematical Investigation on Emission of Bio Diesel in Internal Combustion E...Mathematical Investigation on Emission of Bio Diesel in Internal Combustion E...
Mathematical Investigation on Emission of Bio Diesel in Internal Combustion E...
 
[000008]
[000008][000008]
[000008]
 
IRJET - A Dynamic Model and Analysis of Innovative E-Bike
IRJET -  	  A Dynamic Model and Analysis of Innovative E-BikeIRJET -  	  A Dynamic Model and Analysis of Innovative E-Bike
IRJET - A Dynamic Model and Analysis of Innovative E-Bike
 
Lpp through graphical analysis
Lpp through graphical analysis Lpp through graphical analysis
Lpp through graphical analysis
 
OR 14 15-unit_3
OR 14 15-unit_3OR 14 15-unit_3
OR 14 15-unit_3
 
[중소기업청] 디시티엔지니어링 홍보문서
[중소기업청] 디시티엔지니어링 홍보문서[중소기업청] 디시티엔지니어링 홍보문서
[중소기업청] 디시티엔지니어링 홍보문서
 
ME-6th-sem.pdf
ME-6th-sem.pdfME-6th-sem.pdf
ME-6th-sem.pdf
 
IRJET- Design and Analysis of Electric Bike Chassis
IRJET-  	  Design and Analysis of Electric Bike ChassisIRJET-  	  Design and Analysis of Electric Bike Chassis
IRJET- Design and Analysis of Electric Bike Chassis
 
1. (TCO 2) An example of a period cost is (Points 5)       ins.docx
1. (TCO 2) An example of a period cost is (Points  5)       ins.docx1. (TCO 2) An example of a period cost is (Points  5)       ins.docx
1. (TCO 2) An example of a period cost is (Points 5)       ins.docx
 
_LPP.pdf
_LPP.pdf_LPP.pdf
_LPP.pdf
 
Mechanical Design Engineer_Jignesh Bhagat
Mechanical Design Engineer_Jignesh BhagatMechanical Design Engineer_Jignesh Bhagat
Mechanical Design Engineer_Jignesh Bhagat
 
Car Care project feasibility
Car Care project feasibility Car Care project feasibility
Car Care project feasibility
 
Car care project feasibility study
Car care project feasibility studyCar care project feasibility study
Car care project feasibility study
 
CostAnalysis.ppt
CostAnalysis.pptCostAnalysis.ppt
CostAnalysis.ppt
 
Modeling and Performance Analysis of a Converted Electric Vehicle Using Forwa...
Modeling and Performance Analysis of a Converted Electric Vehicle Using Forwa...Modeling and Performance Analysis of a Converted Electric Vehicle Using Forwa...
Modeling and Performance Analysis of a Converted Electric Vehicle Using Forwa...
 

Dernier

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 

Dernier (20)

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 

Lingo tutorial 1

  • 1. Mathematical Modelling Basic Lingo Tutorial MA Ilhami adha@untirta.ac.id
  • 2. Mathematical Modelling (Neumaier, 2003) • A mathematical model is a description of a system using mathematical concepts and language Mathematical modeling is the art of translating problems from an application area into tractable mathematical formulations whose theoretical and numerical analysis provides insight, answers, and guidance useful for the originating application. • The creating of mathematical formulas to represent a real world problem in mathematical terms MA Ilhami
  • 3. Why Mathematical Model? • is indispensable in many applications • is successful in many further applications • gives precision and direction for problem solution • enables a thorough understanding of the system modeled • prepares the way for better design or control of a system • allows the efficient use of modern computing capabilities MA Ilhami
  • 4. Mathematical Models • First-Principle Model (Mechanistic Model): based on physical laws (newton equation). Descriptive, explaining. • Stochastic Model: based on distributions, averages (risk model, or machine’s reliability model). Capable to deal with random phenomena, hard to distinguish relations. • Empirical/data Model: based on (historical) patterns, data. Not explaining, relations based on reality. MA Ilhami
  • 5. Mathematical Model Cycles Specify the problem Set up a metaphor Formulate mathematical model Solve mathematical problem Interpret solution Compare with reality Use model to explain, predict, decide, or design Real World MA Ilhami
  • 6. 1. Specify the problem • You are a new student of industrial engineering master degree of UGM. You have two options, whether you are going to buy a used motorcycle or using Gojek as your daily driver? Model it using a mathematical model. • The problem is.. “What is cheaper whether to buy a used motorcycle of using Gojek as your daily driver? MA Ilhami
  • 7. 2. Set a metaphor (ex. Rich Picture) Gojek Rp. 10jt Bensin Service Cuci Motor Tambal Ban Spare part P Parking Fee For sale ? Campus activity Hangout MA Ilhami
  • 8. 2. Set a metaphor (ex. Influence Diagram) Total biaya transportasi lokal selama S2 Biaya investasi motor X1 = beli motor seken Biaya operasion al Biaya perawata n Biaya tak terduga Biaya Parkir Nilai jual kembali Biaya ke kampus via Gojek X2 = pakai Gojek Biaya hangout via Gojek Harga motor bekas Frekuensi isi bensin Biaya sekali isi bensin Frekuensi service Biaya sekali service Frekuensi cuci motor Biaya per cuci motor Frekuensi tambal ban Biaya tambal ban Frekuensi parkir Biaya sekali parkir Frekuensi ke kampus Biaya order ke kampus Frekuensi main/jalan Biaya order main Harga jual kembali Jumlah hari selama s2 Biaya cuci motor Frekuensi ganti part Biaya ganti sparepart MA Ilhami
  • 9. 3. Formulate Mathematical Model (Notations) No Parameter Simbol Nilai Satuan 1 Jumlah Hari selama S2 d 730 Hari 2 Harga motor seken Hm 10000000 Rp 3 Biaya isi bensin Bm 20000 Rp/isi 4 Frekuensi isi bensin Fb 3 Hari/isi 5 Biaya sekali service Bs 150000 Rp/service 6 Frekuensi service Fs 2 bulan/service 7 Biaya sekali cuci motor Bc 15000 Rp/cuci 8 Frekuensi cuci motor Fc 1 minggu/cuci 9 Biaya tambal ban Bt 25000 Rp/tambal 10 Frekuensi tambal ban Ft 6 bulan/tambal 11 Biaya sparepart Bsp 500000 Rp/ganti 12 Frekuensi ganti sparepart Fsp 6 bulan/ganti 13 Biaya parkir Bp 2000 Rp/minggu 14 Frekuensi parkir Fp 2 1/minggu 15 Harga jual kembali motor Hjm 8000000 Rp 16 Biaya rutin ke kampus Gojek Bo 7000 Rp/order 17 Frekuensi ke kampus Gojek Fo 2 kali/hari 18 Biaya hangout via gojek Ho 7000 Rp/order 19 Frekuensi order hangout Hf 4 kali/minggu No Variabel Keputusan Simbol Tipe 1 Keputusan membeli motor X1 Biner 2 Keputusan menggunakan Gojek X2 Biner Model assumptions: 1. there are 365 days a year, and in two years the student will definitely be graduated 2. A motorcycle's price is Rp. 10,000,000.00 on average and its depreciation is one million rupiahs a year. 3. The motorcycle will be sold at the end of the study. 4. You will always pay Rp. 20,000.00 each time you fill the gasoline. 5. etc... Model boundaries: 1. The student has two options only, which are buying a used motorcycle or using Gojek as a daily driver. 2. Etc… No Fungsi Tujuan Simbol Tipe 1 Biaya investasi motor BIM Riil 2 Biaya operasional motor BOM Riil 3 Biaya perawatan BPM Riil 4 Biaya rutin lainnya BRM Riil 5 Biaya tak terduga BTM Riil 6 Biaya parkir BPR Riil 7 Pendapatan penjualan motor PPM Riil 8 Biaya order Gojek BOG Riil 9 Biaya hangout Gojek BHG Riil MA Ilhami
  • 10. 3. Formulate Mathematical Model (Formulation) Biaya operational (BOM) = X1*(d/Fb)*Bm X1 = beli motor seken Biaya operasional Frekuensi isi bensin (Fb) Biaya sekali isi bensin (Bm) Jumlah hari selama s2 (d) Dimana: d = jumlah hari selama s2 (2 tahun x 365 = 730 hari) Fb = frekuensi isi bensi (3 hari sekali) Bm = biaya sekali isi bensin (Rp. 20.000) MA Ilhami
  • 11. 3. Formulate Mathematical Model (Formulation) X1 = beli motor seken Biaya perawatan Frekuensi service rutin (Fs) Biaya sekali service rutin (Bs) Jumlah hari selama s2 (d) Biaya perawatan (BPM) = X1*(d/(Fs*30))*Bs Dimana: d = jumlah hari selama s2 (2 tahun x 365 = 730 hari) Fs = frekuensi service (2 bulan sekali) Bs = biaya sekali service (Rp. 150.000,-) MA Ilhami
  • 12. 3. Formulate Mathematical Model (Formulation) Biaya dan Pendapatan Terkait Motor: Biaya operational (BOM) = X1*(d/Fb)*Bm Biaya investasi motor (BIM) = X1*Hm Biaya perawatan (BPM) = X1*(d/(Fs*30))*Bs Biaya rutin (BRM) = X1*((d/7)/Fc)*Bc Biaya tak terduga (BTM) = X1*((d/30)/(Fsp))*Bsp + X1*((d/30)/(Ft))*Bt Biaya parkir (BPR) = X1*((d/7)*Fp)*Bp Penjualan penjualan motor (PPM) = X1*Hjm Biaya dan Pendapatan Terkait Gojek: Biaya order Gojek (BOG) = X2*d*Fo*Bo Biaya hangout Gojek (BHG) = X2*d*Ho*Ho Objective Function = X1*(d/Fb)*Bm + X1*Hm + X1*(d/(Fs*30))*Bs + X1*((d/7)/Fc)*Bc + X1*((d/30)/(Fsp))*Bsp + X1*((d/30)/(Ft))*Bt + X1*((d/7)*Fp)*Bp - X1*Hjm + X2*d*Fo*Bo + X2*(Hf*d/7)*Ho Objective Function = BOM + BIM + BPM + BRM + BTM + BPR – PPM + BOG + BHG MA Ilhami
  • 13. 3. Formulate Mathematical Model (Constraints) Choice Constraint: only one choice may be selected X1 or X2 X1 + X2 = 1 Binary Constraint: the decision variables are binary. X1, X2 Є {0,1} MA Ilhami
  • 14. 4. Solve The Mathematical Problem (Using Lingo) Declaration of indexes or set of indexes Declaration of parameters Declaration of the objective function followed by constraints MA Ilhami
  • 15. 4. Solve The Mathematical Problem (Using Lingo) MA Ilhami
  • 16. 4. Solve The Mathematical Problem (Using Lingo) MA Ilhami
  • 17. 5. Interpret the solution Objective function reflects the cost we spend if the decision variable is selected (which is Rp. 12.802.260) The selected decision variable is X1 = 1 (we should by used motor cycle) MA Ilhami
  • 18. Let’s complicate the problem a little bit … Model assumptions: 1. There are 365 days a year, and in two years the student will definitely be graduated 2. A motorcycle's price is Rp. 10,000,000.00 on average and its depreciation is 1.2 million rupiahs a year. 3. The motorcycle will be sold at the end of the study. 4. You will always pay Rp. 20,000.00 each time you fill the gasoline. 5. etc... So the decisions become… Some parameters have changed… MA Ilhami
  • 19. Excel Dataset (Using Define Name) MA Ilhami
  • 20. The Modified Lingo Code… MA Ilhami
  • 21. The Solutions (in the orange table) MA Ilhami
  • 22. Sensitivity Analysis • Think several parameters that have significant effects on the decision or objective function. • Let say: Hjm (motor cycle’s selling price after 2 years) or Bm (Gasoline price). • Try to change the parameters’ value and draw a graphic of parameters and objective function. MA Ilhami
  • 23. Sensitivity of Hjmt(t = 1) Hjmt (t=1) 8,800,000 8,810,000 8,820,000 8,830,000 8,835,000 8,840,000 BELI MOTOR Bbesin - - - - 2,433,333 2,433,333 Bservice - - - - 912,500 912,500 Bcuci - - - - 782,143 782,143 Bpart - - - - 1,013,889 1,013,889 Btambal - - - - 50,694 50,694 Bparkir - - - - 208,571 208,571 Bmotor GOJEK Borderkampus 10,220,000 10,220,000 10,220,000 10,220,000 5,110,000 5,110,000 Bordermain 2,920,000 2,920,000 2,920,000 2,920,000 1,460,000 1,460,000 Hitung OF 13,140,000 13,140,000 13,140,000 13,140,000 13,136,131 13,131,131 X11 - - - - 1 1 X12 1 1 1 1 - - MA Ilhami