Introduction

Ship routing and scheduling problems in a tramp-shipping environment have been discussed and formulated by Operations Research models for many years. The purpose of these problems was to schedule the transport of cargoes to a fleet of cargo ships, where it is to find the cargoes to be carried by each ship and the route to be followed towards the ports of these cargoes. Generally, there is a time window (laycan) for each cargo when it is ready for loading and another time window when it is ready for discharge. Until recently, the research papers have formulated a cargo hard time window constraint where the ship must stick to this time or otherwise the cargo will not be considered for transport by this ship. Then, research papers started to formulate a cargo soft time window constraint where the ship may violate this time for a certain cost or penalty.

Psaraftis (2017) who gave for his paper the title ‘Ship routing and scheduling: the cart before the horse conjecture’ triggers the development of this research paper. The title implies the fact that some research assumptions in the area of ship routing and scheduling resembles the situation where the cart is put before the horse, a situation that makes ship owners skeptical about research in this area. One of the main reasons for this situation is that some authors, including the Author of this research paper, assume a hard time window for cargo loading and discharging events. In fact, the ship owners are skeptical not only because of this situation but also because of the research mathematical models where not all shipping elements are represented.

The purpose of this research is not only to formulate a soft time window but also to consider this time and the cargo transport demand as random variables, which has never been discussed before. This consideration enables the routing and scheduling problem to incorporate the cargoes that are expected to be offered in the planning period. Without this consideration, the expected cargo, when offered, might find no space for transport. According to the chance-constraint programming (Charnes and Cooper 1959), the likelihood of the expected cargo to be offered and be transported is based on the probability distribution of the cargo quantity and the least probability the ship owner stipulates he can transport the cargo within its transport demand. This new formulation extends the model of the Shipping Optimization Systems (SOS) (SOS 2021). SOS is a suite of decision support systems developed to support the ship owner in making optimal decisions for cargo-ship-voyage scheduling, ship-to-trade-area allocation, and new-ship appraisal. The cargo-ship-voyage scheduling model uses a stochastic gross-profit-per-day objective accompanied with realistic shipping elements. This objective, due to its per-day criterion, enhances the performance of the sea transport as part of the supply chain. This model is here extended to include the stochastic soft time windows in addition to the stochastic cargo transport demand. The chance-constraint programming and a modified version of the Dantzig–Wolfe Decomposition Principle (Dantzig and Wolfe 1960) known as Block-Angular Linear Ratio programming (El Noshokaty 2014) solve the model.

In “Review of the literature” section, a review of the literature is presented, followed by the mathematical model in “The mathematical model” section and the solution procedure in “The solution procedure” section. “Case study” section demonstrates a case study and “Conclusion” section concludes the findings of this paper.

Review of the literature

The research papers, which are related to the subject of this research paper, can be classified into three categories. First category discusses the hard and soft time windows without a stochastic context. The second category discusses the time windows within a stochastic context other than the time windows or the cargo transport demand. The third category discusses the soft time windows within a stochastic context of time windows only.

In the first category, Koskosidis et al. (1992) have addressed the vehicle routing and scheduling problem and presented a formulation based on the treatment of the time window constraints as soft constraints that can be violated at a cost. They heuristically decompose the problem into an assignment/clustering component and a series of routing and scheduling components. Fagerholt (2001) introduced soft time windows to a ship-scheduling model. The motivation for introducing soft time windows instead of hard ones is that by allowing controlled time window violations for some cargoes, it may be possible to obtain better schedules and significant reductions in transportation costs. To control the time window violations, inconvenience costs for servicing cargoes outside their time windows are imposed. Christiansen and Fagerholt (2002) assumed that the ports may be closed for service at night and during weekends, therefore, wide time windows can be regarded as multiple time windows. Christiansen et al. (2004) have presented a review of the routing and scheduling problems and the cargo time windows discussed in these problems. They classified the time windows, in addition to hard time windows, into multiple time windows and soft time windows. Daniel (2006) introduced a new formulation to solve ship routing and scheduling problems with hard time windows. The problem describes a set of products distributed among a set of ports, with each product having a pickup time window, download time window, and a destination port. Within a specific time horizon, it is required to find the schedule for a fleet of ships that maximizes the fleet total gross profit. The problem is modelled as a Mixed Integer Non-Linear Programming (MINLP) problem. Kritikos and Ioannou (2010) and Nhieu et al. (2018) address a variant of the vehicle routing problem with hard time windows. Lui et al. (2021) address the vehicle routing problem with soft time windows.

