Research Article | Open Access

# Warranty Optimization in a Dynamic Environment

**Academic Editor:**John E. Bell

#### Abstract

A product warranty is an agreement offered by a producer to a consumer to replace or repair a faulty item, or to partially or fully reimburse the consumer in the event of a failure. Warranties are very widespread and serve many purposes, including protection for producer, seller, and consumer. They are used as signals of quality and as elements of marketing strategies. In this study we review the notion of an online convex optimization algorithm and its variations, and apply it in warranty context. We introduce a class of profit functions, which are functions of warranty, and use it to formulate the problem of maximizing the company's profit over time as an online convex optimization problem. We use this formulation to present an approach to setting the warranty based on an online algorithm with low regret. Under a dynamic environment, this algorithm provides a warranty strategy for the company that maximises its profit over time.

#### 1. Introduction

A product warranty is an agreement offered by a producer to a consumer to replace or repair a faulty item, or to partially or fully reimburse the consumer in the event of a failure. Warranties are very widespread and serve many purposes, including protection for producer, seller, and consumer. They are used as signals of quality and as elements of marketing strategies. A general treatment of warranty analysis is given by Blischke and Murthy [1, 2].

From the buyer's point of view, the main role of a warranty in any business transaction is protectional. Specifically, the warranty assures the buyer that faulty item will either be repaired or replaced at no cost or at a reduced cost. A second role of warranty is informational, as it implicitly sends out a message regarding the quality of the product and could influence buyer's purchase decision.

The main role of warranty from the producer's point of view is also protectional. Warranty terms may and often do specify the use and conditions of use for which the product is intended and provide for limited coverage or no coverage at all in the event of misuse of the product. A second important purpose of warranty for the seller is promotional. As buyers often infer a more reliable product when a long warranty is offered, this has been used as an effective advertising tool. In addition, warranty has become an instrument, similar to product performance and price, used in competition with other manufacturers in the marketplace.

Despite the fact that warranties are so commonly used, the study of warranties in many situations remains an open problem. This may seem surprising since the fulfillment of warranty claims may cost companies large amounts of money. Underestimating true warranty costs will result in losses for a company, overestimating them will result in uncompetitive product prices. The data relevant to the modeling of warranty costs in a particular industry are usually highly confidential, since they are commercially sensitive. Much warranty analysis therefore takes place in internal research divisions in large companies.

The common warranty parameters of interest analyzed and evaluated are the expected warranty cost and the expected warranty cost per unit time over the warranty length for a particular item as well as the life cycle of the product; see Chukova and Hayakawa [3, 4]. Typically, the warranty length and the warranty policy are assumed to be known, which identifies the failure model. Based on the adopted model of the failure process, the total expected total warranty cost and sometimes the variance of this cost are evaluated.

The study presented here deviates from the traditional framework in warranty analysis. For simplicity we assume that the warranty is one-dimensional and nonrenewing, that is, the warranty is identified by its length, and it starts at the time the item is sold or the service has began. We consider time periods, such that the manufacturer's profit functions, as functions of warranty, and the warranty may vary from time period to time period. In general, we assume that the optimal warranty and the profit functions are unknown, but the profit for the assigned warranty in any particular time period is known. The aim of this study is to present an approach that will assure that if the warranty varies in a particular way, suggested by an online algorithm, under reasonable, quite general assumptions on the profit functions, the long run average of the manufacturer's profit will be comparable with profit if the optimal warranty was known at the time the product was launched on the market.

The outline of this paper is as follows. In Section 2 we present a brief overview of the online algorithm approach. The profit model is introduced in Section 3, and it is analysed, using an online algorithm, in Section 4. Section 5 contains concluding remarks.

#### 2. Miscellaneous Results: Online Algorithm

