Notes 6IE3121 Knapsack Model Intuitive idea: what is the most valuable collection of items that can be fit into a backpack?

Slides:



Advertisements
Similar presentations
Thursday, April 11 Some more applications of integer
Advertisements

1 Branch-and-Price (Column Generation) Solving Integer Programs With a Huge Number of Variables CP-AI-OR02 School on Optimization Le Croisic, France March.
IEOR 4004 Final Review part II.
1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
BU Decision Models Integer_LP1 Integer Optimization Summer 2013.
Branch and Bound See Beale paper. Example: Maximize z=x1+x2 x2 x1.
Solving IPs – Cutting Plane Algorithm General Idea: Begin by solving the LP relaxation of the IP problem. If the LP relaxation results in an integer solution,
H.P. WILLIAMS LONDON SCHOOL OF ECONOMICS
DMOR Networks. Graphs: Koenigsberg bridges Leonard Euler problem (1736)
TSP Travelling Salesperson Problem (TSP) Very famous problem Many practical applications Very easy to describe Very difficult to solve (Curse of.
Integer Programming 3 Brief Review of Branch and Bound
Branch and Bound Similar to backtracking in generating a search tree and looking for one or more solutions Different in that the “objective” is constrained.
Math443/543 Mathematical Modeling and Optimization
Computational Methods for Management and Economics Carla Gomes
Previously in Chapter 6 Using binary variables Unintended options Lack of sensitivity analysis.
Approximation Algorithms
MAE 552 – Heuristic Optimization Lecture 26 April 1, 2002 Topic:Branch and Bound.
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding ILPs with Branch & Bound ILP References: ‘Integer Programming’
Decision Procedures An Algorithmic Point of View
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1.3 Modeling with exponentially many constr.  Some strong formulations (or even formulation itself) may involve exponentially many constraints (cutting.
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
IT 60101: Lecture #201 Foundation of Computing Systems Lecture 20 Classic Optimization Problems.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Chapter 9 Integer Programming
Types of IP Models All-integer linear programs Mixed integer linear programs (MILP) Binary integer linear programs, mixed or all integer: some or all of.
Integer Programming Key characteristic of an Integer Program (IP) or Mixed Integer Linear Program (MILP): One or more of the decision variable must be.
MODELING AND ANALYSIS OF MANUFACTURING SYSTEMS Session 12 MACHINE SETUP AND OPERATION SEQUENCING E. Gutierrez-Miravete Spring 2001.
Notes 5IE 3121 Knapsack Model Intuitive idea: what is the most valuable collection of items that can be fit into a backpack?
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
Lecture 6 – Integer Programming Models Topics General model Logic constraint Defining decision variables Continuous vs. integral solution Applications:
WOOD 492 MODELLING FOR DECISION SUPPORT
Chap 10. Integer Prog. Formulations
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
11.5 Implicit Partitioning/Packing Problems  Given M = {1, …, m}, K implicitly described sets of feasible subsets of M. Find a maximum value packing or.
1.224J Recitation #2 Integer Programs. Topics Questions & office hrs Sensitivity analysis review Importance of linear IP formulation –Branch and bound.
15.053Tuesday, April 9 Branch and Bound Handouts: Lecture Notes.
Integer Linear Programming Terms Pure integer programming mixed integer programming 0-1 integer programming LP relaxation of the IP Upper bound O.F. Lower.
Integer Programming (정수계획법)
15-853Page :Algorithms in the Real World Linear and Integer Programming III – Integer Programming Applications Algorithms.
Log Truck Scheduling Problem
8/14/04 J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 6 – Integer Programming Models Topics.
Lecture 6 – Integer Programming Models Topics General model Logic constraint Defining decision variables Continuous vs. integral solution Applications:
Management Science 461 Lecture 3 – Covering Models September 23, 2008.
IE 312 Review 1. The Process 2 Problem Model Conclusions Problem Formulation Analysis.
USING SETS IN LINGO What Are Sets? Sets are simply groups of related objects. A set might be a list of products, trucks, or employees. Each member in the.
Management Science 461 Lecture 7 – Routing (TSP) October 28, 2008.
Algorithms in the Real World
Exhaustive search Exhaustive search is simply a brute- force approach to combinatorial problems. It suggests generating each and every element of the problem.
EMIS 8373: Integer Programming Combinatorial Optimization Problems updated 27 January 2005.
Discrete Optimization MA2827 Fondements de l’optimisation discrète Material from P. Van Hentenryck’s course.
The Theory of NP-Completeness
Traveling Salesman Problem
1.3 Modeling with exponentially many constr.
2 TSP algorithms: (1) AP+B&B, (2) min spanning tree.
Heuristics Definition – a heuristic is an inexact algorithm that is based on intuitive and plausible arguments which are “likely” to lead to reasonable.
Branch and Bound See Beale paper.
Integer Programming (정수계획법)
Integer Linear Programming
Richard Anderson Lecture 28 Coping with NP-Completeness
1.3 Modeling with exponentially many constr.
Presented by Yi-Tzu, Chen
Integer Programming (정수계획법)
Chapter 6 Network Flow Models.
11.5 Implicit Partitioning/Packing Problems
The Theory of NP-Completeness
11.5 Implicit Partitioning/Packing Problems
CSC 380: Design and Analysis of Algorithms
REVIEW FOR EXAM 1 Chapters 3, 4, 5 & 6.
Integer Linear Programming
Presentation transcript:

Notes 6IE3121 Knapsack Model Intuitive idea: what is the most valuable collection of items that can be fit into a backpack?

Notes 6IE3122 Race Car Features Budget of $35,000 Which features should be added?

Notes 6IE3123 Decision variables ILP Formulation

Notes 6IE3124 LINGO Formulation MODEL: SETS: FEATURES /F1,F2,F3,F4,F5,F6/: INCLUDE,SPEED_INC,COST; ENDSETS DATA: SPEED_INC = ; COST = ; BUDGET = 35; ENDDATA MAX FEATURES: SPEED_INC * FEATURES: COST * INCLUDE) <= INCLUDE)); END Specify index sets All the constants Objective Constraints Variables indexed by this set Decision variables are binary Note ; to end command : to begin an environment

