Chapter 2: Simplification, Optimization and Implication

Slides:



Advertisements
Similar presentations
1 Constraint operations: Simplification, Optimization and Implication.
Advertisements

1 Chapter 2: Simplification, Optimization and Implication Where we learn more fun things we can do with constraints.
SIMPLEX METHOD FOR LP LP Model.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Operation Research Chapter 3 Simplex Method.
1 Constraint Programming Maurizio Gabbrielli Universita’ di Bologna Slides by: K. Marriott.
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method.
1 Chapter 1: Constraints What are they, what do they do and what can I use them for.
5.6 Maximization and Minimization with Mixed Problem Constraints
Sebastian Bitzer Seminar Constraint Logic Programming University of Osnabrueck November 11 th 2002 The Simplex Algorithm.
Chapter 4 The Simplex Method
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
3-6 Solving Systems of Linear Equations in Three Variables Objective: CA 2.0: Students solve systems of linear equations and inequalities in three variables.
Linear Systems The definition of a linear equation given in Chapter 1 can be extended to more variables; any equation of the form for real numbers.
7.1 Systems of Linear Equations: Two Equations Containing Two Variables.
Systems of Equations and Inequalities
Identifying Solutions
Solving Linear Systems Substitution Method Lisa Biesinger Coronado High School Henderson,Nevada.
SECTION 6.1 SYSTEMS OF LINEAR EQUATIONS: SYSTEMS OF LINEAR EQUATIONS: SUBSTITUTION AND ELIMINATION SUBSTITUTION AND ELIMINATION.
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
SYSTEM OF EQUATIONS SYSTEM OF LINEAR EQUATIONS IN THREE VARIABLES
1 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 2-1 Equations and Inequalities Chapter 2.
CSE583: Programming Languages David Notkin 22 February David Notkin 22.
Chapter 6 Linear Programming: The Simplex Method
Chapter 4.1 Solving Systems of Linear Equations in two variables.
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
 System of Equations › Solutions to a two equation system › Solutions to a three equation system › Solutions to a system of inequalities  Break Even.
Linear Equations in Two Variables A Linear Equation in Two Variables is any equation that can be written in the form where A and B are not both zero.
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
Bell Work: Simplify: √500,000,000. Answer: 10,000√5.
Do Now (3x + y) – (2x + y) 4(2x + 3y) – (8x – y)
MATH 416 Equations & Inequalities II. Solving Systems of Equations Apart from the graphic method, there are three other methods we could use to solve.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
Solving Systems by Elimination 5.4 NOTES, DATE ____________.
Copyright © 2010 Pearson Education, Inc. All rights reserved Sec
CHAPTER THREE: SYSTEMS OF LINEAR EQUATIONS AND INEQUALITIES ALGEBRA TWO Section Solving Systems of Linear Equations in Three Variables.
Business Mathematics MTH-367 Lecture 14. Last Lecture Summary: Finished Sec and Sec.10.3 Alternative Optimal Solutions No Feasible Solution and.
STROUD Worked examples and exercises are in the text 1 STROUD Worked examples and exercises are in the text Programme F5: Linear equations PROGRAMME F5.
1 Chapter 1: Constraints What are they, what do they do and what can I use them for.
Algebra 2 Solving Systems Algebraically Lesson 3-2 Part 2.
Chapter 2: Simplification, Optimization and Implication
What are they, what do they do and what can I use them for.
An Introduction to Linear Programming
Solving Linear Program by Simplex Method The Concept
Optimization Problems
Example: Solve the equation. Multiply both sides by 5. Simplify both sides. Add –3y to both sides. Simplify both sides. Add –30 to both sides. Simplify.
Chapter 2 Equations and Inequalities in One Variable
5 Systems of Linear Equations and Matrices
Simplify 2 7 +√5 Simplify 4 2−√ √5 Solve 1+
Linear Inequalities and Absolute Value
THE SUBSTITUTION METHOD
Chap 9. General LP problems: Duality and Infeasibility
Systems of Linear Equations
Matrices and Systems of Equations
Chapter 3 The Simplex Method and Sensitivity Analysis
MODULE 4 EQUATIONS AND INEQUALITIES.
Part 3. Linear Programming
Systems of Equations and Inequalities
Copyright © Cengage Learning. All rights reserved.
Algebra: Equations and Inequalities
Equations and Inequalities
Solving Systems of Equations by the Substitution and Addition Methods
PROGRAMME F5 LINEAR EQUATIONS and SIMULTANEOUS LINEAR EQUATIONS.
Section Solving Linear Systems Algebraically
2 Equations, Inequalities, and Applications.
2 Equations, Inequalities, and Applications.
6.3 Using Elimination to Solve Systems
11.6 Systems of Equations.
Simplex method (algebraic interpretation)
Presentation transcript:

Chapter 2: Simplification, Optimization and Implication Where we learn more fun things we can do with constraints.

Simplification, Optimization and Implication Constraint Simplification Projection Constraint Simplifiers Optimization Implication and Equivalence

Constraint Simplification Two equivalent constraints represent the same information, but One may be simpler than the other Removing redundant constraints, rewriting a primitive constraint, changing order, substituting using an equation all preserve equivalence

Redundant Constraints One constraint C1 implies another C2 if the solutions of C1 are a subset of those of C2 C2 is said to be redundant wrt C1 It is written