In this paper, we concern ourselves with profit maximization, thus we consider the online convex programming problem with a sequence of concave functions and a maximization objective. In its simplest form, an online convex programming problem consists of a feasible region and an infinite sequence of concave βprofitβ functions , each going from to . An algorithm for the online convex programming problem is an algorithm that produces a point , which is a function only of the points , each previously produced by the algorithm, and the first functions . The regret of an algorithm is defined asInterpreting, the regret measures the performance of the algorithm, which does not know before producing , to pick the single best point in the feasible region given knowledge of all the 's in advance.

Online convex optimization, introduced by Zinkevich [5], was originally motivated by the notion of playing repeated games. Imagine playing an infinitely repeating game that proceeds in rounds. In round we must pick a strategy knowing only the strategies we have chosen in the previous rounds, from to , and the payoffs we received in those rounds. That is the motivation of the algorithm, which produces the point knowing only and the first functions Each can be thought of as the strategy in the round, and each can be thought of as the payoff function in the round. The payoff function may change from round to round arbitrarily, since we do not know the strategies adopted by opponents in the game. In the repeated game settings, the regret then measures the amount of utility lost by a player who follows the strategy as specified by the algorithm versus picking the single best strategy to follow in all rounds.

Zinkevich exhibits an algorithm , in full-information settings (see the Appendices), with regret , which givesInterpreting, in the limit, following the strategies specified by the algorithm produces the same per period profit as picking the optimal single strategy. The quantity is commonly referred to as the average regret.

Online convex optimization has clear industrial applications. For example, consider a company producing a product. The company's profit could be a concave function of the warranty offered by the company. However, the profit does not only depend on the warranty, but it could also depend on the types of products offered by competitors or the changing demands of customers. The profit function of the company in period could be thought of as the in the online convex optimization problem, and the could be the warranty offered by the company in period . An algorithm with low regret gives a warranty strategy for the company to follow that maximizes the company's profit over time.

One of the main hurdles to applying Zinkevich's algorithm directly is that it requires full knowledge of the function after round . In specific, Zinkevich's algorithm uses the gradient of the function . However, in realistic settings, such as the example in the previous paragraph, a company may not know the entire function . Instead, all the company learns in round is the value of . In other words, all the company learns is the amount of profit the company made in round , not the entire profit function. Flaxman et al. [6] exhibit an algorithm for online convex optimization, , in bandit settings (see the Appendices), using only the value of the profit function of the previous round and with regret .

Another concern with the direct application of online convex optimization is that the average regret results are in the limit as the number of rounds goes to infinity. Traditional industries, such as car manufacturing, have warranty on the order of years. Thus, even a few periods of the repeated profit maximization may take a human lifetime. However, warranties come in many varieties, and today's markets can be largely autonomous. For example, consider a competition between online brokerage firms. A firm could offer a warranty on the amount of time required to execute a purchase or sell an order. The warranty offered could change dynamically throughout the trading day. The broker's customers could themselves be automated programs that dynamically choose which brokerage firm to use to execute trades. In such a scenario it is easy to imagine thousands of profit maximization rounds per day. Regardless of the plausibility of using online convex optimization in a specific application, the average regret results imply the startling conclusion that a company can attain nearly maximum profit in a dynamically changing environment, without knowing anything about the future.

In this paper, we study online convex optimization as applied to the warranty applications described in this section.

#### 3. The Profit Model

In what follows, we propose a general form of profit functions to be used with the two online convex optimization algorithms and for the warranty optimization examples in Section 2. Firstly, similarly to Bell et al. [7], we define the market share function as a function of warranty as followswhere is a parameter of initial βattractivenessβ or βreputationβ of the company, is the increase of the total attractiveness of the company per unit increase of warranty, and is the total attractiveness of the competitors of the company in the marketplace. It is easy to see that is an increasing function of .

This form of the profit function is appropriate in modeling different market structures. For example, if , the company has a monopoly in the marketplace, whereas altering the value of will model the arrival or departure of a competitor.

