2 Linear Programming Part 1
2 Linear Programming Part 1
PnPaezahHamzah
Part1:
WhatisLinearProgramming(LP)? GeneralformofLPmodel AssumptionsofLPmodel FormulationofLPmodel GraphicalSolution onlyforLPproblemsin2variables
Part2:
SimplexSolution ComputerSolution
2
Explainthemeaningoftheterms:
Linearprogramming Objectivefunction Constraints Feasiblesolutions Optimalsolution Equalityandinequality Graphicalmethod Isoprofit/isocostfunction Cornerpoint(extremepoint)
4
orminimumcost.
5
ExamplesofproblemssolvedbyLP:
allocationofproductionfacilities,productionmix
EveryLPproblemconsistsof:
decisions thatmustbemade anobjectivetobeachieved asetofrestrictions(orconstraints)toconsider
ThegeneralLPmodelinvariablesXi forallocatingm resourceswith nconstraintscanbeformulatedasfollows: MAXIMIZE(orMINIMIZE)Z=c1X1 +c2X2 ++cnXn subjectto:a11X1 +a12X2 ++a1nXn b1 a21X1 +a22X2 ++a2nXn b2 ak1X1 +ak2X2 ++aknXn bk am1X1 +am2X2 ++amnXn bm wherei=1,,n Xi 0
theobjective function
constraints
nonnegativity constraints
Ifallthefunctions inthemodelarelinear LinearProgramming(LP)problem. Ifallthevariables intheLPmodelareinteger IntegerLinearProgramming(ILP) problem. Ifsomeofthevariables areinteger MixedIntegerLinearProgramming(MILP) problem.
9
1.
Certainty Additivity
allparametersofthemodelareknownwithcertainty. thetotalconsumptionofeachresource,aswellastheoverall
objectivevaluearetheaggregatesoftheresourceconsumptions andthecontributionstotheproblemobjective,resultedfrom carryingouteachactivityindependently. thecontributionofeachvariableintheobjectivefunctionorits usageoftheresourcesaredirectlyproportionaltothevalueof thevariable.
2.
3.
Proportionality
4.
Divisibility
thedecisionvariablescantakeonanyfractionalvalues.
5.
Nonnegativity thedecisionvariablescantakeonanyvaluegreaterthanorequal
tozero.
10
Step1:Identifyanddefinethedecisionvariables (unknowns)oftheproblem. Step2:Writetheobjectivefunctiontobeoptimized (maximize/minimize)asalinearfunctionof thedecisionvariables. Step3:Translatetherequirements,restrictions,or wishes,thatareinnarrativeformtolinear equationsorinequalitiesintermsofthe decisionvariables. Step4:Addthenonnegativityconstraints.
11
MaxiDesignSdn.Bhd.hasbeenawardedacontracttodesignalabelforanew computerproducedbyKCComputerCompany.MaxiDesignestimatesthatat least160hourswillberequiredtocompletetheproject.Threeofthefirms graphicdesignersareavailableforassignmenttothisproject.Aida,aseniorteam leader;Bakri,aseniordesigner;andCarol,ajuniordesigner. SinceAidahasworkedonseveralprojectsforKC,themanagementhasspecified thatAidamustbeassignedwithatleast45%ofthetotalnumberofhours assignedtothetwoseniordesigners.Toprovidelabeldesigningexperiencefor Carol,Carolmustbeassignedatleast20%ofthetotalprojecttime.However,the numberofhoursassignedtoCarolmustnotexceed25%ofthetotalnumberof hoursassignedtothetwoseniordesigners.Duetootherprojectcommitments, Aidahasamaximumof50hoursavailabletoworkonthisproject. HourlysalaryratesareRM40forAida,RM30forBakri,andRM20forCarol. FormulateanLPmodeltodeterminethenumberofhourseachgraphicdesigner shouldbeassignedtotheprojectinordertominimizethetotalsalary.
13
ThereareTWOmethodstosolvebygraphing:
A.
Isoprofit/IsocostLineMethod
isoprofit linemethodformaximizationproblems. isocost linemethodforminimizationproblems.
B.
Corner(Extreme)PointMethod
forbothmaximizationandminimizationproblems.
14
Step1:Formulatetheproblem. Step2:Foreachconstraint,drawagraphofthefeasiblesolutions.
Step3:Drawanobjectivefunctionline. Step4:Determinetheoptimumpoint.
15
Step4:Determinetheoptimumpoint. Formaximizationproblems:
Optimumpoint
Feasible Region
x
Objective Function
17
Step1:Graphtheconstraints. Step2:Locateallthecornerpointsofthegraph.
Step3:Determinetheoptimalvalue.
Testallthecornerpointstoseewhichoneyieldstheoptimum valuefortheobjectivefunction.
18
SolvetheABCCo.problembygraphing.
a. Ifthecompanycansellallthechandeliersitcan produce,howmanyofeachdesignshoulditmakein ordertomaximizetheprofit? b. Determinethequantityofeachresourceusedatthe optimalproductionlevel.Identifyallresourcesthatare fullyutilized.
19
Adieticianisconsideringasimplebreakfastmenu(excludingbeverages) consistingofscrambledeggandcurrypuffs,forparticipantsofan orientationprogram.Anadequateamountofthefollowingnutrientsin thebreakfast:vitaminA,vitaminB,andironmustbeincluded.Each smallscoopofscrambledeggcontains3milligramsofvitaminA,4 milligramsofvitaminB,and1milligramofiron.Eachcurrypuffcontains 3milligramsofvitaminA,2milligramsofvitaminB,and2milligramof iron.TheminimumrequirementsforvitaminA,vitaminBandironare30 milligrams,24milligramsand12milligramsrespectively.Eachscoopof scrambledeggcosts30senandeachcurrypuffcosts35sen.The dieticianwouldliketodeterminehowmuchofeachtypeoffoodtoserve inordertomeetthenutrientrequirementsandalsotominimisethetotal cost.Thefollowingtablesummarisestherelevantinformation.
20
NutrientContent(mg.) Nutrient VitaminA VitaminB Iron Unit Cost ScrambledEgg 3 4 1 30sen CurryPuff 3 2 2 35sen
a. b. c.