Download presentation
Presentation is loading. Please wait.
Published byElfreda Webster Modified over 9 years ago
1
Decision Modeling Using Boolean Algebra in Spreadsheets Bryan Barney Reagan, Ph.D. Saint Leo University
2
Law of Excluded Middle Aristotle (384 – 322 BC) “For every assertion must, as is admitted, be either true or false, ….” - Aristotle, Section 1, Part 4, “Categories”, The Organon, Translated by E. M. Edghill (2011) Page 15. Bust of Aristotle. Marble, Roman copy after a Greek bronze original By Lysippos from 330 BC; Photo http://commons.wikimedia.org/wiki/Lysippos
3
Roots of X*X = X George Boole (1815 -1864 A.D.) Founded the field of Boolean Algebra in his two works: Mathematical Analysis of Logic (1847) and An Investigation of the Laws of Thought (1854) In order to use simple mathematical operations to model logic. In order for X*X to equal X, he used the values zero (0) and one (1) for false and true. (Boole, George, Investigation of the Laws of Thought, Chapter 3. pp. 39-51) http://www.maa.org
4
Boole’s Notation
5
Negation
6
Conjunction
7
Disjunction Disjunction is denoted with +, but it is not simple addition since it must not produce results greater than 1. We can derive an expression for “A + B” using DeMorgan’s Thereom, with which Boole was familiar. A + B = 1 – ((1-A)*(1-B)) = 1 – (1 – A – B + AB) = 1 – 1 + A + B – AB = A + B - AB
8
Disjunction
9
Distributive Properties in Boolean Algebras
10
Logical Values in Spreadsheets Modern spreadsheets such as Excel support the Logical Values TRUE and FALSE, which may be entered as text or the result of comparisons using relational operators.
11
Logical /Boolean Operators in Excel OperatorExcel Notation Negation=NOT(B12) Conjunction=AND(B12, C12) =AND(B12:C12) Disjunction=OR(B12, C12) =OR(B12:C12)
12
Conditional Formulas in Excel =IF( Test Expression, Value if True, Value if False) =IF(B12>500, 400, 0) =IF(AND(B12>500,C12>0), 400, 0) =IF(B12=MAX($B$2:$B$26),”*”,””)
13
Conversion Between Logical and Binary Values To convert from Logical to Binary, Excel allows multiplication of the values {False, True} by 1 to produce {0, 1}. = B12 * 1 To convert from Binary values to Logical, you can use the OR function with a single parameter to convert an value from {0, 1} to {False, True}. = OR(C12)
14
Solver Constraints
15
Thank you Bryan.Reagan@SaintLeo.edu
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.