To gain some intuition on the market share function, suppose that the warranty is zero. We then have One can think of this equation as follows. Suppose a customer picks which company to use randomly, but with weights proportional to the company's attractiveness. The form of in (3.2) is the probability the customer selects to do business with our company instead of a competitor, given that the company assigns no warranty to its products. Another interpretation of (3.2) is that, if the company assigns no warranty to its products it will have share of the market. Now, consider form (3.1) and let . We have , which means that if the company offers a large warranty it will dominate the entire market.

Now, using the market share function given in (3.1), we introduce the profit function , again as a function of warranty. We proposewhere is a constant equal to the total market value of the considered industry, is a constant equal to the penalty of total recall of all sold products, and is the cumulative distribution function of the lifetime of the product. The latter function represents the quality and reliability of the production and governs the process of failures and related warranty claims. We assume a linear relationship between and of the following form:In the case of , even if all products are recalled, offering a large warranty will guarantee that the company will end up with a profit. On the other hand, if , in order to avoid heavy penalties, the most appropriate strategy for the company is to sell the product with no warranty. Therefore, in both of these cases the optimal strategy of the company is known, and we will focus our study on the nontrivial case of .

#### 4. Modeling a Dynamic Environment

In what follows we display the performance of and in several differing models of a dynamic environment. First, we present an environment with a quality improvement under two failure scenarios: a gradual failure modeled with an exponential lifetime distribution and a shock failure modeled with a Weibull lifetime distribution. Second, we present an environment with increasing competition again under two scenarios: a gradual increase in competition and a shock increase in competition. Finally, we present an environment where we increase the penalty for faulty products. We show that in all these environments, the algorithms , and perform well as compared to algorithm βopt_fixedβ which selects a single, optimal warranty for all rounds, even though neither nor know the future profit functions. As algorithm is a randomized algorithm and its theoretical guarantees are in expectation, in each scenario we present the expected behavior of over independent runs. In addition, we include in the comparison the algorithm βopt_roundβ that selects the optimal warranty in each round.

##### 4.1. Environment with Quality Improvement

Refer to the profit functions defined in (3.3). Our next goal is to use these functions for decision making related to warranty, in environment with quality improvement. We model the dynamic environment with quality improvement by using the cumulative distribution function of the lifetime of the product. We consider two cases.

*Case 1. *Firstly, we assume that , that is,and the mean time to failure is . Based on (4.1) we define a sequence of profit
functions asand use them in full-information
settings, that is, with as well as in
bandit settings, that is, with . The results are presented in Figure 1.

In this example, we model quality improvement by
additively increasing the parameter of the exponential distribution
representing the lifetime of the product. The mean of the distribution changes
linearly from to . The resulting profit functions are presented in
Figure 1(a). As you can see, in later rounds, as the quality increases, the
company can offer a larger warranty to capture a larger fraction of the market
and thus receive higher profit. Figure 1(b) shows the warranty offered by the
various algorithms. Algorithm starts by
offering a zero warranty, the imposed initial starting point, and follows an
upward trend as the rounds increase. Algorithm has an initial
starting point, dictated by the algorithm itself, around the middle of the
feasible region. In all our examples, the feasible region is , that is, the acceptable warranty is between and . That is why, initially, the warranty of decreases from and then
increases as the rounds increase. Figure 1(c) shows the profit earned in each
round by each algorithm. The figure illustrates the benefits of using , as it closely
follows the profit received by optimizing the warranty in each round, but it
assumes very limited information of the profit functions. Figure 1(d) shows how
the average regret of decreases to
zero as the rounds increase. In other words, the per period loss of as compared to
following the optimal fixed warranty decreases to zero as the rounds increase.
Even better results are pictured in Figure 1(d) for ; however, it
assumes knowledge of the gradient of the profit function in each round, where
as only assumes
knowledge of the evaluation of the profit at a single point.

**(a) Profit functions**

**(b) Warranty period**

