Docsity

Integer Programming in Computational Sustainability: An Introduction - Prof. Ramy, Summaries of Compilers

Partial preview of the text

Download Integer Programming in Computational Sustainability: An Introduction - Prof. Ramy and more Summaries Compilers in PDF only on Docsity!

Topics in Computational Sustainability

CS 325 Spring 2016 Making Choices: Integer Programming

Core Elements of Decision Making

Green Eco Village Farms Problem An Example where Integrality Matters

Danish Green EcoTown Fictitious Data Small Wind Turbine Large Scale Wind Turbine Capital Available Annual Profit from Selling Energy to Grid

Purchase cost per turbine $5 million $50 million $ million Maximum purchase quantity

Graphical Method for Linear Programming #Large Wind Turbine

Small Wind

Turbines

Graphical Method for Linear Programming #Large Wind Turbine

Small Wind

Turbines Profit = 10

Violates Divisibility Assumption

of LP

  • (^) Divisibility Assumption of Linear Programming : Decision variables in a linear programming model are allowed to have any values, including fractional values, that satisfy the functional and nonnegativity constraints.
  • (^) Since the number of turbines purchased must have an integer value, the divisibility assumption is violated.

Graphical Method for Integer Programming

  • (^) When an integer programming problem has just two decision variables , its optimal solution can be found by applying the graphical method for linear programming with just one change at the end.
  • (^) We begin as usual by graphing the feasible region for the LP relaxation, determining the slope of the objective function lines, and moving a straight edge with this slope through this feasible region in the direction of improving values of the objective function.
  • (^) However, rather than stopping at the last instant the straight edge passes through this feasible region, we now stop at the last instant the straight edge passes through an integer point that lies within this feasible region.
  • (^) This integer point is the optimal solution.

Integer Programming

  • (^) When are “non-integer” solutions okay?
    • (^) Solution is naturally divisible
      • (^) e.g., pounds, hours
    • (^) Solution represents a rate
      • (^) e.g., units per week
  • (^) When is rounding okay?
    • (^) When numbers are large
      • e.g., rounding 114.286 to 114 is probably okay.
  • (^) When is rounding not okay?
    • (^) When numbers are small
      • e.g., rounding 2.6 to 2 or 3 may be a problem.
    • Binary variables
      • (^) yes-or-no decisions
  • (^) Binary Integer Programming

Data for the Problem

Investment budget = $14M

Investment 1 2 3 4 5 6

Cost (millions

dollars)

Total production

(100KW)

Capital Budgeting Allocation Problem (one resource)

Knapsack Problem

  • (^) Why is a problem with the characteristics of the previous problem called the Knapsack Problem?
  • (^) It is an abstraction, considering the simple problem: A hiker trying to fill her knapsack to maximum total value. Each item she considers taking with her has a certain value and a certain weight. An overall weight limitation gives the single constraint. Practical applications: Project selection and capital budgeting allocation problems Storing a warehouse to maximum value given the indivisibility of goods and space limitations
  • (^) The previous constraints represent “economic indivisibilities”, either a project is selected, or it is not. It is not possible to select a fraction of a project.
  • (^) Similarly, integer variables can model logical requirements (e.g., if item 2 is selected, then so is item 1.)

How to model “logical” constraints

  • (^) Exactly 3 items are selected.
  • (^) If item 2 is selected, then so is item 1.
  • (^) If item 1 is selected, then item 3 is not selected.
  • (^) Either item 4 is selected or item 5 is selected, but not both.