Beruflich Dokumente
Kultur Dokumente
Introduction to System
Modelling and Optimization
Annisa Uswatun Khasanah
System modeling
System
Model
Whats a model?
min t n
subject to
t j t i pi
ti 0
(i, j ) A
iN
t j t i pi t i t j p j
(i, j ) E k , k M
Representation of a system
Simple
Easy to play
Safer to test
Low-cost
Design
Analysis
Control
Experimental
design
Uses of
modeling
Finance
Research
Optimization
What is optimization?
Scientific methods to solve problems
in order to find solutions which best
serve the purposes
Scientific method: an organized approach to
the problem
Build mathematical model to describe the
system
Goal:
minimize the effort required
maximize benefit desired
Why optimization?
Desired goal may not be achievable, and
so we try to get as close as possible to
it.
There may be more ways to achieve the
goal, and so we can choose one by
assigning a quality to all the solutions
and selecting the best one.
We may not know how to solve the
system of equations f(x) = 0, so instead
we minimize the norm If(x)I, which is a
scalar function of the unknown vector x.
Some definitions
Decision variable
Decision variable is always involved with a
trade-off
Changing the value of a variable may bring
benefits in one part of the system but has
detrimental effects in other parts
There must be an optimum value for the
decision variable need to be optimized
5 steps in optimization
1. Formulation of the problem
Someone has an objective to be achieved
The decision maker must have a choice of
behavior
There must be some doubt as to which
course of action is best in terms of decision
makers objective
There must be an environment to which the
problem is relevant
www.themegallery.com
Sumber
daya
Produk
A
Kapasitas
B
30
1500
40
20
2500
20
25
2000
Keuntungan
/unit
Rp 200
Rp 160
www.themegallery.com
www.themegallery.com
Batasan
30 X1 1500
40 X1 + 20 X2 2500
20 X1 + 25 X2 2000
X1, X2 > 0
www.themegallery.com
How to Solve?
Graphical solution
Simplex Method
www.themegallery.com
Graphical Solution
Find all pairs of (x1, x2) which satisfy
each constraint separately
Find all pairs of (x1, x2) which satisfy
all constraints. That is, find set of
feasible solutions
Choose the one which gives the max
value of objective function
www.themegallery.com
www.themegallery.com
Produk
A
Kapasitas
B
30
1500
40
20
2500
20
25
2000
Keuntungan
/unit
Rp 200
Rp 160
www.themegallery.com
www.themegallery.com
X1
62,5
X2
125
X1
100
X2
80
www.themegallery.com
www.themegallery.com
www.themegallery.com
Max z = 3 x1 + 2 x2
Subject to
2 x 1 + x2 2
3 x1 + 4 x2 12
x1, x2 0
Max z = 2 x1 + x2
Subject to
x1 - x2 10
2 x1 - x2 40
x1, x2 0
PR
1.
Kain Wol
Maksimum
Penyediaan
2
2
3
2
1
60 kg
30 kg
40 kg
Rp 40
Rp 30
www.themegallery.com
Vitamin
(unit)
Protein
(unit)
Royal Bee
100
Royal Jelly
80
Minimum
Kebutuhan
12
www.themegallery.com
Simplex method
3. Stop
x1
x2
s1
s2
RHS
-7
-10
S1
24
24/4=6
S2
13
13/5=2.6
Pivot row
Pivot element
Ratio
x1
x2
s1
s2
RHS
-3
26
S1
17/5
-4/5
68/5
(68/5)/(17/5)=4
X2
2/5
1/5
13/5
(13/5)/(2/5)=6.5
Ratio
Apply Gauss-Jourdan
elimination to other cells
Gauss-Jordan Elimination
New value = old value (new value of
element in the pivot row in the
respective column)(old value of the
pivot column in the respective row)
Example: cell s1 x1
new value = 5 (2/5)(4)
= 17/5
x1
x2
s1
s2
RHS
15/17
22/17
38
X1
5/17
-4/17
X2
-2/17
5/17
Since all the coefficients in Row (0) are now all non-negative, the
current solution is optimal
Simplex summary
At each iteration, all variables are
partitioned into 2 classes as shown
below:
z cjxj
max
j 1
Subject to :
n
a x
j 1
ij
x j 0,
si bi
i 1,2,..., m
j 1,..., n
x1
x2
s1
s2
r1
RHS
Ratio
-5
-4
-24
r1
-1
24
24/5=4.8
S2
13
13/2=6.5
x1
x2
s1
s2
r1
RHS
x1
4/5
-1/5
1/5
24/5
S2
17/5
2/5
-2/5
3.4
x1
x2
s1
s2
RHS
Ratio
-22/5
-7/5
33.6
x1
4/5
-1/5
4.8
4.8/0.8=6
S2
17/5
2/5
3.4
3.4/3.4=1
x1
x2
s1
s2
RHS
Ratio
-15/17
22/17
38
x1
-5/17
-4/17
x2
2/17
5/17
17/2
x1
x2
s1
s2
RHS
15/2
7/2
45.5
x1
5/2
s1
17/2
5/2
17/2
Since all the coefficients in Row(0) are now all nonnegative, the
current solution to the Phase-II LP problem is optimal.
LOGO
Thank You!