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

Slides:



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

Triangular Form and Gaussian Elimination Boldly on to Sec. 7.3a…
1 Constraint Programming Maurizio Gabbrielli Universita’ di Bologna Slides by: K. Marriott.
1 Chapter 1: Constraints What are they, what do they do and what can I use them for.
Solve an equation with variables on both sides
Table of Contents Recall that to solve the linear system of equations in two variables... we needed to find the values of x and y that satisfied both equations.
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.
Step 1: Simplify Both Sides, if possible Distribute Combine like terms Step 2: Move the variable to one side Add or Subtract Like Term Step 3: Solve for.
3-4 Solving Systems of Linear Equations in 3 Variables
5.3 Systems of Linear Equations in Three Variables
Systems of Equations and Inequalities
Identifying Solutions
Solving Linear Systems Substitution Method Lisa Biesinger Coronado High School Henderson,Nevada.
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.
Copyright © 2015, 2011, 2007 Pearson Education, Inc. 1 1 Chapter 4 Systems of Linear Equations and Inequalities.
Table of Contents Solving Linear Systems of Equations - Dependent Systems The goal in solving a linear system of equations is to find the values of the.
Equations, Inequalities, and Mathematical Models 1.2 Linear Equations
1.6 – Solve Linear Inequalities A linear inequality in one variable can be written in one of the following forms, where a and b are real numbers and a.
4.1 Solving Linear Inequalities
Chapter 1 - Fundamentals Equations. Definitions Equation An equation is a statement that two mathematical statements are equal. Solutions The values.
Solving Systems Using Elimination
Triangular Form and Gaussian Elimination Boldly on to Sec. 7.3a… HW: p odd.
Copyright © 2010 Pearson Education, Inc. All rights reserved. 2.1 – Slide 1.
Chapter 2 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 2-1 Solving Linear.
Copyright © 2010 Pearson Education, Inc. All rights reserved Sec
Copyright © Cengage Learning. All rights reserved. Systems of Equations and Inequalities.
Bell Work: Simplify: √500,000,000. Answer: 10,000√5.
§ 2.2 The Addition Property of Equality. Angel, Elementary Algebra, 7ed 2 Linear Equations A linear equation in one variable is an equation that can be.
Chapter 2 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 2-1 Solving Linear.
Solving Linear Equations Define and use: Linear Equation in one variable, Solution types, Equivalent Equations.
Copyright © Cengage Learning. All rights reserved. Systems of Linear Equations and Inequalities in Two Variables 7.
Use the substitution method
Solve Linear Systems by Substitution January 28, 2014 Pages
1 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 4-1 Systems of Equations and Inequalities Chapter 4.
Solving Systems by Elimination 5.4 NOTES, DATE ____________.
Chapter 4: System of Equations and Inequalities Section 4.4: Solving Linear Systems Using the Addition Method.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Systems of Equations in Three Variables Identifying Solutions Solving Systems.
CHAPTER THREE: SYSTEMS OF LINEAR EQUATIONS AND INEQUALITIES ALGEBRA TWO Section Solving Systems of Linear Equations in Three Variables.
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.
Use the elimination method
Chapter 2: Simplification, Optimization and Implication
What are they, what do they do and what can I use them for.
Section 2.3 Solving Linear Equations Involving Fractions and Decimals; Classifying Equations.
PROPERTIES QUIZ ON THURSDAY!!!
Solving Systems of Equations Using Matrices
Unit 2: Absolute Value Absolute Value Equations and Inequalities
Optimization Problems
Chapter 2: Simplification, Optimization and Implication
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.
Elimination Method Day 1
Copyright 2013, 2009, 2005, 2002 Pearson, Education, Inc.
Chapter 2 Equations and Inequalities in One Variable
Linear Inequalities and Absolute Value
MODULE 4 EQUATIONS AND INEQUALITIES.
Copyright © Cengage Learning. All rights reserved.
Systems of Equations and Inequalities
Systems of Equations and Inequalities
- Finish Unit 1 test - Solving Equations variables on both sides
Equations and Inequalities
Solve an inequality using subtraction
PROGRAMME F5 LINEAR EQUATIONS and SIMULTANEOUS LINEAR EQUATIONS.
Section Solving Linear Systems Algebraically
2 Equations, Inequalities, and Applications.
Example 2B: Solving Linear Systems by Elimination
Simplex method (algebraic interpretation)
2 Chapter Chapter 2 Equations, Inequalities and Problem Solving.
Presentation transcript:

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

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

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

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

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

6 Solved Form Solvers u 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

7 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

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

9 Constraint Simplifiers u constraints C1 and C2 are equivalent wrt variables V if u 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 u Example X=succ(Y) and X=succ(Z) wrt {X}

10 Simplifier Definition u 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 u We can make a simplifier for real inequalities from Fourier’s algorithm

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

12 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

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

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

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

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

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

18 Simplex Algorithm u The most widely used optimization algorithm u Optimizes a linear function wrt to linear constraints u Related to Gauss-Jordan elimination u Described in the book – but we won’t have time to cover it in 505

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

20 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

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

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