Modelling of LP-problems (2WO09) assignor: Judith Keijsper room: HG - - PowerPoint PPT Presentation

modelling of lp problems 2wo09
SMART_READER_LITE
LIVE PREVIEW

Modelling of LP-problems (2WO09) assignor: Judith Keijsper room: HG - - PowerPoint PPT Presentation

Modelling of LP-problems (2WO09) assignor: Judith Keijsper room: HG 9.31 email: J.C.M.Keijsper@tue.nl course info : http://www.win.tue.nl/ jkeijspe Technische Universiteit Eindhoven meeting 1 J.Keijsper (TUE) Modelling of LP-problems


slide-1
SLIDE 1

Modelling of LP-problems (2WO09)

assignor: Judith Keijsper room: HG 9.31 email: J.C.M.Keijsper@tue.nl course info : http://www.win.tue.nl/∼jkeijspe

Technische Universiteit Eindhoven

meeting 1

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 1 / 70

slide-2
SLIDE 2

Contents

1

Motivation MIP and LP models

2

Definition LP

3

LP modeling

4

LP solving

5

LP: Sensitivity analysis

6

Mixed Integer Programming (MIP)

7

Solving MIP’s

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 2 / 70

slide-3
SLIDE 3

Motivation MIP and LP models

A discrete optimization problem can often be modeled as a (Mixed) Integer (linear) Program (MIP). If integrality restrictions are removed from a MIP, a Linear Program (LP) is obtained. LP’s can be solved fast. Solving an MIP usually involves solving (very) many LP’s.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 3 / 70

slide-4
SLIDE 4

Definition LP

A Linear Program (LP) is the task of optimizing (i.e. minimizing or maximizing) a linear function subject to linear inequalities.

Example

max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0

Example

max x1 − 3x2 + 5x3 + 7x4 s.t. x1 − x3 ≤ 9 3x1 − 2x4 ≥ 3 2x2 − x3 − x4 = 5 x1 ≥ 2 x3 ≤

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 4 / 70

slide-5
SLIDE 5

Here is an example of an LP in compact notation (using indexed parameters ai,j, bi, cj, indexed variables xj and indexed constraints):

Example

max n

j=1 cjxj

s.t. n

j=1 ai,jxj

≤ bi for all i = 1 . . . m xj ≥ for all j = 1 . . . n is compact notation for max c1x1 + c2x2 + · · · + cnxn s.t. a1,1x1 + a1,2x2 + · · · + a1,nxn ≤ b1 a2,1x1 + a2,2x2 + · · · + a2,nxn ≤ b2 · · · · · · am,1x1 + am,2x2 + · · · + am,nxn ≤ bm x1 ≥ · · · · · · xn ≥

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 5 / 70

slide-6
SLIDE 6

LP modeling

1 Variables: decisions. 2 Objective function: quantity (linear function of the variables) to be

  • ptimized.

3 Constraints:

restrictions (linear inequalities in the variables) that decisions must satisfy.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 6 / 70

slide-7
SLIDE 7

Example

Chips production (From Aimms documentation: Optimization Modeling) How to maximize profit for the factory with the following data? time required [min/kg] plain chips Mexican chips availability [min] slicing 2 4 345 frying 4 5 480 packing 4 2 330 net profit [dollar/kg] 2 1.5 x = production of plain chips [kg] y = production of mexican chips [kg] max 2x + 1.5y 2x + 4y ≤ 345 4x + 5y ≤ 480 4x + 2y ≤ 330 x, y ≥ 0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 7 / 70

slide-8
SLIDE 8

LP modeling in Aimms

  • 0. Choose sets for indexing.
  • 1. Declare parameters and variables (give meaningful names). Both can

be indexed by sets.

  • 2. Declare a scalar (non-indexed) variable: the objective function. It has

a definition (as a linear function of the variables).

  • 3. Declare constraints. A constraint can be indexed by a set. Every

constraint has a definition (as a linear inequality in the variables). Simple bounds are specified in the range of a variable.

  • 4. Declare a Mathematical Program (MP): specify the variable that

defines the objective function, the direction of optimization (min/max), the set of constraints you want to use (default: all), the set of variables (default: all), the type of program (LP).

  • 5. This abstract model is saved separately from the case (concrete

dataset) that you would like to compute an optimal solution for. Cases can be modified easily without changing the abstract model.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 8 / 70

slide-9
SLIDE 9

LP solving by hand: graphical method (2 variables)

max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 9 / 70