In the second category, Tas et al. (2013) studied a vehicle routing problem with soft time windows and stochastic travel times. A model is developed that considers both transportation costs (total distance traveled, number of vehicles used and drivers’ total expected overtime) and service costs (early and late arrivals). Errico et al. (2018) considered the vehicle routing problem with hard time windows and stochastic service times (VRPTW-ST). In this variant of the classic VRPTW, the service times are random variables. They consider a chance-constrained program to model the VRPTW-ST and provide a new set partitioning formulation. Keskin and Tabatabaei (2019) considered the electric vehicle routing problem with time windows and stochastic waiting times at recharging stations is an extension of the electric vehicle routing problem with time windows where the vehicles may wait in the queue before recharging their battery due to a limited number of available chargers.

In the third category, Guan et al. (2017) designed a linear programming model with chance constraints for the time window of loading cargo. Before the optimization, a survey for the waiting time of ships for berths is carried out in some of the ports with large export volume. The uncertain time window constraints are transformed into deterministic constraints. The model is solved by column generation optimization technique.

The following are some comments on the above-mentioned research papers:

  1. (a)

    The cargo quantity is not considered as random variable, with or without the soft time windows. As a result, the not-yet-offered cargo of a stochastic transport demand is denied representation in the model, leaving the model without a global optimum even though the soft time windows may be stochastic.

  2. (b)

    The ship arrival time is determined apriori according to predetermined feasible cargo-ship-voyage schedules. As a result, the alternatives of ship arrival time at any port may not be exhaustive, leaving the model without a global optimum.

  3. (c)

    The ship arrival time lacks the necessary shipping elements to represent a real tramp-shipping problem. Examples of the shipping elements include a gross-profit-per-day objective, demurrage and dispatch terms, laden and ballast fuel consumptions, passing or (and) bypassing canals, en-route bunkering, and much more others (El Noshokaty 2017, 2020.)

The mathematical model

