Introduction and literature review

Supply chain management is the coordination and integration of supply chain activities, with the objective of achieving a viable competitive advantage. The supply chain management therefore includes a wide range of strategic, financial and operational issues (Geunes and Chang 2001).

Industrial agreement is a strategic choice of companies, motivated by the search of benefits such as increasing skills, control and sharing of risks and the benefit of the value creation. Hence, it allows a collective and joint action that exceeds the individual limits. Various degrees of agreement between partners in a supply chain can be highlighted. We distinguish several partnership indicators such as cooperation, coordination, collaboration, communication and negotiation.

Therefore, cooperation is a collective action directed toward a common goal. In companies, this cooperation involves process in interaction. To carry a greater productivity, these interactions require a communication and negotiations between different actors. Thus, the disintegration of the common goal to a set of individual goals demands coordination and co-decisions. These co-decisions are negotiated to prevent or resolve conflicts that may occur between decisions and individual goals. The aim of this paper is to study the relationship outsourcer–subcontractor; we seek to increase the efficiency of supply chain through outsourcing activities optimization under reliability constraints.

In the literature, the subject of partnership is widely studied. For examples, we can cite: Thomas and Griffin (1996), Jayaraman and Pirkul (2001), Dudek and Stadtler (2005), Lehoux et al. (2010), Heydari and Norouzinasab (2015), Zabihi and Bafruei (2016) and Krapp and Kraus (2017). As mentioned above, the degree of partnership is measured by the cooperation, coordination, collaboration, communication and negotiation.

In our paper, the coordination is the synchronization of actions or outsourcing activities, in-house production and maintenance in time. It seeks to manage the consistency of individual actions of contractors and subcontractors, with respect to all activities of the system, and validate the individual objectives with respect to the common goal.

The collaboration means working together. The term of collaboration is used in time and place of cooperation when individual actions are not differentiable. So during production, the outsourcer appeals to the subcontractor for capacity reservation in order to overcome the shortage situations.

All phenomena concern the possibility, for a subject, to transmit information to another subject, with a language or code. Communication is an essential tool for the co-decision; negotiation, coordination and collaboration are done correctly between different actors in the supply chain.

However, the co-decision is a collaboration on decision making. In the case of a joint decision taken by a cluster of actors (outsourcers and subcontractors), we speak of co-decision. This is defined as a decision-making collaboration.

Negotiation is defined as a mean of cooperation between different partners. It aims at finding an acceptable compromise between local objectives, sometimes diverging, which are from different decision centers.

There are many papers in the literature dealing with the cooperation and association in the supply chain. In their study, Thomas and Griffin (1996) have mentioned that the coordination in the supply chain improves its performances. Özen et al. (2009) and Ezimadu and Nwozo (2017) have proposed frameworks for supply chain management, with decision making under uncertainty and cooperation opportunities. In another work, Arshinder et al. (2011) have presented the literature review in order to highlight the importance of supply chain coordination. They discussed different mechanisms for coordination and managing uncertainty in supply chain coordination. The authors have presented various perspectives on supply chain coordination.

In a coordinated supply chain, many enterprises use outsourcing production operations or resources as one way of creating a win–win partnership among the members. Strategically, each enterprise focuses on its core business and seeks knowledge outside. This is in order to cope with diversification in market or retain central competition. These coordination mechanisms are vital to enhance the supply chain performance. Thus, coordinate can reduce lead times; minimize total costs and increase the organization flexibility (Lee and Sung 2008).

Almost all problems dealing with the issue of supply chain management are elaborated upon the costs reduction in different levels of supply chain. The total costs reduction reduces the price of products and so seeks to acquire additional market share and generates profits for future investments.

Productivity gains are sought all over in the supply chains in both transport and workshops, for example by limiting work in progress, the upstream and downstream inventory and the unproductive times of series change on equipments. Indeed, outsourcing reduces operating costs; in addition, it ensures lower investment conditions (Van Mieghem 1999).

Deavers (1997) identified the reasons why the enterprises have adopted outsourcing practices. Several researchers have proposed frameworks for effective and efficient outsourcing strategies. For example, Abdel-Malek et al. (2005) have discussed how to evaluate the performances of outsourcing policies in a multilayered supply chain. Aydinliyim and Vairaktarakis (2010) analyzed different problems of multiple-outsourcers sharing a single subcontractor, which takes into account the competition and the cooperation. Dolgui and Proth (2013) have provided a state-of-the-art analysis of global outsourcing in the late 2000s, and they presented a review of the advantages and disadvantages of outsourcing over the medium and long terms. The authors have not considered the outsourcing manner, but they showed the possible consequences of such decision.

Kim (2003) investigates a situation in which a manufacturing enterprise outsources its assemblage jobs to two contract manufacturers taking into account time and processing level simultaneously. Other authors have compared local and global optimization strategies in production planning. Tsai and Lai (2007) have developed a decision model for evaluating the comparative benefits of expanding the various kinds of capacity and outsourcing simultaneously. Saharidis et al. (2009) have formulated Markovian models for a coordinated decision making between two factories in a supply chain, which produces items to stock for meeting random demand. During stock out periods, each factory can purchase end items from subcontractors. Production and subcontracting decisions in each factory are made according to pull control policies.

