SlideShare a Scribd company logo
1 of 18
Download to read offline
Lecture 4: Min-Cost Linear Problems

                          Wai-Shing Luk (陆伟成)

                                 Fudan University


                              2012 年 8 月 13 日




W.-S. Luk (Fudan Univ.)    Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   1 / 18
Elementary Optimal Problems

Elementary Flow Problem:                       Elementary Potential Problem:

    min       dT x + p                                    max b T u − (c T y + q)
    s. t. c ≤ x,                                          s. t. y ≤ d,
              AT x = b, b(V ) = 0                                  Au = y

Theorem
The problems are dual to each other if
p + q = −c T d, (x − c)T (d − y ) = 0, c ≤ x, y ≤ d

Proof.
Since b T u = (AT x)T u = x T Au = x T y , [min] − [max] = (d T x + p) −
(b T u − [c T y + q]) = d T x + c T y − x T y + p + q = (x − c)T (d − y ) ≥ 0
[min] - [max] when equality holds.
   W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems         2012 年 8 月 13 日   2 / 18
Remark 1




  We can formulate a linear problem either in its primal form or in its
  dual form, depending on which one is more appropriate, for example,
         whether design variables are in integral domain:
                max-flow problem (i.e. d T = [−1, −1, · · · , −1]T ) may be better to be
                solved by a dual method.




W.-S. Luk (Fudan Univ.)       Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   3 / 18
Linear Optimal Problems

Optimal Flow Problem:                          Optimal Potential Problem:

    min       dT x + p                                    max b T u − (c T y + q)
    s. t. c − ≤ x ≤ c + ,                                 s. t. d − ≤ y ≤ d + ,
              AT x = b, b(V ) = 0                                  Au = y

By modifying the network:
     This problem can be reduced to the elementary case [?, pp.275–276]
     Piecewise linear convex cost can be reduced to this linear problem [?,
     p.239,p.260]

The problem has been studied extensively with a lot of applications.

   W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems        2012 年 8 月 13 日   4 / 18
Remark




  We can transform the cost function to be non-negative by reversing
  the orientation of the negative cost edges.
  Then reduce the problem to the elementary case.
  Most software packages only solve the problems in primal forms,
  usually with c − = 0.




W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   5 / 18
Algorithms for Optimal Flow Problems




  Successive shortest path algorithm
  Cycle cancellation method
         iteratively insert additional minimal flows according to a negative cycle
         of the residual network, until no negative cycle is found.




W.-S. Luk (Fudan Univ.)     Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   6 / 18
For Special Cases



  Max flow problem (d = −[1, · · · , 1])
         Ford-Fulkerson algorithm: iteratively insert additional minimal flows
         according to an argument path of the residual network, until no
         argument path of the residual network is found.
         Preflow Push-Relabel algorithm (dual method???)
  Matching problems ([c − , c + ] = [0, 1])
         Edmond’s blossom algorithm




W.-S. Luk (Fudan Univ.)    Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   7 / 18
Min-Cost Flow Problem (MCFP1)


     Consider:
                             min       dT x
                             s. t. 0 ≤ x ≤ c,
                                       AT x = b, b(V ) = 0
     where d is assumed to be non-negative.

Note: Optimal flow problem can be transformed into this problem by
letting x = x − c − .

     Algorithm idea: descent method: given a feasible x0 , find a better
     solution x1 = x0 + αp, where α is positive.


   W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   8 / 18
Review of General Descent Method



Input: f (x), initial x
Output: x ∗
while not converged do
    Choose descent direction p;
    Choose the step size α;
    x := x + αp;
end




   W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   9 / 18
Some Common Descent Directions




     For convex problems, the search direction must satisfy              f (x) · p < 0
     Gradient descent: p = − f (x)T
     Steepest descent: (complicated)
     Newton’s method: p = −           2 f (x)−1       f (x)

Note: Here, we have a natural way to choose p!




   W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   10 / 18
Min-Cost Flow Problem (MCFP1)



  Let x1 = x0 + αp, then we have:

                     min   d T x0 + αd T p                  ⇒ dT < 0
                     s. t. −x0 ≤ αp ≤ c − x0 ⇒ residual graph
                           AT p = 0                         ⇒ p is a cycle!

  In other words, choose p to be a negative cycle!
         Simple negative cycle, or
         Minimum mean cycle (c.f. Lecture 3)




W.-S. Luk (Fudan Univ.)       Lecture 4: Min-Cost Linear Problems       2012 年 8 月 13 日   11 / 18
Primal Method for MCFP1