The paper is using the tramp model developed initially by El Noshokaty (2017), modified by some additional shipping elements by El Noshokaty (2020), which can all be summarized in the following 25 elements:

  1. (a)

    The total quantity of the cargoes to be carried on board a ship must target the maximum possible profit whether the ship is ‘full and down’ or otherwise. Maximum possible profit is achieved by optimizing the stochastic gross-profit-per-day objective.

  2. (b)

    The rate of loading or (and) discharging of a cargo may be limited to a nominal rate. The demurrage and dispatch may result if the actual rate is less or greater than the nominal rate, respectively. The demurrage and dispatch may be calculated for the loading and discharging separately (irreversible calculation), or for the loading and discharging combined (reversible calculation).

  3. (c)

    Lightening of shipload via SUMED pipeline in Suez Canal.

  4. (d)

    Lightening of shipload via ‘daughter-ship arrangement’ in Suez Canal or Panama Canal.

  5. (e)

    Time charter to be taken as an alternative venture to voyage charter.

  6. (f)

    The ship has the option, if equipped enough and if permitted by the ship operator, to heat or cool the cargoes while in ship holds. The cost of heating or cooling is added to the total cost.

  7. (g)

    Additional charter party terms such as specifying multiple ships and cargoes in one Contract of Affreightment (COA), with freight specified for each cargo or lump sum freight for all cargoes.

  8. (h)

    A ship may be chartered-in to compete in carrying a certain cargo.

  9. (i)

    The ship has the option, if permitted, to pass or (and) bypass the Suez Canal or (and) the Panama Canal, which ever contributes more to the gross profit per day.

  10. (j)

    A differentiation is made to whether the ship is in laden or ballast condition, so that the sea fuel consumption is calculated accurately.

  11. (k)

    Different open and close ports and dates are specified for each ship.

  12. (l)

    Already booked cargo. If booked, ship name may or may not be specified. If the ship name is specified, booked cargo is assigned to this ship (if the ship name is not specified, booked cargo may be assigned to the ship contributing more to gross profit).

  13. (m)

    Already loaded cargo. If loaded, cargo is assigned to the ship already carrying it.

  14. (n)

    Deadweights other than winter deadweight; namely summer and tropical deadweights.

  15. (o)

    The total weight, volume, and number of all cargoes carried on board the ship, at any time, must not exceed its deadweight (excluding capacities other than cargo), volume, or (and) TEU capacity.

  16. (p)

    The optimal cargo mix, i.e. choosing the best combination out of different cargoes, is always desired even if the quantity of the cargoes to be carried is less than the capacity of the ship.

  17. (q)

    The ship has the option to carry one cargo or multiple cargoes at the same time.

  18. (r)

    The date of loading or (and) discharging of a given cargo must be within its loading or (and) discharging time window.

  19. (s)

    The ship starting and ending ports are restricted to the ports indicated by the schedule or the last calling ports.

  20. (t)

    Weather condition as an element affecting ship speed.

  21. (u)

    If the ship arrives before the cargo loading or discharging open date, the ship has to wait until this date. This waiting time is added to the total ship elapsed time. The cost of this waiting time is added to the total cost.

  22. (v)

    The ship starting and ending dates of operation must be within a given schedule date window.

  23. (w)

    The discharged cargo from a ship is checked, holds cleaning wise, whether it is compatible with the new cargo to be loaded on board the same ship. If they are not compatible, a holds cleaning expense is incurred.

  24. (x)

    The en-route bunkering of the ship is allowed when the bunker price from an en-route bunkering port will reduce the operating cost.

  25. (y)

    The actual ship draught is measured according to the weight of the cargoes already loaded on board the ship. This allows the ship, if the actual draught permits, to pass canals and call at ports when tide is low.

The above-mentioned elements are then being modified by the new shipping element developed by this research paper, which is described hereinafter:

  1. (z)

    The probability that the ship arrives to pick-up a not-yet-offered cargo at its laycan is greater than the least probability the ship owner has stipulated he can transport the cargo within its transport demand (see “Appendix 2”). If the ship arrives late than the laycan closing date (cancelation date), a penalty is incurred for the delayed days.

It is strongly emphasized here that item (z) has altered item (r) the way that allows the ship owner to violate the cargo loading or (and) discharging time window against a penalty cost. The penalty cost includes shipper’s claims and lost cargo offers. More importantly, the cargo loading or discharging time window, i.e. the cargo laycan, is not any more fixed as indicated by item (r), but is considered in this research paper as a random variable. This means that different probabilistic cargo time windows are considered.

The model, after all the modifications brought by the shipping elements and terms mentioned under items (a) to (z) above, is described in “Appendixes 1 and 2”.

The solution procedure

The model is solved by performing the following two steps:

  • Step 1: Convert the stochastic constraints to their deterministic-equivalent ones using the Chance-Constraint programming (Charnes and Cooper 1959), as described in “Appendix 2”.

  • Step 2: Apply the state-of-the-art Block-Angular Linear Ratio Programming algorithm (El Noshokaty 2014). In this algorithm, the problem mathematically takes a block-angular form, with a block of objective and constraints assigned to each ship. Then a modified Dantzig–Wolfe Decomposition Principle is applied to each branch point of a modified Mixed Continuous 0–1 integer-programming algorithm.

SOS automates steps 1 and 2 and applies them to the shipping problem that is stored in its database.

Case study