slide-10
SLIDE 10

LP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 10 / 70

slide-11
SLIDE 11

LP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 11 / 70

slide-12
SLIDE 12

LP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 12 / 70

slide-13
SLIDE 13

LP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 13 / 70

slide-14
SLIDE 14

LP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3 2x+3y=6

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 14 / 70

slide-15
SLIDE 15

LP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 15 / 70

slide-16
SLIDE 16

LP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 16 / 70

slide-17
SLIDE 17

LP solving by hand: graphical method (2 variables)

Conclusion: solving the system x + 2y = 4 3x + 2y = 6 for x and y yields the optimal solution x = 1 y = 1.5 where the objective function 2x + 3y attains its maximum value 6.5.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 17 / 70

slide-18
SLIDE 18

LP solving by hand: graphical method (2 variables)

1 Draw lines (half-planes) in the x, y-plane corresponding to the

constraints.

2 Shade the feasible region in the x, y-plane, consisting of those points

that satisfy all the constraints.

3 Draw a contour of the objective function, and indicate the direction

  • f optimization.

4 Shift this contour as far as possible in the direction of optimization so

that it still touches the feasible region.

5 Now derive from the picture which constraint-lines are intersecting in

the optimal feasible point, and solve the corresponding system of equalities to obtain the co¨

  • ordinates of this optimal point.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 18 / 70

slide-19
SLIDE 19

LP solving with the simplex method (software)

O x y x+2y=4 3x+2y=6 y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 19 / 70

slide-20
SLIDE 20

LP solving with the simplex method (software)

O x y x+2y=4 3x+2y=6 y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 20 / 70

slide-21
SLIDE 21

LP solving with the simplex method (software)

O x y x+2y=4 3x+2y=6 y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 21 / 70

slide-22
SLIDE 22

Special situations: infeasible

O x y y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 22 / 70

slide-23
SLIDE 23

Special situations: unbounded

O x y y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 23 / 70

slide-24
SLIDE 24

Special situations: multiple optimal solutions (no Aimms warning)

O x y y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 24 / 70

slide-25
SLIDE 25

Special situations: multiple optimal solutions (no Aimms warning)

O x y y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 25 / 70

slide-26
SLIDE 26

LP: Sensitivity analysis

A parametric curve depicts the sensitivity of an LP model to parametric change by simply recomputing the optimal solution (or the optimal value

  • f the objective) for a range of values of the chosen parameter.

parameter

  • pt.

value LP

10 90

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 26 / 70

slide-27
SLIDE 27

Definition Shadowprice

The shadowprice of a constraint in an LP model is the rate of change of the optimal value of the objective function from a one unit increase in the righthand side of the constraint (for a small enough increase).

Example

max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 27 / 70

slide-28
SLIDE 28

Shadowprice

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 28 / 70

slide-29
SLIDE 29

Shadowprice

Conclusion: solving the system x + 2y = 4 3x + 2y = 6 for x and y yields the optimal solution x = 1 y = 1.5 where the objective function 2x + 3y attains its maximum value 6.5.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 29 / 70

slide-30
SLIDE 30

Shadowprice

To compute the shadowprice of the constraint 3x + 2y ≤ 6, change max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 to max 2x + 3y s.t. 3x + 2y ≤ 7 x + 2y ≤ 4 x ≥ 0 y ≥ 0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 30 / 70

slide-31
SLIDE 31

Shadowprice

O x y x+2y=4 y=0 x=0 2x+3y=3 3x+2y=7

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 31 / 70

slide-32
SLIDE 32

O x y x+2y=4 y=0 x=0 2x+3y=3 3x+2y=7

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 32 / 70

slide-33
SLIDE 33

Shadowprice

Conclusion: solving the system x + 2y = 4 3x + 2y = 7 for x and y yields the optimal solution x = 1.5 y = 1.25 where the objective function 2x + 3y attains its maximum value 6.75. The shadowprice of the constraint 3x + 2y ≤ 6 is therefore 0.25.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 33 / 70

slide-34
SLIDE 34

Shadowprice

Small enough increase: optimum is intersection of the same constraint-lines (no other constraint becomes binding by the increase).

O x y x+2y=4 y=0 x=0 2x+3y=3 3x+2y=15

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 34 / 70

slide-35
SLIDE 35

Shadowprice

Information on the shadowprices of constraints is implicitly available when solving an LP by the simplex method. In Aimms, simply indicate that you want this information explicitly.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 35 / 70