When a company outsources its manufacturing resources, it is imperative to secure the availability and price of the requested capacity. The supply chain is frequently subjected to several risks and disturbances affecting its delivery reliability. For this reason, it is mandatory to consider different management practices (off-shoring, outsourcing, overtime, flow control, etc) in the supply chain to cope with disruptions and to obtain a reliable logistics network able to meet client requirements. Numerous of great enterprises, such as Ford, Hewlett-Packard, Cisco and Dell, have suffered from the lack of supply and instable prices (Nagali et al. 2008). To ensure the supply of capacity, outsourcers can establish agreements with their subcontractors to specify the price and quantity of capacity that they need.

Today, the maintenance of production units must be coherent with the production control policy. A rational use of resources can satisfy the demands with minimal costs. Maintenance policy can be also considered as an important process that needs forecasting models. In the literature, numerous researchers have studied the association between production control and maintenance management. Faghihinia and Mollaverdi (2012) have been interested to multi-criterion decision-aided maintenance models. Analytical models for performance evaluation of the croissant automated production line with reparable machines have been developed in Tsarouhas (2015). Amelian et al. (2015) have studied the problem of optimal production and preventive maintenance rate in a failure-prone manufacturing system by using discrete event simulation. Cassady et al. (2001) have proposed a mathematical programming framework for selective maintenance of industrial systems. In (Tambe and Kulkarni 2014), a model integrating the selective maintenance, quality and production control has been developed. Khatab et al. (2014) have used the genetic algorithms for optimization of selective maintenance of multi-mission systems. In (Shahriari et al. 2016), authors have investigated the problem of just-in-time single machine with a cyclic preventive maintenance. In another work, Adeyeri and Mpofu (2017) have developed a system decision support tools for interactive trends monitoring and maintenance in a competitive environment.

Some authors have been interested on the problem of combined approach of production control and maintenance management, under subcontracting constraints. Dellagi et al. (2010) have considered a failure-prone production system, which is incapable to satisfy a constant demand. To fulfill this demand, the manufacturer uses the outsourcing practice. Two strategies have been developed; the first involves choosing one subcontractor among numerous. Authors have proved that the subcontractor’s selection is conditioned by the unitary lost sales cost. However, the second consists in switching between two subcontractors. In (Dahane et al. 2011), authors have developed an integrated maintenance strategy, which combines the production under just-in-time and maintenance policy in a subcontracting conditions. The considered production system is composed of two machines, both of which produce a single-type product, and subject to breakdowns and can carry out outsourcing tasks. These works deal with the problem in continuous time. Contrary to these models, for discrete time models, Hajej et al. (2014) have considered subcontracting and product returns in the joint production and maintenance problem. The authors proposed resolution procedure based on linear quadratic stochastic optimization. A supply chain coordination issues with outsourcing options have been discussed in Haoues et al. (2012). In order to find the best outsourcing and maintenance periods, authors have compared between different strategies in a combined production and maintenance context.

Our proposed models are slightly different from the above studies. In their formulations, the authors have been interested in the development of integrated production and maintenance strategies under subcontracting constraints. In contrast, in the present paper, we study the outsourcing optimization under integrated production–maintenance approach.

Dahane and Rezg (2011) have formulated an outsourcing model for a single subcontractor multiple-outsourcers relationship; the objective of the proposed model is to analyze the viability and the profitability of outsourcing under a joint maintenance/production context. Haoues et al. (2011) have addressed the problem of outsourcing activities under integrated approach of production and maintenance. The authors have proposed global models for a simultaneous optimization of the profits for subcontractor–outsourcer relationship. Recently, in (Haoues et al. 2016), a combined policy to balance the trade-off between two echelon of supply chain has been proposed. This approach of in-house production/outsourcing, and maintenance, considers a noncyclical preventive maintenance, and the failure rate is depending on the production rates adopted in each period planning. Rivera-Gómez et al. (2016) have considered the effect of the variations of availability and degradation on the production capacity. If the facility is not capable to satisfy the demand, the outsourcing is adopted to improve the in-house production. However, in-house resources in the contrary case satisfy the clients. Authors have developed a joint policy to control simultaneously the production and maintenance rates, and the frequency at which subcontractors are solicited. In another work, Rivera-Gómez et al. (2018) have analyzed the production, maintenance and subcontracting strategies in an integrated model. They considered that the degradation process involves effects on quality and reliability.

Almost all of the above cited approaches have considered principally the outsourcers or subcontractors viewpoint and optimized only the performances of one party. This does not certainly lead to an ideal solution for all memberships of a supply chain (Gheidar Kheljani et al. 2009). Even the two parts of relationship are considered, many works do not take into account the coordination between them. For example, in (Dahane et al. 2011), the subcontracting is studied according to two perspectives separately: the subcontractors’ orientation and the outsourcers’ orientation.

Different coordination models have been proposed to optimize the profits of all the members and alignment of decisions between entities of a supply chain. However, to the best of our knowledge, few studies have studied the problem of outsourcing optimization under reliability and maintenance constraints and consider the coordination between the parties of supply chain.

