Professional Documents
Culture Documents
Integer: Programming
Integer: Programming
(IP(
Programming
4. Mathematical (MP)
programming
fixes
Max
S.t. 5t
FIR
constraint
set / feasible region.
then to is an
① LP is a
special case of MP.
(ii) S 32)
=
Ac 5.x
=
<, 0 3
② I:S = 2
"
IR"
IP:at is
Med least
one, but
not all
components of are
required to be
integers.
Ecco.
It
is
Pl P2 PS Pk
(thousand
cash
required 5 I 7 3
dollars (
13 15.
expected return 12 11
A project
can be selected or not. One can select
not a
S
let selected.
xj = 1,
if project;is
to 0, selected.
it project;is not
binaiy decision
variable.
Max
-
S.t.
-
?
-
Let's extend the fundamental model
by considering more constraints:
CK At 3
most be selected.
projects can
(2) Atmost
o ne
ofthe first
3
projects can be selected.
16) If Ps is selected,
not then PCis selected.
not
(I) eg
variable to take one
a
ofseveral values. on
Exercise
-
13].
se can
only take on values from 38:4. 8,
(B) restricting take
to on discontinuous values.
Exercise
-
M.
=> S. t. fix) b+M FE.
I it
y 0,
let =
fixes b is known to be active.
1. otherwise.
ify=a.
=>
S
-
it y 1, =
=>
:Ex
(B) Alternative constraint.
fiib, &
E fact) 1b2 &
&
if either &
or is
satisfied, but not
necessarily both,
we call,
S iffile=b,
Wi 0,
=
is active
1. otherwise
active
0, iffax) b,
wr =
= is
1. otherwise.
↳
f,(x) b,
I
=
+
MN,
f2(5) b2 MW2
=
+
Wi W2
+
= 1 ⑤
Wi 0
= or 1, =1.2.
I represented
Noting that can be
by
Wi W2 + =
1. => W2 1
=
-
W,
f,(x)
I
= b, MW,
+
=>
fz(x) b2
= M(1
+ -
Wis
Wi 0
= or 1.
IC) conditional constraint.:
implies false, 1b2.
if 2x, 3x,
+
> 2 then 5x2 -
7x3 3
This satisfied,
implication is not
only when
22. 3x232
+ & 522-7es > 3.
A B.
By Be
Morgan'slawis the
original
=>
constraint
is equivalentas
22 +
372 = 2. and /or 52-723= 3.
least
lat one
of them is active satisfieds).
->?
(D) K-fold alternative:
k
least
at of set constraints should be
suppose a of
satisfied.
Assume.:file, bi + MiF i
E active/satisfied.
let Wi = 0, if it should be
constraint
1, otherwise
then?
(IV) wear
functions
Pi P2 PS limitation.
machine rent
<per week) $200 $150 $100
labor
unit requirement. 3 his 2hrs 6hrs 150 his per week
unit
c ost $6 4
$ $8
$12 $8 $15.
selling price
profit.
27
2;be number
of Pjproduced in each week. j=1. 2. 3.
total revenue
I
cost
cost = -
Pi P2 PS
machine rent
<per week) $200 $150 $100
(j)
S Pjis
Let 0
yj = /
if not
produced.
1, otherwise.
S
rent
of machinej 0,
ifyj 0
=> = =
wj, if
yj 1.
=
weekly
=>
machine rent=
6x,
=
472 723 +
-
200y,
-
15072 -
100Ys.
P, P2 Ps Limitation
labor
unit requirement. 3 his 2hrs 6hrs 150 his week
per
200y,
-
15042-100Ys.
4x, +
3x2 42,
+
1160 (materials
yj. 0
= or 1,
j=1.2. 3.
Question:Is it a model?
correct
We should have that
if yj=0, then
2
= 0.
i.e. ifyj= 1,
x;0
S ifyj 0,xj = 0
=
to
byis bounded from
model this, assume above, i.e.
022; 1Mj.
Then,
ifyj = 1,
2;30 =
S 0235 Mj. =
ifyj 0,xj = 0
=
?
=>
IP
=> model:
Max 6x, +
472 723 +
-
200y,
-
15042 -
100Ys.
S.t. 32, +
2x2 + 623 2150 (labor)
4x, 3x2
+
42,
+
1160 (materials
0
12;< Mj yj j1.2.3
=
yj. 0
= or 1,
j=1.2. 3.
I.
In general, fixed cost
fixs
I
"+ dx, as
=
↳
x 0
=
(02x =
h>
(d>0>
I
Let
y 1, if 2x0
=
0,if x 0 =
then.
S
fix> - c dx,
+
ify 1 =
0,
ifI 0.
=
=> fixes cy + dx
S
=
02x = Uy
1.
y 0 or
=
(B) Piecewise linear curve.
interval.
asite
I 0
t
5 -
=
=
8220, 8,
if then 4 ⑫
S
=
8320, 82 6 ②
if then
=
S if
=
S2 =
0. =0 8.
=
4
lety,
G1,
=
if 82>0
wise.
->
83 0.0182 =6
=
G1.if
bt yz =
8330
0, otherwise.
8c 6.
if
I
yz = 1, y, 1, =
=
=
.
ify2 0,y, =
1,
=
0182
=
= 6
ify2 0, y, 0, 82 0.
=
=
=
=>
As for 83,
8320, 0283=5
if
I
or
y2 1.
=
->
if 83 =
0, 0r
yz = 0, 83
= 0
=
=>
x
+
S
= + + =
4y,f8,24,6y228226y1,0283-542.
y, F0 or 1, yz 0
=
or 1.
Verify:
y, yz P; =
=
=
y, 1,yz
= 0
=
=)
↑
y, 0,yz 1 =>
=
=
y, yz 1 =>
=
=
In general, N linear segments. (piecewise linear functions
0. otherwise.
Then, L, y, S, h
E
=
1St:
2nd wN-1th:
↳jyj =
8j=bjyj -
1
Nth: 0 = Sw = LYN-1
(2) 222,0 [x 3
=
y 9
=
I -
5
-
x,
x,81229
+
4x
= 7
if
S if
Wi -
1, 0 2=3 x, x 0 =x = 3
S
=
0, otherwise 0, otherwise
(if4 if42x17
=7 x,
E
r =
x x2 I
0. Other:se 0, otherwise
W3
E
1
if8 2x29 as
92, if82219
= -
0, otherwise 0, otherwise.
x=
=>
Question:How to model y?
I
0 or =
4 [x 17 or W2 1,
=
y 9-72
=
8 2x19 or WS =
1,
y =
-
5 +
23
y=
=>
Question:How to model is 22. 2s?
for 2,:
ifWi 1, 012, 13
=
S if W, 0,= x, 0
=
=>
-
for 22:
ifW2 1, 7
E
41x2 =
=>
=
if W2 0,xc 0
= =
for xe3,
ifWs 82 23 29
E
1,
=
=>
ifW3 0,
=
x3 0
=
->
-
in general,
(9W2 -x2) ( 5Ws + 23)
E
x x, xz x3, y 2x,
= + + + +
-
=
Wi +W2 +W3 = 1, Wi 0=
or 1.
ris
I0
x 0
=
fixes -
1 12x = 2
2, x 4
3 =