Uid : 20211318
Name : Sungmin Kang
¡® I keep the promises between
Prof. and I ¡®
H.W
8
H.W
7
clear all; close all; clc;
lambda = 7;
mu = 5;
d = 3;
g_fast = 2;
g_slow = 1;
nu_fast = 5;
nu_slow = 10;
maximumwip = 5;
a =
[7 -5 0 0 0 0;-7 12 -5 0 0 0;0 -7 12 -5 0 0;0 0 -7 12 -5 0;
0
0 0 -7 12 -5;1 1 1 1 1 1];
b = [0; 0; 0; 0; 0; 1];
a2 =
[7 -3 0 0 0 0;-7 10 -3 0 0 0;0 -7 10 -3 0 0;0 0 -7 10 -3 0;
0
0 0 -7 10 -3;1 1 1 1 1 1];
b2 = [0; 0; 0; 0; 0; 1];
p = inv(a)*b
p2 = inv(a2)*b2
wip = [0 1 2 3 4 5]*(p + p2)
th = lambda;
ct = wip/th;
wip_q = min(wip, maximumwip)
wip_s = wip- wip_q
ct_s = wip_s/th
ct_q = wip_q/¼Ò
H.W
6
Shortage
= Demand – (W/I + EoH)
PTF
= 14W ~ 17W
PTF
= 14W ~ 19W
H.W
5
.
**
ºÎÇ°ÀÌ ÃæºÐÇÏÁö ¾ÊÀ¸¹Ç·Î ¹Ù·Î »ý»êÇÒ ¼ö ¾ø¾î
ºÎÇ°ÀÌ º¸³»Áø 2ÁÖµÚ¿¡ »ý»êÇؼ Shipment°¡ °¡´ÉÇϹǷÎ
Á¦Ç° »ý»ê,À¯Åë¿¡ ÃÑ 5ÁÖ°¡
°É¸°´Ù.
H.W
4
Maximum
Flow
f = [ 0 0 0 0 0 0 0 0 0
0 0 0 -1 -1 -1 -1 ];
a = eye(16,16)
b = [15
; 13; 20; 10; 4; 14; 12; 11; 7; 30; 25; 32; 10; 19; 18; 16;]
aeq = [ 1 1 1 1 1 0 0 0 0 0 0 0 -1 -1 -1 -1;
1 0 0 0 0 -1 0 0 0 0 0
0 0 0 0 0;
0 1 0 0 0 0 1 -1 0 0 0
0 0 0 0 0;
0 0 1 0 0 0 0 0 -1 0 0
0 0 0 0 0;
0 0 0 1 0 0 0 0 0 1 -1
0 0 0 0 0;
0 0 0 0 1 0 0 0 0 0 0
-1 0 0 0 0;
0 0 0 0 0 1 -1 0 0 0 0
0 -1 0 0 0;
0 0 0 0 0 0 0 1 0 0 0 0
0 -1 0 0;
0 0 0 0 0 0 0 0 1 -1 0
0 0 0 -1 0;
0 0 0 0 0 0 0 0 0 0 1 1
0 0 0 -1;];
beq = zeros(1, 10)
lb = zeros(1, 16)
ub = ones(1,16)
[sol] = linprog(f,a,b,aeq,beq,lb,ub)
Sol
H.W
3
Network--
Object
to-
sub
Subject
to
H.W
2
H.W
1