03 Binary Variables - Handout
03 Binary Variables - Handout
PROGRAMMING Using
Binary Variables
Week 3
BINARY Integer Programming
• Many complex problems can be modeled using 0-1 variables and other variables
that are forced to assume integer values. Usually a 0-1 variable corresponds to
an activity that is or is not undertaken – it is called a BINARY variable. (BIN)
• Often you can think of these variables as switches, either:
• Turning something on (1) or turning it off (0)
• Denoting True(1) or False (0)
• They can be used with the Boolean Operators “AND”. “OR” & “NOT”
• Examples:
• Capital Budgeting (Invest = 1, Don’t = 0)
• Fixed Charge (Produce = 1, Don’t = 0)
• Location Planning / Set-covering (Locate here = 1, Don’t = 0)
• Many problems can only be modelled via the BIN variables
Problem 3.1 – Project NPV Year1 Year2 Year3 Year4 Year5
CAPITAL Budgeting 1 20 1 3 4 1 1
2 25 3 4 2 1 2
3 30 4 4 3 2 1
• You are given a group of
4 35 6 5 3 2 3
possible investment projects for
your company’s capital. For 5 40 5 1 2 3 8
each project you are given the 6 42 4 5 2 5 5
NPV the projects would add to 7 31 2 3 1 4 6
the firm, as well as the cash
8 33 0 0 3 6 7
outflow required by each
project during each year*. 9 35 1 1 4 8 3
Determine the investments that 10 37 3 2 4 1 6
maximize the firm’s NPV. The
11 38 9 2 4 1 1
firm has 30M dollars available
during each of the next 5 years. 12 39 8 7 1 1 1
*These are long term project that have a 5 year build phase
Problem 11 – CAPITAL Budgeting
Part 2
• You can select only 1 of projects 5, 6 or 7
• If you select project 11, you must also accept project 2
• But you can select project 2 without selecting project 11
• Projects 9 & 10 must be select together or not at all