Input: G (V , E ), c, d
Output: optimal opt x ∗
Initialize a feasible x and certain data structure;
while ( a negative cycle p found in G (x)) do
    Choose a step size α;
    If α is unbound, return UNBOUNDED;
    If α = 0, break;
    x := x + αp;
    Update corresponding data structures;
end
return OPTIMAL;

   W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   12 / 18
Remarks




  G (x) denotes the residual graph.
  Negative cycle can be found using Bellman-Ford-like algorithms (c.f.
  Lecture 2).
  A precede graph or other data structures are used for finding negative
  cycles efficiently.
  Usually α is chosen such that one constraint is tight.




W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   13 / 18
Dual Problem of MCFP1


  It is well known that the dual problem of MCFP1 is given by

                                 min       cT I
                                 s. t. y ≤ d + I ,
                                           Au = y
                                           I ≥0

  where I is a slack variable.
  Note: Delay padding problem can be formulated as this problem
  where I represents the buffer delay.



W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   14 / 18
Dual Problem of MCFP1 (cont’d)




  Note: The problem can be transformed into the elementary potential
  problem by splitting an edge between u(i) and u(j):

                           u(i) − u(h) = I (i, j)                                 (1)
                           u(h) − u(j) ≤ d(i, j)                                  (2)
                                   u(i) − u(h) ≥ 0                                (3)




W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   15 / 18
Min-Cost Potential Problem (MCPP)

  Consider:
                                          min       cT y
                                          s. t. y ≤ d,
                                                    Au = y
  where c is assumed to be non-negative.
  Algorithm idea: given an initial feasible u0 , find a better solution
  u1 = u0 + βq, where β is positive:

                          min   c T y0 + c T y          ⇒ cT y < 0
                          s. t. y ≤ d − Au0 ⇒ residual graph
                                βAq = y                 ⇒ q is a “cut”!


W.-S. Luk (Fudan Univ.)         Lecture 4: Min-Cost Linear Problems       2012 年 8 月 13 日   16 / 18
Method for MCPP

Input: G (V , E ), c, d
Output: optimal value OPT, u ∗
Initialize a feasible u and certain data structure;
while ( a negative cut q found in G (u)) do
    Choose a step size β;
    If β is unbounded,return UNBOUNDED;
    If β = 0, break;
    u := u + βq;
    Update corresponding data structures;
end
return OPTIMAL;

   W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   17 / 18
Remarks




  Usually β is chosen such that one constraint is tight.
  Min-cost potential problem is a dual of min-cost flow problem, hence
  algorithms can solve both problems.




W.-S. Luk (Fudan Univ.)   Lecture 4: Min-Cost Linear Problems   2012 年 8 月 13 日   18 / 18

More Related Content

What's hot

MCMC and likelihood-free methods
MCMC and likelihood-free methodsMCMC and likelihood-free methods
MCMC and likelihood-free methodsChristian Robert
 
Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...Asma Ben Slimene
 
Loss Calibrated Variational Inference
Loss Calibrated Variational InferenceLoss Calibrated Variational Inference
Loss Calibrated Variational InferenceTomasz Kusmierczyk
 
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...Joe Suzuki
 
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...Joe Suzuki
 
A Conjecture on Strongly Consistent Learning
A Conjecture on Strongly Consistent LearningA Conjecture on Strongly Consistent Learning
A Conjecture on Strongly Consistent LearningJoe Suzuki
 
ABC-Xian
ABC-XianABC-Xian
ABC-XianDeb Roy
 
Intro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMIntro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMNYC Predictive Analytics
 
LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013mikhailkonnik
 
Approximation in Stochastic Integer Programming
Approximation in Stochastic Integer ProgrammingApproximation in Stochastic Integer Programming
Approximation in Stochastic Integer ProgrammingSSA KPI
 

What's hot (20)

QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
MCMC and likelihood-free methods
MCMC and likelihood-free methodsMCMC and likelihood-free methods
MCMC and likelihood-free methods
 
Lecture2 xing
Lecture2 xingLecture2 xing
Lecture2 xing
 
Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...
 
Loss Calibrated Variational Inference
Loss Calibrated Variational InferenceLoss Calibrated Variational Inference
Loss Calibrated Variational Inference
 
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...
A Generalization of Nonparametric Estimation and On-Line Prediction for Stati...
 
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
A Generalization of the Chow-Liu Algorithm and its Applications to Artificial...
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
A Conjecture on Strongly Consistent Learning
A Conjecture on Strongly Consistent LearningA Conjecture on Strongly Consistent Learning
A Conjecture on Strongly Consistent Learning
 