slide-36
SLIDE 36

Definition Reduced Cost

The reduced cost (or reduced profit) of a variable in an LP model is the rate of change of the optimal value of the objective function from a one unit increase in the bound of the variable that is binding the optimum. (for a small enough increase). max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 36 / 70

slide-37
SLIDE 37

Reduced cost

To compute the reduced cost of the variable x, change max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 to max 2x + 3y s.t. 3x + 2y ≤ 7 x + 2y ≤ 4 x ≥ 0.5 y ≥ 0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 37 / 70

slide-38
SLIDE 38

O x y x+2y=4 x=0 2x+3y=3 y=0 x=0.5 3x+2y=6

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 38 / 70

slide-39
SLIDE 39

Reduced cost

Conclusion: Nothing changes. Solving the system x + 2y = 4 3x + 2y = 6 for x and y yields the optimal solution x = 1 y = 1.5 where the objective function 2x + 3y attains its maximum value 6.5. The reduced cost of the variable x is therefore 0.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 39 / 70

slide-40
SLIDE 40

Definition MIP

A Mixed Integer Program (MIP) is the task of optimizing (i.e. minimizing

  • r maximizing) a linear function subject to linear inequalities and

integrality constraints on (some of) the variables.

Example

max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 x integral y integral Integral variables can model decisions regarding integral numbers and yes/no decisions.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 40 / 70

slide-41
SLIDE 41

Example

max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 x ≤ 1 y ≥ 0 y ≤ 1 x integral y integral is equivalent to max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x binary y binary

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 41 / 70

slide-42
SLIDE 42

LP-relaxation

By deleting all integrality constraints from a MIP, an LP is obtained: its LP-relaxation.

Example

max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 x integral y integral has LP-relaxation max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 42 / 70

slide-43
SLIDE 43

MIP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 43 / 70

slide-44
SLIDE 44

MIP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 44 / 70

slide-45
SLIDE 45

MIP solving by hand: graphical method (2 variables)

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3 2x+3y=6

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 45 / 70

slide-46
SLIDE 46

MIP solving by hand: graphical method (2 variables)

Conclusion from the picture: optimal solution of this MIP is x = y = 2 where the objective function 2x + 3y attains its maximum value 6.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 46 / 70

slide-47
SLIDE 47

Note: in general, the optimal solution of an MIP is not a corner point of the feasible region of the LP-relaxation (and hence can not be obtained as the solution of a system of constraint-equalities). O x y y=0 x=0

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 47 / 70

slide-48
SLIDE 48

MIP solving using an LP solver: Branch and Bound

Idea: solve the LP-relaxation. If the optimal solution is not integral, branch: split the feasible region into disjoint parts that both do not contain this LP-optimum. and solve an LP for each of these parts.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 48 / 70

slide-49
SLIDE 49

Branch and Bound

Example

MIP: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 x integral y integral

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 49 / 70

slide-50
SLIDE 50

Branch and Bound

Start by solving the LP-relaxation LP0: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 LP0 has optimal solution (x, y) = (1, 1.5) and optimal objective value 6.5.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 50 / 70

slide-51
SLIDE 51

Branch and Bound Tree

The LP-relaxation can be viewed as the root node of a tree, the branch and bound tree. It corresponds to the entire feasible region. The LP’s for the smaller parts of the feasible region are the other nodes of the tree. Every branch from a node corresponds to adding an inequality to the LP of that node, thereby restricting the feasible region further.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 51 / 70

slide-52
SLIDE 52

Branch and Bound Tree

LP (1, 1.5) 6.5

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 52 / 70

slide-53
SLIDE 53

Branch and Bound

Expand node LP0: branch on variable y: LP1 adds the inequality y ≤ 1 to LP0. LP2 adds y ≥ 2 to LP0. LP1: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 y ≤ 1 LP2: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 y ≥ 2

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 53 / 70

slide-54
SLIDE 54

Branch and Bound

Explore node LP1: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 y ≤ 1

  • ptimal solution (x, y) = (11

3, 1), objective value 5 2 3.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 54 / 70

slide-55
SLIDE 55

Branch and Bound

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3 y=1 y=2

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 55 / 70

slide-56
SLIDE 56

Branch and Bound Tree

LP (1, 1.5) 6.5 LP 1 LP 2 5.67 y>=2 y<=1 (1.33, 1)

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 56 / 70

slide-57
SLIDE 57

