in the name of allah dss lab 04 solving problems 1tahani aldweesh

19
In the Name Of Allah DSS Lab 04 Solving Problems 1 Tahani ALdweesh

Upload: roland-lynch

Post on 20-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

  • In the Name Of AllahDSSLab 04Solving Problems*Tahani ALdweesh

    Tahani ALdweesh

  • ObjectivesUsing Excels Solver to solve LP problems.Exercise.

    *Tahani ALdweesh

    Tahani ALdweesh

  • Steps to solve (LP) Step 1: formulate the LP on paper Step 2: set up the problem in Excel Step 3: Add the solver add-in Step 4: Set up the Solver*Tahani ALdweesh

    Tahani ALdweesh

  • Problem 1The Blendex Oil Company blends a regular and premium product from two ingredients, heptane and octane. Each liter of regular is composed of exactly 50% heptane and 50% octane. Each liter of premium is composed of exactly 40% heptane and 60% octane. During this planning period there are exactly 200,000 liters of heptane and 310,000 liters of octane available. The profit contributions per liter of the regular and premium product are $0.03 and $0.04 per liter respectively.

    *Tahani ALdweesh

    Tahani ALdweesh

  • Cont-The Blendex Oil Company blends a regular and premium product from two ingredients, heptane and octane.- Each liter of regular is composed of exactly :50% heptane and 50% octane.- Each liter of premium is composed of exactly: 40% heptane and 60% octane.- there are exactly: 200,000 liters of heptane and 310,000 liters of octane available. - The profit contributions per liter of the regular and premium product are: $0.03 and $0.04 per liter respectively.

    *Tahani ALdweesh

    Tahani ALdweesh

  • Step 1: formulate the LP on paper In this step we need to determine : 1-Decision Variables:HR = liters of heptane used to produce regular gasoline.OR = liters of octane used to produce regular gasolineHP = liters of heptane used to produce premium gasoline.OP = liters of octane used to produce premium gasoline

    *Tahani ALdweesh

    Tahani ALdweesh

  • 2-Objective function: to maximize the total contribution from selling both types of gasoline: Max = 0.03 * (HR + OR) + 0.04 * (HP + OP)

    *Tahani ALdweeshRegularPremium

    Tahani ALdweesh

  • 3-Constraints :A) - Each liter of regular must have exactly : 50% heptane and 50% octane: (50/100 )HR - (50/100 )OR0.5 HR 0.5 OR = 0

    B)- Each liter of premium must have exactly:40% heptane and 60% octane: (40/100 )HP - (60/100 )OP0.6 HP 0.4 OP = 0

    *Tahani ALdweesh

    Tahani ALdweesh

  • C)- There is exactly 200,000 liters of heptane:HR + HP
  • Step 2: set up the problem in Excel*Tahani ALdweesh

    Tahani ALdweesh

  • Decision Variable

    *Tahani ALdweeshDecision Variable

    Tahani ALdweesh

  • Constraints*Tahani ALdweeshHR + HP
  • Constraints : Cont*Tahani ALdweesh0.5 HR 0.5 OR = 0 0.6 HP 0.4 OP = 0 0.5HR0.6HP0.4OP0.5 OR0.5HR 0.5 OR0.6 HP 0.4 OP

    Tahani ALdweesh

  • Max = 0.03 * (HR + OR) + 0.04 * (HP + OP)

    *Tahani ALdweeshHR+OR0.04*(HP+OP)0.03*(HR+OR)HP+OPMax

    Tahani ALdweesh

  • Step 3 : Add SolverTahani ALdweesh*

    Tahani ALdweesh

  • SolutionTahani ALdweesh*

    Tahani ALdweesh

  • Problem 2 ( Exercise )Tahani ALdweesh*How many pounds of oat and corn should be fed to each cattle per day to minimize feed cost ?

    Tahani ALdweesh

  • Any QuestionTahani ALdweesh*

    Tahani ALdweesh

  • Tahani ALdweesh*

    Tahani ALdweesh

    *