ABC-Xian
ABC-XianABC-Xian
ABC-Xian
 
Intro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVMIntro to Classification: Logistic Regression & SVM
Intro to Classification: Logistic Regression & SVM
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
QMC: Operator Splitting Workshop, Compactness Estimates for Nonlinear PDEs - ...
QMC: Operator Splitting Workshop, Compactness Estimates for Nonlinear PDEs - ...QMC: Operator Splitting Workshop, Compactness Estimates for Nonlinear PDEs - ...
QMC: Operator Splitting Workshop, Compactness Estimates for Nonlinear PDEs - ...
 
Bayesian computation with INLA
Bayesian computation with INLABayesian computation with INLA
Bayesian computation with INLA
 
Chapter 26 aoa
Chapter 26 aoaChapter 26 aoa
Chapter 26 aoa
 
LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013
 
Nested sampling
Nested samplingNested sampling
Nested sampling
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
Chapter 23 aoa
Chapter 23 aoaChapter 23 aoa
Chapter 23 aoa
 
Approximation in Stochastic Integer Programming
Approximation in Stochastic Integer ProgrammingApproximation in Stochastic Integer Programming
Approximation in Stochastic Integer Programming
 

Viewers also liked

Programación Lineal de un diagrama de red para un problema de Flujo Máximo a ...
Programación Lineal de un diagrama de red para un problema de Flujo Máximo a ...Programación Lineal de un diagrama de red para un problema de Flujo Máximo a ...
Programación Lineal de un diagrama de red para un problema de Flujo Máximo a ...ADRIANA NIETO
 
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Dave Stokes
 
Flujo a costo minimo
Flujo a costo minimoFlujo a costo minimo
Flujo a costo minimoeduardo307
 
Flujo máximo teoria de redes
Flujo máximo teoria de redesFlujo máximo teoria de redes
Flujo máximo teoria de redesADRIANA NIETO
 

Viewers also liked (7)

Graph Theory and Databases
Graph Theory and DatabasesGraph Theory and Databases
Graph Theory and Databases
 
Programación Lineal de un diagrama de red para un problema de Flujo Máximo a ...
Programación Lineal de un diagrama de red para un problema de Flujo Máximo a ...Programación Lineal de un diagrama de red para un problema de Flujo Máximo a ...
Programación Lineal de un diagrama de red para un problema de Flujo Máximo a ...
 
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016
 
Flujo a costo minimo
Flujo a costo minimoFlujo a costo minimo
Flujo a costo minimo
 
13 problema de redes
13 problema de redes13 problema de redes
13 problema de redes
 
Flujo máximo teoria de redes
Flujo máximo teoria de redesFlujo máximo teoria de redes
Flujo máximo teoria de redes
 
Metodo De Transporte & Transbordo
Metodo De Transporte & TransbordoMetodo De Transporte & Transbordo
Metodo De Transporte & Transbordo
 

Similar to Lec04 min cost linear problems

Lec02 feasibility problems
Lec02 feasibility problemsLec02 feasibility problems
Lec02 feasibility problemsDanny Luk
 
Lec05 convex pwl problems
Lec05 convex pwl problemsLec05 convex pwl problems
Lec05 convex pwl problemsDanny Luk
 
lec05 Convex PWL Problems.pdf
lec05 Convex PWL Problems.pdflec05 Convex PWL Problems.pdf
lec05 Convex PWL Problems.pdfDanny Luk
 
UNIT-II.pptx
UNIT-II.pptxUNIT-II.pptx
UNIT-II.pptxJyoReddy9
 
A study of the worst case ratio of a simple algorithm for simple assembly lin...
A study of the worst case ratio of a simple algorithm for simple assembly lin...A study of the worst case ratio of a simple algorithm for simple assembly lin...
A study of the worst case ratio of a simple algorithm for simple assembly lin...narmo
 
Distributed solution of stochastic optimal control problem on GPUs
Distributed solution of stochastic optimal control problem on GPUsDistributed solution of stochastic optimal control problem on GPUs
Distributed solution of stochastic optimal control problem on GPUsPantelis Sopasakis
 
[AAAI2021] Combinatorial Pure Exploration with Full-bandit or Partial Linear ...
[AAAI2021] Combinatorial Pure Exploration with Full-bandit or Partial Linear ...[AAAI2021] Combinatorial Pure Exploration with Full-bandit or Partial Linear ...
[AAAI2021] Combinatorial Pure Exploration with Full-bandit or Partial Linear ...Yuko Kuroki (黒木祐子)
 