Expand node LP1: branch on variable x: LP3 adds the inequality x ≤ 1 to LP1. LP4 adds x ≥ 2 to LP1. LP3: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 x ≤ 1 y ≥ 0 y ≤ 1 LP4: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 x ≥ 2 y ≥ 0 y ≤ 1

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 57 / 70

slide-58
SLIDE 58

Branch and Bound Tree

LP (1, 1.5) 6.5 LP 1 LP 2 5.67 y>=2 y<=1 x<=1 x>=2 LP 4 LP 3 (1.33, 1)

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 58 / 70

slide-59
SLIDE 59

Branch and Bound

Whenever an integral optimal solution for an LP in one of the nodes is found, a bound for the best possible MIP objective value is updated. The tree is pruned in this node. Explore node LP3: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 x ≤ 1 y ≥ 0 y ≤ 1

  • ptimal solution (x, y) = (1, 1) (integer!), objective value 5.

New bound: 5. Current best MIP solution: (x, y) = (1, 1). Prune by integrality.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 59 / 70

slide-60
SLIDE 60

Branch and Bound

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3 y=1 x=1

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 60 / 70

slide-61
SLIDE 61

Branch and Bound

The tree can also be pruned at a node if the LP has an optimal solution with objective value not better than the current bound. Explore node LP4: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 x ≥ 2 y ≥ 0 y ≤ 1

  • ptimal solution (x, y) = (2, 0) (integer!), objective value 4.

Current bound = 5 > 4. No update. Prune by integrality or by bound.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 61 / 70

slide-62
SLIDE 62

Branch and Bound

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3 y=1 x=2

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 62 / 70

slide-63
SLIDE 63

Branch and Bound Tree

LP (1, 1.5) 6.5 LP 1 LP 2 5.67 y>=2 y<=1 x<=1 x>=2 LP 4 LP 3 (1,1) 5 (2,0) 4 INT INT (1.33, 1)

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 63 / 70

slide-64
SLIDE 64

Explore node LP2: max 2x + 3y s.t. 3x + 2y ≤ 6 x + 2y ≤ 4 x ≥ 0 y ≥ 0 y ≥ 2

  • ptimal solution (x, y) = (0, 2) (integer!), objective value 6.

New bound: 6. Current best MIP solution: (x, y) = (0, 2) Prune by integrality. All nodes are pruned: done. Conclusion: optimal MIP solution: (x, y) = (0, 2), optimal MIP objective value 6.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 64 / 70

slide-65
SLIDE 65

Branch and Bound

O x y x+2y=4 3x+2y=6 y=0 x=0 2x+3y=3 y=2

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 65 / 70

slide-66
SLIDE 66

Branch and Bound

LP (1, 1.5) 6.5 LP 1 LP 2 5.67 y>=2 y<=1 x<=1 x>=2 (0,2) 6 LP 4 LP 3 (1,1) 5 (2,0) 4 INT INT INT (1.33, 1)

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 66 / 70

slide-67
SLIDE 67

Branch and Bound Tree

The LP-relaxation can be viewed as the root node of a tree, the branch and bound tree. It corresponds to the entire feasible region. The LP’s for the smaller parts of the feasible region are the other nodes of the tree. Every branch corresponds to adding an inequality to the LP, thereby restricting the feasible region further. Whenever an integral optimal solution for an LP in one of the nodes is found, a bound for the best possible MIP objective value is updated. The branching stops (tree is pruned) at a node if the LP of this node is infeasible (infeasibility), has an integral optimal solution (integrality), or has an optimal solution with objective value not better than the current bound (bound)

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 67 / 70

slide-68
SLIDE 68

Size of the branch and bound tree

For an MIP on n integer variables, each taking a value between 0 and 9, the number of nodes (LPs to solve) can become as large as 10n, so exponential in n. There are no general theorems about how many of those nodes actually have to be explored.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 68 / 70

slide-69
SLIDE 69

Binary variables

In a MIP, an integer variable x which is also required to be ≥ 0 and ≤ 1 is called a binary variable. 0 ≤ x ≤ 1, x integral A binary variable models yes/no decisions.

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 69 / 70

slide-70
SLIDE 70

Sensitivity analysis for MIP

Parametric curves can be constructed for a MIP (but requires solving many MIPs so might take too much time for large MIPs). Shadow prices and reduced costs have no meaning in a MIP. Ignore the values Aimms computes for these when solving a MIP!

J.Keijsper (TUE) Modelling of LP-problems (2WO09) meeting 1 70 / 70