Notes 6IE3125 Solve using Branch & Bound Solution? Candidate Problem Relaxed Problem

Notes 6IE3126 What is the Relative Worth? Want to add this feature first Want to add this feature second

Notes 6IE3127 Solve Relaxed Problem Solution: Relaxed Problem Objective  24.8

Notes 6IE3128 Now the other node … Relaxed Problem Solution: Objective  27.8

Notes 6IE3129 Next Step? Objective  24.8 Objective  27.8

Notes 6IE31210 Rule of Thumb: Better Value Obj  24.8 Relaxed Problem Solution: Relaxed Problem Obj.  26.4Obj.  27.8 Solution:

Notes 6IE31211 Next Level Obj  24.8 Obj.  26.4 Infeasible Candidate Problem Solution: Obj. = 25 (This turns out to be true.) Now What?

Notes 6IE31212 Next Steps … Obj  24.8 Obj.  26.4 InfeasibleObj. = 25 Obj  25 Still need to continue branching here. Finally we will have accounted for every solution!

Notes 6IE31213 Capital Budgeting Multidimensional knapsack problems are often called capital budgeting problems Idea: select collection of projects, investments, etc, so that the value is maximized (subject to some resource constraints)

Notes 6IE31214 NASA Capital Budgeting

Notes 6IE31215 Formulation Decision variables Budget constraints

Notes 6IE31216 Formulation Mutually exclusive choices Dependencies

Notes 6IE31217 Set Packing, Covering, and Partitioning

Notes 6IE31218 Select Locations

Notes 6IE31219 Ways of Splitting the Set Set covering constraints Set packing constraints Set partitioning constraints

Notes 6IE31220 Example: Choosing OR Software Formulate a set covering problem to acquire the minimum cost software with LP, IP, and NLP capabilities. Formulate set partitioning and set packing problems. What goals do they meet?

Notes 6IE31221 Maximum Coverage Perhaps the budget only allows $9000 What can we then do  Maximum coverage How do we now formulate the problem? Need new variables

Notes 6IE31222 Travelling Salesman Problem (TSP) Ames Fort Dodge Boone Carroll Marshalltown West Des Moines Waterloo What is the shortest route, starting in Ames, that visits each city exactly ones?

Notes 6IE31223 TSP Solution Ames Fort Dodge Boone Carroll Marshalltown West Des Moines Waterloo

Notes 6IE31224 Not a TSP Solution Ames Fort Dodge Boone Carroll Marshalltown West Des Moines Waterloo

Notes 6IE31225 Applications Routing of vehicles (planes, trucks, etc.) Routing of postal workers Drilling holes on printed circuit boards Routing robots through a warehouse, etc.

Notes 6IE31226 Formulating TSP A TSP is symmetric if you can go both ways on every arc

Notes 6IE31227 Example Formulate a TSP

Notes 6IE31228 Subtours It is not sufficient to have two arcs connected to each node Why? Must eliminate all subtours Every subset of points must be exited

Notes 6IE31229 How do we eliminate subtours?

Notes 6IE31230 Asymmetric TSP Now we have decision variables Constraints

Notes 6IE31231 Asymmetric TSP (cont.) Each tour must enter and leave every subset of points Along with all variables being 0 or 1, this is a complete formulation

Notes 6IE31232 Example Assume a two unit penalty for passing from a high to lower numbered node. This is now an asymmetric TSP. Why?

Notes 6IE31233 Subtour Elimination Making sure there are no subtours involves a very large number of constraints Can obtain simpler constraints if we go with a nonlinear objective function

Notes 6IE31234 Quadratic Assignment Formulation

Notes 6IE31235 Example: reformulate