El Kosseir, Safaga, and Sidi Kirear are three oil tankers working as trampers in the crude oil transport. In the last quarter of the year, these tankers are planned to compete in carrying 10 crude oil cargoes by non-demise voyage charter parties. Three of these cargoes are to be transported from Kuwait to USA, another three from Ukraine to China, and four from Venezuela to Latvia. Relevant data on ships is shown in Table 1. For El Kosseir and Sidi Kirear, the open port is Alexandria. For Safaga, the open port is Odessa. For all ships, the close port is the last port of call, the open date is 1/10 (dd/mm), the close date is 31/12, the voyage fixed cost is US$ 1000, and the fixed time is 0.3 days. Relevant data on port is shown in Table 2. Before open date, 7 crude oil cargoes are offered (confirmed) while 3 cargoes are not-yet-offered (unconfirmed). Relevant data on cargo is shown in Table 3. For the not-yet-offered cargoes, the ship owner is anticipating 5 classes of data for cargo quantity and freight as shown in Table 4 and similar classes for cargo laycan as shown in Table 5.

Table 1 Ship data
Table 2 Port data
Table 3 Cargo data
Table 4 Unconfirmed cargo additional quantity data
Table 5 Unconfirmed cargo additional laycan data

The ship owner consults SOS to find for each ship, at the low speed level (most economic), the cargo mix (no cargo partial shipment is allowed) and the route which gives him the maximum gross profit per day, summed for all ships. Following step 1 of the solution methodology of “The solution procedure” section, SOS converts Tables 4 and 5 to a deterministic-equivalent quantity, freight, and laycan for each not-yet-offered cargo as indicated in Table 6. Then, following step 2, SOS applies the Block-Angular Linear Ratio Programming to the problem to find the optimal solution the ship owner is requesting.

Table 6 Unconfirmed cargo deterministic-equivalent quantity, freight, and laycan

According to El Noshokaty 2020, SOS suggests El Kosseir selects ‘Crude Oil 10’ from Maracaibo to Riga, Safaga selects ‘Crude Oil 6’ from Maracaibo to Riga, and Sidi Kirear selects ‘Crude Oil 2’ from Shuaiba to Baltimore (directly), followed by ‘Crude Oil 5’ and ‘Crude Oil 7’ from Maracaibo to Riga. Total gross profit per day is $28,149. Upon reviewing this result, the ship owner pinpointed the following observations:

  1. (a)

    Sidi Kirear has a more promising result if compared to the other two ships,

  2. (b)

    Although ‘Crude Oil 10’ has a good chance to be offered and its quantity is appropriate for El Kosseir, and ‘Crude Oil 6’ is also appropriate for Safaga, but both have a much less freight rate if compared to ‘Crude Oil 1’ or ‘Crude Oil 4’,

  3. (c)

    ‘Crude Oil 1’ has an early hard laycan for load or discharge difficult to meet, while ‘Crude Oil 4’ has a late laycan for discharge in December which makes the voyage time less attractive from the gross profit-per-day objective point of view.

To improve the gross profit per day, the ship owner requested SOS to consider the following actions:

  1. (a)

    Soften the laycan of ‘Crude Oil 1’ by suggesting a late arrival penalty, to be negotiated later with the shipper, amounting to $2000 per day if the ship arrives late than the cargo laycan close date (cancellation date) for load or discharge. And, a waiting cost amounting to $5000, 7000, 10,000 per day if El Kosseir, Safaga, or Sidi Kirear, respectively, arrives early than the laycan open date for load or discharge.

  2. (b)

    Disregard the not-yet-offered cargoes from being represented to see whether softening the laycan in a non-stochastic context has a better or worse effect over the gross profit-per-day objective.

  3. (c)

    As an alternative action to softening, he requested SOS to perform a speed sensitivity analysis to see whether the hard laycan of ‘Crude Oil 1’ can be met by accelerating the speed of all ships while trying to maintain or possibly improve the gross profit per day.