test pre
test pretest pre
test prefarazch
 
Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3Fabian Pedregosa
 
A Parallel Branch And Bound Algorithm For The Quadratic Assignment Problem
A Parallel Branch And Bound Algorithm For The Quadratic Assignment ProblemA Parallel Branch And Bound Algorithm For The Quadratic Assignment Problem
A Parallel Branch And Bound Algorithm For The Quadratic Assignment ProblemMary Calkins
 
598Lecture12.pdf
598Lecture12.pdf598Lecture12.pdf
598Lecture12.pdf以良 方
 
04 greedyalgorithmsii 2x2
04 greedyalgorithmsii 2x204 greedyalgorithmsii 2x2
04 greedyalgorithmsii 2x2MuradAmn
 
Unit 3 - Greedy Method
Unit 3  - Greedy MethodUnit 3  - Greedy Method
Unit 3 - Greedy MethodMaryJacob24
 
Unit 3 greedy method
Unit 3  greedy methodUnit 3  greedy method
Unit 3 greedy methodMaryJacob24
 
An Algorithm For The Combined Distribution And Assignment Problem
An Algorithm For The Combined Distribution And Assignment ProblemAn Algorithm For The Combined Distribution And Assignment Problem
An Algorithm For The Combined Distribution And Assignment ProblemAndrew Parish
 

Similar to Lec04 min cost linear problems (20)

Lec02 feasibility problems
Lec02 feasibility problemsLec02 feasibility problems
Lec02 feasibility problems
 
Lec05 convex pwl problems
Lec05 convex pwl problemsLec05 convex pwl problems
Lec05 convex pwl problems
 
lec05 Convex PWL Problems.pdf
lec05 Convex PWL Problems.pdflec05 Convex PWL Problems.pdf
lec05 Convex PWL Problems.pdf
 
UNIT-II.pptx
UNIT-II.pptxUNIT-II.pptx
UNIT-II.pptx
 
A
AA
A
 
A study of the worst case ratio of a simple algorithm for simple assembly lin...
A study of the worst case ratio of a simple algorithm for simple assembly lin...A study of the worst case ratio of a simple algorithm for simple assembly lin...
A study of the worst case ratio of a simple algorithm for simple assembly lin...
 
Distributed solution of stochastic optimal control problem on GPUs
Distributed solution of stochastic optimal control problem on GPUsDistributed solution of stochastic optimal control problem on GPUs
Distributed solution of stochastic optimal control problem on GPUs
 
QMC: Transition Workshop - Importance Sampling the Union of Rare Events with ...
QMC: Transition Workshop - Importance Sampling the Union of Rare Events with ...QMC: Transition Workshop - Importance Sampling the Union of Rare Events with ...
QMC: Transition Workshop - Importance Sampling the Union of Rare Events with ...
 
[AAAI2021] Combinatorial Pure Exploration with Full-bandit or Partial Linear ...
[AAAI2021] Combinatorial Pure Exploration with Full-bandit or Partial Linear ...[AAAI2021] Combinatorial Pure Exploration with Full-bandit or Partial Linear ...
[AAAI2021] Combinatorial Pure Exploration with Full-bandit or Partial Linear ...
 
test pre
test pretest pre
test pre
 
Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3
 
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
QMC: Operator Splitting Workshop, A Splitting Method for Nonsmooth Nonconvex ...
 
A Parallel Branch And Bound Algorithm For The Quadratic Assignment Problem
A Parallel Branch And Bound Algorithm For The Quadratic Assignment ProblemA Parallel Branch And Bound Algorithm For The Quadratic Assignment Problem
A Parallel Branch And Bound Algorithm For The Quadratic Assignment Problem
 
PCA on graph/network
PCA on graph/networkPCA on graph/network
PCA on graph/network
 
598Lecture12.pdf
598Lecture12.pdf598Lecture12.pdf
598Lecture12.pdf
 
04 greedyalgorithmsii 2x2
04 greedyalgorithmsii 2x204 greedyalgorithmsii 2x2
04 greedyalgorithmsii 2x2
 
Unit 3 - Greedy Method
Unit 3  - Greedy MethodUnit 3  - Greedy Method
Unit 3 - Greedy Method
 
Unit 3 greedy method
Unit 3  greedy methodUnit 3  greedy method
Unit 3 greedy method
 