Our goal in this paper is to propose a mathematical formulation for the cooperation inter-companies. More precisely, we address the problem of simultaneous optimization of the profits of the subcontractor and the outsourcer, under a win–win partnership and reliability constraints. Although similar policies may be optimal individually to each part of the system, the sum of the profits realized individually can be much lower than the maximum benefit of the system that could generate under a coordinated policy (Saharidis et al. 2009). Thus, most of production planning models with outsourcing option only consider the amount of outsourcing in each production period, and do not consider the temporal aspect of the outsourcing, while our model decides the optimal timing of outsourcing. The time is an important key parameter in outsourcing contract. Therefore, for our approach, the cooperation can be studied according to two viewpoints: direct partnership or through an outsourcing platform. The cooperation in our paper is viewed as a collective decision-making action; the communication is an essential mean for synchronizing the actions spread out over different partners. We are in the context of co-decisions meant to individual actions coordination of each actor. This cooperation is based on the negotiation to prevent or resolve conflicts that may occur between decisions and individual goals.

This paper is structured as follows: In the second section, we present the problem description. “Mathematical models formulation” section is devoted to mathematical models of production plans. The “Resolution procedure” section is dedicated to detail the resolution procedure. Numerical example and sensitivity analysis are presented in “Numerical example and sensitivity analysis” section to illustrate the results. Finlay, conclusions and future directions research are provided in “Conclusions and future research directions” section.

Problem description

We consider two production units; each one consists of a single machine subject to random failures. The first for the subcontractor denoted (\( u_{s} \)) which provides products to a direct customer (main customer), where its production capacity exceeds the principal demand. However, the second for the outsourcer is denoted (\( u_{o} \)). This latter is related to outsourcing services, with the aim of improving its production capacity to meet constant customer demand. In this case, outsourcing is motivated by the incapacitated in-house production, knowing that its production system cannot meet the entire demand.

With the aim of increasing their productivity, reducing their costs, companies are adopting new strategies based on the call for subcontractors’ companies, where production costs are lower. However, outsourcers companies are confronted with the following problems:

  • The transportation problem of product induces a higher cost. The outsourcers companies, and according to comparative advantage, outsource the means of production instead of outsourcing products or tasks.

  • The quality control problem of outsourced products. The outsourcers are unable to perform quality control of the product manufactured by the subcontractors. Therefore, the company can receive no-conforming products with desired product standards. Thus, can be rejected, which creates a shortfall. For this purpose, the outsourcers outsource the means of production in order to control production quality.

  • The problem of maintenance activities management for all stakeholders. In fact, if the maintenance of subcontractor is not run by itself, the effectiveness of maintenance actions on the machines of subcontractor is not assured and the reliability of its unit is unknown. This induces uncontrollable downtime subcontractor for which there is loss of production.

According to problems imposed by the subcontractor, the outsourcer decides to produce at the maximum capacity and completes the rest of the demand by using outsourcing practice. Maintenance management for outsourcer can improve the reliability of its equipment. Unlike for subcontractor, maintenance activities management of its unit is not managed by the outsourcer, which cannot act to improve reliability. It is to note that the maintenance management of outsourcer company is managed independently of the subcontractor. Indeed, the maintenance strategies adopted by the outsourcer party depend only on the machine history. They do not take into account the state of the subcontractor that imposes downtime coinciding with the maintenance periods of the outsourcers unit.

Notations

Throughout the paper, the following notations are used:

Index

\( i \) :

Index of a unit, with \( i = s \), denotes the subcontractors’ unit, and \( i = o \) is the outsourcers’ unit

\( j \) :

Index of a plan, with \( j = \overline{\text{wo}} \), denotes the plan without outsourcing, and \( j = {\text{wo}} \) stands for the plan with outsourcing

Decision variables

\( S_{1}^{i} \), \( S_{2}^{i} \):

Beginning and end instants of outsourcing

\( f_{i} \left( \cdot \right) \) :

Probability density function associated to the unit failure

\( F_{i} \left( \cdot \right) \) :

Probability distribution function associated to the unit failure

\( I\left( t \right) \) :

Inventory level at the instant t

\( \lambda^{i} \left( t \right) \) :

Hazard failure rate function of the unit

\( \lambda_{n}^{i} \left( t \right) \) :

Nominal unit failure rate function when unit i operates with the maximal production capacity

\( M_{j} \left( T \right) \) :

Average number of failures during the period T

\( {\text{IC}}_{j}^{i} \), \( {\text{MC}}_{j}^{i} \) and \( {\text{PC}}_{j}^{i} \):

Total costs of: inventory, maintenance and production over the planning \( \Delta t_{i} \) with or without outsourcing

\( \pi_{j}^{i} ,{\text{Rev}}_{j}^{i} \) :

Total profit and revenue over the planning \( \Delta t_{i} \) with or without outsourcing

\( {\text{SC}}_{j}^{o} \), \( d_{{p_{j} }}^{o} \):

Total shortage cost and quantity over the planning \( \Delta P_{\text{O}} \) with or without outsourcing

\( {\text{Rev}}_{\text{OTS}} \) :

Total revenue of outsourcing over the plan \( \Delta P_{\text{S}} . \)

\( {\text{OC}}^{\text{o}} \) :

Total outsourcing cost of the unit \( u_{\text{s}} \) over the plan \( \Delta t_{\text{o}} . \)

\( \pi^{i} \) :

Total profit realized by outsourcing integration over the plan \( \Delta t_{i} . \)

Parameters

\( P_{1}^{i} \), \( P_{2}^{i} \):