**(c) Profit**

**(d) Average regret**

*Case 2. *Secondly, we assume that , that is,and the mean time to failure is and create the
sequence of profit functions In this
example, we introduce quality improvement with a Weibull lifetime distribution.
In a Weibull distribution, there is a sharp threshold at which most products
fail. That is why in Figure 2(a) the profit functions fall sharply as the
warranty increases. Figure 2(c) represents the profit of the various algorithms.
Notice that the profit for βopt_fixedβ begins negatively and sharply
increases as the rounds increase. This is because the single warranty chosen by
βopt_fixedβ in early rounds is greater than the failure threshold of the
product, but is less than the failure threshold in later rounds. The profit
earned by is negative in
early rounds, since begins with an
initial point in the middle of the feasible region, which is much larger than
the failure threshold of the initial Weibull distributions. As the rounds
increase, decreases the
warranty, as pictured in Figure 2(b). Since both the failure threshold increases
and decreases the
warranty in later rounds, eventually
begins to make a profit. In late rounds, begins to
approach the performance of and
βopt_roundβ, which outperform βopt_fixedβ, since they can increase the
warranty as the failure threshold increases. As expected, since outperforms
βopt_fixedβ, the average regret for , pictured in
Figure 2(d), is negative. The average regret for increases in
the early rounds, while is making poor
profit, and quickly decreases in the later rounds.

**(a) Profit functions**

**(b) Warranty period**

**(c) Profit**

**(d) Average regret**

##### 4.2. Environment with Increasing Competition

We model the increase in competition in the profit function through the parameter included in the market share function (3.1). In this example, we additively increase the competition from to , with the parameter set to . Interpreting, this means that initially the company has roughly to odds of attracting a customer. Toward the final round, the company has only to odds of attracting a customer, thus the competition has increased. Figure 3(b), through the graph for βopt_roundβ, shows that the warranty that should be offered by the company increases as competition increases. This is to capture a larger fraction of the market as dictated by expression (3.1). The warranty of decreases throughout, as it initially begins at the middle of the feasible region. Algorithm , on the other hand, begins initially with a warranty of zero and closely follows the performance of βopt_roundβ. Figure 3(d) shows that looses less than of the total profit at the end of the example. This percentage would decrease to zero as the rounds go to infinity, by the results of Flaxman et al. [6].

**(a) Profit functions**

**(b) Warranty period**

**(c) Profit**

**(d) Regret as percent**

This example shows the algorithm behavior when there is a shock increase in competition. In round , the arrival of a competitor decreases the market share of the company significantly; the value of jumps from to . This leads to the sudden drop pictured in Figure 4(c), for all warranty settings, even for βopt_roundβ. Though the profit for all algorithms has a sudden drop, it is interesting to see the algorithm's reaction in changing the warranty, pictured in Figure 4(b). Again, due to the different information settings of and , algorithm is near the optimal setting before the competition increase and needs a short time to readjust after the increase. On the other hand, begins, as usual, in the middle of the feasible region and is decreasing the warranty toward the optimal setting in the initial rounds. After the competition increase, continues to decrease the warranty but at a slower pace. Even though the warranty offered by seems far from the warranty offered by the other algorithms, Figure 4(d) shows that its regret, as a percentage of the total profit gained by βopt_fixedβ, is once again steadily decreasing toward zero.

**(a) Profit functions**

**(b) Warranty period**

**(c) Profit**

**(d) Regret as percent**

##### 4.3. Environment with Changeable Penalties

In this example, we study a linear increase in the penalty from a faulty product. In specific, we alter the ratio between and in the profit function (3.3) from to . A larger models a larger cost to replace a failed item. As can be seen in Figure 5(a), as the penalty for a faulty product increases, the optimal warranty goes to zero. Figure 5(b) shows how the warranty of starts at zero, increases until it passes the optimal warranty offered by βopt_roundβ, and decreases back toward zero. It can also be seen that starts with a warranty of and decreases toward zero. Figure 5(c) shows a similar performance of βopt_roundβ, βopt_fixedβ, and . In that figure, it is clear that starts with a poor performance, but in the long run approaches the performance of βopt_fixedβ. The graph in Figure 5(d) can be explained through understanding the performance of algorithm , which is outlined in the appendices.

