JournalofTaibahUniversityforSciencexxx(2016)xxx–xxx
ScienceDirect
An
active-set
trust-region
algorithm
for
solving
warehouse
location
problem
Y.
Abo-Elnaga
b,1,
B.
El-Sobky
a,∗,
L.
Al-Naser
baDepartmentofMathematics,FacultyofScience,AlexandriaUniversity,Alexandria,Egypt bDepartmentofMathematics,FacultyofScience,TaibahUniversity,SaudiArabia Received6March2016;receivedinrevisedform7April2016;accepted10April2016
Abstract
Inthispaper,anactive-setstrategyisusedtogetherwithapenaltymethodandatrust-regiontechniquetosolveawarehouses locationproblem.Thetrustregionisusedtomodifythelocalmethodinsuchawaythatitisguaranteedtoconvergeatallevenifthe startingpointisfarawayfromthesolution.Thetrust-regionmethodisawell-acceptedtechniqueinnonlinearoptimizationtoassure globalconvergenceandismorerobustwhentheydealwithroundingerrors.Oneoftheadvantagesoftrust-regionmethodisthatit doesnotrequiretheobjectivefunctionofthemodeltobeconvex.Thewarehouseslocationprobleminvolvesthedeterminationof thenumberandsizeofservicecenter(warehouses)tosupplyasetofdemandcenterssoastominimizetotaldistributioncost.
Theproposedapproachistestedontwoproblemstoconfirmtheeffectivenessofthealgorithm.Ourresultswiththeproposed approachhavebeencomparedtothosereportedintheliterature.
©2016TheAuthors.ProductionandhostingbyElsevierB.V.onbehalfofTaibahUniversity.Thisisanopenaccessarticleunder theCCBY-NC-NDlicense(http://creativecommons.org/licenses/by-nc-nd/4.0/).
Keywords: Warehouseslocation;Activeset;Penaltymethod;Trustregion
1. Introduction
Thewarehouselocationproblem(WLP)commonly faced in management of distribution systems is that todetermineasetof geographicalwarehouselocation
∗Correspondingauthor.Tel.:+201156646045.
E-mailaddress:[email protected](B.El-Sobky). 1 Permanentaddress:DepartmentofBasicScience,TenofRamadan City,HigherTechnologicalInstitute,Egypt.
PeerreviewunderresponsibilityofTaibahUniversity.
http://dx.doi.org/10.1016/j.jtusci.2016.04.003
1658-3655©2016TheAuthors.ProductionandhostingbyElsevierB.V.onbehalfofTaibahUniversity.Thisisanopenaccessarticleunderthe CCBY-NC-NDlicense(http://creativecommons.org/licenses/by-nc-nd/4.0/).
whichsatisfy andsatisfactorythe demand of the cus-tomerservicewithminimumtotaldistributioncostover arelativelylongplanningperiod.
Thewarehouselocationproblem(WLP)consistsof theordinarytransportationproblemwiththeadditional featureofafixedcostassociatedwitheachsupplier.A suppliercanbe used towardsmeetingthe demandsof the customers only if the corresponding fixed cost is incurred.Theproblemistodeterminewhichsuppliers touseandhowthecustomerdemandsshouldbemet,so thattotalcostisminimized.
Mostoftherecentlypublishedalgorithmsfor(WLP) usebranchandboundbasedonaLagrangianrelaxation ofdemandconstraintsThewarehouselocationproblem (WLP)consistsofthefollowing:
There are n potential supply points or warehouse andmdemand points(stores).Ifwarehouseiis avail-able,providing a fixed cost zi is incurred first. If the
warehouse i is not use at all, the fixed cost zi is not
incurred.Inadditiontofixedcosts,portedeachunitofthe commoditytransformwarehouseitodemandjincurs atransportationcost Aij.The problemis todetermine
whichwarehousestouseandhowmanyunitsofthe com-moditytotransportfromthewarehousetoeachdemand pointsoastomeetallthedemands(stores)atminimum totalcost.
The solution of the warehouse location problem shouldmeetsomeobjectives.Itmustbeableto evalu-atepossiblenumberofwarehouseconfiguration,capable withnonlinearitiesduetoboththefixedcostassociated withalternativeconfigurationsandvariablecost associ-atedwiththesystemthroughout,andthesolutionmust befeasibleandefficient.
Manyauthorshavebeenuseddifferentapproachesto meetsomeobjectives.Authorsin[1]prefertodescribe heuristicprogrammingapproachtosolvethisproblem, wheretheyemphasisonworkingtowardsoptimum solu-tionproceduresratherthanoptimumsolution.Authorsin [2]attemptedtotreatthenon-linearityofthewarehouse costfunction.
Morerecently,authorin[3]proposedextensionsof theworkdoneby [1,4]andothers.Manyof the tech-niquescurrentlyavailablearebasedonthebranchand boundwhichisdescribedindetailintheliterature[5,6]. Also thereare many other treatment for solving such problem, all of these treatments success in meeting someoftheobjectivesseealso,[5,7–12].Weconclude fromtheliteraturethat,thewarehouselocationproblem (WLP)isagreatinteresttomanyresearchesandthere areseverallocalmethodshavebeenproposedtosolve it.Alocalmethodisthemethodwhichisdesignedto convergetooptimalsolutionfromcloseststartingpoint. Thatis,thereisnoguaranteethatitconvergesifitstarts fromremote.
Inthispaper,wewilluseatrust-regionglobalization strategytofindthesolutionofwarehouseslocation prob-lem.Globalizationstrategymeansmodifyingthelocal methodinsuchawaythatitisguaranteedtoconverge atallevenifthestartingpointisfarawayfromthe solu-tion.Asweknowtrust-regionmethodisawell-accepted technique in unconstrainedand constrained optimiza-tionproblemstoassureglobalconvergenceandismore robustwhentheydealwithroundingerrors.Oneofthe advantages of trust-region method is that it does not requirethe objectivefunctionof themodel tobe con-vex.However,intraditionaltrust-regionmethod,after solvingatrust-regionsubproblem,weneedtousesome
criteriontocheckifthetrialstepisacceptable.Ifnot,the subproblemmustberesolvedwithareducedtrust-region radius.Formoredetailssee[13–17].
In this paper, we use an active-setstrategy in[18] toconvertthe warehouselocationproblemtoequality constrainedoptimizationproblem.Theheadfeature of thesuggestedactivesetisthatitisidentifiedandupdated naturallybythestep.See[13,19].
Apenaltymethodisusedinthispaper,totransform the equality constrained optimization problem which obtained from the above step to unconstrained opti-mization problem.Some penalty functions have been suggestedandmanycontributionsaddressingthe con-vergenceofthesemethodshavebeenmade,see[20,21]. Thispaperisorganizedasfollows.Amathematical formulationofthewarehouselocationproblemis pre-sentedinSection2.Adetaileddescriptionofthemain stepsofthealgorithmwhichisusedtosolvewarehouse locationproblemarepresentedinSection3.InSection4, numerical results for two test problems are reported. Finally,Section5containsconcludingremarks.
Thefollowingnotationsareusedthroughouttherest of thepaper. Thesequenceof pointsgenerated bythe algorithmisdenoted{xk}.Asubscriptedfunctionmeans
thevalueofthefunctionevaluatedataparticularpoint. Forexample,fk=f(xk),∇fk=∇xf(xk),∇2fk =∇x2f(xk),
and so on. We use the notation xk(i) to denote the ith component ofthevectorxk,andsoon.Finally,allthe
normsusedinthispaperare2-norms.
2. MathematicalformulationofWLP
Themathematicalformulationofthewarehouse loca-tionproblemhasthefollowingform:
minimize f = n i=1 m j=1 Aijxij+ n i=1 ziyi subjectto n i=1 xij =1, ∀j={1,...,m}, xij≤yi, ∀i={1,...,n}, j ={1,...,m} xij≥0, ∀i={1,...,n}, j={1,...,m} yi ∈ {0,1}, ∀i={1,...,n}, (2.1) whereiandjarethenumbersofwarehousesandstores respectively,Aijrepresentamatrixcontainingthecosts
associatedtothesupplying(supplyCost),xijisamatrix
indicatingifthewarehouseiissuppliedbythestorej,zis thefixedcost,andyisavectorindicatingwhatwarehouse
are opened. The above problemcan bewritten in the followingconstrainedoptimizationproblemform
minimize f(x)
subject to cp(x)=0, p ∈ E, cp(x)≤0, p ∈ I,
(2.2)
where f :Rn(m+1) →R, cp:Rn(m+1) →R2n(m+1),
EI={1,...,2n(m+1)},andEI=∅.Thefunctions
f andcp,p={1,...,2n(m+1)}are presumedtobeat
leasttwicecontinuouslydifferentiable.
Following the active-set strategy in [18], we define a 0-1 diagonal indicator matrix W(x) ∈ R2n(m+1)×2n(m+1),whosediagonalentriesare
wp(x)= ⎧ ⎪ ⎨ ⎪ ⎩ 1, ifp ∈ E, 1 ifp ∈ Iandcp(x)≥0, 0 ifp ∈ Iandcp(x)<0 (2.3)
Usingtheabovematrix,wetransformproblem(2.2)to thefollowingequalityconstrainedoptimizationproblem
minimize f(x)
subjectto C(x)TW(x)C(x)=0, (2.4)
where C(x)=(c1(x), ..., c2n(m+1)(x))T is continuously
differentiablefunction.
Usingapenaltymethod,theequalityconstrained opti-mization problem (2.4) transformed to the following unconstrainedoptimizationproblem
minimize (x;ρ)=f(x)+ρ 2W(x)C(x) 2 2, subjectto x ∈ Rn(m+1), (2.5) where ρ>0 is a parameter usually called the penalty parameter.
Inthefollowingsection,wepresentmainstepsofour trust-regionalgorithmforsolving(WLP).
3. Trust-regionalgorithmoutline
This section is devoted to the description of our method.
3.1. Computingastep
Inthissection,atrialstepdkiscomputedbysolving
thefollowingtrust-regionsubproblem minimize fk+∇fkTd+ 1 2d TH kd+ρk 2Wk(Ck+∇C T kd) 2 subjectto d≤δk, (3.1)
whereHkistheHessianmatrixoftheobjectivefunction
f(xk)or anapproximationtoit.Sinceourconvergence
theoryisbasedonthefractionofCauchydecrease condi-tion,thereforeageneralizeddoglegalgorithmintroduced by[22]and[11]isusedtocomputedk.
3.2. Testingthestepandupdatingδk
Oncedk iscomputed,itneedstobetestedto
deter-minewhetheritwillbeaccepted.Soweusethefunction
(x;ρ)asameritfunction.
Theactualreductioninthemeritfunctioninmoving from(xk)to(xk+1)isdefinedas
Aredk =Φ(xk;ρk)−Φ(xk+1;ρk).
Aredkcanbewrittenasfollows
Aredk =f(xk)−f(xk+1)
+ρk
2 [WkCk 2−
Wk+1Ck+12]. (3.2) Thepredictedreductioninthemeritfunctionisdefined as Predk =−∇fkTdk− 1 2d T kHkdk +ρk 2 [WkCk 2− Wk(Ck+∇CTkdk)2]. (3.3) Totestdktoknowwhetheritisaccepted.Thisisdone
bycomparingPredkagainstAredk.Ourwayoftesting
dkandupdatingthetrust-regionradiusδkispresentedin
Step4ofAlgorithm3.1below.
Afteracceptingdk,weupdatetheparameterρkusing
aschemesuggestedbyYuan[23].Toupdateρk,weset
ρk+1=ρkif
Predk ≥σ∇CkWkCkmin{∇CkWkCk,δk}, (3.4)
whereσ ispre-specifiedfixedconstant.Otherwise,we setρk+1=2ρk.
Finally, the algorithm is terminated when either ∇fk+∇CkWkCk≤1 or dk≤2 for some
1>0and2>0.
3.3. Themasteralgorithm
Masterstepsofouralgorithmispresentedinthe fol-lowingalgorithm.
Algorithm3.1. Trust-regionalgorithm Step0.
Givenx0 ∈ Rn(m+1).ComputeW0.Setρ0=1. Choose1,2,α1,α2,η1,andη2suchthat1>0,
2>0,0<α1<1<α2,and0<η1<η2≤1.Chooseδmin,
δmax,andδ0suchthatδmin≤δ0≤δmax.
Setk=0.
Step1.If∇fk+∇CkWkCk≤1,thenstop.
Step2.Computethestepdkbysolvingsubproblem
(3.1).
Ifdk≤2,thenstop.
Endif.
Setxk+1=xk+dk.
Step3.ComputeWk+1.
Step4.While Aredk
Predk <η1,orPredk≤0.
Donotacceptthestep.
Reduce the trust-region radius by setting δk=
α1dk.
Computeanewtrialstepdk.
If η1≤ AredPredk
k <η2, then accept the step: xk+1= xk+dk.
Setthetrust-regionradius:δk+1=max(δk,δmin).
Endif. IfAredk
Predk ≥η2,thenacceptthestep:xk+1=xk+dk.
Set the trust-region radius: δk+1=min{δmax,
max{δmin,α2δk}}. Endif. Step5. (a)Setρk+1=ρk. (b)IfPredk≤σ∇CkWkCkmin{∇CkWkCk, δk},thensetρk+1=2ρk. Endif.
Step6.Setk=k+1andgotoStep1.
A global convergence theorem of the trust-region Algorithm3.1ispresentedin[15].
Inthefollowingsection,we introduceawarehouse locationtwo testproblems toobviousthe goalof our paper.
4. Warehouselocationtestproblems
Inthis section,we present thenumericalresults of twotestproblemsforthewarehouselocation optimiza-tionproblem.Theproposedtrust-regionAlgorithm3.1 hasbeenperformedonalaptopwithIntelCore (TM)i7-2670QMCPU2.2GHzand8GBRAM.Algorithm3.1 was implementedas aMATLAB code and rununder MATLABversion7.10.0.499(R2010a).
In our algorithm we begin from any starting point
x0.Wechosethe initialtrust-regionradiustobe δ0=
max(scp0 ,δmin),whereδmin=10−3.Wechosethe
max-imumtrust-regionradiustobeδmax=105δ0.
ThevaluesoftheconstantsthatareneededinStep0of Algorithm3.1weresettobeη1=10−4,η2=0.5,α1=0.5,
α2=2,1=10−8,2=10−7,σ=10−2andβ=0.1. Thetwowarehouselocationoptimizationtest prob-lemsarepresentedinthefollowingtwosubsections.
4.1. Warehouselocationtestproblem1
Letusconsiderthefollowingnumericalexample,to illustratetheapplicationoftheproposedalgorithm.The problemhasthefollowingcharacteristics:
Thenumberofstoresi=6andthenumberof ware-housesj=6.
Thefixedcostz={33,47,27,39,41,26}.
ThematrixAijwhichcontainingthecostsassociated
tothesupplycostis:
Aij = ⎛ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎜ ⎝ 5 19 8 2 23 12 1 7 15 8 7 27 15 6 4 5 19 1 4 27 33 24 6 9 11 8 16 11 5 2 21 14 4 26 18 6 ⎞ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎟ ⎠ (4.1)
Byusingourproposedalgorithmtosolvetestproblem1 we foundthat theobjective functionis520.6467.The same test problem 1 was solved by many researches suchas[2]whoseintroduceapartialdualalgorithmand obtained the objective function 549.0. Also,the same problemwassolvedbyresearches[24]withtheir algo-rithm andthe objective function whose obtained it is 551.2.Itisseemthatouralgorithmhasperformedvery welloverallcomparedwiththosepreviouslyreported. Distribution of units transported from warehouse j to demandpointiaresummarizedinTable1.Table2show the distributionof the optimal value function at each cell.
Table1
Distributionofunitstransportedfromwarehousetodemandpoint.
xi y1=1 y2=0 y3=0 y4=0 y5=0 y6=1 x1 1 0 0 0 0 0 x2 0.60527 0 0 0 0 0.39473 x3 0 0 0 0 0 1 x4 1 0 0 0 0 0 x5 0 0 0 0 0 1 x6 0 0 0 0 0 1
Table2
Distributionoftheoptimalvaluefunction.
38 33 33 33 33 33 6.0527 0 0 0 0 106.5906 0 0 0 0 0 1 39.999 0 0 0 0 0 0 0 0 0 0 2 26 26 26 26 26 32 Table3
Comparison objective function value of method in [2] with Algorithm3.1.
Problem Methodin[2] Algorithm(3.1)
16×50 97.4 94.2 16×50 98.7 94.1 16×50 97.3 92.7 16×50 99.2 91.7 16×50 96.5 89.4 16×50 96.7 88.2 16×50 95.5 93.2 16×50 93.8 94.7 16×50 98.2 92.9
4.2. Warehouselocationtestproblem2
TodemonstratetheeffectivenessoftheAlgorithm3.1, we compareourresultswiththepartialdualapproach introducedin[2].Weuseasetrandomlygenerated prob-lems,withuniformlydistributionof thecoefficienton the following ranges Aij=[10, 50]and z=[300, 600].
Author in [2] generatednine problemswith16 ware-houseand50demandpointsandwesolvetheseproblems byAlgorithm3.1.Theresultsofthesetestsareshownin Table3.FromthereportedresultsinTable3itisclear thattheproposedtrustregionalgorithmproducedresults betterthanthoseintroducedin[2].
5. Conclusions
Inthispaper,weintroduceatrustregionalgorithmfor solving the warehouselocation problem.In this algo-rithm, an active set strategy is used together with a penaltymethodtoconvertthe computationof thetrial steptoeasytrust-regionsubproblemsimilartothisforthe unconstrainedcase.Thecomputationalresultsshowthat the solution of warehouselocation problemusing our algorithm hasconsistentlyperformed well,and gener-allyproducedresultswhichareagoodas,orbetterthan, thoseofthepreviouslyacceptedapproach.Wetestour algorithmusingrandomlygeneratedproblemsoflarge sizetoclarifytheeffectivenessofouralgorithm.
Forfuturework,therearemanyquestionsthatshould beanswered.Althoughwehaveimplementedthe algo-rithmandtestedit,webelievethattheimplementation of the algorithm should be refined with efficiency in mined.In particular,abetterwayforsolvingthe trust-regionsubproblemsthatcanhandlelarge-scaleproblems should be used. Updating the penalty parameter is anotherpointthatneedstoberefined.Thisindeedwill reducethecostofthecomputationofthesteps.
Acknowledgements
Firstandforemost,wegivethankstoGodforthegrace andmercyhehasshownus.WedependonHimandwe could not have accomplished thiswork withoutHim. WordscannotexpressourdeepgratitudetoThe Dean-shipofScientificResearch,TaibahUniversity,KSAfor supportingthisprojectbygrantNo.1437/1416.
References
[1]A.Kuehn,M.Hamburger,Aheuristicprogramforlocating ware-houses,Manag.Sci.(9)(1963).
[2]Barrie,M.Baker,Apartialdualalgorithmforcapacitated ware-houselocationproblem,Eur.J.Oper.Res.23(1986)48–56. [3]E.Feldman,F.Lehrer,T.Ray,Warehouselocationsunder
con-tinuouseconomiesofscale,Manag.Sci.(12)(1966).
[4]A. Manne, Plant location under economies of scale-decentralizationandcomputations,Manag.Sci.(11)(1964). [5]M.Effroymson,T.Ray,ABranchandboundalgorithmforplant
location,Oper.Res.(14)(1966).
[6]J.Little,K.Murtz,D.Sweeney,C.Karel,Analgorithmforthe travelingsalesmanproblem,Oper.Res.(11)(1963).
[7]M.Ashrafzadeh,N.Isfahani,Z.Zare,Applicationoffuzzy TOP-SISmethodfortheselectionofwarehouselocation:acasestudy, Interdiscip.J.Contemp.Res.Bus.3(9)(2012).
[8]M.Ashrafzadeh,F.Rafiei,Z.Zare,Theapplicationoffuzzy ana-lytichierarchyprocessapproachfortheselectionofwarehouse location:acasestudy,Int.J.Bus.Soc.Sci.3(4)(2012). [9]B.Khumawala,Anefficientbranchandboundalgorithmforthe
warehouselocationproblem,Manag.Sci.(18)(1972). [10]R.Rahmanian,M.Saidi-Mehrabad,H.Ashouri,Robust
capaci-tatedfacilitylocationproblem:optimizationmodelandsolution algorithms,J.UncertainSyst.7(1)(2013)22–35.
[11]P.L.Toint,TowardsanEfficientSparsityExploitingNewton’s MethodforMinimization,AcademicPress,NewYork,1981,pp. 57–87.
[12]W.Y.N.G.,Generalizedgenerationdistributionfactorsforpower system security evaluations, IEEE Trans. PAS 100 (1981) 1001–1005.
[13]B.El-Sobky,Amultiplieractive-settrust-regionalgorithmfor solvingconstrainedoptimizationproblem,Appl.Math.Comput. Arch.219(2012)127–157.
[14]B.El-Sobky,Anewconvergencetheoryfortrust-regionalgorithm forsolvingconstrainedoptimizationproblems,Appl.Math.Sci. 7(110)(2013)5469–5489.
[15]B.El-Sobky,Apenaltyactive-settrust-regionalgorithmfor solv-inggeneral nonlinearprogrammingproblem,Sylwan9(158) (2014)273–290.
[16]Y.Pei,D.Zhu,Atrust-regionalgorithmcombininglinesearch filtertechniquefor nonlinearconstrainedoptimization, Int. J. Comput.Math.91(8)(2014)1817–1839.
[17]Y.Yuan,Recentadvancesintrustregionalgorithms,Math. Pro-gram.Ser.B151(2015)249–281.
[18]J.Dennis,M.El-Alem,K.Williamson,Atrust-regionapproachto nonlinearsystemsofequalitiesandinequalities,SIAMJ.Optim. 9(1999)291–315.
[19]B. El-Sobky, A RobustTrust-Region Algorithm for General NonlinearConstrainedOptimizationProblems,Departmentof Mathematics,AlexandriaUniversity,Alexandria, Egypt,1998 (PhDthesis).
[20]A.Fiacco,G.McCormick,NonlinearProgramming:Sequential UnconstrainedMinimizationTechniques,JohnWileyandSons, NewYork,1968.
[21]R. Fletcher, Anl1 penalty methodfor nonlinear constraints,
Numer.Optim.(1984)26–40.
[22]T. Steihaug, Theconjugate gradient methodand trust region in largescaleoptimization,SIAMJ.Numer.Anal.20(1983) 626–637.
[23]Y.Yuan,Ontheconvergenceofanewtrustregionalgorithm, Numer.Math.70(1995)515–539.
[24]A.Akinc,B.Khumawala,Anefficientbranchandbound algo-rithmforcapacitatedwarehouselocationproblem,Manag.Sci. 23(6)(1977)585–594.