Improving the efficiency of DC global optimization methods by improving the DC representation of the objective function
Abstract
There are infinitely many ways of representing a d.c. function as a difference of convex functions. In this paper we analyze how the computational efficiency of a d.c. optimization algorithm depends on the representation we choose for the objective function, and we address the problem of characterizing and obtaining a computationally optimal representation. We introduce some theoretical concepts which are necessary for this analysis and report some numerical experiments.
Full text
IMPROVING THE EFFICIENCY OF DC GLOBAL OPTIMIZATION METHODS BY IMPROVING THE DC REPRESENTATION OF THE OBJECTIVE FUNCTION Albert Ferrer∗and Juan Enrique Mart´ınez-Legaz† Abstract There are infinitely many ways of representing a d.c. function as a difference of convex functions. In this paper we analyze how the computational efficiency of a d.c. optimization algorithm depends on the representation we choose for the objective function, and we address the problem of characterizing and obtaining a computationally optimal representation. We introduce some theoretical concepts which are necessary for this analysis and report some numerical experiments. Key words dc representation, dc program, outer approximation, branch and bound, semi-infinite program. Mathematics Subject Classification (2000) 90C26, 90C30. 1 Introduction There are infinitely many ways of representing a d.c. function as a difference of convex functions. In the special case of polynomials, the problem of finding d.c. representations was addressed in [4]. In this paper we consider the following questions: When is a given representation better than another one from a computational point of view? How does computational efficiency depend on the d.c. representation of the objective function? Given a d.c. representation, is it possible to find another one that improves computational efficiency? Which is the best d.c. representation of a d.c. polynomial from a computational point of view, and how can it be obtained? We introduce some necessary concepts to answer the above questions. Our analysis relies upon the notion of minimal d.c. representation in the space of polynomials. In Section 2 we state the minimum norm problem by using the concept of least deviation decomposition (LDD) of [7]. In Section 3 we give a semi-infinite programming formulation of the minimum norm problem and show that the solution to this problem provides a d.c. representation for an arbitrary polynomial. We find that this dc representation improves the computational efficiency of a global optimization algorithm by reducing the number of iterations needed to find a global optimal solution. In section 5 we report some numerical experiments, which show the efficiency of our minimal dc representations from a computational viewpoint. The conclusions of our analysis are summarized in section 6. ∗Departament de Matem`atica Aplicada I, Universitat Polit`ecnica de Catalunya, email: [email protected]. The research of this author has been partially supported by the Ministerio de Ciencia y Tecnolog´ıa, Project MCYT, DPI 2005-09117-C02-01 †Departament d’Economia i d’Hist`oria Econ`omica, Universitat Autonoma de Barcelona, email: juanen- [email protected]. The research of this author has been partially supported by the Ministerio de Ciencia y Tecnolog´ıa, Project MTM2005-08572-C03-03, and by the Barcelona Economics Program of XREA. 1
2 The minimum norm problem Let IRm[x1, ..., xn] and Hk[x1, ..., xn], k = 0,1, . . . , m be the vector spaces of real polynomials of degree less than or equal to mand of homogeneous polynomials of degree k, respectively, in the variables x= (x1, ..., xn). Let Bmand BHkbe the usual bases of monomials in IRm[x1, ..., xn] and Hk[x1, ..., xn], respectively. Each polynomial z∈IRm[x1, ..., xn] can be written in the form z=Pf∈Bmaff. We will endow these vector spaces with the Euclidean norm kzk:= (Pf∈Bma2 f)1/2. Let C⊂IRnbe a closed convex set and let Km(C) and KHk(C) be the nonempty closed convex cones of polynomials in IRm[x1, ..., xn] and Hk[x1, ..., xn], respectively, that are convex on C. In the next proposition we consider the case when C= IRn; we exclude the trivial case m= 1. Proposition 2.1 Let m≥2.The cone Km(IRn)is reproducing, that is, IRm[x1, ..., xn] = Km(IRn)−Km(IRn), if and only if mis even. Proof 2.1 If mis odd, no polynomial of degree mis convex (as it does not admit any affine minorant) and hence it is impossible to decompose it as a difference of two polynomials in IRm[x1, ..., xn]. Assume now that mis even. Since the set of polynomials in IRm[x1, ..., xn]that are powers of linear functions spans the whole of IRm[x1, ..., xn](see [2]) and such powers are convex when the exponent is even, we only need to prove the decomposability of a polynomial of the type lk,with llinear and kodd, as a diference of two convex polynomials of degree k+ 1.Given that compositions of convex functions with linear mappings are convex, it will be enough to consider one variable monomials. Since the second derivative of the one variable function tk+1 +tkis bounded from below, there is a quadratic form αt2such that tk+1 +tk+αt2is convex, and therefore tk+1 +tkis a d.c. function. Corollary 2.1 Let C⊂IRnbe a closed convex set and m≥2be an even number. Then Km(C)is reproducing. Proof 2.2 This is an immediate consequence of Prop. 2.1, since Km(C)⊇Km(IRn). We next consider the case when Cis bounded. Proposition 2.2 Let C⊂IRnbe a compact convex set. Then, for every m≥2,the convex cone Km(C)is reproducing. Proof 2.3 Using the same arguments as in the proof of Prop. 2.1 we see that it is enough to consider compositions of one variable powers tkwith linear functions and that such compositions are d.c. on C(since the second derivative of tkis bounded below on the image of Cunder any linear function, as this image is a closed interval). Assuming that Km(C) is reproducing, there are infinitely many representations of a given polynomial z∈IRm[x1, ..., xn] as a difference of two convex polynomials on C. Indeed, if z=y1−y2, with y1, y2∈Km(C),then we can also write, for instance, z= (y1+d)−(y2+d) for an arbitrary d∈Km(C) and of course we have y1+d, y2+d∈Km(C).Thus the question arises how to find, among the infinitely many representations of z, one which is optimal from a computational point of view (that is, for its use in a d.c. optimization algorithm). A theoretical approach to this optimal representation problem was proposed in [7] in the abstract setting of normed spaces; we next recall the basic ideas developed in that paper. 2
Let (IE, k·k) be a normed space, K⊂IE a reproducing convex cone and (y1, y2),(w1, w2)∈K×K be two representations of zas differences of elements in K, that is, y1−y2=z=w1−w2. We define (y1, y2) is better than (w1, w2) with respect to k.k ⇔ ky1+y2k ≤ kw1+w2k. A representation of zis minimal if it is better that any other representation of z. Thus finding a minimal representation of zamounts to solving a minimum norm problem. Given z∈IE and a representation (y1, y2)∈K×Kof z, consider the vector v:= y1+y2∈K. We can write y1=z+v 2and y2=v−z 2,(1) so v=−z+ 2y1=z+ 2y2and we have v∈(−z+ 2K)∩(z+ 2K). Thus, the minimum norm problem can be expressed as follows: given z∈IE, find v∈(−z+ 2K)∩(z+ 2K)with minimum norm: minimize {kvk:v∈(−z+ 2K)∩(z+ 2K)}.(2) Hence, using (1), the optimal solution v∗of problem (2) yields an optimal representation z=y∗ 1−y∗ 2, where y∗ 1=z+v∗ 2and y∗ 2=v∗−z 2. According to the terminology of [7], the pair (y∗ 1, y∗ 2) is called a least deviation decomposition (LDD) of z. When a LDD of a polynomial zis difficult to obtain, the equality IRm[x1, . . . , xn] = m M k=0 Hk[x1, . . . , xn],(3) allows us to obtain an alternative dc representation of the polynomial zby using LDDs of its homogeneous summands. This new dc representation of zwill not generally be optimal but will often improve upon an initially given dc representation. To solve the minimum norm problem in the case of the Euclidean norm, in the next section we will transform it into an equivalent semi-infinite quadratic programming problem with linear constraints. 3 A semi-infinite formulation of the minimum norm problem A peculiarity of the minimum norm problem (2) in the case of the Euclidean norm is that it can be transformed into an equivalent semi-infinite quadratic programming problem with linear constraints. The feasible set of the problem (2), with z=Pf∈Bmaff, is the set of polynomials v=Pf∈Bmvff such that v±z∈K(C),i.e. such that v±zare convex on C. Assuming that Chas a nonempty interior, this amounts to imposing the Hessian matrices ∇2(v±z)(x) = Pf∈Bm(vf±af)∇2f(x) to be positive semidefinite, that is, λt∇2(v±z)(x)λ≥0,∀λ∈Sn,∀x∈C, (4) where Sn={x∈IRn:kxk= 1}. Thus problem (2) can be equivalently formulated as the semi-infinite quadratic programming problem minimize kvk2=Pf∈Bmv2 f subject to: λtPf∈Bm(vf±af)∇2f(x)λ≥0,∀λ∈Sn,∀x∈C, (5) 3
whose constraint set is indexed by the parameters xand λ. In practical applications the set Cwill usually be of the form C=Qn i=1[ri, ti], with ri< ti. Example 3.1 (Determination of the constraint set) Let z(x, y) = xy+3x2yand C= [5,20]×[5,20]. In order to determine the constraint set of the semi-infinite formulation of the minimal norm problem we consider the usual bases in H2[x, y]and H3[x, y], B2:= {f1, f2, f3}, withf1(x, y) := x2, f2(x, y) := xy, f3(x, y) := y2, and B3:= {f4, f5, f6, f7}, withf4(x, y) := x3, f5(x, y) := x2y, f6(x, y) := xy2, f7(x, y) := y3. Since zhas no linear part and the subspaces H1[x, y], H2[x, y]and H3[x, y]are mutually orthogonal, if we use the Euclidean norm we do not need to consider polynomials of degree 1in our formulation. The set B2∪B3is a base for H2[x, y]⊕H3[x, y]; the coordinates of the polynomial z(x, y)in this basis are (0,1,0,0,3,0,0). For a polynomial v∈H2[x, y]⊕H3[x, y]we write v= 7 P i=1 vifi.The Hessian matrices of the functions v±zare ∇2(v±z)(x, y) = µ6v4x+ 2(v5±3)y+ 2v12(v5±3)x+ 2v6y+ (v2±1) 2(v5±3)x+ 2v6y+ (v2±1) 2v6x+ 6v7y+ 2v3¶. Imposing the positive-semidefinitiness condition to these matrices we get 2λ2 1v1+ 2λ1λ2v2+ 2λ2 2v3+ 6xλ2 1v4+ 2(yλ2 1+ 2xλ1λ2)v5+ +2(xλ2 2+ 2yλ1λ2)v6+ (6yλ2 2)v7±(6yλ2 1+ 12xλ1λ2+ 2λ1λ2)≥0 for λ1and λ2such that λ2 1+λ2 2= 1 and λ2≥0; we can equivalently write λ2 1a+λ1λ2b+λ2 2c+ 3xλ2 1d+ (yλ2 1+ 2xλ1λ2)e+ +(xλ2 2+ 2yλ1λ2)f+ 3yλ2 2g− | 3yλ2 1+ 6xλ1λ2+λ1λ2|≥ 0. The parameters λ1and λ2can be generated by considering the new parameter ω∈[0, π[, setting λ1=cos ωand λ2=sin ω. Remark 3.1 In the general nvariables case, the parameters λ1, λ2, . . . , λnsatisfying λ2 1+λ2 2+. . .+ λ2 n= 1,λ1≥0can be generated by using spherical coordinates: λ1= sin ω1sin ω2. . . sin ωn−2sin ωn−1, λ2= cos ω1sin ω2. . . sin ωn−2sin ωn−1, . . . . . . ........... , λn−2= cos ωn−3sin ωn−2sin ωn−1, λn−1= cos ωn−2sin ωn−1, λn= cos ωn−1, (6) with ωi∈[0, π[, i = 1, ..., n −1. The algorithm we will use to solve the semi-infinite quadratic programming problem (5) is an adaptation of the semi-infinite linear programming methods described in [6] and [8], which use interior point techniques. The algorithm needs an initial feasible point at which all the constraints are satisfied as strict inequalities; in the next section we explain how such a point can be obtained. 4
4 Obtention of an initial feasible point In this section we describe a method for obtaining an initial feasible point at which all the inequality constraints are satisfied strictly. In the following, we will assume that the set Cin (5) is convex and compact. Without loss of generality (by applying a translation if necessary), we will further assume that C⊂IRp ++. Consider a nonhomogeneous polynomial z=Pk i=1 zi,with zi∈Hni[x1, . . . , xp],2≤n1< . . . < nk.To obtain an initial strictly interior feasible point, we first express each ziin the basis Uof Hn[x1, . . . , xp] consisting of the polynomials pα(x) = (α1x1+. . . +αpxp)n, α = (α1, . . . , αp)∈C(n, p), C(n, p) being the set of p-compositions of n, that is, the set of p-tuples α= (α1, . . . , αp) of nonnegative integers αisuch that α1+. . . +αp=n. This family of polynomials is indeed a basis of Hn[x1, . . . , xp] (see Cor. 1.2 in [1]). We thus write zi=X α∈Pi λi αpα−X α∈Ni (−λi α)pα, with Piand Nibeing the sets of αsuch that λi α>0 and λi α<0,respectively. This is a d.c. representation of zi,which can be computed by using the algorithm proposed in the Appendix of [3], In the same reference this algorithm was implemented using the MAPLE Symbolic Calculator. From the above representation we define the convex polynomial wi:= X α∈Pi λi αpα+X α∈Ni (−λi α)pα. It is easy to see that the polynomial w=Pk i=1 wiis a feasible point for (5). Finally, by taking v=w+q, with q(x) = x2 1+. . . +x2 p,we get a feasible point at which all the constraints are satisfied strictly. 5 Results of numerical experiments In this section we report the numerical experiments we have made on some test problems by using our optimal d.c. representation together with the deterministic global optimization algorithm for solving reverse convex programming problems described in [4]. This algorithm combines a prismatical subdivision process with polyhedral outer approximation, in such a way that only linear programs have to be solved. We present the results obtained on some test problems, which illustrate the efect of using optimal d.c. representations on solving d.c. polynomial programming problems; some of the test problems, taken from [3], correspond to a hydroelectric generation model. 5.1 Some test problems We first consider three simple two variables optimization problems: HPBr1, HOM3r2 and POL3r2. The results are shown in Table 2, which displays the results of minimizing the functions using different d.c. representations and precision ²= 0.001; the running CPU time is reported. Iter found is the number of iterations of the program needed to confirm the global minimum. DC represents the kind of d.c. representation of the objective function: the optimal d.c. representation is indicated by 5
opt and the non optimal representations are noted (1) and (2). Norm indicates the norm of the corresponding d.c. representation. The instance HP Br1 is minimize xy =1 4(x+y)2−1 4(x−y)2 subject to: x−y≤5.7, −2≤x≤3, −3≤y≤4, (7) and the indicated d.c. representation of xy in (7) is the optimal one. Alternative d.c. representations of xy, which are not optimal, are (1) xy =1 2(x+y)2−1 2(x2+y2) and (2) xy =1 2(x2+y2)−1 2(x−y)2. The objective function f(x, y) of instances HOM3r2 and POL3r2 are 3x2yand xy + 3x2y, respectively, and both problems have the same constraints: minimize f(x, y) subject to: x−y≤1, −x−y≤2.5, 0.5≤x≤2, 2≤y≤4. A d.c. representation of the objective function of program HOM3r2 is 3x2y= 0.5(2x+y)3+ 0.5y3−(3x3+ (x+y)3), and the optimal d.c. representation, obtained as mentioned above, is 3x2y=y∗ 1(x, y)−y∗ 2(x, y), with y∗ 1(x, y) = 1.31235x3+ 2.0188x2y+.33725xy2+.87755y3, y∗ 2(x, y) = 1.31235x3−.9811x2y+.33725xy2+.87755y3. From the d.c. representations of the functions xy and 3x2ywe obtain a d.c. representation of xy + 3x2y: xy + 3x2y=y∗ 1(x, y)−y∗ 2(x, y), with y∗ 1(x, y) = .0466x2+.4945xy +.03055y2+ 1.31455x3+ 2.0143x2y+.3430xy2+.8775y3, y∗ 2(x, y) = .0466x2−.5055xy +.03055y2+ 1.31455x3−.9857x2y+.3430xy2+.8775y3. 6
R1 R2 R1 R1 R1 R2 R2 R2 Sh d d d d d d d d 1 1 11 2 2 2 2 12 3 4 1 23 4 vv v v v v v v v v 11 1 1 2 2 2 2 1 2 0 12 3 4 1 2 3 4 0 w w w w w w w w 1 1 1 1 2222 1 2 3 4 21 3 4 Figure 1: Four intervals and two reservoirs replicated hydronetwork 5.2 The hydroelectric generation problem Given a short-term time period, one wishes to find values for each time interval in the period so that the demand of electricity consumption for each time interval can be satisfied and the generation cost of thermal units is minimized subject to these and some other suitable constraints. The model we consider contains the replicated hydronetwork through which the temporary evolution of the reservoir system is represented. Figure 1 shows a network with only two reservoirs and a time period subdivided into four intervals. We consider Nereservoirs, j= 1, . . . , Ne,and Nttime intervals, i= 1 . . . Nt. Our model consists of the following ingredients: •The variables are the water discharges di jfrom reservoir jover the ith interval and the volume stored vi jin reservoir jat the end of the ith time interval. •In each time interval i, the water discharge from reservoir R1to reservoir R2establishes a link between the reservoirs. •The volume stored at the end of the time interval iand the volume stored at the beginning of the time interval i+ 1 are the same on each reservoir Rj; this establishes a link between the time intervals iand i+ 1 for each reservoir. •The volumes stored at the beginning and at the end of the time period are known (they are not variables). Acceptable forecasts for electricity consumption liand for natural water inflow wi j into the reservoirs of the hydrogeneration system at each interval are available. An important assumption in our formulation is that the power hydrogeneration function hi jat the reservoir j over the ith interval can be approximated by a polynomial function of degree 4 in the variables vi−1 j,vi jand di j(see [3]): hi j(vi−1 j, vi j, di j) = ki jdi j[svd +svl 2(vi−1 j+vi j) + svq 3(vi j−vi−1 j)2+ +svqvi−1 jvi j+svc 4((vi−1 j)2+ (vi j)2)(vi−1 j+vi j)− −sdldi j−sdq(di j)2], (8) where ki j(efficiency and unit conversion coefficient), svd,svl,svq,svc,sdl and sdq are technological coefficients, which depend on each reservoir. The objective function, to be minimized, 7
is the generation cost of thermal units: f(. . . , vi−1 j, vi j, di j, . . .) = Nt X i=1 ci li− Ne X j=1 hi j(vi−1 j, vi j, di j) .(9) The linear constraints are the flow balance equations at all nodes of the network: vi j−vi−1 j−di j−1+di j=wi jj= 1, ..., Ne, i = 1, ..., Nt. The nonlinear constraints are the thermal production with generation bounds: g≤li− Ne X j=1 hi j(vi−1 j, vi j, di j)≤g i = 1, ..., Nt.(10) There are positive bounds on all variables: dj≤di j≤djj= 1, ..., Ne, i = 1, ..., Nt vj≤vi j≤vjj= 1, ..., Ne, i = 1, ..., Nt−1. Thus our problem is minimize PNt i=1 ci³li−PNe j=1 hi j(vi−1 j, vi j, di j)´ subject to g≤li−PNe j=1 hi j(vi−1 j, vi j, di j)≤g, i = 1, ..., Nt, vi j−vi−1 j−di j−1+di j=wi j, j = 1, ..., Ne, i= 1, ..., Nt, dj≤di j≤dj, j = 1, ..., Ne, i= 1, ..., Nt, vj≤vi j≤vjj= 1, ..., Ne, i= 1, ..., Nt−1. (11) This model has the following useful properties: 1. It is easy to generate problems of different sizes (Table 1) and with different degrees of nonconvexity, depending on the efficiency and unit conversion coefficient, on whether the thermal units can satisfy all the demand of electricity during every time interval and on the water inflows. 2. The objective function and the nonlinear constraints are polynomial functions. 3. The linear constraints are the flow balance equations at the nodes of a network. 8
5.2.1 A d.c. formulation of the hydroelectric generation program Let hi j(vi−1 j, vi j, di j) = fi j(vi−1 j, vi j, di j)−gi j(vi1 j, vi j, di j), be a d.c. representation of the power hydrogeneration function, where fi j(vi−1 j, vi j, di j) and gi j(vi1 j, vi j, di j) are convex functions defined on a convex set which contains the feasible domain of program (11). Then, by defining for every i= 1, ..., Ntthe convex functions Fi(. . . , vi−1 j, vi j, di j, . . .) = ci li+ Ne X j=1 gi j(vi−1 j, vi j, di j) (12) and Gi(. . . , vi−1 j, vi j, di j, . . .) = ci Ne X j=1 fi j(vi−1 j, vi j, di j),(13) and using these expressions to define F(...,vi−1 j, vi j, di j, . . .) = Nt X i=1 Fi(. . . , vi−1 j, vi j, di j, . . .) (14) and G(. . . , vi−1 j, vi j, di j, . . .) = Nt X i=1 Gi(. . . , vi−1 j, vi j, di j, . . .),(15) d.c. representations of all functions in (11) are obtained. We further define n=Ne(2Nt−1), m=NeNtand x= (. . . , vi−1 j, vi j, di j, . . .)∈IRn; thus, by expressing the linear constraints in the form Ax =b, with A∈IRm∗nand b∈IRm,program (11) has the structure minimize F(x)−G(x) subject to (Gi(x) + cig)−Fi(x)≤0i= 1, ..., Nt, Fi(x)−(Gi(x) + cig)≤0i= 1, ..., Nt, Ax =b, x≤x≤x, (16) where x, x ∈IRn. After renumbering the variables if necessary, the matrix Ain (16) can be written as A= [B, N],where Bis a non singular square matrix (see [5] and references therein). Let y and zbe the variables corresponding to the matrices Band N, respectively. Then, the solutions of Ax =bare those x= (y, z) with y=B−1(b−Nz), so that it is possible to reduce the size of the d.c. program (16) by defining the functions ϕ1(z) = F(B−1(b−Nz), z), ϕ2(z) = G(B−1(b−Nz), z), ϕi 1(z) = Fi(B−1(b−Nz), z) and ϕi 2(z) = Gi(B−1(b−Nz), z). By using these functions in (16) we obtain the following equivalent d.c. program of reduced size minimize ϕ1(z)−ϕ2(z) subject to (ϕi 2(z) + cig)−ϕi 1(z)≤0i= 1, ..., Nt, ϕi 1(z)−(ϕi 2(z) + cig)≤0i= 1, ..., Nt, b≤Mz ≤b, z≤z≤z, (17) 9