Beginning and end instants of the production plan period

\( \Delta t_{i} \) :

Total Production period duration of the unit \( i \)

\( \Delta r_{i} \) :

In-house production period duration of the unit \( i \)

\( \Delta s_{i} \) :

Outsourcing period duration, where \( \Delta t_{\text{o}} = \Delta t_{\text{o}} + \Delta s_{\text{o}} \) and \( \Delta t_{\text{s}} = \Delta r_{\text{s}} + \Delta s_{\text{s}} . \)

\( d_{i} \) :

Direct demand addressed to production unit \( u_{i} \)

\( c^{i} \left( T \right) \) :

Production rate of \( u_{i} \) during the period T

\( c_{{\rm max} }^{i} \) :

Maximal production capacity of \( u_{i} \)

\( c_{\text{h}}^{i} \) :

Inventory holding cost of one product during one time unit for the unit \( u_{i} \)

\( c_{\text{p}}^{i} \) :

Unitary production cost of the unit \( u_{i} \)

\( p_{\text{s}}^{i} \) :

Unitary selling price of the unit \( u_{i} \)

\( c_{\text{r}}^{i} \), \( c_{\text{m}}^{i} \):

Unitary cost of minimal repair and preventive maintenance of the unit \( u_{i} \)

\( c_{\text{s}}^{\text{o}} \) :

Unitary shortage cost for the outsourcer

\( \pi_{\text{ots}} \) :

Outsourcing profit of the machine of subcontractor during one time unit

\( c_{\text{ots}} \) :

Outsourcing cost of the machine of subcontractor during one time unit

Assumptions

During this work, the following assumptions are considered:

  1. 1.

    The unmet demand is lost.

  2. 2.

    The products are imperishable with time.

  3. 3.

    Failures are detected instantaneously.

  4. 4.

    The owners perform machine maintenance. The law of machines degradation is Weibull type, the rate of failure increases with use.

  5. 5.

    The duration of minimal repairs and preventive maintenance actions is considered negligible.

  6. 6.

    Degradation of the machine of the subcontractor or the outsourcer party imposes random downtime. In addition, machines are subject to preventive maintenance policy, which aims to reduce the occurrence of failures. Downtime of machines due to maintenance shutdowns is assumed negligible (Assumption 4), and therefore do not cause a loss of demand.

  7. 7.

    Preventive maintenance actions are considered perfect. Each action restores the machine to “As Good As New” configuration.

  8. 8.

    During the production interval \( \Delta t_{\text{o}} \), \( u_{\text{o}} \) is used with a maximum production capacity \( c_{{\rm max} }^{o} \).

  9. 9.

    During the production interval \( \Delta t_{\text{s}} \), the production unit \( u_{\text{s}} \) is operated with constant rates: \( c^{\text{s}} \) during \( \Delta r_{1}^{\text{s}} \) and \( \Delta r_{2}^{\text{s}} \) (where \( c^{\text{s}} \) ≤ \( c_{{\rm max} }^{\text{s}} \)).

  10. 10.

    During the interval of outsourcing,\( u_{\text{s}} \) is used with a maximum production capacity \( c_{ \hbox{max} }^{\text{s}} \).

  11. 11.

    The production plan can start with a not-null level of stock: \( \left( {I\left( {t_{1}^{i} } \right) \ge 0 } \right) \)

  12. 12.

    Outsourcing condition for outsourcer: The unit \( u_{\text{o}} \) cannot produce the amount requested during the interval \( \Delta t_{\text{o}} \): \( \left( {d_{\text{o}} - I\left( {t_{1}^{\text{o}} } \right)} \right) > c_{{\rm max} }^{\text{o}} \Delta t_{\text{o}} \)

  13. 13.

    Outsourcing condition for subcontractor: The unit \( u_{\text{s}} \) can satisfy all demand: \( c^{\text{s}} \cdot \left( {\Delta r_{1}^{\text{s}} + \Delta r_{2}^{\text{s}} } \right) \ge \left( {d_{\text{s}} - I\left( {t_{1}^{\text{s}} } \right)} \right) \).

  14. 14.

    The systems \( u_{\text{s}} \), and \( u_{\text{o}} \) with outsourcing \( u_{\text{s}} \) produce exactly the quantities requested.

We consider dependence between production and failure rates, such as the failure rate during each interval depends on the production rate. Therefore, operating at high rate accelerates the unit degradation and therefore increases the number and the total cost of repairs. For a given interval, the failure rate is written as follows:

$$ \lambda_{i} \left( t \right) = \frac{{c^{i} }}{{c_{{\rm max} }^{i} }}\lambda_{n}^{i} \left( t \right) $$
(1)

For each production facility, we conduct a preventive maintenance action at the end of each production period. However, two other preventive maintenance actions are performed on the machine \( u_{\text{s}} \) at the beginning and end of outsourcing period, which restores the production unit for the next production period.

Mathematical models formulation

Our goal is to determine simultaneously the optimal profits of the subcontractor and outsourcer during a finite planning horizon under a win–win partnership. The proposed analytical models are based on the gross revenues and generated costs.

First, we present the production planning models of subcontractor and outsourcer for the case without outsourcing option. Then, we present the case after outsourcing insertion.

Production planning models without outsourcing option

  • The subcontractor company