An Algorithm For The Combined Distribution And Assignment Problem
An Algorithm For The Combined Distribution And Assignment ProblemAn Algorithm For The Combined Distribution And Assignment Problem
An Algorithm For The Combined Distribution And Assignment Problem
 
Modified Method for Fixed Charge Transportation Problem
Modified Method for Fixed Charge Transportation ProblemModified Method for Fixed Charge Transportation Problem
Modified Method for Fixed Charge Transportation Problem
 

More from Danny Luk

Sampling with Halton Points on n-Sphere
Sampling with Halton Points on n-SphereSampling with Halton Points on n-Sphere
Sampling with Halton Points on n-SphereDanny Luk
 
Cyclic quorum
Cyclic quorumCyclic quorum
Cyclic quorumDanny Luk
 
Lec01 network flows
Lec01 network flowsLec01 network flows
Lec01 network flowsDanny Luk
 
Lec00 generalized network flows
Lec00 generalized network flowsLec00 generalized network flows
Lec00 generalized network flowsDanny Luk
 
Lec03 parametric problems
Lec03 parametric problemsLec03 parametric problems
Lec03 parametric problemsDanny Luk
 
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-TreeFast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-TreeDanny Luk
 
Double patterning (4/20 update)
Double patterning (4/20 update)Double patterning (4/20 update)
Double patterning (4/20 update)Danny Luk
 
Double Patterning
Double PatterningDouble Patterning
Double PatterningDanny Luk
 
Double Patterning (4/2 update)
Double Patterning (4/2 update)Double Patterning (4/2 update)
Double Patterning (4/2 update)Danny Luk
 
Double Patterning
Double PatterningDouble Patterning
Double PatterningDanny Luk
 

More from Danny Luk (10)

Sampling with Halton Points on n-Sphere
Sampling with Halton Points on n-SphereSampling with Halton Points on n-Sphere
Sampling with Halton Points on n-Sphere
 
Cyclic quorum
Cyclic quorumCyclic quorum
Cyclic quorum
 
Lec01 network flows
Lec01 network flowsLec01 network flows
Lec01 network flows
 
Lec00 generalized network flows
Lec00 generalized network flowsLec00 generalized network flows
Lec00 generalized network flows
 
Lec03 parametric problems
Lec03 parametric problemsLec03 parametric problems
Lec03 parametric problems
 
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-TreeFast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
Fast and Lossless Graph Division Method for Layout Decomposition Using SPQR-Tree
 
Double patterning (4/20 update)
Double patterning (4/20 update)Double patterning (4/20 update)
Double patterning (4/20 update)
 
Double Patterning
Double PatterningDouble Patterning
Double Patterning
 
Double Patterning (4/2 update)
Double Patterning (4/2 update)Double Patterning (4/2 update)
Double Patterning (4/2 update)
 
Double Patterning
Double PatterningDouble Patterning
Double Patterning
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

