Download presentation
Presentation is loading. Please wait.
1
Chapter 1. Formulations
2
Integer Optimization Problem (IP)
Mixed Integer Optimization Problem (or (Linear) Mixed Integer Program, MIP) min π β² π₯+ π β² π¦ π΄π₯+π΅π¦=π (or π΄π₯+π΅π¦β€π) π₯β π + π , π¦β π
+ π , where π΄β π πΓπ , π΅β π πΓπ , πβ π π , πβ π π , πβ π π Integer Optimization Problem (IP) min π β² π₯ π΄π₯=π π₯β π + π Binary (or zero-one) Integer Optimization Problem (BIP) π₯β 0, 1 π ( or π₯β π΅ π ) Integer Programming 2013
3
Combinatorial Optimization Problem
Given a finite set π= 1,β¦,π , weights π π for each πβπ, and a set πΉ of feasible subsets of π. Want to find a minimum (or maximum) weight feasible subset in πΉ. (COP) min πβπ πβπ π π :πβπΉ Almost all COPs can be formulated as IP or BIP Knapsack problem, Traveling Salesman Problem, Min/Max cut of graph, Stable set, Steiner Tree, β¦ Integer Programming 2013
4
Applications Numerous applications
Transportation (train scheduling) Airline crew scheduling, plane scheduling Production planning, distribution, SCM, logistics Energy, Eletricity generation planning Telecommunicaton network design, operation Buses for the handicapped Ground holding of aircraft Cutting problems β¦. Too many to list. Provides very strong modeling capabilities (much better than LP alone), but usually difficult to solve (The solution set is not convex) linear ο« nonlinear, convex ο« non-convex Recent advances in theory and software makes IP a practical option. Integer Programming 2013
5
1.1 Modeling Techniques Steps
Define necessary variables Define (construct) constraints so that feasible points correspond to the feasible solutions of the problem Define objective function May exist many correct, but different formulations. Needs creativity. Which formulation is better? Frequently, use incidence vectors to denote sets πβπ, incidence vector of π is πβdimensional vector π₯π such that π₯ π π =1 if πβπ and π₯ π π =0 otherwise. Integer Programming 2013
6
Binary choice The 0-1 knapsack problem π items
π€ π is the weight of item π, and π π is its value Bound π on the weight that can be carried in a knapsack Select items to be put in the knapsack so that the total value is maximum. π₯ π =1 if item π is selected, and π₯ π =0 otherwise The capacity bound cannot be exceeded: π=1 π π π π₯ π β€π Variables are 0-1: π₯ π β 0, 1 for π=1,β¦,π Total value is maximized: max π=1 π π π π₯ π Integer Programming 2013
7
Variations Integer knapsack problem
Precedence constrained knapsack problem Partial orders on projects project π must be done to perform project π ( πβπ ) ( can be represented as directed graph, use π₯ π β₯ π₯ π in constraints (π₯: binary)) ex) repair kit selection, selecting tools for FMS tool magazine, open pit mining, β¦ Quadratic knapsack problem: Objective is quadratic function Integer Programming 2013
8
Boolean Quadratic Function
max π π₯ = π=1 π π π π₯ π + π,π,πβ π π ππ π₯ π π₯ π , π₯ π β 0,1 for all π. ( use additional variables π¦ ππ , such that π¦ ππ = π₯ π π₯ π for binary π₯. Extended formulation.) ο max π=1 π π π π₯ π + π,π,πβ π π ππ π¦ ππ π₯ π + π₯ π β π¦ ππ β€1 β π₯ π + π¦ ππ β€0 β π₯ π + π¦ ππ β€ for all π, π, πβ π π₯ π , π¦ ππ β 0, 1 for all π, π constraints ensure that π₯ π = π₯ π = βΊ π¦ ππ =1 The technique will be used in lift and project Integer Programming 2013
9
Ex: quadratic knapsack problem, max cut of a graph
Def: Given a graph πΊ=(π, πΈ), and subset πβπ of vertices, the set of edges with exactly one endpoint in π is called a cut (relative to π). Given πΊ=(π, πΈ), and edge weights π ππ , π=(π,π)βπΈ, find a maximum weight cut of πΊ. max (π,π)βπΈ π ππ π₯ π 1β π₯ π + 1β π₯ π π₯ π π₯ π β 0,1 for all π (may add constraint π₯ 1 =1 ) Note: max cut problem is difficult to solve (NP-hard), but min cut problem is easy (max-flow min-cut theorem). Integer Programming 2013
10
Forcing constraints Decision A (π₯=1) can be made only if decision B (π¦=1) also has been made. π₯β€π¦ Uncapacitated Facility Location (UFL) Given potential depots π= 1,β¦,π , and a set π= 1,β¦,π of clients. Fixed cost π π to open depot π, and transportation cost π ππ if all of client π β² π order is delivered from depot π. Determine which depots to open, and which depot serves each client so as to minimize the total cost. Define π¦ π =1 if depot π is open, and π¦ π =0 otherwise π₯ ππ is fraction of the demand of client π satisfied from depot π. Satisfaction of demand of client π : π=1 π π₯ ππ =1 for π=1,β¦,π. Integer Programming 2013
11
if depot π not opened, then π₯ ππ =0. βΉ π₯ ππ β€ π¦ π for πβπ, π¦ π β 0, 1
min π=1 π π π π¦ π + π=1 π π=1 π π ππ π₯ ππ s.t. π=1 π π₯ ππ =1 for πβπ π₯ ππ β€ π¦ π for πβπ, πβπ 0β€ π₯ ππ β€1 for πβπ, πβπ, π¦ π β 0, 1 for πβπ Note that there exists an optimal solution with π₯ ππ =0 or 1. Capacitated version? Integer Programming 2013
12
Relation between variables
π=1 π π₯ ππ β€ = 1, π₯β π΅ π : Generalized upper bound (GUB) constraint Integer Programming 2013
13
Disjunctive constraints
Assume π₯β₯0 π β² π₯β₯π, π β² π₯β₯π, π, πβ₯0 at least one of the two constraints needs to be satisfied ο π β² π₯β₯π¦π, π β² π₯β₯ 1βπ¦ π, π¦β 0, 1 General form: π π β² π₯β₯ π π , π=1,β¦,π ( π π β₯0 for all π) (at least π out of π constraints needs to be satisfied) ο π=1 π π¦ π β₯π, π π β² π₯β₯ π π π¦ π , π¦ π β 0, 1 , π=1,β¦,π. Ex) machine scheduling: two jobs must be processed on the same machine and cannot be processed simultaneously. π π : processing time of job π, π‘ π : start time of job π, ο either π‘ 2 β₯ π‘ 1 + π or π‘ 1 β₯ π‘ 2 + π 2 should hold. (need a different formulation from above, using big π) Note that the feasible solution set is not convex. Integer Programming 2013
14
Restricted range of values
Want to restrict a variable x to take values in a set π 1 ,β¦, π π . ο π₯= π=1 π π π π¦ π , π=1 π π¦ π =1 , π¦ π β 0, 1 for all π Integer Programming 2013
15
Arbitrary piecewise linear cost functions
Piecewise linear, not necessarily convex, cost function (separable piecewise linear convex cost function can be modeled as LP (min problem, but non-convex (or non-concave) function cannot be modeled as LP) π(π₯) π₯= π=1 π π π π π , π π₯ = π=1 π π π π π π , π=1 π π π =1 , π 1 ,β¦, π π β₯0 π₯ π1 π2 π3 π4 π¦1 π¦2 π¦3 ο¬1 ο¬2 ο¬3 ο¬4 Integer Programming 2013
16
Formulation: min π=1 π π π π π π s. t. π 1 β€ π¦ 1 , π π β€ π¦ πβ1
π π β€ π¦ πβ1 + π¦ π , π=2,β¦,πβ1, π=1 π π π =1, π=1 πβ1 π¦ π =1 π π β₯0, for all π, π¦ π β 0, 1 , for all π Integer Programming 2013
17
Alternative formulation
πΏ π π€ π β€ π₯ π β€ πΏ π π€ πβ1 , π=1,2,β¦,π π€ 0 =1 π€ π β 0, 1 , π=1,2,β¦,π π₯ π β₯0, π=1,2,β¦,π π(π₯) π=πΎ+π1π₯1+π2π₯2+β¦+πππ₯π Note that constraints imply π€ π β€ π€ πβ1 πΎ π₯ π€0 π€1 π€2 π€3 πΏ1 πΏ2 πΏ3 Integer Programming 2013
18
Set covering, set packing, set partitioning
π={1, β¦ , π}, π={1, β¦ , π} π 1 , π 2 ,β¦, π π are collection of subsets of π. cost π π for each subset π π πΉβπ is a cover of π if πβπΉ π π =π πΉ is a packing of π if π π β π π =β
for all π,πβπΉ, πβ π πΉ is a partition of π if it is both a cover and a packing of π. weight of a subset πΉ of π is defined as πβπΉ π π Let π΄:πΓπ with π ππ =1, if πβ π π , =0, otherwise ο π΄π₯β₯π, π΄π₯β€π, π΄π₯=π, π₯β π΅ π ( π : unit vector) Note that π΄π₯= π=1 π π΄ π π₯ π , where π΄ π is πβπ‘β column of π΄. Integer Programming 2013
19
Sequencing problem with setup times
One machine, π operations operation π requires unique tool π capacity of tool magazine is π΅<π loading or unloading tool π into the magazine requires π π units of setup time π jobs need to be performed by the machine and each job π requires multiple operations π½ π , π½ π β€π΅ (setup time required prior to each job is sequence dependent) Determine the optimal job sequence that minimizes total setup time. Assume the magazine is empty initially. Integer Programming 2013
20
π₯ ππ =1, if job π is the πβth job processed =0, otherwise
Let π₯ ππ =1, if job π is the πβth job processed =0, otherwise π¦ ππ =1, if tool π is on the magazine while the πβth job is processed π¦ π0 =0, for all j. (or may use initial magazine setting) π=1 π π₯ ππ =1, for all π. (job π must be done) π=1 π π₯ ππ =1, for all r. (πβπ‘β job must be done) π₯ ππ β€ π¦ ππ , for all πβ π½ π , for all π,π. π=1 π π¦ ππ β€π΅, for all π. Integer Programming 2013
21
minimize π=1 π π=1 π π π π¦ ππ β π¦ π,πβ1
π§ ππ β₯ π¦ ππ β π¦ π,πβ1 , for all π,π, π§ ππ β₯ π¦ π,πβ1 β π¦ ππ , for all π,π. minimize π=1 π π=1 π π π π§ ππ π§ ππ β₯ π¦ π,πβ1 β π¦ ππ , for all π,π, π=1 π π₯ ππ =1 , for all π. π=1 π π₯ ππ =1, for all π. π₯ ππ β€ π¦ ππ , for all πβ π½ π , for all π,π. π=1 π π¦ ππ β€π΅, for all π. Integer Programming 2013
22
Uncapacitated lot sizing (ULS) (NW)
Production plan for a πβperiod horizon for a single product. π π‘ is the fixed cost (set-up) of producing in period π‘. π π‘ is the unit production cost in period π‘. β π‘ is the unit storage cost in period π‘. π π‘ is the demand in period π‘. Variables: π¦ π‘ is the amount produced in period π‘. π π‘ is the stock at the end of period π‘. π₯ π‘ =1 if production occurs in π‘, and π₯ π‘ =0 otherwise. Integer Programming 2013
23
min π‘=1 π π π‘ π¦ π‘ + β π‘ π π‘ + π π‘ π₯ π‘ π¦ 1 = π 1 + π 1
Formulation: min π‘=1 π π π‘ π¦ π‘ + β π‘ π π‘ + π π‘ π₯ π‘ π¦ 1 = π 1 + π 1 π π‘β1 + π¦ π‘ = π π‘ + π π‘ for π‘=2,β¦,π π¦ π‘ β€π π₯ π‘ for π‘=1,β¦,π π π =0 π ,π¦β π
+ π , π₯β π΅ π , where π= π‘=1 π π π‘ is an upper bound on π¦ π‘ for all π‘. Integer Programming 2013
24
Alternative formulation:
Define π ππ‘ as the quantity produced in period π to satisfy demand in period π‘β₯π. min π‘=1 π π=1 π‘ π π + β π + β π+1 +β¦+ β π‘β1 π ππ‘ + π‘=1 π π π‘ π₯ π‘ π=1 π‘ π ππ‘ = π π‘ , for π‘=1,β¦,π π ππ‘ β€ π π‘ π₯ π , for π=1,β¦,π and π‘=π,β¦,π πβ π
+ π(π+1)/2 , π₯β π΅ π , If we replace π₯β π΅ π , by 0β€ π₯ π‘ β€1 for all π‘, then the LP has an optimal solution with π₯β π΅ π . Hence this is a stronger formulation. The formulation is a special case of the uncapacitated facility location problem. Substitute π¦ ππ‘ = π ππ‘ / π π‘ for all π and π‘β₯π. Extensions: capacitated lot sizing, multiple item lot sizing, β¦ Integer Programming 2013
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.