19. Logic constraints, integer variables
|
|
- Hector Long
- 6 years ago
- Views:
Transcription
1 CS/ECE/ISyE 524 Introduction to Optimization Spring Logic constraints, integer variables If-then constraints Generalized assignment problems Logic constraints Modeling a restricted set of values Sudoku! Laurent Lessard (
2 If-then constraints A single simple trick (with suitable adjustments) can help us model a great variety of if-then constraints The trick We d like to model the constraint: if z = 0 then a T x b. Let M be an upper bound for a T x b. Write: a T x b Mz If z = 0, then a T x b 0 as required. Otherwise, we get a T x b M, which is always true. 19-2
3 If-then constraints Slight change: if z = 1 then a T x b Again, let M be an upper bound for a T x b Write: a T x b M(1 z) Reversed inequality: if z = 0 then a T x b Write constraint as a T x + b 0 Let m be an upper bound on a T x + b Write: a T x + b mz. Same as: a T x b mz Note: m is a lower bound on a T x b. 19-3
4 If-then constraints The converse: if a T x b then z = 1 Equivalent to: if z = 0 then a T x > b (contrapositive). The strict inequality is not really enforceable. Instead, write: if z = 0 then a T x b + ε where ε is small. Let m be a lower bound for a T x b and we obtain the equivalent constraint: a T x b mz + ε(1 z) If z = 0, we get a T x b + ε, as required. Otherwise, we get: a T x b m, which is always true. Note: If a, x, b are integer-valued, we may set ε =
5 If-then constraints (summary) Logic statement Constraint if z = 0 then a T x b a T x b Mz if z = 0 then a T x b a T x b mz if z = 1 then a T x b a T x b M(1 z) if z = 1 then a T x b a T x b m(1 z) if a T x b then z = 1 a T x b mz + ε(1 z) if a T x b then z = 1 a T x b Mz ε(1 z) if a T x b then z = 0 a T x b m(1 z) + εz if a T x b then z = 0 a T x b M(1 z) εz Where M and m are upper and lower bounds on a T x b. 19-5
6 Return to fixed costs and lower bounds Modeling a fixed cost: if x > 0 then z = 1. Use the contrapositive: if z = 0 then x 0. Apply the 1 st rule on Slide Modeling a lower bound: either x = 0 or x m. Equivalent to: if x > 0 then x m. Equivalent to the following two logical constraints: if x > 0 then z = 1, and if z = 1 then x m. The first one is a fixed cost (see above) The second one is the 4 th rule on Slide
7 Generalized assignment problems (GAP) Set of machines: M = {1, 2,..., m} that can perform jobs. (think of these as the facilities in the facility problem) Machine i has a fixed cost of h i if we use it at all. Machine i has a capacity of b i units of work (this is new!) Set of jobs: N = {1, 2,..., n} that must be performed. (think of these as the customers in the facility problem) Job j requires a ij units of work to be completed if it is completed on machine i. Job j will cost c ij if it is completed on machine i. Each job must be assigned to exactly one machine. 19-7
8 GAP model minimize x,z subject to: c ij x ij (fixed cost + assignment cost) h i z i + i M i M j N x ij = 1 j N (one machine per job) i M a ij x ij b i i M (work budget) j N x ij z i i M, j N (if x ij > 0 then z i = 1) x ij, z i {0, 1} i M, j N (all binary!) z i = 1 if machine i is used, and x ij = 1 if job j is performed by machine i. Note: many choices possible for M i and aggregations. 19-8
9 New constraints Let s make GAP more interesting If you use k or more machines, you must pay a penalty of λ. 2. If you operate either machine 1 or machine 2, you may not operate both machines 3 and 4 at the same time. 3. If you operate both machines 1 and 2, then machine 3 must be operated at 40% of its capacity. 4. Each job j N has a duration d j. Minimize the time we have to wait before all jobs are completed. (this is called the makespan). 19-9
10 GAP 1 If you use k or more machines, you must pay a penalty of λ. Using k or more machines is equivalent to saying that z 1 + z z m k Let δ 1 = 1 if we incur the penalty. We now have the if-then constraint: if i M z i k then δ 1 = 1. Use the 6 th rule on Slide 19-5 and obtain: i M z i mδ 1 + (k 1)(1 δ 1 ) add λδ 1 to the cost function
11 GAP 2 If you operate either machine 1 or machine 2, you may not operate both machines 3 and 4 at the same time. Operating machine 1 or machine 2: z 1 + z 2 1. Not operating machines 3 and 4: z 3 + z 4 1 We must model z 1 + z 2 1 = z 3 + z 4 1 Same trick as before: model this in two steps: z 1 + z 2 1 = δ 2 = 1 and δ 2 = 1 = z 3 + z 4 1 First follows from 6 th rule on Slide 19-5 Second follows from 3 rd rule on Slide 19-5 Result: z 1 + z 2 2δ 2 and z 3 + z 4 + δ
12 GAP 2 (cont d) If you operate either machine 1 or machine 2, you may not operate both machines 3 and 4 at the same time. We didn t do anything to ensure that when z i = 1, the machines are actually operating! (we didn t explicitly disallow paying the fixed cost without using the machine). To force the converse as well, include the constraint: if z i = 1 then j N x ij 1 Use the 4 th rule on Slide Result: j N x ij z i (for i = 1, 2, 3, 4) 19-12
13 GAP 3 If you operate both machines 1 and 2, then machine 3 must be operated at 40% of its capacity. Operate both machines 1 and 2: z 1 + z 2 2 Capacity of machine 3 drops: b 3 becomes 0.4b 3. Two parts to the implementation: z1 + z 2 2 = δ 3 = 1. (6 th rule on Slide 19-5) δ3 = 1 = j N a 3jx 3j 0.4b 3. (3 rd rule on Slide 19-5) Equivalently, just replace b 3 by: b 3 (1 δ 3 ) + 0.4b 3 δ
14 GAP 4 Each job j N has a duration d j. Minimize the time we have to wait before all jobs are completed. (the makespan) Machine i completes all its jobs in time: j N x ijd j Minimax problem (no integer variables needed!) Let t be the makespan; t = max i M ( j N x ijd j ) Model: minimize t subject to: t j N x ij d j for all i M 19-14
15 Logic constraints A proposition is a statement that evaluates to true or false. One example we ve seen: a linear constraint a T x b. We ll use binary variables { δ i to represent propositions P i : 1 if proposition P i is true δ i = 0 if proposition P i is false The term for this is that δ i is an indicator variable. How can we turn logical statements about the P i s into algebraic statements involving the δ i s? Some standard notation: means or = means implies means and means if and only if means not means exclusive or 19-15
16 Boolean algebra Basic definitions: P Q P Q P Q P Q Useful relationships: (P 1 P k ) = P 1 P k (P 1 P k ) = P 1 P k P (Q R) = (P Q) (P R) P (Q R) = (P Q) (P R) P Q = (P Q) ( P Q) 19-16
17 Logic to algebra Statement Constraint P 1 δ 1 = 0 P 1 P 2 δ 1 + δ 2 1 P 1 P 2 δ 1 + δ 2 = 1 P 1 P 2 δ 1 = 1, δ 2 = 1 (P 1 P 2 ) δ 1 = 0, δ 2 = 0 P 1 = P 2 δ 1 δ 2 (equivalent to: ( P 1 ) P 2 ) P 1 = ( P 2 ) δ 1 + δ 2 1 (equivalent to: (P 1 P 2 )) P 1 P 2 δ 1 = δ 2 P 1 = (P 2 P 3 ) δ 1 δ 2, δ 1 δ 3 P 1 = (P 2 P 3 ) δ 1 δ 2 + δ 3 (P 1 P 2 ) = P 3 δ 1 + δ δ 3 (P 1 P 2 ) = P 3 δ 1 δ 3, δ 2 δ 3 P 1 (P 2 P 3 ) δ 1 = 1, δ 2 + δ 3 1 P 1 (P 2 P 3 ) δ 1 + δ 2 1, δ 1 + δ
18 More logic to algebra Statement P 1 P 2 P k (P 1 P k ) = (P k+1 P n) at least k out of n are true exactly k out of n are true at most k out of n are true P n (P 1 P k ) Constraint k δ i 1 i=1 k (1 δ i ) + n δ i 1 i=1 i=k+1 n δ i k i=1 n δ i = k i=1 n δ i k i=1 k δ i δ n, δ n δ j, j = 1,..., k i=1 k P n (P 1 P k ) δ n + k 1 + δ i, δ j δ n, j = 1,..., k i=
19 Modeling a restricted set of values We may want variable x to only take on values in the set {a 1,..., a m }. We introduce binary variables y 1,..., y m and the constraints x = m a j y j, j=1 m y j = 1, y j {0, 1} j=1 y i serves to select which a i will be selected. The set of variables {y 1, y 2,..., y m } is called a special ordered set (SOS) of variables
20 Example: building a warehouse Suppose we are modeling a facility location problem in which we must decide on the size of a warehouse to build. The choices of sizes and associated cost are shown below: Size Cost Warehouse sizes and costs 19-20
21 Example: building a warehouse Using binary decision variables x 1, x 2,..., x 5, we can model the cost of building the warehouse as cost = 100x x x x x 5. The warehouse will have size size = 10x x x x x 5, and we have the SOS constraint x 1 + x 2 + x 3 + x 4 + x 5 =
22 What about integers? What if x is an integer, i.e. x {1, 2,..., 10} First option: use 10 separate variables: 10 x = k y k, k=1 10 k=1 y k = 1, y k {0, 1} Another option: use 4 binary variables (less symmetry): x = y 1 + 2y 2 + 4y 3 + 8y 4, 1 x 10, y k {0, 1} Performance is solver-dependent. If the solver allows integer constraints directly, that s often the right choice
23 Example: Sudoku fill grid with numbers {1, 2,..., 9} each row and each column contains distinct numbers each 3 3 cluster contains distinct numbers 19-23
24 Example: Sudoku Decision variables: X {0, 1} (729 binary variables) { 1 if (i, j) entry is a k X ijk = 0 otherwise Can fill in known entries right away. Basic constraints: (324 in total) 9 k=1 X ijk = 1 i, j (SOS constraint) 9 i=1 X ijk = 1 j, k (column j contains exactly one k) 9 j=1 X ijk = 1 i, k (row i contains exactly one k) (i,j) C X ijk = 1 C, k (cluster C contains exactly one k) Much trickier to model using other integer representations! Julia code: Sudoku.ipynb 19-24
19. Fixed costs and variable bounds
CS/ECE/ISyE 524 Introduction to Optimization Spring 2017 18 19. Fixed costs and variable bounds ˆ Fixed cost example ˆ Logic and the Big M Method ˆ Example: facility location ˆ Variable lower bounds Laurent
More information21. Set cover and TSP
CS/ECE/ISyE 524 Introduction to Optimization Spring 2017 18 21. Set cover and TSP ˆ Set covering ˆ Cutting problems and column generation ˆ Traveling salesman problem Laurent Lessard (www.laurentlessard.com)
More informationDiscrete Math, Spring Solutions to Problems V
Discrete Math, Spring 202 - Solutions to Problems V Suppose we have statements P, P 2, P 3,, one for each natural number In other words, we have the collection or set of statements {P n n N} a Suppose
More informationDynamic Programming. Shuang Zhao. Microsoft Research Asia September 5, Dynamic Programming. Shuang Zhao. Outline. Introduction.
Microsoft Research Asia September 5, 2005 1 2 3 4 Section I What is? Definition is a technique for efficiently recurrence computing by storing partial results. In this slides, I will NOT use too many formal
More informationChapter 3. Cartesian Products and Relations. 3.1 Cartesian Products
Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing
More informationBuilding a Computer Adder
Logic Gates are used to translate Boolean logic into circuits. In the abstract it is clear that we can build AND gates that perform the AND function and OR gates that perform the OR function and so on.
More informationSoftware Testing Lecture 5. Justin Pearson
Software Testing Lecture 5 Justin Pearson 2017 1 / 34 Covering Logical Expressions Logic expression show up in many situations Covering logical expressions have a long history, many are the covering criteria
More informationInteger programming: an introduction. Alessandro Astolfi
Integer programming: an introduction Alessandro Astolfi Outline Introduction Examples Methods for solving ILP Optimization on graphs LP problems with integer solutions Summary Introduction Integer programming
More informationComputational Integer Programming. Lecture 2: Modeling and Formulation. Dr. Ted Ralphs
Computational Integer Programming Lecture 2: Modeling and Formulation Dr. Ted Ralphs Computational MILP Lecture 2 1 Reading for This Lecture N&W Sections I.1.1-I.1.6 Wolsey Chapter 1 CCZ Chapter 2 Computational
More informationReconnect 04 Introduction to Integer Programming
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, Reconnect 04 Introduction to Integer Programming Cynthia Phillips, Sandia National Laboratories Integer programming
More informationLecture 6: Finite Fields
CCS Discrete Math I Professor: Padraic Bartlett Lecture 6: Finite Fields Week 6 UCSB 2014 It ain t what they call you, it s what you answer to. W. C. Fields 1 Fields In the next two weeks, we re going
More informationInteger Programming Introduction. C, T int (3) 6C +7T 21 (1) Maximize : 12C +13T Subject to
Integer Programming Introduction Divisibility assumption of LP allows for fractions: Produce 7.8 units of a product, buy 12500.33 liters of oil, hire 12.123 people for full time. Clearly some activities
More informationThe core of solving constraint problems using Constraint Programming (CP), with emphasis on:
What is it about? l Theory The core of solving constraint problems using Constraint Programming (CP), with emphasis on: l Modeling l Solving: Local consistency and propagation; Backtracking search + heuristics.
More information22A-2 SUMMER 2014 LECTURE Agenda
22A-2 SUMMER 204 LECTURE 2 NATHANIEL GALLUP The Dot Product Continued Matrices Group Work Vectors and Linear Equations Agenda 2 Dot Product Continued Angles between vectors Given two 2-dimensional vectors
More informationError Detection and Correction: Small Applications of Exclusive-Or
Error Detection and Correction: Small Applications of Exclusive-Or Greg Plaxton Theory in Programming Practice, Fall 2005 Department of Computer Science University of Texas at Austin Exclusive-Or (XOR,
More informationThis means that we can assume each list ) is
This means that we can assume each list ) is of the form ),, ( )with < and Since the sizes of the items are integers, there are at most +1pairs in each list Furthermore, if we let = be the maximum possible
More informationScheduling with Constraint Programming. Job Shop Cumulative Job Shop
Scheduling with Constraint Programming Job Shop Cumulative Job Shop CP vs MIP: Task Sequencing We need to sequence a set of tasks on a machine Each task i has a specific fixed processing time p i Each
More informationSolutions to Second Midterm
Operations Management 33:623:386:04/05 Professor Eckstein, Spring 2002 Solutions to Second Midterm Q1 Q2 Q3 Total Max 35 33 30 94 Mean 25.9 26.4 27.6 79.8 Median 27.0 27.0 28.0 81.0 Min 8 15 20 50 Standard
More informationProblem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.
Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination III (Spring 2007) Problem 1: Suppose A, B, C and D are finite sets
More informationInteger Programming ISE 418. Lecture 16. Dr. Ted Ralphs
Integer Programming ISE 418 Lecture 16 Dr. Ted Ralphs ISE 418 Lecture 16 1 Reading for This Lecture Wolsey, Chapters 10 and 11 Nemhauser and Wolsey Sections II.3.1, II.3.6, II.3.7, II.5.4 CCZ Chapter 8
More informationProof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:
Proof Terminology Proof Techniques (Rosen, Sections 1.7 1.8) TOPICS Direct Proofs Proof by Contrapositive Proof by Contradiction Proof by Cases Theorem: statement that can be shown to be true Proof: a
More informationKnights, Knaves, and Logical Reasoning Mechanising the Laws of Thought
Knights, Knaves, and Logical Reasoning Mechanising the Laws of Thought Who? From? Fabio Papacchini and Francis Southern The University of Manchester When? 3rd December, 2014 Introduction Thinking Formalising
More informationAlgorithmic Game Theory and Applications. Lecture 4: 2-player zero-sum games, and the Minimax Theorem
Algorithmic Game Theory and Applications Lecture 4: 2-player zero-sum games, and the Minimax Theorem Kousha Etessami 2-person zero-sum games A finite 2-person zero-sum (2p-zs) strategic game Γ, is a strategic
More information14.461: Technological Change, Lecture 4 Competition and Innovation
14.461: Technological Change, Lecture 4 Competition and Innovation Daron Acemoglu MIT September 19, 2011. Daron Acemoglu (MIT) Competition and Innovation September 19, 2011. 1 / 51 Competition and Innovation
More informationMore on Regular Languages and Non-Regular Languages
More on Regular Languages and Non-Regular Languages CSCE A35 Decision Properties of Regular Languages Given a (representation, e.g., RE, FA, of a) regular language L, what can we tell about L? Since there
More information5 Integer Linear Programming (ILP) E. Amaldi Foundations of Operations Research Politecnico di Milano 1
5 Integer Linear Programming (ILP) E. Amaldi Foundations of Operations Research Politecnico di Milano 1 Definition: An Integer Linear Programming problem is an optimization problem of the form (ILP) min
More information1 Propositional Logic
CS 2800, Logic and Computation Propositional Logic Lectures Pete Manolios Version: 384 Spring 2011 1 Propositional Logic The study of logic was initiated by the ancient Greeks, who were concerned with
More informationJane and Joe are measuring the circumference of a dime with a string. Jane' s result is: 55 mm Joe's result is: 58 mm
A LESSON ON ABSOLUTE VALUE Jane and Joe are measuring the circumference of a dime with a string. Jane' s result is: 55 mm Joe's result is: 58 mm Tom knows the true length of the circumference: 56 mm. He
More informationMATH 320, WEEK 7: Matrices, Matrix Operations
MATH 320, WEEK 7: Matrices, Matrix Operations 1 Matrices We have introduced ourselves to the notion of the grid-like coefficient matrix as a short-hand coefficient place-keeper for performing Gaussian
More informationThe exam is closed book, closed calculator, and closed notes except your one-page crib sheet.
CS 188 Fall 2015 Introduction to Artificial Intelligence Final You have approximately 2 hours and 50 minutes. The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.
More informationPropositional Language - Semantics
Propositional Language - Semantics Lila Kari University of Waterloo Propositional Language - Semantics CS245, Logic and Computation 1 / 41 Syntax and semantics Syntax Semantics analyzes Form analyzes Meaning
More informationCSCI3390-Lecture 14: The class NP
CSCI3390-Lecture 14: The class NP 1 Problems and Witnesses All of the decision problems described below have the form: Is there a solution to X? where X is the given problem instance. If the instance is
More informationBackground for Discrete Mathematics
Background for Discrete Mathematics Huck Bennett Northwestern University These notes give a terse summary of basic notation and definitions related to three topics in discrete mathematics: logic, sets,
More informationBinary addition example worked out
Binary addition example worked out Some terms are given here Exercise: what are these numbers equivalent to in decimal? The initial carry in is implicitly 0 1 1 1 0 (Carries) 1 0 1 1 (Augend) + 1 1 1 0
More informationBob Brown, CCBC Essex Math 163 College Algebra, Chapter 1 Section 7 COMPLETED 1 Linear, Compound, and Absolute Value Inequalities
Bob Brown, CCBC Essex Math 163 College Algebra, Chapter 1 Section 7 COMPLETED 1 What is the following symbol? < The inequality symbols < > are used to compare two real numbers. The meaning of anyone of
More informationIntroduction into Vehicle Routing Problems and other basic mixed-integer problems
Introduction into Vehicle Routing Problems and other basic mixed-integer problems Martin Branda Charles University in Prague Faculty of Mathematics and Physics Department of Probability and Mathematical
More informationComputational Integer Programming Universidad de los Andes. Lecture 1. Dr. Ted Ralphs
Computational Integer Programming Universidad de los Andes Lecture 1 Dr. Ted Ralphs MIP Lecture 1 1 Quick Introduction Bio Course web site Course structure http://coral.ie.lehigh.edu/ ted/teaching/mip
More informationCSC Discrete Math I, Spring Propositional Logic
CSC 125 - Discrete Math I, Spring 2017 Propositional Logic Propositions A proposition is a declarative sentence that is either true or false Propositional Variables A propositional variable (p, q, r, s,...)
More informationCSC9R6 Computer Design. Practical Digital Logic
CSC9R6 Computer Design Practical Digital Logic 1 References (for this part of CSC9R6) Hamacher et al: Computer Organization App A. In library Floyd: Digital Fundamentals Ch 1, 3-6, 8-10 web page: www.prenhall.com/floyd/
More informationPropositional Logic Not Enough
Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks
More informationProving logical equivalencies (1.3)
EECS 203 Spring 2016 Lecture 2 Page 1 of 6 Proving logical equivalencies (1.3) One thing we d like to do is prove that two logical statements are the same, or prove that they aren t. Vocabulary time In
More informationWeek 3: Reductions and Completeness
Computational Complexity Theory Summer HSSP 2018 Week 3: Reductions and Completeness Dylan Hendrickson MIT Educational Studies Program 3.1 Reductions Suppose I know how to solve some problem quickly. How
More informationCSE 311 Lecture 28: Undecidability of the Halting Problem. Emina Torlak and Kevin Zatloukal
CSE 311 Lecture 28: Undecidability of the Halting Problem Emina Torlak and Kevin Zatloukal 1 Topics Final exam Logistics, format, and topics. Countability and uncomputability A quick recap of Lecture 27.
More informationLecture 2. MATH3220 Operations Research and Logistics Jan. 8, Pan Li The Chinese University of Hong Kong. Integer Programming Formulations
Lecture 2 MATH3220 Operations Research and Logistics Jan. 8, 2015 Pan Li The Chinese University of Hong Kong 2.1 Agenda 1 2 3 2.2 : a linear program plus the additional constraints that some or all of
More information- 1.2 Implication P. Danziger. Implication
Implication There is another fundamental type of connectives between statements, that of implication or more properly conditional statements. In English these are statements of the form If p then q or
More informationLogic As Algebra COMP1600 / COMP6260. Dirk Pattinson Australian National University. Semester 2, 2017
Logic As Algebra COMP1600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2017 Recap: And, Or, and Not x AND y x y x y 0 0 0 0 1 0 1 0 0 1 1 1 x OR y x y x y 0 0 0 0 1 1 1 0 1 1 1
More informationInteger vs. constraint programming. IP vs. CP: Language
Discrete Math for Bioinformatics WS 0/, by A. Bockmayr/K. Reinert,. Januar 0, 0:6 00 Integer vs. constraint programming Practical Problem Solving Model building: Language Model solving: Algorithms IP vs.
More informationHomework 3. Convex Optimization /36-725
Homework 3 Convex Optimization 10-725/36-725 Due Friday October 14 at 5:30pm submitted to Christoph Dann in Gates 8013 (Remember to a submit separate writeup for each problem, with your name at the top)
More informationx 1 + 4x 2 = 5, 7x 1 + 5x 2 + 2x 3 4,
LUNDS TEKNISKA HÖGSKOLA MATEMATIK LÖSNINGAR LINJÄR OCH KOMBINATORISK OPTIMERING 2018-03-16 1. a) The rst thing to do is to rewrite the problem so that the right hand side of all constraints are positive.
More information14.461: Technological Change, Lecture 3 Competition, Policy and Technological Progress
14.461: Technological Change, Lecture 3 Competition, Policy and Technological Progress Daron Acemoglu MIT September 15, 2016. Daron Acemoglu (MIT) Competition, Policy and Innovation September 15, 2016.
More informationSymbolic Logic Outline
Symbolic Logic Outline 1. Symbolic Logic Outline 2. What is Logic? 3. How Do We Use Logic? 4. Logical Inferences #1 5. Logical Inferences #2 6. Symbolic Logic #1 7. Symbolic Logic #2 8. What If a Premise
More informationCoarse-grain Model of the SNAP Scheduling Problem: Problem specification description and Pseudo-boolean encoding
Coarse-grain Model of the SNAP Scheduling Problem: Problem specification description and Pseudo-boolean encoding Geoff Pike, Donghan Kim and Alejandro Bugacov July 11, 2003 1 1 Problem Specification The
More informationAll numbered readings are from Beck and Geoghegan s The art of proof.
MATH 301. Assigned readings and homework All numbered readings are from Beck and Geoghegan s The art of proof. Reading Jan 30, Feb 1: Chapters 1.1 1.2 Feb 6, 8: Chapters 1.3 2.1 Feb 13, 15: Chapters 2.2
More informationMULTIPLE CHOICE QUESTIONS DECISION SCIENCE
MULTIPLE CHOICE QUESTIONS DECISION SCIENCE 1. Decision Science approach is a. Multi-disciplinary b. Scientific c. Intuitive 2. For analyzing a problem, decision-makers should study a. Its qualitative aspects
More informationChapter 3: Discrete Optimization Integer Programming
Chapter 3: Discrete Optimization Integer Programming Edoardo Amaldi DEIB Politecnico di Milano edoardo.amaldi@polimi.it Sito web: http://home.deib.polimi.it/amaldi/ott-13-14.shtml A.A. 2013-14 Edoardo
More informationn logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)
Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.6) TOPICS Propositional Logic Logical Operators Truth Tables Implication Logical Equivalence Inference Rules What you should know about propositional
More informationLecture notes 2: Applications
Lecture notes 2: Applications Vincent Conitzer In this set of notes, we will discuss a number of problems of interest to computer scientists where linear/integer programming can be fruitfully applied.
More informationUnit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9
Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Typeset September 23, 2005 1 Statements or propositions Defn: A statement is an assertion
More informationTautologies, Contradictions, and Contingencies
Section 1.3 Tautologies, Contradictions, and Contingencies A tautology is a proposition which is always true. Example: p p A contradiction is a proposition which is always false. Example: p p A contingency
More informationProof by Contradiction
Proof by Contradiction MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Proof by Contradiction Fall 2014 1 / 12 Outline 1 Proving Statements with Contradiction 2 Proving
More informationIn the original knapsack problem, the value of the contents of the knapsack is maximized subject to a single capacity constraint, for example weight.
In the original knapsack problem, the value of the contents of the knapsack is maximized subject to a single capacity constraint, for example weight. In the multi-dimensional knapsack problem, additional
More informationMotivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory
Motivation CS389L: Automated Logical Reasoning Lecture 10: Overview of First-Order Theories Işıl Dillig Last few lectures: Full first-order logic In FOL, functions/predicates are uninterpreted (i.e., structure
More informationThe Retail Planning Problem Under Demand Uncertainty. UCLA Anderson School of Management
The Retail Planning Problem Under Demand Uncertainty George Georgiadis joint work with Kumar Rajaram UCLA Anderson School of Management Introduction Many retail store chains carry private label products.
More informationMethods and Models for Combinatorial Optimization
Methods and Models for Combinatorial Optimization Modeling by Linear Programming Luigi De Giovanni, Marco Di Summa Dipartimento di Matematica, Università di Padova De Giovanni, Di Summa MeMoCO 1 / 35 Mathematical
More informationAlgorithms. NP -Complete Problems. Dong Kyue Kim Hanyang University
Algorithms NP -Complete Problems Dong Kyue Kim Hanyang University dqkim@hanyang.ac.kr The Class P Definition 13.2 Polynomially bounded An algorithm is said to be polynomially bounded if its worst-case
More informationAnnouncements CompSci 102 Discrete Math for Computer Science
Announcements CompSci 102 Discrete Math for Computer Science Read for next time Chap. 1.4-1.6 Recitation 1 is tomorrow Homework will be posted by Friday January 19, 2012 Today more logic Prof. Rodger Most
More informationMVE165/MMG630, Applied Optimization Lecture 6 Integer linear programming: models and applications; complexity. Ann-Brith Strömberg
MVE165/MMG630, Integer linear programming: models and applications; complexity Ann-Brith Strömberg 2011 04 01 Modelling with integer variables (Ch. 13.1) Variables Linear programming (LP) uses continuous
More informationLinear Equations in Linear Algebra
1 Linear Equations in Linear Algebra 1.4 THE MATRIX EQUATION A = b MATRIX EQUATION A = b m n Definition: If A is an matri, with columns a 1, n, a n, and if is in, then the product of A and, denoted by
More informationCPSC 536N: Randomized Algorithms Term 2. Lecture 9
CPSC 536N: Randomized Algorithms 2011-12 Term 2 Prof. Nick Harvey Lecture 9 University of British Columbia 1 Polynomial Identity Testing In the first lecture we discussed the problem of testing equality
More informationDiscrete Mathematics and Its Applications
Discrete Mathematics and Its Applications Lecture 1: Proposition logic MING GAO DASE @ ECNU (for course related communications) mgao@dase.ecnu.edu.cn Sep. 12, 2017 Outline 1 Propositions 2 Connectives
More informationLecture 4: Constructing the Integers, Rationals and Reals
Math/CS 20: Intro. to Math Professor: Padraic Bartlett Lecture 4: Constructing the Integers, Rationals and Reals Week 5 UCSB 204 The Integers Normally, using the natural numbers, you can easily define
More informationContradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730
MATH 2730 Contradiction Benjamin V.C. Collins James A. Swenson Contrapositive The contrapositive of the statement If A, then B is the statement If not B, then not A. A statement and its contrapositive
More informationChapter 3: Discrete Optimization Integer Programming
Chapter 3: Discrete Optimization Integer Programming Edoardo Amaldi DEIB Politecnico di Milano edoardo.amaldi@polimi.it Website: http://home.deib.polimi.it/amaldi/opt-16-17.shtml Academic year 2016-17
More informationInteger Programming Chapter 15
Integer Programming Chapter 15 University of Chicago Booth School of Business Kipp Martin November 9, 2016 1 / 101 Outline Key Concepts Problem Formulation Quality Solver Options Epsilon Optimality Preprocessing
More informationMODELING (Integer Programming Examples)
MODELING (Integer Programming Eamples) IE 400 Principles of Engineering Management Integer Programming: Set 5 Integer Programming: So far, we have considered problems under the following assumptions:
More informationIntro to Nonlinear Optimization
Intro to Nonlinear Optimization We now rela the proportionality and additivity assumptions of LP What are the challenges of nonlinear programs NLP s? Objectives and constraints can use any function: ma
More informationPhilosophy 148 Announcements & Such. The Probability Calculus: An Algebraic Approach XI. The Probability Calculus: An Algebraic Approach XII
Branden Fitelson Philosophy 148 Lecture 1 Branden Fitelson Philosophy 148 Lecture 2 Philosophy 148 Announcements & Such Administrative Stuff Branden s office hours today will be 3 4. We have a permanent
More informationExamples of Groups
Examples of Groups 8-23-2016 In this section, I ll look at some additional examples of groups. Some of these will be discussed in more detail later on. In many of these examples, I ll assume familiar things
More informationDiscrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland
Discrete Mathematics W. Ethan Duckworth Fall 2017, Loyola University Maryland Contents 1 Introduction 4 1.1 Statements......................................... 4 1.2 Constructing Direct Proofs................................
More informationMATH 521, WEEK 2: Rational and Real Numbers, Ordered Sets, Countable Sets
MATH 521, WEEK 2: Rational and Real Numbers, Ordered Sets, Countable Sets 1 Rational and Real Numbers Recall that a number is rational if it can be written in the form a/b where a, b Z and b 0, and a number
More informationLinear equations The first case of a linear equation you learn is in one variable, for instance:
Math 52 0 - Linear algebra, Spring Semester 2012-2013 Dan Abramovich Linear equations The first case of a linear equation you learn is in one variable, for instance: 2x = 5. We learned in school that this
More informationOnline Scheduling of Parallel Jobs on Two Machines is 2-Competitive
Online Scheduling of Parallel Jobs on Two Machines is 2-Competitive J.L. Hurink and J.J. Paulus University of Twente, P.O. box 217, 7500AE Enschede, The Netherlands Abstract We consider online scheduling
More information1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT
1 Algebraic Methods In an algebraic system Boolean constraints are expressed as a system of algebraic equations or inequalities which has a solution if and only if the constraints are satisfiable. Equations
More informationDiscrete Mathematics
Discrete Mathematics Jeremy Siek Spring 2010 Jeremy Siek Discrete Mathematics 1 / 20 Outline of Lecture 4 1. Overview of First-Order Logic 2. Beyond Booleans: natural numbers, integers, etc. 3. Universal
More information24. Nonlinear programming
CS/ECE/ISyE 524 Introduction to Optimization Spring 2017 18 24. Nonlinear programming ˆ Overview ˆ Example: making tires ˆ Example: largest inscribed polygon ˆ Example: navigation using ranges Laurent
More information7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.
7.5 Operations with Matrices Copyright Cengage Learning. All rights reserved. What You Should Learn Decide whether two matrices are equal. Add and subtract matrices and multiply matrices by scalars. Multiply
More informationcse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference
cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference quantifiers x P(x) P(x) is true for every x in the domain read as for all x, P of x x P x There is an x in the
More informationMath101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:
Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2: 03 17 08 3 All about lines 3.1 The Rectangular Coordinate System Know how to plot points in the rectangular coordinate system. Know the
More informationPropositional Logic. Spring Propositional Logic Spring / 32
Propositional Logic Spring 2016 Propositional Logic Spring 2016 1 / 32 Introduction Learning Outcomes for this Presentation Learning Outcomes... At the conclusion of this session, we will Define the elements
More informationP P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions
Summary of the previous lecture Recall that we mentioned the following topics: P: is the set of decision problems (or languages) that are solvable in polynomial time. NP: is the set of decision problems
More informationMTH 35, SPRING 2017 NIKOS APOSTOLAKIS
MTH 35, SPRING 2017 NIKOS APOSTOLAKIS 1. Linear independence Example 1. Recall the set S = {a i : i = 1,...,5} R 4 of the last two lectures, where a 1 = (1,1,3,1) a 2 = (2,1,2, 1) a 3 = (7,3,5, 5) a 4
More informationLecture 02: Propositional Logic
Lecture 02: Propositional Logic CSCI 358 Discrete Mathematics, Spring 2016 Hua Wang, Ph.D. Department of Electrical Engineering and Computer Science January 19, 2015 Propositional logic Propositional logic
More informationMore Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences. Computability and Logic
More Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences Computability and Logic Equivalences Involving Conditionals Some Important Equivalences Involving Conditionals
More informationLecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.
Lecture #14: 0.0.1 NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. 0.0.2 Preliminaries: Definition 1 n abstract problem Q is a binary relations on a set I of
More informationCourse 4 Finite Automata/Finite State Machines
Course 4 Finite Automata/Finite State Machines The structure and the content of the lecture is based on (1) http://www.eecs.wsu.edu/~ananth/cpts317/lectures/index.htm, (2) W. Schreiner Computability and
More informationSlides 9: Queuing Models
Slides 9: Queuing Models Purpose Simulation is often used in the analysis of queuing models. A simple but typical queuing model is: Queuing models provide the analyst with a powerful tool for designing
More informationIntroduction to optimization and operations research
Introduction to optimization and operations research David Pisinger, Fall 2002 1 Smoked ham (Chvatal 1.6, adapted from Greene et al. (1957)) A meat packing plant produces 480 hams, 400 pork bellies, and
More informationMath Real Analysis
1 / 28 Math 370 - Real Analysis G.Pugh Sep 3 2013 Real Analysis 2 / 28 3 / 28 What is Real Analysis? Wikipedia: Real analysis... has its beginnings in the rigorous formulation of calculus. It is a branch
More informationCourse Staff. Textbook
Course Staff CS311H: Discrete Mathematics Intro and Propositional Logic Instructor: Işıl Dillig Instructor: Prof. Işıl Dillig TAs: Jacob Van Geffen, Varun Adiga, Akshay Gupta Class meets every Monday,
More information