3-Linear Optimization
3-Linear Optimization
“
A linear optimization problem
can be defined as solving an
optimization problem in which
the objective function and all
associated constraints are
linear.
52
Linear Programming
53
The Importance of Linear Programming
▫ An airline company would like to assign crews to different flights in an optimal way
so that total cost is minimized while covering its entire network.
54
Forms of LP problems
55
Linear Programming Problems Formulation
57
Linear Programming Problems Formulation
58
Linear Programming Problems Formulation
Definitions
59
Linear Programming Problems Formulation
Assumptions of the LP
60
Linear Programming Problems Formulation
Example: the manufacturer problem
▪ When determining the optimal production plan, the manufacturer must take into
account that only 6 large and 8 small pieces are available.
▪ One table is sold for 1600 $, while the chair sells for 1000 $.
▪ Under the assumption that all items produced can be sold, and that the raw-material has
already been paid for, the problem is to determine the production plan that maximizes
the total income, within the limited resources.
62
Linear Programming Problems Formulation
Example: the manufacturer problem
▪ Decision variables:
▫ x1 = number of tables manufactured and sold,
▫ x2 = number of chairs manufactured and sold,
▪ Objective function: the income from each product is given by
the price of the product multiplied by the number of products
sold.
▫ z = 1600x1 + 1000x2.
▪ Constraints: only 6 large pieces and 8 small pieces are available
▫ the required number of large pieces is 2x1 + x2
▫ Te required number of samll pieces is 2x1 + 2x2 63
Linear Programming Problems Formulation
Example: the manufacturer problem
64
Graphical Solution of a LP
65
Graphical Solution of a LP
Region of feasibility
66
Graphical Solution of a LP
Region of feasibility
67
Graphical Solution of a LP
Steps…
3. Plot Objective = c
68
Graphical Solution of a LP
Step1 : Plot Boundary Conditions
69
Graphical Solution of a LP
Step2 : Determine Feasibility
70
Graphical Solution of a LP
Step 3: Plot Objective = c
71
Graphical Solution of a LP
Step 4: Find Parallel Tangent
72
Graphical Solution of a LP
Step 5: Find the optimum point
optimum
74
Graphical Solution of a LP
A Minimization Problem (contd.)
▪ Decision Variables:
▫ x1 = bags of Super-gro
▫ x2 = bags of Crop-quick
▪ The Objective Function:
▫ Minimize Z = $6x1 + 3x2
▫ where: $6x1 = cost of bags of Super-Gro $3x2 = cost of bags
of Crop-Quick
▪ Model Constraints:
▫ 2x1 + 4x2 >= 16 lb (nitrogen constraint)
▫ 4x1 + 3x2 >= 24 lb (phosphate constraint)
▫ x1 , x2 >= 0 (non-negativity constraint)
75
Graphical Solution of a LP
A Minimization Problem (contd.)
76
Irregular Types of LPP
77
Irregular Types of LPP
LP with Multiple optimal solutions
78
Irregular Types of LPP
Infeasible Problem
79
Irregular Types of LPP
Unbounded Problem
80
Graphical Solution of a LP
► Pro:
▫ Works for any number of constraints
▫ Fast, especially with graphing tool
▫ Gives visual representation of tradeoff between variables
► Con:
▫ Only works well in 2D (feasible but difficult in 3D)
▫ For very large number of constraints, could be annoying to
plot
▫ For large range / ratio of coefficients, plot size limits
precision and ability to quickly find tangent
81