**(a) Profit functions**

**(b) Warranty period**

**(c) Profit**

**(d) Regret as percent**

In our penalty example, the optimal warranty approaches zero quickly. So, algorithm cannot set a warranty close to zero because of the algorithm's projection to a subset of the feasible region. As the algorithm's parameter approaches zero, can set a warranty closer and closer to zero. Thus, we can expect the regret shown in Figure 5(d) to decrease toward zero at a speed of , matching that of the parameter .

#### 5. Conclusions and Future Research Directions

In this paper we have presented a framework for analysis of warranty using an online convex optimization algorithm. We have introduced a class of profit functions that can be used to model a competitive market with warranties. We have shown that under incomplete information regarding the future changes in the environment, the decision maker could choose a warranty strategy that achieves a profit similar to the profit, that could have been generated by the unknown optimal warranty. In specific, we use the results of Zinkevich and Flaxman et al. to exhibit strategies achieving near optimal profits, that is, strategies with regret approaching zero in a long term. We exhibit several settings of changing environment and show that in each of these, the online algorithms can provide a reasonable support in warranty-related decision making.

This study demonstrates that it is feasible for a company to maximize profit through adjusting warranty in a dynamic environment, without knowledge of the current or future market conditions. However, the algorithms presented here do have explicit limitations that should be noted before use in a real environment. First, as most optimization algorithms, the algorithms presented in the paper are guaranteed to work for convex objective functions. However, if the profit function of the company is not convex, it is possible for the algorithm to get stuck in a local optimum. Furthermore, as mentioned earlier, some products, such as cars, may not be appropriate for use with these algorithms because of the real-time length of a round, which is on the order of years. As demonstrated, specifically for the bandit algorithm, a large number of rounds are required to approach the optimal warranty period.

Furthermore, we are able to identify two possible directions for further research. One option is to focus on reducing the limitations of the used online algorithms. It would be interesting to see if these algorithms can be coupled with existing algorithms for avoiding local optima. For example, is it possible to pair the bandit algorithm with simulated annealing? What would such a pairing do to the regret guarantees of the original bandit algorithm? Would such a pairing deliver good performance in avoiding local optima? Another possible direction for further research is to try to apply our results to a real data; related to the performance of brokerage firms. Firstly, it will be challenging to find the appropriate set of real data. Moreover, it would be interesting to come up with a method for estimating the parameters of the profit function from real data; parameters such as the total market size, the failure CDF, and the market share as a function of warranty period. Such an estimation would make it possible to investigate the application of these algorithms in a realistic situation.

#### Appendices

#### A. The Online Algorithm

As mentioned earlier, we concern ourselves with profit maximization. Thus, consider an online convex programming problem consisting of a maximization objective, a feasible region , and an infinite sequence of concave functions , each going from to . We present the main ideas of the online algorithm in two different settings: firstly, in full-information settings, when the profit function is fully known after each round and secondly, in bandit settings, when the profit function is unknown, and only its value is revealed after the round.

*Assumptions and Definitions*

(i)The feasible
region is(1)a
bounded set, that is, for any , there exists , so that , where and ; (2)a
closed set, that is, for any sequence , if there exists such that , then ;(3)a
nonempty set;(4)a
convex set.(ii)The profit
functions are differentiable.(iii)There exists , so that for all and for all , .(iv)For all , there exists an algorithm to produce .(v)For all , there exists an algorithm, given , to get .(vi)The projection
of over is (vii)The regret of until is .(viii)A function satisfies an -Lipschitz
condition if there exists a real constant such that .

