L1 2 3 Modeling LP
L1 2 3 Modeling LP
L1 2 3 Modeling LP
• Alternates
• Width = w
• Height = h
• Restriction
• 2(w+h) = L
• w,h ≥ 0
• Objective function: Maximize z = wh
Search and Optimization
A task of searching for a set of decision variables which would minimize or
maximize objective function(s) subject to satisfying constraints and bounds on
decision variables.
• Optimization Modeling
Minimize f(x,y)
g(x,y) ≥ 0
h(x,y) = 0
xl ≤ x ≤ xu
yl ≤ y ≤ yu
Solutions
• Feasible solution
• A solution satisfies all the constraints.
• Optimal solution
• A feasible solution which yields the best value of objective function in the
entire feasible search space
• Sub-optimal or local optimal solution
• The feasible solution which is optimal in its vicinity.
• Search space
• The space defined by the constraints and limits on the variables.
• Feasible search space
• The space in which any point in it is always feasible.
Steps in an Optimization Task
• Need for optimization
• Problem formulation or modeling
• Identify problem parameters
• Choose design variables from parameters
• Formulate constraints
• Formulate objective function
• Set up variable bounds
• Requires 50-60% of the effort
• Choose an optimization algorithm
• Obtain solution
• Reformulation and rerun, if desired
Design Variables and their Bounds
• List any and every parameter related to the problem
• Identify parameters sensitive for the given design or problem
• Specify the type of each parameter (binary, discrete, real)
• Choose few of them as design variables
• First thumb rule: Use as few variables as possible
• Usually from the experience of the user
• From minimum variability consideration
• From sensitivity analysis etc.
• Bounds or limit on decision variables
xl ≤ x ≤ xu
yl ≤ y ≤ yu
Constraints
• Represent limit on resource or on certain physical phenomenon, for
example satisfy stress and deflection limitation
• Inequality constraint: g(x) ≥ 0 or g(x) ≤ 0
• mostly encounter in engineering design problems
• Equality constraint: h(x) = 0,
• In linear programming (LP), or satisfying demand etc.
Objective Function
• Minimize or maximize
• Optimization methods are generally developed for minimization
• Use duality principle
• Min f(x) = - Max f(x)
Solving OR Models
• Linear Programming
• Integer Programming
• Dynamic Programming
• Network Programming
• Nonlinear Programming
• OR Techniques do not find solutions in closed form
• Algorithm
• Fixed computational rules that are applied repetitively to the problem
• Repetition is called iteration
• Each iteration a solution is getting closer to the optimum.
• Tedious and Voluminous
• Executed on the computer
Thank you.
2. Modeling with Linear Programming (LP)
• Two-variable LP Model
Alternatives or
Decision variables?
Constraints
Objective function
Modeling: Reddy Mikks Problem
• Decision variables
• Objective function
• Constraints
Modeling: Reddy Mikks Problem
Modeling: Reddy Mikks Problem
• Subject to
E D
C
A
B
Graphical Solution to Reddy Mikks Model
• Corner Solution
• Find the optimum solution from the corner solutions only.
Diet Model
• Decision Variables
Diet Model
• Objective function:
• Constraints
• Variable bound
Graphical Solution to Diet Model
LP Applications
• Many examples are given in the book by TAHA (Self reading)
• Selected LP applications
• Production Planning and Inventory Control
• Bus Scheduling
• Trim Loss
Production Planning and Inventory Control Model
Production Planning and Inventory Control Model
• Decision Variables
• Objective function
Demand
Nonnegative condition
Production Planning and Inventory Control Model
• Constraints
Production Planning and Inventory Control Model
Bus Scheduling Model
Bus Scheduling Model
Trim Loss or Stock Slitting Model