CS/ECE/ISyE 524 Introduction to Optimization Spring 2017–18
- 22. More models, QAP and SOS
❼ Quadratic assignment problems ❼ SOS1 constraints ❼ SOS2 constraints ❼ General piecewise linear functions
Laurent Lessard (www.laurentlessard.com)
22. More models, QAP and SOS Quadratic assignment problems SOS1 - - PowerPoint PPT Presentation
CS/ECE/ISyE 524 Introduction to Optimization Spring 201718 22. More models, QAP and SOS Quadratic assignment problems SOS1 constraints SOS2 constraints General piecewise linear functions Laurent Lessard
CS/ECE/ISyE 524 Introduction to Optimization Spring 2017–18
Laurent Lessard (www.laurentlessard.com)
22-2
22-3
L
S
S
L
S
L
22-4
x
S
L
S
L
L
S
22-5
x,z
S
L
S
L
L
S
22-6
◮ ( =
◮ ( ⇐
22-7
x,z
S
L
S
L
L
S
22-8
◮ fij is the number of wires between module i and module j ◮ dij distance between positions i and j on the backplate. ◮ Minimize total length of wire used.
22-9
◮ It makes your code run faster ◮ It makes your code easier to understand
22-10
22-11
i=1 xiλi and y = m i=1 aiλi.
22-12
m
m
m
m
22-13
22-14
i=1 xiλi and y = m i=1 aiλi with m i=1 λi = 1.
22-15
i=1 zi = 1.
22-16
m
m
m
m
m−1
22-17
s e g m e n t 1 segment 2 segment 3 s e g m e n t 4
22-18
◮ zi, a binary variable that selects whether segment i is active
◮ λi, a nonnegative real variable that chooses how far along
◮ x = m
i=1(zixi + sign(ℓi)λi), f = m i=1(zifi + sign(ℓi)giλi)
◮ zi ∈ {0, 1} and m
i=1 zi = 1
◮ 0 ≤ λi ≤ |ℓi|. ◮ if zi = 0 then λi = 0. (this is tricky!)
22-19
22-20