Without outsourcing option, the production control policy of subcontractor consists of building a stock of finished products, with a production rate \( c^{\text{s}} \), to meet the direct demand \( d_{\text{s}} \) of its main customer. We have:

$$ c^{\text{s}} = \frac{{\left( {d_{\text{S}} - I\left( {t_{1}^{\text{s}} } \right)} \right)}}{{\Delta t_{\text{s}} }} $$
(2)

The production unit produces exactly the quantity \( d_{\text{s}} - I\left( {t_{1}^{\text{s}} } \right) \) (Assumption 14). The realized profit without outsourcing option is given by the following expression:

$$ \pi_{{\overline{\text{wo}} }}^{\text{s}} = {\text{Rev}}_{{\overline{\text{wo}} }}^{\text{s}} - \left( {{\text{IC}}_{{\overline{\text{wo}} }}^{\text{s}} + {\text{MC}}_{{\overline{\text{wo}} }}^{\text{s}} + {\text{PC}}_{{\overline{\text{wo}} }}^{\text{s}} } \right) $$
(3)

where

Gross revenue is expressed by the following formula:

$$ {\text{Rev}}_{{\overline{\text{wo}} }}^{\text{s}} = d_{\text{s}} \cdot p_{\text{s}}^{\text{s}} $$
(4)

Production cost is expressed by the following equation:

$$ {\text{PC}}_{{\overline{\text{wo}} }}^{\text{s}} = \left( {d_{\text{s}} - I\left( {t_{1}^{\text{s}} } \right)} \right) \cdot c_{\text{p}}^{\text{s}} $$
(5)

The inventory holding cost is given by Eq. 6:

$$ {\text{IC}}_{{\overline{\text{wo}} }}^{\text{s}} = \left[ {I\left( {t_{1}^{\text{s}} } \right) \cdot \Delta t_{\text{s}} + \left( {d_{\text{s}} - I\left( {t_{1}^{\text{s}} } \right)} \right)\frac{{\Delta t_{\text{s}} }}{2}} \right] \cdot c_{\text{h}}^{\text{s}} $$
(6)

Maintenance cost is calculated by the following expression:

$$ \begin{aligned} {\text{MC}}_{{\overline{\text{wo}} }}^{\text{s}} & = M_{{\overline{\text{wo}} }} \left( {\Delta t_{\text{s}} } \right)c_{\text{r}}^{\text{s}} + n \cdot c_{\text{m}}^{\text{s}} \\ & = \left[ {\frac{{c^{\text{s}} }}{{c_{ \hbox{max} }^{\text{s}} }}\mathop \int \limits_{{t_{1}^{s} }}^{{t_{2}^{s} }} \lambda_{ \hbox{max} }^{\text{s}} \left( t \right){\text{d}}t} \right]c_{\text{r}}^{\text{s}} + c_{\text{m}}^{\text{s}} \\ \end{aligned} $$
(7)
  • The outsourcer company

Production control policy of the outsourcer consists in operating the unit with maximum production capacity \( c_{{\rm max} }^{\text{o}} \), to minimize costs and shortage quantities to be outsourced (assumption 8). Without outsourcing option, the unit \( u_{\text{o}} \) operates with the maximum production capacity \( c_{ \hbox{max} }^{\text{o}} \) to meet the demand of customers \( d_{\text{o}} \). However, the in-house capacity of this unit cannot meet this demand. The profit without outsourcing option is given by the following expression:

$$ \pi_{{\overline{\text{wo}} }}^{\text{o}} = {\text{Rev}}_{{\overline{\text{wo}} }}^{\text{o}} - \left( {{\text{IC}}_{{\overline{\text{wo}} }}^{\text{o}} + {\text{MC}}_{{\overline{\text{wo}} }}^{\text{o}} + {\text{PC}}_{{\overline{\text{wo}} }}^{\text{o}} + {\text{SC}}_{{\overline{\text{wo}} }}^{\text{o}} } \right) $$
(8)

where

Gross revenue is expressed by the following formula:

$$ {\text{Rev}}_{{\overline{\text{wo}} }}^{\text{o}} = c_{ \hbox{max} }^{\text{o}} \cdot \Delta t_{\text{o}} \cdot p_{\text{s}}^{\text{o}} $$
(9)

Production cost is calculated as follows:

$$ {\text{PC}}_{{\overline{\text{wo}} }}^{\text{o}} = c_{{\rm max} }^{\text{o}} \cdot \Delta t_{\text{o}} \cdot c_{\text{p}}^{\text{o}} $$
(10)

The expression of shortage cost, when this situation occurs, is given as follows:

$$ {\text{SC}}_{{\overline{\text{wo}} }}^{\text{o}} = d_{{p_{0} }}^{\text{o}} \cdot c_{\text{s}}^{\text{o}} = \left[ {{ \hbox{max} } \left[ {0 , \left( {d_{\text{o}} - \left( {I\left( {t_{1}^{\text{o}} } \right) + c_{ \hbox{max} }^{\text{o}} \cdot \Delta t_{\text{o}} } \right)} \right) } \right]} \right] \cdot c_{\text{s}}^{\text{o}} $$
(11)

The total inventory holding cost is written as follows:

$$ {\text{IC}}_{{\overline{\text{wo}} }}^{\text{o}} = \Delta t_{\text{o}} \cdot \left[ {I\left( {t_{1}^{\text{o}} } \right) + \frac{{c_{{\rm max} }^{\text{o}} \cdot \Delta t_{\text{o}} }}{2}} \right] \cdot c_{\text{h}}^{\text{o}} $$
(12)

Finally, formula 13 gives the maintenance cost over the planning period:

$$ {\text{MC}}_{{\overline{\text{wo}} }}^{\text{o}} = M_{\text{o}} \left( {\Delta t_{\text{o}} } \right) \cdot c_{\text{r}}^{\text{o}} + c_{\text{m}}^{\text{o}} $$
(13)

such as: \( M_{\text{o}} \left( {\Delta t_{\text{o}} } \right) = \mathop \int \limits_{{t_{1}^{o} }}^{{t_{2}^{o} }} \lambda_{{\rm max} }^{\text{o}} \left( t \right){\text{d}}t \)

Production planning models after outsourcing insertion option

  • The subcontractor

The insertion of the outsourcing task requires a new optimization of production plan based on new production rates. Consider first \( c^{\text{s}} \), production rate during production periods \( \Delta r_{1}^{\text{s}} \) and \( \Delta r_{2}^{\text{s}} \). \( c_{{\rm max} }^{\text{s}} \) means the production rate adopted by the subcontractor during the outsourcing period. The expression of the subcontractor profit is based on the revenue earned from the production and outsourcing, and resulting costs of storage, maintenance and production. It is expressed as follows:

$$ \pi_{\text{wo}}^{\text{s}} = {\text{Rev}}_{\text{wo}}^{\text{s}} + \pi_{\text{OTS}} - \left( {{\text{IC}}_{\text{wo}}^{\text{s}} + {\text{MC}}_{\text{wo}}^{\text{s}} + {\text{PC}}_{\text{wo}}^{\text{s}} } \right) $$
(14)

where

Gross revenue is expressed by the following formula:

$$ {\text{Rev}}_{\text{wo}}^{\text{s}} = d_{\text{s}} \cdot p_{\text{s}}^{\text{s}} $$
(15)

Production cost is expressed by the following equation:

$$ {\text{PC}}_{\text{wo}}^{\text{s}} = \left( {d_{\text{s}} - I\left( {t_{1}^{\text{s}} } \right)} \right) \cdot c_{\text{p}}^{\text{s}} $$
(16)

The profit realized from the outsourcing is calculated as follows:

$$ \pi_{\text{OTS}} = \Delta s_{\text{s}} \cdot \pi_{\text{ots}} $$
(17)

The inventory cost is expressed by Eq. 18:

$$ {\text{IC}}_{\text{wo}}^{\text{s}} = \left[ {c^{\text{s}} \cdot \Delta r_{1}^{\text{r}} \cdot \left( {\frac{{\Delta r_{1}^{\text{s}} }}{2} + \Delta s_{\text{s}} + \Delta r_{2}^{\text{s}} } \right) + I\left( {t_{1}^{\text{s}} } \right) \cdot \Delta t_{\text{s}} + \frac{{c^{\text{s}} \cdot \left( {\Delta r_{2}^{\text{s}} } \right)^{2} }}{2}} \right] \cdot c_{\text{h}}^{\text{s}} $$
(18)

Maintenance cost is calculated by the following expression:

$$ {\text{MC}}_{\text{wo}}^{\text{s}} = M_{\text{wo}} \left( {\Delta t_{\text{s}} } \right)c_{\text{r}}^{\text{s}} + 3c_{\text{m}}^{\text{s}} $$
(19)

such as: \( M_{\text{wo}} \left( {\Delta t_{\text{s}} } \right) = \left[ {\frac{{c^{\text{s}} }}{{c_{{\rm max} }^{\text{s}} }}\left( {\mathop \int \limits_{{t_{1}^{\text{s}} }}^{{s_{1}^{\text{s}} }} \lambda_{{\rm max} }^{\text{s}} \left( t \right){\text{d}}t + \mathop \int \limits_{{s_{2}^{\text{s}} }}^{{t_{2}^{\text{s}} }} \lambda_{{\rm max} }^{\text{s}} \left( t \right){\text{d}}t} \right) + \mathop \int \limits_{{s_{1}^{\text{s}} }}^{{s_{2}^{\text{s}} }} \lambda_{{\rm max} }^{\text{s}} \left( t \right){\text{d}}t} \right] \)

  • The outsourcer

The outsourcing option consists in renting the machine of the subcontractors unit \( u_{\text{s}} \) to enhance their production capacity. In order to minimize the outsourcing amount, the unit \( u_{\text{o}} \) (in-house production) works with its maximum production capacity \( c_{{\rm max} }^{\text{o}} \) (assumption 8). The missing production capacity is outsourced by renting \( u_{\text{s}} \). The total production capacity is sufficient to meet the demand \( d_{\text{o}} \) (assumption 14). The expression of outsourcer profit is based on the revenue earned from the production and storage costs, maintenance, production, shortages and outsourcing:

$$ \pi_{\text{wo}}^{\text{o}} = {\text{Rev}}_{\text{wo}}^{\text{o}} - \left( {{\text{IC}}_{\text{wo}}^{\text{o}} + {\text{MC}}_{\text{wo}}^{\text{o}} + {\text{PC}}_{\text{wo}}^{\text{o}} + {\text{SC}}_{\text{wo}}^{\text{o}} + {\text{OC}}^{\text{o}} } \right) $$
(20)