For action (a), SOS suggests El Kosseir selects ‘Crude Oil 10’ from Maracaibo to Riga, Safaga selects ‘Crude Oil 1’ from Shuaiba to Baltimore (directly) followed by ‘Crude Oil 6’ from Maracaibo to Riga, and Sidi Kirear selects ‘Crude Oil 2’ from Shuaiba to Baltimore (directly), followed by ‘Crude Oil 5’ and ‘Crude Oil 7’ from Maracaibo to Riga. Total gross profit per day is $34,182.

For action (b), SOS suggests El Kosseir selects ‘Crude Oil 4’ from Odessa to Shanghai (directly), Safaga selects ‘Crude Oil 1’ from Shuaiba to Baltimore (directly) followed by ‘Crude Oil 6’ from Maracaibo to Riga, and Sidi Kirear selects ‘Crude Oil 2’ from Shuaiba to Baltimore (directly), followed by ‘Crude Oil 5’ and ‘Crude Oil 7’ from Maracaibo to Riga. Total gross profit per day is $29,709. This action does not permit the promising ‘Crude Oil 10’ to be transported when offered.

For action (c), at the medium ship speed on all legs, SOS suggests El Kosseir selects ‘Crude Oil 10’ from Maracaibo to Riga, Safaga selects ‘Crude Oil 6’ from Maracaibo to Riga, and Sidi Kirear selects ‘Crude Oil 2’ from Shuaiba to Baltimore (directly), followed by the ‘Crude Oil 5’ and the ‘Crude Oil 7’ from Maracaibo to Riga. Total gross profit per day equals $25,419. At the high speed on all legs, SOS suggests El Kosseir selects ‘Crude Oil 1’ from Shuaiba to Baltimore (directly), followed by ‘Crude Oil 10’ from Maracaibo to Riga, Safaga selects ‘Crude Oil 6’ from Maracaibo to Riga, and Sidi Kirear selects ‘Crude Oil 2’ from Shuaiba to Baltimore (directly), followed by ‘Crude Oil 5’ and ‘Crude Oil 7’ from Maracaibo to Riga. Total gross profit per day reported is $28,277.

Upon reviewing the previous analysis, the ship owner decided to go for the stochastic softening of the laycan as a strategy as far as ‘Crude Oil 1’ maintains a penalty per day around $2000, since it gives him a better gross profit-per-day. But when negotiating the shipper of ‘Crude Oil 1’, the $2000 penalty rate was rejected and another ones for $3000–$4000 was imposed for short and long delays, respectively. Again, upon consulting SOS on the new penalty rate, the same result is suggested but for a gross profit-per-day of $34,032 and $33,882 for the $3000 and $4000 rates, respectively (instead of $34,182) which means that SOS is not highly sensitive to the change in the penalty rate. Therefore, the ship owner decided to accept the new penalty rate.

In comparison with the results given by El Noshokaty (2020), where the optimal gross profit per day does not exceed $28,149, the ship owner is now in a better position where he can achieve a gross profit per day around $34,000.

Conclusion

A newly modified model for ship routing and scheduling has been presented in this paper which includes stochastic cargo soft time windows, where cargo and laycan date are considered as random variables, with a penalty for a laycan late arrival and a cost for early arrival. The model has a gross-profit-per-day objective accompanied with realistic shipping elements. This objective enhances the performance of the sea transport as part of the supply chain. A case study demonstrates that using stochastic cargo soft time windows and stochastic cargo transport demand has considerably improved the gross profit-per-day better than varying ship speed. This improvement may not be equally achieved in a non-stochastic shipping context.

Using SOS as a decision support system, where the new model is built-in and transparent to the user, enables the ship owner to interact with SOS to perform what-if and sensitivity analysis. The analysis shows the effect of changing different shipping elements on the gross profit-per-day.

Future research work is needed to build probability distributions for different categories of cargo transport demand. This work will encourage researchers to develop more stochastic shipping models.‘’