Redundant Constraints We can remove a primitive constraint which is redundant with respect to the rest of the constraint. Definitely produces a simpler constraint

Solved Form Solvers Since a solved form solver creates equivalent constraints it can be a simplifier For example using the term constraint solver Or using the Gauss-Jordan solver

Projection It becomes even more important to simplify when we are only interested in some variables in the constraint Simplified wrt to V and I

Projection The projection of a constraint C onto variables V is a constraint C1 such that C1 only involves variables V Every solution of C is a solution of C1 A solution of C1 can be extended to give a solution of C

Fourier’s Algorithm Eliminates variable y from linear ineqs C Write each ineq with y on one side of ineq For each pair produce a new ineq The result is all new ineqs and those ineqs in C which do not involve y

Fourier’s Algorithm Example Projecting out Y Result only involving X

Projecting Term Constraints We can also project term constraints projected onto {X,Z} is But what is X = cons(Y,Z) projected onto X? Answer: there is no such constraint!

Constraint Simplifiers constraints C1 and C2 are equivalent wrt variables V if taking any solution of one and restricting it to the variables V, this restricted solution can be extended to be a solution of the other Example X=succ(Y) and X=succ(Z) wrt {X}

Simplifier Definition A constraint simplifier is a function simpl which takes a constraint C and set of variables V and returns a constraint C1 that is equivalent to C wrt V We can make a simplifier for real inequalities from Fourier’s algorithm

Tree Constraint Simplifier apply the term solver to C obtaining C1 if C1 is false then return false foreach equation x=t in C1 if x is in V then if t is a variable not in V substitute x for t throughout C1 and result else add x=t to result return result

Tree Simplification Example Tree constraint to be simplified wrt {Y,T} Equivalent constraint from tree solver Discard the first two equations, keep the third and use the last to substitute for U by T

Simplifier Properties Desirable properties of a simplifier are: projecting: weakly projecting: for all constraints C2 that are equivalent to C1 wrt V a weakly projecting solver never uses more variables than is required Both properties allow a simplifier to be used as a solver (How?)

Optimization Often given some problem which is modelled by constraints we don’t want just any solution, but a “best” solution This is an optimization problem We need an objective function so that we can rank solutions, that is a mapping from solutions to a real value

Optimization Problem An optimization problem (C,f) consists of a constraint C and objective function f A valuation v1 is preferred to valuation v2 if f(v1) < f(v2) An optimal solution is a solution of C such that no other solution of C is preferred to it.

Optimization Example An optimization problem Find the closest point to the origin satisfying the C. Some solutions and f value Optimal solution

Optimization Some optimization problems have no solution. Constraint has no solution Problem has no optimum For any solution there is more preferable one

Simplex Algorithm The most widely used optimization algorithm Optimizes a linear function wrt to linear constraints Related to Gauss-Jordan elimination

Simplex Algorithm A optimization problem (C, f) is in simplex form: C is the conjunction of CE and CI CE is a conjunction of linear equations CI constrains all variables in C to be non-negative f is a linear expression over variables in C

Simplex Example An optimization problem in simplex form An arbitrary problem can be put in simplex form by replacing unconstrained var X by new vars replacing ineq by new var s and

Simplex Solved Form A simplex optimization problem is in basic feasible solved (bfs) form if: The equations are in solved form Each constant on the right hand side is non-negative Only parameters occur in the objective A basic feasible solution is obtained by setting each parameter to 0 and each non-parameter to the constant in its equation

Simplex Example An equivalent problem to that before in bfs form We can read off a solution and its objective value

Simplex Algorithm starting from a problem in bfs form repeat Choose a variable y with negative coefficient in the obj. func. Find the equation x = b + cy + ... where c<0 and -b/c is minimal Rewrite this equation with y the subject y = -b/c + 1/c x + ... Substitute -b/c + 1/c x + ... for y in all other eqns and obj. func. until no such variable y exists or no such equation exists if no such y exists optimum is found else there is no optimum solution

Simplex Example Choose variable Z, the 2nd eqn is only one with neg. coeff Choose variable Y, the first eqn is only one with neg. coeff No variable can be chosen, optimal value 2 is found

Another example An equivalent simplex form is: An optimization problem showing contours of the objective function

Another example Basic feasible solution form: circle Choose S3, replace using 2nd eq Optimal solution: box

The Missing Part How do we get the initial basic feasible solution? Solve a different simplex problem Add artificial variables to make equations in basic feasible solved form Minimize the sum of the artificial variables If the sum is zero we can construct a bfs for the original problem

The Missing Part Example Original simplex form equations With artificial vars in bfs form: Objective function: minimize

Missing Part Example II Problem after minimization of objective function Removing the artificial variables, the original problem

Implication and Equivalence Other important operations involving constraints are: implication: test if C1 implies C2 impl(C1, C2) answers true, false or unknown equivalence: test if C1 and C2 are equivalent equiv(C1, C2) answers true, false or unknown

Implication Example For the house constraints CH, will stage B have to be reached after stage C? For this question the answer if false, but if we require the house to be finished in 15 days the answer is true

Implication and Equivalence We can use impl to define equiv and vice versa We can use a solver to do simple impl tests e.g.

Simplification, Optimization and Implication Summary Equivalent constraints can be written in many forms, hence we desire simplification Particularly if we are only interested in the interaction of some of the variables Many problems desire a optimal solution, there are algms (simplex) to find them We may also be interested in asking questions involving implication