where

Gross revenue is expressed by the following formula:

$$ {\text{Rev}}_{\text{wo}}^{\text{o}} = \left( {c_{{\rm max} }^{\text{o}} \cdot \Delta t_{\text{o}} + c_{{\rm max} }^{s} \cdot \Delta s_{\text{s}} } \right) \cdot p_{\text{s}}^{\text{o}} $$
(21)

Production cost is calculated as follows:

$$ {\text{PC}}_{\text{wo}}^{\text{o}} = c_{{\rm max} }^{\text{o}} \cdot \Delta t_{\text{o}} \cdot c_{\text{p}}^{\text{o}} $$
(22)

Outsourcing cost is expressed by formula 23:

$$ {\text{OC}}^{\text{o}} = \Delta s_{\text{s}} \cdot c_{\text{ots}} $$
(23)

The expression of shortage cost, when this situation occurs, is given as follows:

$$ SC_{{\overline{\text{wo}} }}^{\text{o}} = d_{{p_{0} }}^{\text{o}} \cdot c_{\text{s}}^{\text{o}} = \left[ {\hbox{max} \left[ {0 , \left( {d_{\text{o}} - \left( {I\left( {t_{1}^{o} } \right) + c_{{\rm max} }^{o} \cdot \Delta t_{\text{o}} } \right)} \right) } \right]} \right] \cdot c_{\text{s}}^{\text{o}} $$
(24)

The total inventory holding cost is written as follows:

$$ {\text{IC}}_{\text{wo}}^{\text{o}} = \left[ \begin{aligned} & c_{{\rm max} }^{\text{o}} \cdot \Delta r_{1}^{\text{o}} \cdot \left( {\frac{{\Delta r_{1}^{\text{o}} }}{2} + \Delta s_{\text{o}} + \Delta r_{2}^{\text{o}} } \right) + I\left( {t_{1}^{\text{o}} } \right) \cdot \Delta t_{\text{o}} \\ & \quad + \frac{{c_{{\rm max} }^{\text{o}} \left( {\Delta r_{2}^{\text{o}} } \right)^{2} }}{2} + \Delta s_{\text{o}} \cdot \left( {c_{{\rm max} }^{\text{o}} + c_{{\rm max} }^{\text{s}} } \right) \cdot \left( {\frac{{\Delta s_{\text{o}} }}{2} + \Delta r_{2}^{\text{o}} } \right) \\ \end{aligned} \right] \cdot c_{\text{h}}^{\text{o}} $$
(25)

Finally, formula 26 gives the maintenance cost over the planning period:

$$ {\text{MC}}_{\text{wo}}^{\text{o}} = M_{\text{o}} \left( {\Delta t_{\text{o}} } \right) \cdot c_{\text{r}}^{\text{o}} + c_{\text{m}}^{\text{o}} $$
(26)

such as: \( M_{\text{o}} \left( {\Delta t_{\text{o}} } \right) = \mathop \int \limits_{{t_{1}^{\text{o}} }}^{{t_{2}^{\text{o}} }} \lambda_{{\rm max} }^{\text{o}} \left( t \right){\text{d}}t \)

Resolution procedure

We use an exhaustive search to solve effectively these models. All tests of this paper have been performed on a desktop computer, Pentium 4 with Intel Core 2 Duo CPU (3 GHz 2.93), and 2 GB RAM. We use MATLAB to implement different algorithms. In the following, we give different algorithms of our analytical resolution procedure.

figure a
figure b

Numerical example and sensitivity analysis

In this section, we provide a numerical example to illustrate our results. Let us consider two production units, one for the subcontractor and one for the outsourcer. Specific data for each unit are given as follows:

For the subcontractor: consider the example of (Dahane and Rezg 2011):

\( d_{\text{s}} = 32 \) units; \( \Delta t_{\text{s}} = 30 \) time units; \( c_{{\rm max} }^{\text{s}} = 2 \) units/time units; \( I\left( {t_{1}^{\text{s}} } \right) = 2 \) units.

For the outsourcer: \( d_{\text{o}} = 65 \) units; \( \Delta t_{\text{o}} = 25 \) time units; \( c_{{\rm max} }^{\text{o}} = 2 \) units/time units; \( I\left( {t_{1}^{\text{o}} } \right) = 5 \) units.

We consider that the failure rate function, when the production units operate with maximal capacities \( c_{{\rm max} }^{i} \) follows a Weibull distribution with two parameters \( \alpha = 2 \) and \( \beta = 100 \). Thus, the function is written as follows:

$$ \lambda_{n} \left( t \right) = \left( {2/100} \right) \cdot \left( {t/100} \right) $$

The rest of parameters are summarized in Table 1.

Table 1 Set of systems’ parameters

For these parameters, the optimal results of the case without outsourcing integration are summarized in Table 2.

Table 2 Generated costs, realized profits without outsourcing option

Without outsourcing, the profit of the subcontractor is equal to 249.255 m.u. The production unit meets the entire demand, it satisfies demand, but production capacity is not used optimally. For the outsourcer, the profit is 105.5 m.u, but a shortage situation occurs, and generates a shortage cost equal to 220 m.u. Thus, the total profit realized by both parties of system without the partnership is equal to 354.755 m.u.