#### B. Online Gradient Descent Algorithm in Full-Information Settings

Assume that the profit function is fully known after the round. Select an initial and an updating sequence with each . In time step , after evaluating the profit function , move to the next point, which isAssuming that the updating sequence has the form Zinkevich [5] has shown that the regret of the algorithm , given in (B.1), is Therefore,where Imposing stronger assumptions on the profit functions and choosing appropriately the step sizes, Hasan et al. [8] have extended Zinkevich's ideas by proposing several algorithms achieving logarithmic regret.

#### C. Online Gradient Descent Algorithm in Bandit Settings

In bandit settings, after the round, the profit function is unknown, and only its value is revealed. Therefore, the gradient of , needed for , cannot be accessed directly. The main difficulties in bandit setting is to obtain a one-point estimate of the gradient . Algorithm works as follows. It has a sequence of points at which it would like to perform gradient descent, as in algorithm . However, to estimate the gradient at , select a uniformly random point from a small circle around . Algorithm then sets to shifted in the direction of with distance proportional to . To be sure that is in the feasible region, the algorithm does a projection to a subset of the feasible region that has a small border around it. The reason for this projection to a subset is that future estimates of the gradient using randomly chosen points in a small circle should be entirely contained in the feasible region.

The algorithm then has three main parameters that change as the round number increases. Using the notation of Flaxman et al., the first parameter denotes the radius of the small circle around from which we choose a uniformly random point . The second parameter denotes the distance with which we move in the direction of the chosen point . And the final parameter denotes the border that we keep around the subset of the feasible region. Each of these parameters goes to zero as the round number increases. The parameters , , and go to zero at speeds of , , and , respectively. Flaxman et al. [6] have shown that if the profit functions are -Lipschitz the guarantee on the expected regret of is . Moreover, if no Lipschitz or bounded gradient assumptions are placed on the profit functions, the guarantee on the expected regret is . For more details, see Flaxman et al. [6].

#### References

- W. Blischke and D. N. P. Murthy,
*Warranty Cost Analysis*, Marcel Dekker, New York, NY, USA, 1993. - W. Blischke and D. N. P. Murthy,
*Product Warranty Handbook*, Marcel Dekker, New York, NY, USA, 1996. - S. Chukova and Y. Hayakawa, βWarranty cost analysis: non-zero repair time,β
*Applied Stochastic Models in Business and Industry*, vol. 20, no. 1, pp. 59β71, 2004. View at: Publisher Site | Google Scholar - S. Chukova and Y. Hayakawa, βWarranty cost analysis: renewing warranty with non-zero repair time,β
*International Journal of Reliability, Quality and Safety Engineering*, vol. 11, no. 2, pp. 1β20, 2004. View at: Publisher Site | Google Scholar - M. Zinkevich, βOnline convex programming and generalized infinitesimal gradient ascent,β in
*Proceedings of the 20th International Conference on Machine Learning (ICML '03)*, pp. 928β936, Washington, DC, USA, August 2003. View at: Google Scholar - A. D. Flaxman, A. T. Kalai, and H. B. McMahan, βOnline convex optimization in the bandit setting: gradient descent without a gradient,β in
*Proceedings of the 16th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA '05)*, pp. 385β394, Vancouver, Canada, January 2005. View at: Google Scholar - D. Bell, R. Keeney, and J. Little, βMarket share theorem,β
*Journal of Marketing Research*, vol. 12, no. 2, pp. 136β141, 1975. View at: Publisher Site | Google Scholar - E. Hasan, A. Agarwal, and S. Kale, βLogarithmic regret algorithms for online convex optimization,β
*Machine Learning*, vol. 96, no. 2-3, pp. 169β192, 2007. View at: Publisher Site | Google Scholar

#### Copyright

Copyright © 2009 Nedialko B. Dimitrov and Stefanka Chukova. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.