Lec04 min cost linear problems

  • 1. Lecture 4: Min-Cost Linear Problems Wai-Shing Luk (陆伟成) Fudan University 2012 年 8 月 13 日 W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 1 / 18
  • 2. Elementary Optimal Problems Elementary Flow Problem: Elementary Potential Problem: min dT x + p max b T u − (c T y + q) s. t. c ≤ x, s. t. y ≤ d, AT x = b, b(V ) = 0 Au = y Theorem The problems are dual to each other if p + q = −c T d, (x − c)T (d − y ) = 0, c ≤ x, y ≤ d Proof. Since b T u = (AT x)T u = x T Au = x T y , [min] − [max] = (d T x + p) − (b T u − [c T y + q]) = d T x + c T y − x T y + p + q = (x − c)T (d − y ) ≥ 0 [min] - [max] when equality holds. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 2 / 18
  • 3. Remark 1 We can formulate a linear problem either in its primal form or in its dual form, depending on which one is more appropriate, for example, whether design variables are in integral domain: max-flow problem (i.e. d T = [−1, −1, · · · , −1]T ) may be better to be solved by a dual method. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 3 / 18
  • 4. Linear Optimal Problems Optimal Flow Problem: Optimal Potential Problem: min dT x + p max b T u − (c T y + q) s. t. c − ≤ x ≤ c + , s. t. d − ≤ y ≤ d + , AT x = b, b(V ) = 0 Au = y By modifying the network: This problem can be reduced to the elementary case [?, pp.275–276] Piecewise linear convex cost can be reduced to this linear problem [?, p.239,p.260] The problem has been studied extensively with a lot of applications. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 4 / 18
  • 5. Remark We can transform the cost function to be non-negative by reversing the orientation of the negative cost edges. Then reduce the problem to the elementary case. Most software packages only solve the problems in primal forms, usually with c − = 0. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 5 / 18
  • 6. Algorithms for Optimal Flow Problems Successive shortest path algorithm Cycle cancellation method iteratively insert additional minimal flows according to a negative cycle of the residual network, until no negative cycle is found. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 6 / 18
  • 7. For Special Cases Max flow problem (d = −[1, · · · , 1]) Ford-Fulkerson algorithm: iteratively insert additional minimal flows according to an argument path of the residual network, until no argument path of the residual network is found. Preflow Push-Relabel algorithm (dual method???) Matching problems ([c − , c + ] = [0, 1]) Edmond’s blossom algorithm W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 7 / 18
  • 8. Min-Cost Flow Problem (MCFP1) Consider: min dT x s. t. 0 ≤ x ≤ c, AT x = b, b(V ) = 0 where d is assumed to be non-negative. Note: Optimal flow problem can be transformed into this problem by letting x = x − c − . Algorithm idea: descent method: given a feasible x0 , find a better solution x1 = x0 + αp, where α is positive. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 8 / 18
  • 9. Review of General Descent Method Input: f (x), initial x Output: x ∗ while not converged do Choose descent direction p; Choose the step size α; x := x + αp; end W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 9 / 18
  • 10. Some Common Descent Directions For convex problems, the search direction must satisfy f (x) · p < 0 Gradient descent: p = − f (x)T Steepest descent: (complicated) Newton’s method: p = − 2 f (x)−1 f (x) Note: Here, we have a natural way to choose p! W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 10 / 18
  • 11. Min-Cost Flow Problem (MCFP1) Let x1 = x0 + αp, then we have: min d T x0 + αd T p ⇒ dT < 0 s. t. −x0 ≤ αp ≤ c − x0 ⇒ residual graph AT p = 0 ⇒ p is a cycle! In other words, choose p to be a negative cycle! Simple negative cycle, or Minimum mean cycle (c.f. Lecture 3) W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 11 / 18
  • 12. Primal Method for MCFP1 Input: G (V , E ), c, d Output: optimal opt x ∗ Initialize a feasible x and certain data structure; while ( a negative cycle p found in G (x)) do Choose a step size α; If α is unbound, return UNBOUNDED; If α = 0, break; x := x + αp; Update corresponding data structures; end return OPTIMAL; W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 12 / 18
  • 13. Remarks G (x) denotes the residual graph. Negative cycle can be found using Bellman-Ford-like algorithms (c.f. Lecture 2). A precede graph or other data structures are used for finding negative cycles efficiently. Usually α is chosen such that one constraint is tight. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 13 / 18
  • 14. Dual Problem of MCFP1 It is well known that the dual problem of MCFP1 is given by min cT I s. t. y ≤ d + I , Au = y I ≥0 where I is a slack variable. Note: Delay padding problem can be formulated as this problem where I represents the buffer delay. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 14 / 18
  • 15. Dual Problem of MCFP1 (cont’d) Note: The problem can be transformed into the elementary potential problem by splitting an edge between u(i) and u(j): u(i) − u(h) = I (i, j) (1) u(h) − u(j) ≤ d(i, j) (2) u(i) − u(h) ≥ 0 (3) W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 15 / 18
  • 16. Min-Cost Potential Problem (MCPP) Consider: min cT y s. t. y ≤ d, Au = y where c is assumed to be non-negative. Algorithm idea: given an initial feasible u0 , find a better solution u1 = u0 + βq, where β is positive: min c T y0 + c T y ⇒ cT y < 0 s. t. y ≤ d − Au0 ⇒ residual graph βAq = y ⇒ q is a “cut”! W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 16 / 18
  • 17. Method for MCPP Input: G (V , E ), c, d Output: optimal value OPT, u ∗ Initialize a feasible u and certain data structure; while ( a negative cut q found in G (u)) do Choose a step size β; If β is unbounded,return UNBOUNDED; If β = 0, break; u := u + βq; Update corresponding data structures; end return OPTIMAL; W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 17 / 18
  • 18. Remarks Usually β is chosen such that one constraint is tight. Min-cost potential problem is a dual of min-cost flow problem, hence algorithms can solve both problems. W.-S. Luk (Fudan Univ.) Lecture 4: Min-Cost Linear Problems 2012 年 8 月 13 日 18 / 18