The optimal results of separate optimization are summarized in Table 3.

Table 3 Generated costs, realized profits with outsourcing option—separate optimization

Figure 1a and b shows the profits realized for the subcontractor and the outsourcer with outsourcing in separate optimization, compared with the profit realized without outsourcing.

Fig. 1
figure 1

Realized profits with outsourcing option—separate optimization

The integration of outsourcing involves a new system optimization. If we treat each part separately (i.e., separate optimization), the subcontractor realizes a total profit equals to 392.095 m.u, it is obtained for \( s_{1}^{\text{s}} = 0 \) and \( s_{2}^{\text{s}} = 5 \); the profit from the integration of outsourcing is 142.84 m.u. (which expresses 36.43% of the total profit of subcontractor); while the profit realized by the outsourcer is 265.5 m.u; it is obtained for \( s_{1}^{\text{o}} = 20 \) and \( s_{2}^{\text{o}} = 25 \). The profit from the integration of outsourcing is 160 m.u. (which expresses 60.26% of the total profit of outsourcer). In this case, the win–win partnership is impossible because each company wants to maximize profits regardless of the other party.

However, the total profit of both parties realized by the simultaneous optimization under a win–win partnership is 809.467 m.u. obtained for \( s_{1}^{\text{o}} = s_{1}^{\text{s}} = 20 \) and \( s_{2}^{\text{o}} = s_{2}^{\text{s}} = 25 \). The profit from the integration of outsourcing in the entire system is 279.712 m.u. or 34.55% of the total profit of the system. If we analyze each part separately, we can see that the subcontractor realized a profit increase of 54.18% compared to the case without inclusion of outsourcing. For the outsourcer, an increase of 39.74% was achieved. The optimal results of simultaneous optimization are summarized in Table 4.

Table 4 Generated costs, realized profits with outsourcing option—integrated optimization

Figure 2 shows the trade-off interval profits (feasibility and profitability intervals) between the subcontractor and the outsourcer under integrated optimization, compared with separate optimization.

Fig. 2
figure 2

Equilibrium interval of the profit between subcontractor and outsourcer under win–win partnership

We perform a sensitivity analysis based on outsourcing parameters (costs, periods, etc) to find their effects on individual profit realized by the subcontractor, and the total profit realized by the outsourcer.

Sensitivity analysis based on outsourcing periodicities

Table 5 presents and summarizes the results of experiments dealing with the change in profit of the subcontractor, the outsourcer, as well as the complete system according to the period of outsourcing. From this table and Fig. 3, we observe that the variation in the period of outsourcing has an effect on the cost of storage of both parties, on the maintenance costs of the subcontractor; and consequently on the profits realized by the subcontractor, respectively, the outsourcer.

Table 5 Results of sensitivity analysis based on outsourcing periodicities
Fig. 3
figure 3

Variation of the subcontractor, the outsourcer and the whole system profits according to outsourcing periodicities

However, the change in the outsourcing period has no effect on outsourcing integration profit, and the production costs of the two parts, the outsourcing profit and the outsourcing cost, respectively, for the subcontractor and the outsourcer, and finally the maintenance cost of the outsourcer.

Sensitivity analysis based on outsourcing costs

Table 6 summarizes the results of experiments dealing with the change in profit of the subcontractor, the outsourcer, as well as the complete system based on unitary outsourcing prices. From this table and Fig. 4, we find that the change in the outsourcing price has an effect on the profit and cost of outsourcing; and consequently on the profits realized by the subcontractor and the outsourcer, respectively. They are inversely proportional, so it has no effect on the total profit of the complete system. The same reasoning for the gain generated from the integration of outsourced activities. For the rest of the variables, we note that these settings are not changed during the experiments.

Table 6 Results of sensitivity analysis based on outsourcing costs
Fig. 4
figure 4

Variation of the subcontractor, the outsourcer and the whole system profits according to outsourcing costs

Conclusions and future research directions

In this paper, we have studied the optimization problem of the integration of outsourced activities for single-production period. The studied system is composed of two manufacturing systems; each system consists of one randomly failing and repairable machine, which produces a single product. The goal is to develop an effective and efficient partnership through outsourcing contracts among the supply chain members.

We have developed a global mathematical model to find the trade-off between single outsourcer and single subcontractor. We have focused on the determination of the optimal plans maximizing the total profits for two parts, which take into account the reliability constraints reflecting the dependence between production and failure rates.

Exhaustive search algorithms have been implemented to define a profitability interval for both parties to achieve a win–win policy. The different contract parameters that suit both parties have been determined (duration, start and end dates, the production and outsourcing rates). To demonstrate the robustness of our models, we have performed a sensitivity analysis based on outsourcing parameters (costs, periodicities, etc) to investigate their effects on partial costs and individual profit of each part, as well as the total profit realized by the system. The combined approach has revealed a higher profit increase as compared to the separate planning approach. The approach is practical to be implemented as the results are obtained in a reasonable execution time.

It would be interesting as a forthcoming work to address the revenue sharing and compensation policies between the two parts. Furthermore, other maintenance policies can be considered, where such policies usually involve other more complicated issues not included in the current models.