Manuscript Offprint
arXiv:2611.01387Three-phase time minimization transportation problem with non-idle phases: a polynomial two-witness algorithm
Abstract
The three-phase time minimization transportation problem partitions the origin–terminal links into three sets used in consecutive phases and minimizes the sum of the phase shipment times. Optimal solutions may leave a phase idle, as in the main example of the original study. We require every phase to carry a positive integer quantity while leaving the split of the total requirement across phases free. Discarding idle solutions from the original algorithm does not, in general, solve this variant. We prove that the optimum is attained by fixing one witness link in each of two phases and deciding the third phase by a single network flow computation, with the optimal Phase-3 time of each witness pair located by binary search. The resulting exact algorithm is strongly polynomial. It extends to any fixed number of phases, whereas, when the number of phases is part of the input, even non-idle feasibility is strongly NP-complete; feasibility alone is fixed-parameter tractable in the number of phases via known rainbow-matching results. We also characterize the minimum time of each phase. On the main example, non-idleness raises the optimum from 38 to 41. On 3,650 random instances with up to links the algorithm took at most 50.2 s, and non-idleness raised the optimal value in 41% of the 2,250 instances with equal phase sizes; on 90 sampled instances it was faster than a mixed integer programming solver on 80 with a direct formulation and on 65 with a tighter threshold formulation.
Keywords: Time minimization transportation problem, Three-phase transportation, Non-idle phases, Bottleneck transportation, Minimum cost flow, Polynomial algorithm
1. Introduction
In a time minimization transportation problem (TMTP), a homogeneous commodity is shipped from origins to terminals, all shipments start simultaneously, and the duration of the operation is the largest transportation time among the links that carry a positive quantity. The problem was introduced by Hammer [1], and Garfinkel and Rao [2] studied it as the bottleneck transportation problem. Because the duration depends only on which links are used and not on the amounts carried on them, the TMTP is a natural model for emergency logistics, perishable goods and other settings in which completion time matters more than cost.
*Corresponding author. Email address: akhurana@umd.edu (Archana Khurana) ¹These authors contributed equally to this work.
Hierarchical and multi-stage versions divide the link set into groups that are used one after another. In the two-level hierarchical TMTP of Sonia and Puri [3], a quantity is first shipped on Level-I links and the remainder on Level-II links, and the sum of the two shipment times is minimized; Sharma et al. [4] gave a polynomial iterative algorithm for this problem, and Kaur et al. [5] an alternative approach. Capacitated variants with two and three levels have been solved by Xie and Li [6] and by Zhang and Xie [7], and Zhang and Xie [8] studied a bilevel model in which the origins are partitioned into two non-empty groups. Two-stage problems with restricted flow [9, 10] build on the analysis of capacitated transportation problems with bounds on rim conditions by Dahiya and Verma [11], and a two-level solid version has also been studied [12].
Jain, Dahiya and Verma [13] extended this setting to three phases. In their three-phase time minimization transportation problem (3-PhTP), the links are partitioned into Phase-1, Phase-2 and Phase-3 links, transportation in each phase starts only after the previous phase is complete, and the sum of the three phase shipment times is minimized; their polynomially bounded iterative algorithm generates a sequence of proficient triads of phase times. In this journal, Kaur, Dahiya and Sharma [14] studied a two-phase problem in which a specified amount of the commodity is transported in each phase, and a recent preprint by Kaur, Dahiya and Verma [15] formulates a bi-objective two-phase problem, minimizing the sum of the phase times and the total cost, in which the flow in each phase must be non-zero.
In 3-PhTP a phase is allowed to carry nothing, in which case its time is zero. In the main numerical example of [13] (their Example 1) the optimal triad is (06, 32, 00) with value 38, so the optimal schedule transports nothing in Phase-3, and six of the ten proficient triads that the original algorithm records for this example with respect to Phase-3 contain a zero component (Section 5.3). An idle phase is harmless when it costs nothing, but not when every phase carries a commitment that does not depend on the amount shipped. Dispatching in waves has been studied, for example, for same-day delivery [16], where whether to dispatch in a given wave is itself a decision. Consider a distributor that dispatches in consecutive waves sharing one fleet: receiving windows and vehicle restrictions determine which routes may run in which wave, and each wave lasts as long as its longest trip. If, in addition, a crew roster or carrier contract requires at least one load per wave, while the total requirement may still be split freely across the waves, no wave may be idle (Section 5.1).
This paper studies the resulting problem, which we call the three-phase time minimization transportation problem with non-idle phases (3-PhTP-NI): every phase must carry a positive integer quantity, and the split of the total requirement across phases remains a decision, unlike in the restricted-flow model of [14], which prescribes the amount of each of two phases. 3-PhTP-NI is not a routine reformulation of 3-PhTP. The requirement depends on integrality: a real solution may carry positive flow in every phase although no integer solution does (Remarks 1 and 2). The auxiliary problems of [13] can make a link unusable but cannot require a phase to carry flow; their convergence theory carries over to non-idle solutions (Proposition 6), but the modified auxiliary problems are no longer standard TMTPs, so the argument of [13] for a polynomial bound no longer applies. And discarding the idle triads from the output of the original algorithm does not, in general, give the non-idle optimum: on Example 1 it gives 43, 43 or 41 depending on the phase with respect to which the triads are generated, against the optimum 41 (Section 5.3), and in every random sample drawn as in Section 6.9 it failed in more than half of the instances, whatever the tie-breaking; the rate depends on how the phases are sampled.
Our method rests on a simple observation. Each phase of a non-idle solution contains a positive link whose time equals the phase time. Fixing such a witness link in two phases and reserving one unit on each leaves an ordinary transportation problem on the links whose times do not ex-ceed the witness times, and whether the third phase can then carry positive flow within a given time is decided by one network flow computation (Lemmas 2 and 3). Enumerating the witness pairs and locating the optimal Phase-3 time of each pair by a binary search capped by the incumbent value gives an exact algorithm whose number of network flow computations is bounded in terms of the numbers of origins and terminals alone; it is therefore strongly polynomial. The contributions are as follows.
-
Model. We formulate 3-PhTP-NI as a single integer transportation problem with three phase-flow constraints and show that non-idleness is equivalent to excluding the triads with a zero component (Section 2).
-
Two-witness reduction and algorithm (the main result). The optimal value equals the smallest over a Phase-1 link , a Phase-2 link and a Phase-3 time value for which one auxiliary transportation problem admits a solution with positive Phase-3 flow (Theorem 1). The resulting algorithm is correct (Theorem 2) and strongly polynomial; it needs at most probes, where is the bound stated in [13] for the number of its auxiliary problems (a direct count gives at most , Section 4), and at most when the two smallest phases are enumerated (Theorem 3). The network flow tools are standard; the reduction is the main contribution of this paper.
-
Structure of non-idle solutions. We characterize the minimum attainable time of each phase (Theorem 4), show that it may strictly exceed the smallest time entry of the phase (Proposition 2), and show by a counterexample that non-idle feasibility cannot be decided from bounds on phase flows alone (Proposition 3).
-
Number of phases. For any fixed number of phases the reduction gives a strongly polynomial algorithm with at most probes (Proposition 4); for it computes the minimum-time point of the bi-objective model of [15] without costs (Corollary 2 and Remark 6). When is part of the input, deciding whether a non-idle solution exists is strongly NP-complete even with unit availabilities, requirements and times, and minimizing the sum of times is strongly NP-hard even when, in addition, all times lie in (Theorem 5); so, unless , no algorithm runs in time polynomial in the input size uniformly in , although running times of the form are not excluded. Feasibility alone is fixed-parameter tractable in (Proposition 5); this follows from a simple lemma and known results on rainbow matching [17] and is not a new technique. We are not aware of an algorithm for the optimization problem with running time , nor of a result that excludes one (Section 4.5).
-
Relation to the original framework. With three modifications, the convergence theory of [13] holds for non-idle solutions (Proposition 6); the bound N stated there for the number of auxiliary problems can be exceeded, and we give a corrected bound (Section 4).
-
Computational evidence (observations, not theorems). We illustrate the method on a synthetic dispatch scenario, a small instance and both examples of [13]; for Example 1 the non-idle optimum is (06, 32, 03) with value 41 (Section 5). A computational study on 3,650 random instances, following the design of [14], together with further instances for specific questions, shows that the number of probes grows as when the phases have equal size, that the incumbent cap removes about 77% of the probes, that non-idleness binds in 41% of the instances with equal phase sizes, and that the algorithm is faster than a mixed integer programming solver at the median, by a factor of 2.8 with a direct formulation and 1.5 with a tighter threshold formulation (Section 6). These findings depend on the instance distributions and implementations used.
The closest prior work is the preprint [15]. Its feasible sets require each of two phases to carry a non-zero integer flow, and by its Theorem 2 the last non-dominated point recorded by its algorithm attains the minimum sum of the two phase times over such solutions. The present paper treats three phases, and more generally any fixed number of phases, with the single objective of the total time; builds the requirement into the algorithm through witnesses covered by the correctness proof (Theorem 2); and establishes the complexity of the problem in the number of phases. As a secondary observation, we show in Section 7.2 that the re-solution rule by which [15] enforces the requirement (its Remark 12) can discard every non-idle solution of a sub-problem, after which its stopping rule certifies a sum of times that is not minimal.
Section 2 states the model, Section 3 presents the algorithm, and Section 4 establishes its correctness and complexity and the results on phase minima, feasibility and the number of phases. Sections 5 and 6 report numerical illustrations and computational experiments, Section 7 discusses the relation to the framework of [13] and to related models, and Section 8 concludes. The Supplementary Material contains additional tables, the full specification of the sampling study, the HiGHS reproduction, two further instances for Section 7.2, computational checks of the proofs, and the scripts and data.
2.1. Data and notation
Let and be the index sets of origins and terminals. Origin has availability and terminal has requirement , where are positive integers and the problem is balanced, . The time of transporting the commodity along link is , independent of the quantity shipped. The link set is partitioned into three non-empty disjoint sets and of Phase-1, Phase-2 and Phase-3 links.
Assumption 1. All transportation times are positive: for every .
For an allocation we define, for , the Phase- flow and the Phase- shipment time
The triple is the triad of . We write for the smallest Phase- time, for the set of distinct Phase- times, and . For a link we write and for the matrix with a one in position and zeros elsewhere.
2.2. The model
Let
be the set of integer feasible solutions of the balanced transportation problem. 3-PhTP is the problem with optimal value OPT [13]. The set of non-idle solutions is
(3) and the problem studied in this paper is
with if .
Remark 1 (Single-matrix formulation). In [13] the problem is stated with three real allocation matrices and for the three phases. The availabilities and requirements left after Phase-1 and Phase-2 define the feasible sets of the later phases, and the matrices are supported on and , respectively (the condition on printed in [13], for , must be read with ). Since the phase link sets are disjoint, maps these feasible triples one-to-one onto the real transportation polytope, and maps the integer triples one-to-one onto ; the inverse restricts to and . The map preserves the phase allocations, the phase flows , the phase times and hence the objective, so the residual availabilities and requirements need not be modeled separately.
The optimal value of 3-PhTP is the same over the real polytope and over . Indeed, the solutions supported in the support of a real solution form a non-empty face of the polytope, and a vertex of this face is an integral vertex of the polytope that uses no new link. The auxiliary problems of [13] are posed over a single matrix as well, and the same argument shows that their optimal values are attained in .
Non-idleness behaves differently: in the instance of Proposition 3 a real solution has positive flow in every phase, although (Remark 2).
Remark 2 (Modeling choices). Two choices in Eq. (3) are deliberate. First, the model is posed over integers. Over the reals, non-idleness would be the strict inequality , and the feasible set would change: in the instance of the proof of Proposition 3 every with is a real non-idle solution, whereas . (Since depends only on the support of , it takes finitely many values, so a minimum over real non-idle solutions would still be attained whenever such solutions exist.) Over the integers, is equivalent to . Second, the constraint is a positivity requirement and not a prescribed quantity or . Prescribing the quantity of each phase, as in the restricted-flow model of [14], fixes the split of the requirement across phases; in 3-PhTP-NI the split is part of the decision.
The next lemma shows that, under Assumption 1, non-idleness is a condition on the triad alone.
Lemma 1. Under Assumption 1, for every and ,
Proof. If , some link has , so . If , then by Eq. (1). Hence implies , which implies because ; and implies , that is, , because is a non-negative integer. So the three conditions are equivalent.
Consequently, consists exactly of the solutions of 3-PhTP whose triad has no zero component, and 3-PhTP-NI can be viewed as 3-PhTP with the triads containing a zero removed. The following facts are immediate.
Proposition 1. OPT OPT . If some optimal solution of 3-PhTP belongs to , then OPT = OPT.
Proof. The first claim follows from . If an optimal solution of 3-PhTP is non-idle, it is feasible for Eq. (4), so . Together with the first claim, .
Proposition 1 does not apply to Example 1 of [13], whose optimal triad (06, 32, 00) is idle; we show in Section 5.3 that for that instance.
3. The two-witness algorithm
3.1. Witnesses and the auxiliary problem
The algorithm fixes one link in Phase-1 and one link in Phase-2 that are required to carry at least one unit; these links are called witnesses. Reserving the two units reduces the availabilities and requirements, and the remaining quantity is shipped on links whose times do not exceed the witness times.
Definition 1. Let , and . For and let and be the number of witnesses in row and column , respectively, and define the reduced margins and . The admissible link set is
(5)
The auxiliary problem is the transportation problem with margins in which for every . We say that holds if all reduced margins are non-negative, has an integer feasible solution, and some integer feasible solution of satisfies .
3.2. Evaluating by one minimum cost flow
Whether holds can be decided by solving one cost-minimizing transportation problem. Let be the total reduced availability, let be any number with , and define the costs
We call the problem over the transportation polytope with margins the probe for .
Lemma 2. Assume and , and let be an optimal basic solution of the probe. Then is integral, and holds if and only if for every and . In that case is feasible for and equals the largest Phase-3 flow over all feasible solutions of .
Proof. The transportation polytope with margins is non-empty, because , and bounded, so the probe has an optimal basic solution, and every basic solution is integral by the total unimodularity of the transportation constraint matrix and the integrality of . Let be an integral point of the polytope; then . If carries at least one unit on a link outside , its cost is at least . If vanishes outside , it is an integer feasible solution of and its cost is ; more generally, every real feasible solution of is a point of the polytope with cost .
If holds, let be an integer feasible solution of with . By optimality, ; since is integral, it cannot carry flow outside , so it is feasible for , and its cost is at most . Conversely, if vanishes outside and has cost at most , then is an integer feasible solution of with , so holds. In that case, for every feasible solution of , , so is the largest Phase-3 flow over all feasible solutions of .
In hand computations the probe can be solved by the northwest corner rule followed by the MODI (u-v) method, with kept symbolic; in implementations any minimum cost flow algorithm may be used. The links outside can equally be deleted from the network, in which case infeasibility is reported by the flow algorithm directly.
The probe can also be evaluated without costs, by one maximum flow computation and one search for strongly connected components. For a feasible solution of , let be the directed graph on with an arc for every and an arc for every with .
Lemma 3. Assume , , and let be an integer feasible solution of . Then holds if and only if or some link has and in the same strongly connected component of .
Proof. () If there is nothing to prove. Otherwise let with in one strongly connected component; then , so has no arc . Take a shortest directed path from to in . Its arcs alternate between arcs with and arcs with , and it has at least three arcs. Closing it with the arc gives a simple directed cycle with at least four arcs, so no link occurs on it both as an arc and as an arc . Adding one unit on the links of the arcs and subtracting one unit on the links of the arcs preserves every row and column sum, because each node of the cycle has one arc of each kind, and preserves non-negativity, because is integral. The support stays in , and the resulting has . It is feasible for with .
() Let be an integer feasible solution of with for some ; then . If , then . Otherwise suppose, for a contradiction, that is not reachable from , and let be the set of nodes reachable from in , so that and . The matrix has zero row and column sums, hence
If , and , then , so and is reachable from ; hence in the first sum. If , and , then , so has the arc and ; hence in the second sum. The identity therefore forces every term of the second sum to vanish, but the term with , is . So reaches , and with the arc the two nodes lie in one strongly connected component.
The first alternative in Lemma 3 implies the second and can therefore be omitted: if for some , then , and the arcs and put and in one strongly connected component.
A feasible is an integral maximum flow on the bipartite network with nodes and at most arcs, and the strongly connected components are found in linear time [18]. The computations of Section 6 use this evaluation; they were cross-checked against the minimum cost flow evaluation of Lemma 2 on 20,000 random probes without disagreement.
3.3. The algorithm
The algorithm enumerates witness pairs in order of increasing times and, for each pair, finds the smallest for which holds, whenever that value can improve the incumbent value . By Lemma 4 below, is monotone in . Only values can improve the incumbent, so the algorithm first tests the largest such value, ; if fails there, the pair is discarded after a single probe, and otherwise the smallest admissible value is located by binary search on . Two pruning rules use the incumbent: no pair can improve on unless .
When the cap gives . The bound holds because the inner pruning test failed, so . The solution used in line 19 is available without a further probe: when probes are evaluated by Lemma 2, it is the optimal basic solution of the probe; when they are evaluated by Lemma 3, it is if , and otherwise modified along the cycle constructed in the proof of Lemma 3.
Remark 3 (Choice of the enumerated phases). The objective in Eq. (4) and the constraints in Eq. (3) are symmetric in the three phase labels; the order in which phases are executed does not affect them. Algorithm 1 may therefore be applied with any two phases as the enumerated ones and the remaining phase in the role of Phase-3. Enumerating the two phases with the fewest links, and letting the phase with the most links be decided by the probe, minimizes the number of witness pairs.
Algorithm 1 Two-witness algorithm for 3-PhTP-NI
Require: Availabilities , requirements , times , partition satisfying Assumption 1.
Ensure: OPT and an optimal solution , or the statement .
1: Relabel the phases so that Remark 3
2: Sort and by non-decreasing time; let , .
3: ; undefined
4: for do
5:
6: if then stop the outer loop outer pruning
7: for do
8:
9: if then break inner pruning
10: Compute if some or then continue
11: incumbent cap;
12: if does not hold then continue one probe
13: ; invariant: holds
14: while do
15:
16: if holds then
17: else
18: a strict improvement
19: , where is the solution of with found by the last probe in which held (line 12 or 16)
20: if then return “”
21: else return OPT and
4. Theoretical analysis
4.1. Correctness
Theorem 1 (Two-witness reduction). Under Assumption 1,
where the minimum of an empty set is . In particular, if and only if holds for some and .
Proof. () Let hold, with an integer feasible solution of satisfying , and set . Adding the two units restores the original margins, so . We have , and , so . Every positive entry of lies in , because and belong to it. Hence , and since , in fact ; likewise , and . Therefore .
() If there is nothing to prove. Otherwise, since is finite, Eq. (4) has an optimal solution ; let be its triad. As , each phase carries a positive entry. Choose with and , choose with and , and put . Then is a non-negative integer matrix with margins , so the reduced margins are non-negative. Every positive entry of in has time at most , so is supported on and is feasible for . Finally , so holds and the right-hand side of Eq. (7) is at most . The two inequalities together prove Eq. (7).
For the last statement, if and only if , since is a minimum over the finite set and if . By Eq. (7), this holds if and only if holds for some and , and by Lemma 4 this is the case if and only if holds for some and .
Lemma 4 (Monotonicity). If holds and , then holds.
Proof. The reduced margins do not depend on , and by Eq. (5). A feasible solution of with positive Phase-3 flow is therefore also feasible for with the same Phase-3 flow.
Theorem 2 (Correctness of Algorithm 1). Under Assumption 1, Algorithm 1 terminates. If it reports this, and otherwise it returns and a solution whose objective value is .
Proof. Termination is clear, since both loops are finite and each binary search shrinks the interval . For a fixed pair with non-negative reduced margins, let denote the smallest for which holds, if any. By Lemma 4, holds exactly for . A pair with a negative reduced margin admits no with and , so skipping it loses nothing. By Theorem 1, is the minimum of over all pairs for which exists.
It remains to show that neither the pruning rules nor the cap discard a pair, or a value of , that could improve the incumbent. Every candidate value of a pair is at least . In the inner loop the pairs share and have non-decreasing , so once holds it holds for all later , and breaking is safe. In the outer loop every pair with the current or a later has value at least , so stopping is safe when this bound reaches .
Consider a pair that reaches the cap. A value yields a candidate below only if , that is, only if . If fails, Lemma 4 shows that fails for every , so the pair has no candidate below and skipping it is safe. Otherwise , the binary search maintains that holds at and fails below , and it ends with ; the new value is the pair's best candidate. Hence, at termination, equals the minimum in Eq. (7) over all pairs, which is by Theorem 1. In particular, at termination if and only if , and in that case Algorithm 1 reports . When the incumbent is updated, the recorded solution lies in and, by the first part of the proof of Theorem 1, has objective value at most . Since its value is also at least , the solution returned at termination is optimal.
4.2. Complexity
Theorem 3 (Complexity). Let be the number of witness pairs evaluated by Algorithm 1 (pairs on which at least one probe is solved) and the number of incumbent updates. Algorithm 1 solves at most probes. Moreover , so at most
probes are solved, and after the relabelling of line 1. If all times are integers, . Each probe takes time when evaluated by Lemma 2 with Orlin's algorithm [19], and time when evaluated by Lemma 3 with an maximum flow algorithm [20]. Algorithm 1 therefore runs in strongly polynomial time, with the latter evaluation.
Proof. An evaluated pair costs one probe at . If fails, nothing more is spent on the pair. If it holds, the binary search on an interval of values costs at most further probes and, as shown in the proof of Theorem 2, ends with a strict improvement of the incumbent; so the searches occur exactly on the improving pairs. This gives , and gives the first bound in Eq. (8). Since , , and for a fixed sum the product is largest when the two sizes differ by at most one, which gives . After the relabelling, , so . With integer times, the incumbent values are distinct integers, the first is at most and all are at least (Lemma 1), which gives the bound on .
A probe evaluated by Lemma 2 is an uncapacitated minimum cost flow problem on nodes and arcs, which Orlin's algorithm solves in time [19]. Evaluated by Lemma 3, it is one integral maximum flow on nodes and at most arcs, which takes time [20], followed by a linear-time component search [18]. Sorting takes time. Multiplying the probe count, at most since , by the cost of a probe gives the last statement.
The quantity is the bound stated in [13] for the number of auxiliary time minimization problems solved by its algorithm, as the product of the numbers of distinct Phase-1 and Phase-2 times. A direct count gives a slightly larger bound. The recorded Phase-1 times strictly decrease, so at most proficient triads are generated. Each costs one problem in Step 3 and at most problems in Step 5, because the Phase-2 values tested while generating one proficient triad are distinct and lie below the Phase-2 time of its first triad. With the two problems of Step 1, at most problems are solved, since . The product itself can be exceeded: for , , , , and , the algorithm solves six problems, four of them after Step 1, whatever optimal solutions are chosen, whereas . Algorithm 1 therefore has the same order of auxiliary computations, up to the factor , while enforcing non-idleness. The refined count explains the behavior observed in Section 6: improvements are rare, so the number of probes is close to the number of evaluated pairs.
Remark 4 (Effect of the cap). Consider the variant of Algorithm 1 without the cap, in which every pair that passes the margin test of line 10 is probed at and, if holds, is located by binary search on and the incumbent is replaced only if . Both versions generate, prune and evaluate the same pairs and produce the same sequence of incumbent values: by induction over the pairs, a pair updates the incumbent in either version exactly when , and to the same value. The cap removes every probe that locates for a pair that cannot improve the incumbent. On a pair that does improve it, the binary search runs over values instead of , which can take more or fewer probes. The bound of Theorem 3 holds for both versions; the refined bound holds for the version with the cap. In the experiments of Section 6.5 the cap reduced the total number of probes in every instance.
4.3. Minimum phase times under non-idleness
The algorithm of [13] starts from the minimum attainable time of each phase. In 3-PhTP this minimum can be zero; under non-idleness the relevant quantity is
with if ; in Theorem 4 the minimum of an empty set is likewise . By Lemma 1, . It can be computed with the same primitive as . For let . For and , say that holds if, after reserving one unit on and one on , the transportation problem with the reduced margins and admissible links has an integer feasible solution with positive Phase-b flow.
Theorem 4. Under Assumption 1, for each ,
Proof. If holds with solution then and , exactly as in the proof of Theorem 1. Conversely, if attains , choose with and , and any with ; then shows that holds. The first part shows that is at most the right-hand side, and the second that the right-hand side is at most . If , the first part shows that holds for no pair, so both sides are .
Corollary 1. if and only if is finite for some (equivalently, every) . Moreover, .
Proof. Each is finite exactly when . If is optimal for Eq. (4), then for each , and summing over gives . If , both sides are .
Remark 5. Corollary 1 suggests replacing by in the pruning bounds of Algorithm 1 and skipping witnesses with . This is correct. If holds, the solution of the first part of the proof of Theorem 1 lies in and has , and , so , and . Witnesses below these bounds therefore never satisfy , every candidate value of a pair is at least , and the safety arguments of the proof of Theorem 2 apply with replaced by ; the cap index still satisfies because . Computing by Theorem 4, however, costs probes of its own. In the experiments of Section 6.5 the bound exceeded too rarely for this to pay: it increased the number of probes in 98% of the instances (median increase 0.3%).
The bound can be strict, so computing is not a matter of reading off the smallest Phase- entry.
Proposition 2. There are instances with .
Proof. Let , , , , , and . Every has the form , , , with . For the only Phase-1 link carries nothing, so consists of the single solution with , whose Phase-2 time is . Hence . Using the fast Phase-2 link would exhaust , and origin 1 is the only origin with a Phase-1 link.
4.4. Phase-flow bounds do not decide feasibility
A natural shortcut would be to decide whether from the largest flows that subsets of phases can carry. For every non-empty , the condition
is clearly necessary for . Each of these seven conditions can be checked with one minimum cost flow computation. The following example shows that they are not sufficient, which is why Algorithm 1 forces two phases explicitly through witnesses.
Proposition 3. There is an instance satisfying Eq. (10) for every non-empty for which .
Proof. Let , , , , and (the times play no role). As in the proof of Proposition 2, with , , for . Then for and for . The left-hand side of Eq. (10) is 2,2,1 for , it is 3,3,2 for , and it is 3 for , so every condition holds. Yet neither solution is non-idle.
The example also shows that the linear relaxation of can be empty while each phase individually can be made busy: forces , while forces .
4.5. Dependence on the number of phases
The witness construction does not depend on there being three phases. For an integer , let the link set be partitioned into non-empty sets , define and by Eq. (1) for , and call
the -phase problem with non-idle phases . For witnesses , , and , the reduced margins, the admissible link set and the condition are defined as in Definition 1, with witnesses and with Phase- in the role of Phase-3.
Proposition 4. Under Assumption 1, let , relabel the phases so that for every , and let . Then
Enumerating witness tuples and locating the smallest admissible by binary search requires at most
probes, so p-PhTP-NI is solvable in strongly polynomial time for every fixed p.
Proof. By Remark 3, applied to phases, the relabelling does not change . Let witnesses , and satisfy with solution and let . The witnesses lie in distinct phases, hence are distinct links, and adding one unit on each restores the original margins, so . Every positive entry of lies in and , so for , , and ; thus is non-idle and . Conversely, if no non-idle solution exists, no tuple satisfies by the first part, and both sides of the formula are . Otherwise, since is finite, Eq. (11) has an optimal solution . For choose with and , and put . Then is a non-negative integer matrix with the reduced margins, supported on , with Phase- flow , so holds with value . This proves the formula.
Lemmas 3 and 4 concern a single phase and hold with Phase- in place of Phase-3. For a fixed witness tuple, one probe at decides whether some is admissible, and, by monotonicity, a binary search on the values of locates the smallest admissible one with at most further probes, each one maximum flow and one strongly connected components computation. This gives at most probes. Since for every , , so , and the inequality of arithmetic and geometric means gives . For fixed this number of probes is polynomial in and , and each probe is strongly polynomial.
For , Eq. (12) reduces to the bound of Theorem 3. For a single witness suffices.
Corollary 2. Let , relabel the phases so that , and let . Then is computed with at most probes, each consisting of one maximum flow and one strongly connected components computation on a network with nodes. No transportation costs are involved.
Proof. For , the method of Proposition 4 enumerates the witnesses and, for each of them, locates the smallest admissible Phase-2 time with at most probes, hence with at most probes in all. By Lemma 3 with Phase-2 in the role of Phase-3, each probe is one maximum flow on the network with nodes, which yields a feasible or shows that none exists, and one strongly connected components computation on . Neither step uses transportation costs.
Remark 6. If each link also has a unit cost , the minimum cost over the non-idle solutions with equals
where is the minimum cost of the transportation problem with the margins reduced at and on the links , , and if it has no feasible solution. Choosing as witnesses positive links of a non-idle solution of cost and sum of times that attain and gives , and removing one unit from each witness leaves a feasible solution of the reduced problem, so the minimum is at most . Conversely, adding the two witnesses to a feasible solution of such a reduced problem gives a non-idle solution with , , and hence with sum of times , so the minimum is at least . At most minimum cost flow computations are needed. The pair is the non-dominated point of minimum sum of times of the bi-objective model of [15] (Section 7.2).
The exponent in Eq. (12) grows with the number of phases. We now show that, when is part of the input, no algorithm runs in polynomial time unless . Recall that an instance of three-dimensional matching (3DM) consists of disjoint sets with and a set of triples, and asks whether some triples of cover every element of exactly once. 3DM is NP-complete [21, 22].
Decision problems and encoding. We use the terminology of [22]. A set of triples of that covers every element of exactly once is called a perfect matching. An instance of 3DM is encoded by listing the elements of and and the triples of , so its length is at least and at least . An instance of -PhTP-NI consists of and , the availabilities and the requirements , the times , which are positive rational numbers given by a numerator and a denominator in lowest terms, and, for every link , the index of the phase that contains it; all integers are encoded in binary. Since the times of all links are listed, the length of satisfies Length() , and because the phases are non-empty and disjoint. For the -phase problem we write for , and for the set of non-idle solutions, which is the feasible set of Eq. (11). We consider two decision problems. The feasibility problem asks, for an instance , whether . An instance of the decision version of -PhTP-NI consists of an instance of -PhTP-NI together with an integer , encoded in binary; it is again denoted by , and the question is whether some satisfies . We write for the largest integer that occurs among the , the , the numerators and denominators of the and, in the decision version, . A decision problem is strongly NP-complete (NP-complete in the strong sense) if it belongs to NP and there is a polynomial such that its restriction to the instances with is NP-complete [22, Section 4.2]. Our reduction from 3DM needs a restricted form.
Lemma 5. 3DM remains NP-complete when no two triples share the same pair of W- and X-elements.
Proof. The restricted problem is a special case of 3DM and therefore belongs to NP. We show that it is NP-hard by a polynomial-time reduction from 3DM.
Let be an instance of 3DM, let be the set of triples containing , and let . If some , the element cannot be covered, so the instance has no perfect matching, and we output the fixed instance with and no triples; it satisfies the restriction, vacuously, and has no perfect matching. So assume for every . Construct , with one new element per triple; add new elements to and to for every and , giving and ; and let consist of a main triple for each and a filler triple for every and . Every triple contains exactly one element of , so . Hence , because , and
The new instance thus has elements and at most triples, and it is computed in time polynomial in , hence in the length of the given instance. Pairs are unique: in a main pair the element determines , in a filler pair the element determines , and main and filler pairs have different kinds of first element.
It remains to show that has a perfect matching if and only if has one. First let be a perfect matching of the original instance, and for let be the triple of that contains ; then , and is the only triple of in . For each number the triples of as , and let consist of the main triples of all and of the filler triples ; these are triples of because . An element of or of lies only in main triples, and it lies in exactly one triple of , hence in exactly one triple of . Each and each lies in exactly one triple of , the filler triple with index . Finally let and let be its element of . If , then lies in the main triple of and in no filler triple of ; if , then lies in the filler triple with index , in no other filler triple, and in no main triple of , because . So covers exactly once.
Conversely, let be a perfect matching of , fix , and let , so that . An element occurs only in the main triple of and in the filler triples , . Each occurs only in filler triples of , so contains exactly one filler triple for each ; since covers every element of exactly once, these triples cover distinct elements of , and no other triple of covers them. Exactly one element of remains; call it . It must be covered by , and not by a filler triple: every filler triple that contains it contains some , and the only triple of containing covers a different element of . Hence the main triple of lies in , and no other main triple of a lies in . Since every triple of belongs to exactly one , the main triples in are exactly those of . The triples are distinct, because they contain distinct elements of , so is a set of triples in which each lies in exactly one triple. Every element of and of occurs in only in main triples and is covered exactly once by , hence by exactly one triple of . Therefore is a perfect matching of .
The map is therefore a polynomial-time reduction from 3DM to its restriction, and the lemma follows from the NP-completeness of 3DM [21, 22].
Theorem 5. Let be part of the input.
(a) Deciding whether is strongly NP-complete, even when , and for all links.
(b) Given an integer , deciding whether some with for satisfies is strongly NP-complete, even when , , and .
Proof. Part (a) concerns the feasibility problem and part (b) the decision version of -PhTP-NI.
Membership in NP. Let be an instance of either problem. Every satisfies , so is written with at most bits. This is at most Length() , because Length() and because the largest integer of is written in binary, so that . Given , the row and column sums, the flows , the times and their sum are obtained with additions and comparisons of integers and rational numbers whose encodings have length polynomial in Length(). Hence a non-idle (with in part (b)) is a certificate verifiable in polynomial time, and both problems, and their restrictions considered below, belong to NP.
Three facts. (i) Lemma 1 and its proof remain valid for : if , some link of is positive, so , and if then . (ii) If for all and , then and is the set of permutation matrices of order : a row of non-negative integers with sum 1 has one entry equal to 1 and zeros elsewhere, and likewise every column. Each then has exactly positive links, one in each row and one in each column. (iii) If, moreover, , then is non-idle if and only if every phase contains exactly one positive link of : the phases partition the link set, so , and for all forces for all .
Two fixed instances. Both have , , all times equal to 1 and, in part (b), ; they satisfy every restriction of (a) and of (b). In the phases are and . Each of the two permutation matrices of order 2 lies in a single phase, so by (ii), and is a no-instance of both problems. In the phases are and . The identity matrix has and , so is a yes-instance of both problems.
Both reductions start from 3DM with unique pairs, which is NP-complete by Lemma 5. Let with be an instance with unique pairs. If some lies in no triple, the instance has no perfect matching, and both reductions output . Assume from now on that every lies in some triple.
(a) If , the empty set of triples is a perfect matching, and we output . Let . Add a row , a column and a phase : the rows are , the columns , all margins are 1, and the phases are indexed by . Link is placed in phase if , which is well defined because pairs are unique, and every other link, in particular every link of row and of column , is placed in phase . All times are 1. Every phase is non-empty: phase contains the link of a triple that contains , and phase contains .
Moreover , and the instance, which has links, is computed in time polynomial in .
If is a perfect matching, let for every , , and let all other entries be 0. Each and each lies in exactly one triple of , so this is a permutation matrix. Phase contains the link of the triple of that contains , and phase contains ; so the matrix is non-idle. Conversely, let . By (ii) and (iii) it has positive links, one in each row, one in each column and one in each phase. All links of row and all links of column lie in phase , which contains only one positive link, so the positive links of row and of column coincide, that is, . The other positive links therefore lie in , one in each row and one in each column , and they occupy the phases , one each. A link of in a phase is the link of a triple , so these links correspond to triples with distinct (rows), distinct (columns) and distinct (phases), that is, to a perfect matching.
The map is thus a polynomial-time reduction from 3DM with unique pairs to the feasibility problem restricted to the instances with , and for all links. This restricted problem is therefore NP-hard and, being in NP, NP-complete. All its instances have , so the same map is a reduction to the feasibility problem restricted to the instances with , which is therefore NP-complete as well. Hence the feasibility problem is strongly NP-complete, and so is its restriction to the instances with , and for all links, all of whose instances have .
(b) If , the instance has a perfect matching: the empty set if , and, if , the triple that contains the element of , which is the only possible triple. We output . Let . Take rows , columns , all margins equal to 1, and one phase for each , so that . For each triple , place link in phase with time 1; this is well defined because pairs are unique. Give every other link time 2 and place it in one fixed phase. Every phase is non-empty, because every lies in some triple, and . The instance has links and is computed in time polynomial in .
If the 3DM instance has a perfect matching , let for every and let all other entries be 0. This is a permutation matrix that uses only links of time 1, exactly one in each phase, so every , the solution is non-idle, and . Conversely, let be non-idle with . By (i), for every , because every time is 1 or 2; as there are phases, every . A positive link of in phase has time at most , so every positive link of has time 1 and is therefore the link of a triple. By (ii) and (iii), has positive links, one in each row, one in each column and one in each phase, and the link of a triple lies in phase . The corresponding triples are therefore disjoint in (rows), (columns) and (phases), so they form a perfect matching.
The map is thus a polynomial-time reduction from 3DM with unique pairs to the decision version of -PhTP-NI restricted to the instances with , , and , which is therefore NP-hard and, being in NP, NP-complete. Every such instance has , so the same map is a reduction to the decision version restricted to the instances with , which is therefore NP-complete as well. Hence the decision version of -PhTP-NI is strongly NP-complete, and so is its restriction to the instances with , , and , all of whose instances have .
Remark 7. In the instances of part (a) of Theorem 5 all times equal 1. Every phase of a non-idle solution contains a positive link, whose time is 1, so for all and .
Adding the bound to such an instance therefore gives an instance of part (b) with the same answer. Together with the membership in NP shown in the proof, part (a) thus implies part (b), even with for all links.
Proposition 4 and Theorem 5 together locate the problem: -PhTP-NI is solvable in strongly polynomial time for every fixed , whereas for part of the input even the existence of a non-idle solution is strongly NP-complete. In the instances of Theorem 5, , so an algorithm running in time , with and the constant hidden in the independent of , would decide an NP-complete problem in polynomial time. Hence, unless , no such algorithm exists, and no polynomial-time algorithm can even return a non-idle solution whenever one exists. This excludes running times that are polynomial in the input size uniformly in , but not running times of the form for a computable function . For the feasibility problem such running times are attained (Proposition 5 below). We are not aware of an algorithm with such a running time for the optimization problem -PhTP-NI, nor of a result that excludes one. In the reduction of part (b), the trivial bound , which follows from Lemma 1, is attained exactly when a perfect matching exists. Exhaustive computational checks of Lemma 5, Theorem 5 and Proposition 4 on random instances are reported in Section S7 of the Supplementary Material.
The feasibility problem has a simple combinatorial form, which places it among known fixed-parameter tractable problems.
Lemma 6. For phases, if and only if there are links , , such that every row contains at most of them and every column at most .
Proof. If , choose a positive link of for every . These links are distinct, and since is integral, , so row contains at most of them and column at most . Conversely, given such links, the margins reduced by one unit at every are non-negative integers with equal totals , so the northwest corner rule gives an integer solution of the transportation problem with these margins on all links, and .
Proposition 5. Let be part of the input. Whether can be decided, and an element of found when one exists, with operations on integers of at most Length() bits, hence in time . In particular, the feasibility problem is fixed-parameter tractable with parameter .
Proof. Reduction. Let be the bipartite graph whose vertices are the row copies with and the column copies with , and which has, for every link and all such and , an edge between and of color , where is the phase of . A matching of edges of distinct colors, a rainbow matching of size [17], uses every color once and hence one link of every phase; the edges at a row use distinct copies of it, so row contains at most of the , and likewise for columns. Conversely, the links of Lemma 6 lie at most times in row and at most times in column , so distinct copies can be assigned to them. By Lemma 6, if and only if has a rainbow matching of size . Since , has at most edges, and it is built with comparisons of binary numbers and further operations.
Kernel. As in [17, Section 4.1], identify each edge with the 3-set formed by its two end vertices and its color; a rainbow matching of size is then a family of pairwise disjoint sets. A sunflower with petals is a family of sets whose pairwise intersections all equal one set, the core. By the sunflower lemma of Erdős and Rado [23], a family of more than distinct 3-sets contains a sunflower with petals, and one is found in polynomial time: choose greedily a maximal family of pairwise disjoint sets; if , then of its sets form a sunflower with empty core; otherwise every set meets one of the at most elements of the sets of , so some element lies in more than sets, and a sunflower with petals among the distinct 2-sets with , found in the same way (with singletons at the last level), gives one among the original sets after adding back. Let and let be a member of such a sunflower. Then pairwise disjoint sets exist if and only if they exist after is deleted [17, Reduction Rule 12 and Lemma 13]: in a solution containing , the other sets avoid the core, and since the petals are pairwise disjoint they meet at most of the other members of the sunflower, so one of these can replace . Deleting sets in this way while more than sets remain takes at most rounds, each polynomial in , and leaves a subfamily with at most sets and the same answer.
Search. The subfamily has at most subsets with members, and each is tested for pairwise disjointness with comparisons of vertex names and colors, which are integers or pairs of integers below . A subset that passes consists of edges of and gives links as in Lemma 6, and the proof of the lemma turns them into an element of with the northwest corner rule, which uses additions and comparisons of integers at most . If no subset passes, the subfamily has no pairwise disjoint sets. By the kernel step, neither has the family of all edges of , so has no rainbow matching of size , and by the reduction. The reduction and the kernel take operations and the search operations, which gives the stated bound.
The reduction in the proof shows that faster algorithms for rainbow matching apply as well; for instance, the randomized algorithm with one-sided error of [17, Theorem 2] solves the feasibility problem in time . Proposition 5 is consistent with Theorem 5, whose instances have .
5. Numerical illustrations
5.1. An illustrative dispatch scenario
The following instance is synthetic; it was constructed for illustration and is not taken from operational data. A distributor serves stores from warehouses in three dispatch waves that share one fleet (Table 1); a unit is one truckload, and is the round-trip time of route in hours. The example rests on three explicit assumptions. (i) Each route may be used in one wave only, because of receiving windows and vehicle restrictions; this exclusive assignment gives the three phases. (ii) There are enough vehicles to run all loads of a wave in parallel: all loads of a wave leave together and the next wave leaves when the last vehicle has returned, so a wave lasts as long as its longest round trip. (iii) Every wave must carry at least one load because of an external commitment, such as a crew roster or a carrier contract, not because using every wave is desirable in itself.
Without the commitment, the unique optimal plan ships (4 loads), (3) and (2) in wave 1 and (3) in wave 3, with triad (3,0,2) and OPT = 5 hours; wave 2 is idle. With it, hours with triad (3,2,2): one to three loads use the 2-hour wave-2 route , and the wave-1 deliveries of and to and are rebalanced, for instance , , , , , . The commitment costs 2 hours, 40% of the unrestricted duration. In general, is the price of requiring every phase to be used, which a planner can weigh against the cost of an idle phase. These values were verified by complete enumeration of the 317 feasible plans and by an implementation of Algorithm 1.
Table 1: Synthetic dispatch instance: round-trip times in hours and truckloads. Wave-1 routes are underlined, wave-2 routes are in bold, and wave-3 routes are plain.
| 7 | 4 | ||||
| 6 | 3 | ||||
| 7 | 2 | 5 | |||
| 3 | 4 | 2 | 3 | 12 |
5.2. A small instance
Consider the instance with , and the times and phases in Table 2. Here , and , so and , .
Table 2: Data of the small instance. Phase-1 times are underlined, Phase-2 times are in bold, and Phase-3 times are plain.
| 9 | 2 | |||
| 5 | ||||
| 3 | 2 | 2 | 7 |
The 3-PhTP optimum is , , , with triad and value 9; Phase-3 is idle, so this solution is not admissible for 3-PhTP-NI. Table 3 lists every step of Algorithm 1; it solves four probes. The pair shows a probe that fails because the auxiliary problem is infeasible, and the pair shows a probe that is feasible but cannot route any flow through Phase-3. Because of the incumbent cap, each of the last two evaluated pairs is settled by a single probe at ; without the cap they would also be probed at , for six probes in total.
Table 3: Run of Algorithm 1 on the small instance. “Bound” is ; “Cap” is , the largest Phase-3 time below . A probe passes when holds, and the number in parentheses is the largest Phase-3 flow found by the probe.
| Bound | Cap | Probes | Value (incumbent) | ||
|---|---|---|---|---|---|
| 13 | 9 | : pass (4);: infeasible | 9 | 17 (17) | |
| 15 < 17 | 5 | : pass (2) | 5 | 15 (15) | |
| 14 < 15 | 5 | : fails (0) | - | - (15) | |
| 16 ≥ 15 | inner loop stops (pruned) | ||||
The optimal probe solution for is , , . Adding the two reserved units gives , , with triad , so . Non-idleness raises the optimal value from 9 to 15, and the adjustment is not simply the addition of Phase-3 flow: using the Phase-3 link releases origin 1 from the Phase-1 link , so falls from 7 to 6 while rises from 2 to 4.
5.3. Example 1 of Jain et al.
Table 4 reproduces Example 1 of [13], with , and . Here , , , and has values with .
Table 4: Example 1 of [13]. Phase-1 times are underlined, Phase-2 times are in bold, and Phase-3 times are plain.
| 06 | 03 | 12 | 21 | 15 | 32 | 08 | 42 | 15 | |
| 40 | 04 | 29 | 03 | 23 | 17 | 03 | 06 | 10 | |
| 12 | 21 | 02 | 07 | 08 | 11 | 13 | 24 | 12 | |
| 08 | 05 | 09 | 04 | 09 | 15 | 37 | 09 | 6 | |
| 29 | 27 | 17 | 19 | 08 | 14 | 15 | 23 | 17 | |
| 11 | 35 | 42 | 05 | 27 | 32 | 35 | 27 | 20 | |
| 12 | 5 | 13 | 6 | 9 | 20 | 8 | 7 | 80 |
The optimum of 3-PhTP reported in [13] is (06, 32, 00) with value 38; one optimal allocation, with phase flows , is given in Table S3 of the Supplementary Material. Phase-3 carries no flow. Since , Algorithm 1 enumerates witnesses in Phase-1 and Phase-2. Of the witness pairs it generates 187; 13 of these are pruned by the inner rule, one in each of the 13 inner loops that end early, and the remaining 174 are evaluated. It solves 180 probes in total; without the incumbent cap the same 174 pairs would require 721 (Remark 4). The incumbent improves three times: to 48 with , , ; to 45 with , , ; and to 41 with , , . For the last pair the cap admits only , so the probes test and , and holds at both. Each of the other 171 evaluated pairs is settled by a single probe that fails at the cap. The outer pruning rule never applies, because for every Phase-1 link. One optimal allocation is shown in Table 5. Optimal allocations are not unique: the implementation used in Section 6 returns a different one, with phase flows and the same triad.
Table 5: An optimal allocation of 3-PhTP-NI for Example 1: triad (06, 32, 03), value 41, phase flows .
| 7 | 5 | - | - | 3 | - | - | - | 15 | |
| - | - | - | 6 | - | - | 4 | - | 10 | |
| 5 | - | - | - | - | 7 | - | - | 12 | |
| - | - | - | - | 6 | - | - | - | 6 | |
| - | - | 13 | - | - | - | 4 | - | 17 | |
| - | - | - | - | - | 13 | - | 7 | 20 | |
| 12 | 5 | 13 | 6 | 9 | 20 | 8 | 7 | 80 |
Thus for Example 1. The Phase-1 and Phase-2 times are the same as in the 3-PhTP optimum; non-idleness is met by sending 6 of the 80 units over the Phase-3 link (2, 4), whose time is the smallest in Phase-3. The cost of non-idleness is 3 time units, an increase of 7.9%.
Filtering the proficient triads of [13]. The supplementary material of [13] lists all proficient triads of Example 1 generated with respect to Phase-1, Phase-2 and Phase-3 (their Tables 10, 11 and 12). A tempting way to obtain the non-idle optimum is to discard the idle triads from such a list and keep the best remaining one. This gives 43 from the Phase-1 list (triad (27, 02, 14)) and 43 from the Phase-2 list, but 41 from the Phase-3 list (triad (06, 32, 03), their row ). The result depends on the phase with respect to which the triads are generated, and two of the three choices miss the optimum. Moreover, the Phase-3 list contains the idle triad (00, 27, 14), which also has value 41, so the value 41 is attained both by an admissible and by an inadmissible triad. Proficient triads are optimal for subproblems that allow idle phases, so a non-idle optimum need not appear among them. Section 6.9 shows that such failures are common in random instances drawn as described there.
5.4. Example 2 of Jain et al.
Example 2 of [13] has and . The published table marks Phase-1 links by underlining and Phase-2 links by encircling. We transcribed the partition from it; the transcribed data are given in Table S4 of the Supplementary Material. As a check, the distinct times of each phase in our transcription coincide with the three ordered lists printed in [13]: for Phase-1, for Phase-2, and for Phase-3. The reported optimum of 3-PhTP, (10, 21, 09) with value 40, is reproduced by an exact enumeration of the threshold triads.
Here and , so, by Remark 3, Algorithm 1 enumerates witnesses in Phase-2 and Phase-3 and decides Phase-1 by the probe. It generates 100 of the witness pairs, prunes 8, evaluates 92, and solves 97 probes; the outer pruning rule ends the enumeration. The incumbent improves from 79 to 48 to 40, and the last improvement uses the Phase-2 witness (1, 1) with time 21 and the Phase-3 witness (2, 4) with time 9, for which the probe gives Phase-1 time 10. Hence with triad (10, 21, 09); the optimal solution found has phase flows . In agreement with Proposition 1, the non-idleness constraint is inactive. The two published examples thus show both behaviors: the constraint binds in Example 1 and is inactive in Example 2.
6. Computational experiments
6.1. Environment and implementation
Algorithm 1 was coded in Python, as in [14], and run on one core of an Intel Xeon processor at 2.10 GHz with 7 GB of memory under Linux (Python 3.13, SciPy 1.18.1 [24]). Probes were evaluated by Lemma 3, with SciPy's implementation of Dinic's maximum flow algorithm and its strongly connected components routine. CPU times are process times in seconds and exclude instance generation. Because the hardware differs, our times are not directly comparable with those of [14].
Except in the solver comparison, whose times come from separate runs (Section 6.8; Section S1 of the Supplementary Material), all CPU times reported below come from a single process pinned to one core, which re-ran every instance after the experiments; each re-run reproduced the logged probe count and optimal value. During this re-run the other core was busy with solver runs; in a separate test such concurrent load slowed a solve by about 6%. Identical cells of different experiments differed in total CPU time by at most 2.4%, and in the repeated runs of the solver comparison, on instances with a median time of at least 1 s, single runs deviated from their median by at most 21.8% (at most 3.8% at the median); shorter runs vary more. Section S1 of the Supplementary Material gives the details. Probe counts are the exact measure of work.
6.2. Test instances
The design follows [14]. Times are independent uniform integers in [1, r]. In the first experiment the sizes are , , , , , , and ; in the second, for large instances, the sizes are and and . In both the links are split at random into three phases of equal size (rounded), the analogue of the 50% split of [14]. In the third experiment , the sizes are , , , , Phase-1 receives 5, 10, 25, 33, 50, 75, 90% of the links, and the remaining links are split equally between Phase-2 and Phase-3. Since [14] does not state how availabilities and requirements are generated, we draw uniformly from [10, 50] and split at distinct uniform cut points of , so that every . Each combination has 50 instances with recorded seeds, 3,650 instances in all, and each was also solved for 3-PhTP to measure the effect of non-idleness. All instances have .
6.3. Measures
A witness pair is generated when the loops of Algorithm 1 reach it, pruned when a bound test eliminates it (including the pair that ends an inner loop), and evaluated when at least one probe is solved for it; pairs with a negative reduced margin are counted separately (27,499 such pairs occurred). We report CPU time, probes, and the number I of incumbent updates; means are given with standard deviations and 95% t-intervals, proportions with 95% Wilson intervals.
6.4. Performance
Table 6 reports mean CPU times; per-size standard deviations and 95% intervals are given in Table S1 of the Supplementary Material. The largest instances, , took 26.4 s on average and at most 50.2 s. Table 7 gives the mean number of probes. Two features explain these counts. The pruning rules confine the enumeration to a shrinking part of the pair space: the fraction of pairs generated falls from 42% at to 7% at . Improvements are rare (at most 18 in any instance), so by Theorem 3 almost every evaluated pair costs one probe: evaluated pairs account for 99.8% of all probes (99.3% per instance on average). Fitted by least squares over all instances of the first two experiments, the number of probes grows as with (95% interval [1.37, 1.40]), well below the worst-case exponent 2 of Theorem 3; CPU time grows with exponent 1.65 ([1.64, 1.66]).
The width of the time range matters less than the size. Within each size, the Spearman correlation between r and CPU time lies between 0.07 and 0.29. A wider range creates more distinct Phase-3 times and more improvements, so the binary searches are longer: for the first experiment the mean number of probes beyond one per evaluated pair is 10.2 for r = 25 and 21.9 for r = 100. Since this is small against the number of evaluated pairs, the running time is governed by the size of the pair space.
Effect of the phase sizes. Table 8 varies the share of Phase-1. As in [14], the running time is largest when the link set is split evenly: at every size the slowest share was 33%. After the relabelling of line 1, Algorithm 1 enumerates the two smallest phases, whose product is largest, about , when the three phases have equal size; when Phase-1 is small it is one of the enumerated phases, and when it is large the other two phases are small.
Table 6: Mean CPU time in seconds of Algorithm 1 (50 instances per cell, equal phase sizes).
| Size | [1, 25] | [1, 40] | [1, 70] | [1, 85] | [1, 100] |
|---|---|---|---|---|---|
| 0.12 | 0.13 | 0.12 | 0.13 | 0.14 | |
| 0.22 | 0.23 | 0.23 | 0.27 | 0.25 | |
| 1.17 | 1.19 | 1.13 | 1.28 | 1.33 | |
| 1.63 | 1.67 | 1.88 | 1.92 | 1.88 | |
| 4.08 | 4.38 | 4.36 | 4.36 | 4.42 | |
| 5.32 | 5.39 | 5.59 | 5.52 | 6.03 | |
| 10.35 | 11.24 | 11.53 | 12.18 | 12.34 | |
| Size | [1, 50] | [1, 300] | [1, 500] | [1, 1000] | [1, 2000] |
| 13.01 | 14.42 | 15.90 | 15.37 | 14.37 | |
| 23.70 | 25.21 | 27.62 | 27.33 | 27.89 |
Table 7: Witness pairs and mean number of probes (50 instances per cell).
| Size | Pairs | [1, 25] | [1, 40] | [1, 70] | [1, 85] | [1, 100] |
|---|---|---|---|---|---|---|
| 1,089 | 418 | 446 | 432 | 435 | 470 | |
| 2,500 | 747 | 762 | 796 | 850 | 811 | |
| 17,689 | 3,217 | 3,328 | 3,190 | 3,496 | 3,563 | |
| 27,722 | 4,375 | 4,476 | 4,954 | 4,986 | 4,979 | |
| 90,000 | 9,193 | 9,938 | 9,708 | 9,723 | 10,047 | |
| 122,500 | 11,273 | 11,397 | 11,734 | 11,487 | 12,562 | |
| 284,089 | 18,437 | 19,904 | 20,492 | 21,565 | 21,801 | |
| Size | Pairs | [1, 50] | [1, 300] | [1, 500] | [1, 1000] | [1, 2000] |
| 360,000 | 22,511 | 24,400 | 26,240 | 25,189 | 23,697 | |
| 693,889 | 35,725 | 37,276 | 39,264 | 38,938 | 40,122 |
Table 8: Mean CPU time in seconds for different shares of Phase-1 links (; Phase-2 and Phase-3 share the rest equally).
| Size | 5% | 10% | 25% | 33% | 50% | 75% | 90% |
|---|---|---|---|---|---|---|---|
| 0.029 | 0.049 | 0.093 | 0.126 | 0.057 | 0.014 | 0.007 | |
| 0.080 | 0.132 | 0.355 | 0.479 | 0.217 | 0.040 | 0.012 | |
| 0.191 | 0.360 | 0.937 | 1.171 | 0.491 | 0.069 | 0.021 | |
| 0.548 | 1.087 | 3.061 | 4.339 | 1.820 | 0.256 | 0.053 |
6.5. Effect of the incumbent cap
To isolate the cap we solved 160 further instances (sizes 8, 12, 16 and 20; times in [1, 40] or [10, 20]; availabilities in [10, 50] or [1, 5]; 10 instances per combination) with and without it, counting every probe. By Remark 4 the two versions generate, prune and evaluate the same pairs, which the runs confirmed, and they returned the same optimal values. The cap reduced the number of probes in every instance, by 76.7% on average (range 17.2–84.8%); the median ratio of probes with and without it is 0.215 (5th–95th percentile 0.158–0.388; Wilcoxon signed-rank test, ; per-cell medians in Table S2 of the Supplementary Material). Replacing by in the pruning bounds did not pay (Remark 5).
6.6. How often non-idleness binds
Over the first two experiments the constraint binds, that is , in 926 of 2,250 instances (41.2%, 95% interval 39.1–43.2%), with a mean relative increase of 4.1% and a mean absolute increase of 1.60 time units (Table 9). In 14% of the binding instances the computed optimum of 3-PhTP uses a single phase. The relative cost falls as the range widens, from 8.0% for to 0.5% for . Within the first experiment, which crosses seven sizes with five time ranges, the binding rate does not depend significantly on the time range ( degrees of freedom, ) but depends on the size ( degrees of freedom, ): it is 55% at , 45% at and 36–38% from to . In the second experiment it is 30% at and 38% at . Beyond the rate thus levels off between 30 and 40% rather than continuing to decrease. The cost is small in relative terms because, with times starting at 1, every phase has a link that is nearly free; it grows when the smallest time of each phase is large, since by Lemma 1.
Table 9: Percentage of instances in which non-idleness binds / mean relative increase ()/OPT in percent over those instances (50 instances per cell).
| Size | [1, 25] | [1, 40] | [1, 70] | [1, 85] | [1, 100] |
|---|---|---|---|---|---|
| 10 × 10 | 62 / 7.3 | 44 / 5.6 | 54 / 4.7 | 60 / 3.0 | 56 / 3.3 |
| 10 × 15 | 54 / 6.4 | 46 / 5.1 | 40 / 4.1 | 54 / 3.7 | 54 / 3.4 |
| 20 × 20 | 46 / 7.6 | 52 / 4.3 | 46 / 3.8 | 40 / 2.8 | 42 / 2.3 |
| 25 × 20 | 40 / 7.1 | 34 / 5.2 | 32 / 3.1 | 52 / 2.5 | 42 / 2.5 |
| 30 × 30 | 36 / 8.2 | 36 / 5.0 | 36 / 2.9 | 40 / 2.7 | 34 / 2.6 |
| 30 × 35 | 44 / 8.9 | 42 / 6.3 | 40 / 3.5 | 34 / 3.2 | 30 / 2.4 |
| 40 × 40 | 42 / 11.3 | 42 / 6.8 | 30 / 4.0 | 38 / 2.9 | 38 / 3.1 |
| Size | [1, 50] | [1, 300] | [1, 500] | [1, 1000] | [1, 2000] |
| 40 × 45 | 34 / 5.3 | 22 / 1.1 | 34 / 0.8 | 26 / 0.7 | 34 / 0.6 |
| 50 × 50 | 30 / 6.5 | 44 / 1.1 | 36 / 0.8 | 46 / 0.5 | 34 / 0.5 |
6.7. Correctness checks
On 5,000 further random instances of sizes , , , , , and , availabilities in , times in and random non-empty phases, 537 of which have , Algorithm 1 agreed with complete enumeration of in every case, including the detection of infeasibility; the one-sided 95% upper confidence bound on the probability of a disagreement is 0.06%. This comparison is the primary check. For larger instances, where enumeration is impossible, we solved the two mixed integer formulations of Section 6.8 with HiGHS 1.15.1 [25] on 90 instances drawn from the first two experiments, 10 for each of the nine sizes. All 540 solver runs (two formulations, three runs each) proved optimality and returned the value found by Algorithm 1.
6.8. Comparison with a mixed integer programming solver
Because 3-PhTP-NI has compact mixed integer formulations, a general-purpose solver is the natural alternative to Algorithm 1. We compared Algorithm 1 with two formulations. The direct formulation is
a big-M model with variables, in which marks a used link. Each constraint involves a single link, so the linear relaxation, which can set , bounds each weakly. A tighter formulation uses one binary variable per phase and distinct time instead of one per link. For phase let be the distinct times of and the level of link , so that ; the binary variable , , indicates . The threshold formulation is
For a non-idle , setting exactly when gives a feasible point whose objective equals , because by Lemma 1. Conversely, in a feasible a positive link of level forces and, by the monotonicity constraints, for , so the objective is at least . Hence the optimal value of (14) is . Model (14) has integer flow variables and binary variables, and links of equal time in a phase share one binary variable.
Before the timing runs, both formulations were also checked against Algorithm 1 on 3,300 further random instances with , five of which have no non-idle solution. In that check, with the settings of Section 6.8, HiGHS 1.15.1 twice reported as optimal a value that was not optimal, once for each formulation: 24 where the optimum is 19, and 14 where it is 11. Both optima were established independently of Algorithm 1 and of the solver by an exact enumeration over phase thresholds, and for each saved model a feasible solution with the optimal value was checked against all its constraints. With presolve disabled, both runs returned the optimum. When the two saved models were solved again on another computer, the second discrepancy (14 instead of 11) recurred with HiGHS 1.13.0 to 1.15.1, but not with 1.11.0 or 1.12.0. The first (24 instead of 19) did not recur with the default options. With the option random_seed=15, however, HiGHS 1.13.0 to 1.15.1 reported a different non-optimal value, 28, as optimal for the same saved model, whose optimum is 19; with presolve disabled they returned 19. We have reported this to the HiGHS developers as issue #3433 (https://github.com/ERGO-Code/HiGHS/issues/3433) [26]. Which random seeds trigger the failure depends on the platform and on the HiGHS version; the runs, model files and logs are given in Section S5 of the Supplementary Material. Agreement with the solver is therefore supporting evidence; the comparison with complete enumeration is the primary check.
We timed Algorithm 1 and HiGHS 1.15.1 [25] with both models on the 90 instances of Section 6.7. HiGHS was called through its Python interface highspy 1.15.1 and restricted to one thread, with relative gap zero, a time limit of 600 s and all other options at their defaults; its time includes model construction. Each method was run three times per instance and the median CPU process time recorded, with the order of the three methods rotated across rounds and instances. On these 90 instances the times of Algorithm 1 in Table 10 exceed those of the re-run behind Table 6 by 12.7% at the median (interquartile range 9.5–17.7%; Section S1 of the Supplementary Material). The three methods in Table 10 were measured under identical conditions, so the time ratios are not affected, but absolute times should be compared within a table. The node counts of HiGHS were identical across the three repetitions.
Algorithm 1 was faster than model (13) on 80 of the 90 instances, with a median time ratio of 2.8 (interquartile range 1.81–4.22; Wilcoxon signed-rank test, ; per-size medians 2.0–5.1). Model (14) is much stronger: the median number of branch-and-bound nodes was 1 to 3.5 for every size up to and about 100 for and , against medians of 54 to 6,661 nodes for model (13), and model (14) was faster than model (13) on 70 instances (median time ratio , ). Against model (14), Algorithm 1 was faster on 65 of the 90 instances, with a median time ratio of 1.5 (interquartile range 0.94–2.31; ). The per-size medians range from 0.8 at , where the solver was faster, to 3.0 at the two smallest sizes; for the 20 instances of sizes and the median is 2.0. Three factors bear on the comparison. Two favor the solver: HiGHS is compiled code, whereas our implementation is interpreted Python, and the solver needs no problem-specific code. The third is the formulation, whose effect is large: replacing (13) by (14) roughly halved the solver's time at the median, and further strengthening or a commercial solver may narrow the gap more. Independently of measured times, Theorem 3 bounds the work of Algorithm 1 a priori, whereas the work of a branch-and-bound search admits no polynomial bound in general.
Table 10: Algorithm 1 against HiGHS (one thread) with the direct model (13) and the threshold model (14), 10 instances per size. Times in seconds; each method was run three times per instance and the median taken. Alg.: mean of the medians; (13), (14): mean and maximum of the medians, including model construction; ratios: median over the instances of solver time divided by Algorithm 1 time. All solver runs reached proven optimality within the 600 s limit.
| Size | N | Alg. | Model (13) | Model (14) | Ratio to Alg. | |||
|---|---|---|---|---|---|---|---|---|
| Mean | Max | Mean | Max | (13) | (14) | |||
| 10 × 10 | 10 | 0.15 | 0.46 | 0.9 | 0.46 | 0.7 | 2.1 | 3.0 |
| 10 × 15 | 10 | 0.32 | 0.72 | 1.8 | 0.91 | 1.5 | 2.0 | 3.0 |
| 20 × 20 | 10 | 1.17 | 5.45 | 10.6 | 1.94 | 3.6 | 5.1 | 1.7 |
| 25 × 20 | 10 | 1.79 | 6.32 | 10.9 | 2.52 | 4.6 | 3.5 | 1.2 |
| 30 × 30 | 10 | 4.77 | 14.85 | 25.8 | 6.25 | 9.8 | 3.0 | 1.4 |
| 30 × 35 | 10 | 6.44 | 15.66 | 27.0 | 7.71 | 17.1 | 2.8 | 1.2 |
| 40 × 40 | 10 | 12.64 | 32.40 | 55.0 | 10.57 | 22.0 | 2.8 | 0.8 |
| 40 × 45 | 10 | 17.92 | 70.07 | 184.6 | 33.32 | 51.4 | 3.7 | 2.1 |
| 50 × 50 | 10 | 31.03 | 68.71 | 127.1 | 48.35 | 97.9 | 2.5 | 1.7 |
6.9. Filtering the proficient triads of Jain et al.
For 2,000 random instances with , availabilities in , times in , random phases in which Phase-1 receives about half of the links on average (the sampler is specified in Section S4 of the Supplementary Material), and , we enumerated and computed, for each phase , the set of all triads that are proficient with respect to Phase-, ties included. Every list that the algorithm of [13] can record when generating proficient triads with respect to Phase- is a subset of , whatever its tie-breaking, by Theorem 4.5 of [13], whose proof is the argument in the proof of Proposition 6 with in place of ; so if discarding the idle triads of does not give , filtering fails for every implementation, and the frequency of this event is a lower bound on the failure rate. We also ran the algorithm of [13] itself, with exact auxiliary solutions and random tie-breaking. Filtering fails, whatever the implementation, with respect to at least one phase in 1,597 instances (79.8%) and with respect to all three in 525 (26.2%); for the algorithm as run, the numbers are 1,671 (83.5%) and 965 (48.2%) (Table 11). Among the 1,707 instances in which non-idleness binds, the lower bound for Phase-1 is 64.7%. The rates of Table 11 are the frequencies observed in this sample, and its intervals express their sampling error; the rates depend on the sample and on the sampling scheme. Twelve further samples of 2,000 instances from the same distribution gave Phase-1 lower bounds between 56.4% and 61.4%, all above the 55.2% of this sample; pooled, they estimate the Phase-1 lower bound under this distribution at 59.2% (95% Wilson interval 58.5–59.8%), which the Phase-1 interval of Table 11 does not contain, so the Phase-1 rate of the table is lower than the estimated rate under the distribution. When each link instead receives an independent uniform phase label, eight samples of 2,000 instances gave Phase-1 lower bounds between 40.4% and 42.9% (41.8% pooled). The seeds, the per-sample results and the rates for at least one phase are given in Section S4.
Table 11: Percentage of instances (95% Wilson interval) in which discarding the idle triads from the proficient triads of [13] fails to give (2,000 instances).
| Proficient triads with respect to | |||
|---|---|---|---|
| Phase-1 | Phase-2 | Phase-3 | |
| All proficient triads (lower bound) | 55.2 (53.0–57.4) | 55.7 (53.5–57.9) | 55.5 (53.4–57.7) |
| Recorded by [13](random ties) | 64.2 (62.0–66.2) | 67.8 (65.8–69.9) | 67.0 (65.0–69.1) |
7. Discussion
7.1. Relation to the iterative framework of Jain et al.
The algorithm of [13] generates proficient triads by solving restricted time minimization problems in which links are blocked by assigning them a prohibitively large time. Its auxiliary problems can make a link unusable, but they cannot require a link, or a phase, to carry flow. Non-idleness is a requirement of the second kind, and this is the main obstacle to adapting the iterative framework directly. The witnesses in Algorithm 1 meet the requirement by reserving one unit in each of two phases, which changes the margins rather than the link times, and the remaining phase is handled by maximizing its flow in the probe.
The convergence theory of [13] nevertheless carries over. Call a solution -restricted feasible for an auxiliary problem of [13] if it is restricted feasible in the sense of their Definition 3.4 and belongs to , and call a triad -proficient with respect to Phase-1 if is minimal among the non-idle solutions with Phase-1 time . Consider Algorithm 3.1 of [13] with the following changes: (N1) every feasibility test and every auxiliary optimization of Steps 3–6 is taken over NI-restricted feasible solutions; (N2) the test of Step 2 compares T_1_{\text{prof}}(l) with instead of T_1_{\min}, where is computed in Step 1 by solving over NI-restricted feasible solutions, or by Theorem 4; (N3) the algorithm stops at Step 1 if (Corollary 1). Under the convention for , (N3) is implied by (N2). The Phase-2 floor used in Steps 4 and 5 may be of [13], or , or any value of not exceeding . Both (N1) and (N2) are needed: without (N1) the algorithm may return a value below , or reach a step with no applicable branch; without (N2) it may reach Step 3 with no NI-restricted feasible solution, a case for which Algorithm 3.1 has no step.
Proposition 6. With , and with “feasible solution of 3-PhTP” read as “element of ” and “proficient” as “NI-proficient”, Theorem 4.1, Corollary 4.2, Theorem 4.3 (with , Lemma 4.4, Theorem 4.5, Lemma 4.6, Theorem 4.7 and Corollary 4.8 of [13] remain valid. In particular the modified algorithm returns .
Proof. For let , and let .
The auxiliary problems. In the time matrix is on and on the unblocked links of . Hence the objective of every solution is . A non-idle is restricted feasible exactly when , because is the time of a positive Phase-1 link and every positive Phase-1 link has time at most . So, under (N1), minimizes over .
Let the current triad be that of , put and . Then minimizes over the with and .
Fix with , and consider any run of Steps 3–7 with any optimal solution chosen at each read-off. Let be its solutions, and let be the value of at which is found.
Lemma 4.4.
-
Relation (3) holds because every lies in .
-
From we get (4).
-
From we get , which is (6).
-
For (5): , because minimizes over . For , if , then and . So is restricted feasible for the problem solved by and has a smaller objective, a contradiction.
Theorem 4.1. An with and would, by the same inequalities, be restricted feasible for the problem solved by , with a smaller objective. This is impossible.
Theorem 4.5. We show by induction on : every with satisfies .
-
For this holds because minimizes .
-
Let it hold for , and let have . If , then . Otherwise suppose .
-
If , then is a Phase-2 time strictly between and , so the scan tested it before . But is restricted feasible there, since . This contradicts the choice of as the first restricted feasible value.
-
If , then . So is restricted feasible at with a smaller objective than , a contradiction.
Finally, let with , and suppose .
-
If Step 7 was reached from Step 4, then is the floor, which does not exceed . This is impossible.
-
Otherwise every Phase-2 time from the floor up to below was tested and found infeasible. Among them is , at which is restricted feasible, a contradiction.
Hence , attained by , and the last triad is NI-proficient with respect to Phase-1 (Remark 4.1 of [13]).
Well-definedness and termination.
-
Every Phase-2 time of a non-idle solution lies in the scanned set with , and the floor is itself a value of this set that does not exceed the Phase-2 time of any non-idle solution. So Steps 4 and 5 always have an applicable branch.
-
The scanned values strictly decrease in each step, so Steps 3–7 terminate.
-
By (N2), Steps 2–7 continue exactly while F_{T_1_{\text{prof}}(l)} \neq \emptyset, and by (N3). Every recorded triad lies in F_{T_1_{\text{prof}}(l)}, so T_1_{\text{prof}} strictly decreases, which is (7), and the outer loop terminates.
Lemma 4.6(8) and Theorem 4.7.
-
The recorded triads are attained in .
-
For , the -st recorded solution lies in F_{T_1_{\text{prof}}(l-1)}, over which the -th minimizes . This gives (8).
-
Let , and let be the first index with T_1_{\text{prof}}(l) \leq T_1(X). It exists because the last recorded value is . Then X \in F_{T_1_{\text{prof}}(l-1)}, and the -th recorded triad has T_1_{\text{prof}}(l) + T_2_{\text{prof}}(l) + T_3_{\text{prof}}(l) \leq T_1(X) + B(X).
So the minimum over the recorded triads is , which is Theorem 4.7. Step 8 returns this minimum, so the modified algorithm returns .
Theorem 4.3, Corollary 4.2 and Corollary 4.8. Solved over NI-restricted feasible solutions, returns ; under (N1), returns . A non-idle minimizer of minimizes the sum of the two other phase times among the non-idle solutions with the same time in any one phase, which is Corollary 4.8.
We also checked Proposition 6 computationally. With every auxiliary problem solved exactly by enumeration, and the optimal solution used in each read-off of Steps 3 and 6 chosen at random among all optimal solutions, the modified algorithm returned on all of 3,000 random instances with , and every relation of Section 4 of [13] held at every iteration. Without
(N2) the algorithm reached a step with no applicable branch on 1,257 of the 3,000 instances (41.9%).
The obstacle to using the modified algorithm is computational. Its auxiliary problems are time minimization problems with the three side constraints , so Remark 3.3 of [13], which derives polynomiality from the auxiliary problems being standard TMTPs, no longer applies. The only exact method we know for these side-constrained problems is the witness construction of Section 3: with it, deciding whether such a problem has a non-idle solution with Phase-3 time at most costs, in the worst case, as many probes as there are witness pairs. One auxiliary problem of the modified algorithm can therefore cost, in the worst case, as much as Algorithm 1 applied to the whole instance, and the modified algorithm solves up to auxiliary problems. This is why we solve 3-PhTP-NI directly.
7.2. Relation to other models
The restricted-flow model of [14] implies non-idleness whenever its prescribed phase quantities are positive, but fixes the split of the requirement across phases (Remark 2). In 3-PhTP-NI the split is free, and the witnesses reserve only one unit per phase. The bi-objective model of [15] has two phases and minimizes the sum of the phase times and the total cost, over solutions in which the flow of each phase is non-zero. Its algorithm starts from a cost-minimal solution and lowers the sum of times step by step, and by Theorem 2 of [15] its last non-dominated point has the minimum sum of times over non-idle solutions. Corollary 2 computes this sum directly, without costs, and Remark 6 gives the cost of that point. The non-zero requirement is enforced in [15] by a rule (its Remark 12): when the cost-minimal solution leaves a phase empty, the problem is solved again with some links blocked, and when the optimal solution of a sub-problem leaves a phase empty, the sub-problem is replaced by its immediate next minor sub-problem, the one with the next lower time bounds.
This rule does not guarantee the minimum. A sub-problem whose cheapest admissible solution leaves a phase empty may still contain non-idle solutions, possibly only at the corner of its time bounds; replacing it by a minor sub-problem discards them, and the stopping rule of Theorem 2 of [15] can then certify a sum of times that is not minimal. The instance of Table 12 shows this. Row 2 ships its unit to one terminal and row 1 serves the other two, so has three solutions: with has and cost 4; with has and cost 5 and leaves Phase-II empty; and with has and cost 8. The non-dominated points are and , and the minimum sum of times is 3. The algorithm of [15] starts from the cost-minimal solution , with sum of times 4. Of its sub-problems restricted at the sum 4, the major ones bound the Phase-I and Phase-II times by and by . In both, the cheapest admissible solution is , which leaves Phase-II empty, so Remark 12 replaces each by an immediate next minor sub-problem. Every such sub-problem either bounds the Phase-I time by 1, which excludes the link used by , or admits no Phase-II link. No non-idle solution with a smaller sum of times is found, and Theorem 2 of [15] declares 4 the minimum. This holds for every choice of immediate next minor sub-problem and does not involve the treatment of the cost-minimal solution. Nor does it depend on how ties between optimal solutions are broken. Every sub-problem of [15], including the minor ones, minimizes the cost over the solutions that use no blocked link, where a Phase-I or Phase-II link is blocked when its time exceeds a bound for its phase (or reaches it, for a strict bound). Every link used by is a Phase-I link of time 1, and also uses such a link, so every sub-problem that admits also admits , which is cheaper. Hence is never an optimal solution of a sub-problem, and since the cost-minimal solution is non-idle, the cost-minimal problem is not solved again.
Table 12: A two-phase instance on which Remark 12 of [15] certifies a non-minimal sum of times. Entries are time / cost; Phase-I links are underlined and Phase-II links are in bold.
| 1/3 | 2/2 | 1/1 | 2 | |
| 2/1 | 1/1 | 1/3 | 1 | |
| 1 | 1 | 1 | 3 |
To estimate how often this occurs, we implemented the algorithm of [15] step by step; on the numerical example of [15] it reproduces the published non-dominated points exactly. We compared its output with complete enumeration on 10,000 random two-phase instances (sizes to , total availability at most 8, times in , random costs in for half of the instances and unit costs for the other half), 9,975 of which have non-idle solutions. Under the reading of Remark 12 that lowers the time bound of the phase carrying all the flow, the set of non-dominated points was wrong in 1,404 of the 9,975 instances (14.1%, 95% interval 13.4–14.8%): in 825 the algorithm reported that no non-idle solution exists, in 310 it reported a minimum sum of times that is too large, and in 269 it missed a non-dominated point but ended at the correct minimum. Under the most permissive reading, which tries both immediate next minor sub-problems, 13.6% of the sets were wrong. All failures occurred among the 2,520 instances in which Remark 12 was applied; when every sub-problem was instead solved exactly over non-idle solutions, the output was correct on all 10,000 instances. Because Remark 12 leaves open which links are blocked and which minor sub-problem is chosen, these rates depend on its reading. The instance of Table 12 does not, and Section S6 of the Supplementary Material gives two instances on which the rule fails for every choice of blocked links. These observations concern version 1 of the preprint [15]. The preprint does not consider three phases.
The bilevel model of [8] requires both groups of a partition of the origins to be non-empty, which is a condition on the partition rather than on the flow.
7.3. Limitations and extensions
The analysis assumes integer availabilities and requirements and positive times (Assumption 1). For phases, Proposition 4 gives an algorithm whose exponent grows with , and Theorem 5 shows that, unless , no algorithm runs in time polynomial in the input size uniformly in , since even deciding non-idle feasibility is strongly NP-complete for unbounded ; we are not aware of an algorithm for the optimization problem with running time , although the feasibility problem has one (Proposition 5). Capacitated links, as in [6, 7], can be incorporated in the probe directly, since minimum cost flow handles arc capacities; the reserved units must then respect the capacities of the witness links. For operational use, the model also presumes that the units assigned to a phase can be shipped in parallel, so that fleet size is not a constraint, and that a phase lasts as long as its longest trip rather than a fixed clock interval (Section 5.1). A three-phase extension of the bi-objective model of [15], which would also minimize transportation cost, is a further direction.
8. Conclusions
We studied the three-phase time minimization transportation problem with the additional requirement that every phase carries a positive quantity, while the split of the requirement across phases remains free. The requirement is not vacuous: the optimum of the main example of [13] leaves Phase-3 idle, and enforcing non-idleness raises its value from 38 to 41. For an operational reading, OPT – OPT is the price of requiring every phase to be used (Section 5.1). We showed that the problem reduces to enumerating witness links in two phases and deciding the third by a single minimum cost flow computation, and that the optimal Phase-3 time for each pair can be found by binary search. The resulting algorithm is strongly polynomial and needs at most probes, where is the bound stated for the original algorithm in [13]; capping the binary search by the incumbent value ensures that a pair which cannot improve the incumbent costs a single probe. We also characterized the minimum attainable time of each phase, showed that it can exceed the smallest time entry of the phase, and showed that feasibility cannot be decided from phase-flow bounds alone.
With phases the problem is solvable in strongly polynomial time for each fixed , and, when is part of the input, even deciding whether a non-idle solution exists is strongly NP-complete. Feasibility alone is fixed-parameter tractable in (Proposition 5). We are not aware of an algorithm for the optimization problem with running time , nor of a result that excludes one. For two phases the method computes exactly the minimum-time point of the bi-objective model of [15], which the re-solution rule of that model can miss.
In computational experiments on random instances with up to links, the number of probes grew as on the 2,250 instances with equal phase sizes, far below the worst-case bound, and the incumbent cap removed 77% of the probes on average on 160 further instances. Non-idleness raised the optimal value in 41% of the instances with equal phase sizes, by 4.1% on average. Discarding idle triads from the output of the original algorithm failed to give the non-idle optimum in more than half of the instances of every sample of small random instances drawn as in Section 6.9, and in more than 40% of those of every sample in which each link received an independent phase label. An independent mixed integer programming solver confirmed the optimal values on 90 instances with up to links; at the median it needed 2.8 times as long as the algorithm with a direct formulation and 1.5 times as long with a threshold formulation, which was the faster method on 25 of the 90 instances.
CRediT authorship contribution statement
Sailesh Kamalahasan: Conceptualization, Methodology, Software, Investigation, Data curation, Writing – review & editing, Visualization. Raghav Paladugu: Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Data curation, Writing – original draft, Visualization. Archana Khurana: Resources, Supervision, Project administration.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Data and code availability
The Supplementary Material consists of a document (Sections S1–S8) and an archive. The archive contains scripts, recorded seeds and logs that reproduce the filtering experiment of Section 6.9 and its two sensitivity analyses, the correctness check of Section 6.7 on its archived instances with an independent implementation of Algorithm 1, the count of auxiliary problems in the example of Section 4 and the dispatch scenario of Section 5.1, together with the logged records of the HiGHS pre-check described in the footnote of Section 6.7 and reruns of its two saved models. It also contains the original source code and recorded outputs of the computational study of Section 6, including the solver comparison of Section 6.8, of the study of [15] in Section 7.2 and of the checks reported in Section S7; these are historical records and were not rerun for the archive. For the computational check of Proposition 6, the archive contains the original source code and a log of an October 2026 reproduction using two seeded batches of 1,500 instances. The log records aggregate results, not individual instance outcomes; records of the original runs were not retained.
References
[1] P. L. Hammer, Time-minimizing transportation problems, Naval Research Logistics Quarterly 16 (3) (1969) 345–357. doi:10.1002/nav.3800160307.
[2] R. S. Garfinkel, M. R. Rao, The bottleneck transportation problem, Naval Research Logistics Quarterly 18 (4) (1971) 465–472. doi:10.1002/nav.3800180404.
[3] Sonia, M. C. Puri, Two level hierarchical time minimizing transportation problem, TOP 12 (2) (2004) 301–330. doi:10.1007/BF02578964.
[4] A. Sharma, V. Verma, P. Kaur, K. Dahiya, An iterative algorithm for two level hierarchical time minimization transportation problem, European Journal of Operational Research 246 (3) (2015) 700–707. doi:10.1016/j.ejor.2015.03.034.
[5] P. Kaur, A. Sharma, V. Verma, K. Dahiya, An alternate approach to solve two-level hierarchical time minimization transportation problem, 4OR 20 (1) (2022) 23–61. doi:10.1007/s10288-020-00467-6.
[6] F. Xie, Z. Li, An iterative solution technique for capacitated two-stage time minimization transportation problem, 4OR 20 (4) (2022) 637–684. doi:10.1007/s10288-021-00492-z.
[7] W. Zhang, F. Xie, An efficient solution approach to capacitated three-level hierarchical time minimization transportation problem, Expert Systems with Applications 249 (2024) 123405. doi:10.1016/j.eswa.2024.123405.
[8] N. Zhang, F. Xie, An efficient solution approach to capacitated bilevel time minimizing transportation problem, Discrete Optimization 58 (2025) 100915. doi:10.1016/j.disopt.2025.100915.
[9] P. Kaur, V. Verma, K. Dahiya, Capacitated two-stage time minimization transportation problem with restricted flow, RAIRO – Operations Research 51 (2) (2017) 447–467. doi:10.1051/ro/2016033.
[10] S. Kaur, E. Jain, A. Sharma, K. Dahiya, An efficient algorithm for two-stage capacitated time minimization transportation problem with restricted flow, RAIRO – Operations Research 58 (4) (2024) 2733–2766. doi:10.1051/ro/2024086.
[11] K. Dahiya, V. Verma, Capacitated transportation problem with bounds on RIM conditions, European Journal of Operational Research 178 (3) (2007) 718–737. doi:10.1016/j.ejor.2006.02.017.
[12] S. Kaur, E. Jain, K. Dahiya, Two-level solid transportation problem, OPSEARCH 62 (1) (2025) 423–447. doi:10.1007/s12597-024-00799-5.
[13] E. Jain, K. Dahiya, V. Verma, Three-phase time minimization transportation problem, Engineering Optimization 53 (3) (2021) 461–473. doi:10.1080/0305215X.2020.1739279.
[14] S. Kaur, K. Dahiya, A. Sharma, Two-phase time minimization transportation problem with the restricted flow, Mathematics and Computers in Simulation 229 (2025) 611–635. doi:10.1016/j.matcom.2024.09.030.
[15] P. Kaur, K. Dahiya, V. Verma, Bi-objective two phase transportation problem, arXiv preprint arXiv:2609.03671v1 (2026). doi:10.48550/arXiv.2609.03671.
[16] M. A. Klapp, A. L. Erera, A. Toriello, The dynamic dispatch waves problem for same-day delivery, European Journal of Operational Research 271 (2) (2018) 519–534. doi:10.1016/j.ejor.2018.05.032.
[17] S. Gupta, S. Roy, S. Saurabh, M. Zehavi, Parameterized algorithms and kernels for rainbow matching, in: 42nd International Symposium on Mathematical Foundations of Computer Science (MFCS 2017), Vol. 83 of Leibniz International Proceedings in Informatics (LIPIcs), 2017, pp. 71:1–71:13. doi:10.4230/LIPIcs.MFCS.2017.71.
[18] R. E. Tarjan, Depth-first search and linear graph algorithms, SIAM Journal on Computing 1 (2) (1972) 146–160. doi:10.1137/0201010.
[19] J. B. Orlin, A faster strongly polynomial minimum cost flow algorithm, Operations Research 41 (2) (1993) 338–350. doi:10.1287/opre.41.2.338.
[20] J. B. Orlin, Max flows in time, or better, in: Proceedings of the 45th Annual ACM Symposium on Theory of Computing (STOC 2013), 2013, pp. 765–774. doi:10.1145/2488608.2488705.
[21] R. M. Karp, Reducibility among combinatorial problems, in: R. E. Miller, J. W. Thatcher (Eds.), Complexity of Computer Computations, The IBM Research Symposia Series, Plenum Press, New York, 1972, pp. 85–103. doi:10.1007/978-1-4684-2001-2_9.
[22] M. R. Garey, D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, San Francisco, 1979.
[23] P. Erdős, R. Rado, Intersection theorems for systems of sets, Journal of the London Mathematical Society 35 (1960) 85–90.
[24] P. Virtanen, et al., SciPy 1.0: fundamental algorithms for scientific computing in Python, Nature Methods 17 (3) (2020) 261–272. doi:10.1038/s41592-019-0686-2.
[25] Q. Huangfu, J. A. J. Hall, Parallelizing the dual revised simplex method, Mathematical Programming Computation 10 (1) (2018) 119–142. doi:10.1007/s12532-017-0130-5.
[26] MIP incorrectly reported Optimal (28 vs feasible 19) with random_seed=15 and pre-solve enabled, HiGHS GitHub issue #3433, https://github.com/ERGO-Code/HiGHS/issues/3433, opened 16 October 2026 (2026).
Supplementary Material for “Three-phase time minimization transportation problem with non-idle phases: a polynomial two-witness algorithm”
This document supplements the article. It details the timing measurements (Section S1), gives additional experimental tables (Section S2) and the data of the two examples of Jain et al. (Section S3), specifies the filtering study completely (Section S4), documents the HiGHS observations and their reproduction (Section S5), gives two further instances for Section 7.2 of the main text (Section S6) and computational checks of results of Section 4.5 of the main text (Section S7), and describes the accompanying archive of scripts, data and logs (Section S8). Sections, tables, results and equations of the main text are cited with their numbers in the main text. The references of this document are numbered independently of those of the main text.
S1 Computing environment and timing
Timing measurements (Section 6.1 of the main text) All CPU times reported in Section 6 of the main text, except those of the solver comparison of Section 6.8 of the main text, come from a single process pinned to one core, which re-ran every instance after the experiments; each re-run reproduced the logged probe count and optimal value. During this re-run the other core was busy with solver runs; in a separate test such concurrent load slowed a solve by about 6%. Two measurements bound the remaining timing noise. The balanced cells of the third experiment reuse the seeds of the first, and in the re-run these three pairs of identical cells differed in total CPU time by at most 2.4%. In the solver comparison of Section 6.8 of the main text, where every method was run three times per instance, the runs on instances with a median time of at least 1 s differed from that median by at most 13.4% for Algorithm 1 of the main text, 15.6% for model (13) of the main text and 21.8% for model (14) of the main text (3.8%, 2.3% and 2.8% at the median); shorter runs vary more. Probe counts are the exact measure of work.
Solver comparison (Section 6.8 of the main text) Two instances were processed at a time, each in a process pinned to its own core. On these 90 instances the times of Algorithm 1 of the main text in Table 10 of the main text exceed those of the re-run behind Table 6 of the main text and Table S1 by 12.7% at the median (interquartile range 9.5–17.7%). The three methods in Table 10 of the main text were measured under identical conditions, so the time ratios are not affected, but absolute times should be compared within a table.
S2 Additional experimental tables
Table S1 gives the per-size CPU time statistics behind Table 6 of the main text; Table S2 gives the per-cell probe counts behind Section 6.5 of the main text.
Table S1: CPU time statistics per size, over all time ranges of the size.
| Size | N | Mean (s) | SD (s) | 95% CI |
|---|---|---|---|---|
| 250 | 0.127 | 0.047 | [0.121, 0.133] | |
| 250 | 0.243 | 0.078 | [0.233, 0.253] | |
| 250 | 1.219 | 0.403 | [1.169, 1.269] | |
| 250 | 1.796 | 0.578 | [1.724, 1.868] | |
| 250 | 4.322 | 1.396 | [4.148, 4.496] | |
| 250 | 5.572 | 1.557 | [5.378, 5.766] | |
| 250 | 11.530 | 3.648 | [11.076, 11.985] | |
| 250 | 14.614 | 3.946 | [14.123, 15.106] | |
| 250 | 26.350 | 6.281 | [25.568, 27.132] |
Table S2: Median number of probes without and with the incumbent cap, and median ratio (10 instances per cell).
| Size | Times | ||||||
|---|---|---|---|---|---|---|---|
| No cap | Cap | Ratio | No cap | Cap | Ratio | ||
| [1, 40] | 751 | 196 | 0.256 | 722 | 188 | 0.231 | |
| [10, 20] | 648 | 218 | 0.355 | 510 | 160 | 0.328 | |
| [1, 40] | 4,138 | 740 | 0.185 | 3,630 | 718 | 0.212 | |
| [10, 20] | 1,925 | 579 | 0.264 | 2,438 | 625 | 0.242 | |
| [1, 40] | 9,789 | 1,614 | 0.168 | 8,230 | 1,406 | 0.166 | |
| [10, 20] | 6,505 | 1,466 | 0.214 | 4,770 | 1,100 | 0.212 | |
| [1, 40] | 19,163 | 3,099 | 0.163 | 15,097 | 2,433 | 0.160 | |
| [10, 20] | 9,496 | 2,040 | 0.216 | 11,016 | 2,492 | 0.210 | |
S3 Data of the examples of Jain et al
Table S3 is an optimal allocation of the problem with idle phases allowed for Example 1 (Section 5.3 of the main text); Table S4 is the phase partition of Example 2 transcribed from the published table (Section 5.4 of the main text).
Table S3: An optimal allocation of 3-PhTP for Example 1: triad (06, 32, 00), value 38, phase flows . Entries follow the phase markup of Table 4 of the main text; a dash denotes zero.
| - | - | - | 9 | - | - | - | 15 | ||
| - | - | - | - | - | - | 3 | 10 | ||
| 6 | - | 6 | - | - | - | - | - | 12 | |
| - | - | - | - | - | - | - | 6 | ||
| - | 5 | 7 | - | - | - | 5 | - | 17 | |
| - | - | - | - | - | 20 | - | - | 20 | |
| 12 | 5 | 13 | 6 | 9 | 20 | 8 | 7 | 80 |
Table S4: Example 2 of [1] with the phase partition transcribed from the published table. Phase-1 times are underlined, Phase-2 times are in bold, and Phase-3 times are plain.
| 21 | 10 | 48 | 19 | 31 | 58 | 43 | 39 | 60 | 29 | 5 | |
| 29 | 43 | 21 | 09 | 35 | 12 | 58 | 28 | 10 | 45 | 12 | |
| 60 | 45 | 17 | 12 | 58 | 19 | 43 | 17 | 45 | 10 | 20 | |
| 35 | 12 | 60 | 29 | 28 | 31 | 10 | 09 | 39 | 48 | 14 | |
| 45 | 35 | 09 | 61 | 19 | 29 | 31 | 58 | 17 | 21 | 18 | |
| 10 | 39 | 29 | 39 | 43 | 61 | 28 | 60 | 12 | 19 | 21 | |
| 09 | 48 | 31 | 12 | 10 | 28 | 45 | 58 | 43 | 35 | 7 | |
| 12 | 28 | 58 | 35 | 21 | 09 | 60 | 19 | 29 | 61 | 25 | |
| 19 | 48 | 28 | 21 | 43 | 10 | 09 | 45 | 43 | 17 | 15 | |
| 31 | 17 | 35 | 48 | 12 | 60 | 29 | 21 | 09 | 39 | 6 | |
| 18 | 7 | 14 | 6 | 21 | 12 | 20 | 12 | 6 | 27 | 143 |
S4 Filtering study: sampler, seeds and replicates
This section gives the complete description of the filtering study of Section 6.9 of the main text, including the sampler, the seeds and the replicate samples.
For 2,000 random instances with , availabilities in , times in , phases sampled by shuffling the links and cutting the sequence after and links, with uniform on and uniform on (so that Phase-1 receives about half of the links on average), and , we enumerated and computed, for each phase , the set of all triads that are proficient with respect to Phase-, ties included. Every list that the algorithm of [1] can record when generating proficient triads with respect to Phase- is a subset of , whatever its tie-breaking, by Theorem 4.5 of [1], whose proof is the argument in the proof of Proposition 6 of the main text with in place of ; so if discarding the idle triads of does not give , filtering fails for every implementation, and the frequency of this event is a lower bound on the failure rate. We also ran the algorithm of [1] itself, with exact auxiliary solutions and random tie-breaking. Filtering fails, whatever the implementation, with respect to at least one phase in 1,597 instances (79.8%) and with respect to all three in 525 (26.2%); for the algorithm as run, the numbers are 1,671 (83.5%) and 965 (48.2%) (Table 11 of the main text). Among the 1,707 instances in which non-idleness binds, the lower bound for Phase-1 is 64.7%. The rates of Table 11 of the main text are the frequencies observed in this sample, which was generated with seeds 2027 (its first 1,400 instances) and 2026 (the remaining 600) and is reproduced exactly from them; the intervals of the table express the sampling error of these frequencies. Twelve further samples of 2,000 instances from the same distribution gave Phase-1 lower bounds between 56.4% and 61.4%, all above the 55.2% of this sample.¹ Pooled, they estimate the Phase-1 lower bound under this distribution at 59.2% (14,201 of 24,000 instances; 95% Wilson interval 58.5–59.8%) and the lower bound for at least one phase at 81.9% (81.4–82.4%). The Phase-1 interval of Table 11 of the main text does not contain this estimate, so the table describes this sample, and its Phase-1 rate is lower than the estimated rate under the distribution. The rates also depend on the sampling scheme: when each link instead receives an independent uniform phase label, eight samples of 2,000 instances gave Phase-1 lower bounds between 40.4% and 42.9% (41.8% pooled), and lower bounds for at least one phase between 67.2% and 69.8%.
The sampler shuffles the links and cuts the sequence after and links, with uniform on and uniform on ; Phase-1 thus receives links in expectation, while its share is uniform over . The archive reproduces the sample of Table 11 of the main text byte for byte from the seeds 2027 and 2026, and recomputes all twelve replicates and the eight samples with independent phase labels.
S5 HiGHS observations and reproduction
This section documents the observations summarized in the footnote to Section 6.7 of the main text.
Summary Before the timing runs, both formulations were also checked against Algorithm 1 of the main text on 3,300 further random instances with , five of which have no non-idle solution. In that check, with the settings of Section 6.8 of the main text, HiGHS 1.15.1 twice reported as optimal a value that was not optimal, once for each formulation: 24 where the optimum is 19, and 14 where it is 11. Both optima were established independently of Algorithm 1 of the main text and of the solver by an exact enumeration over phase thresholds, and for each saved model a feasible solution with the optimal value was checked against all its constraints. With presolve disabled, both runs returned the optimum. When the two saved models were solved again on another computer, the second discrepancy (14 instead of 11) recurred with HiGHS 1.13.0 to 1.15.1, but not with 1.11.0 or 1.12.0. The first (24 instead of 19) did not recur with the default options. With the option random_seed=15, however, HiGHS 1.13.0 to 1.15.1 reported a different non-optimal value, 28, as optimal for the same saved model, whose optimum is 19; with presolve disabled they returned 19. We have reported this to the HiGHS developers as issue #3433 (https://github.com/
¹The twelve samples use seeds 100–111, and the eight samples with independent phase labels seeds 5001–5008. For them only the sets were computed, so their instance streams differ from that of the sample of Table 11 of the main text.
ERGO-Code/HiGHS/issues/3433) [2]. Agreement with the solver is therefore supporting evidence; the comparison with complete enumeration is the primary check.
Historical pre-check The two discrepancies described in the summary arose in a cross-check of 3,300 random instances (300 with and 3,000 with ) against the algorithm of the main text, with HiGHS 1.15.1 on one thread and relative gap zero. The logged records are those of instance (direct model, ): Optimal 24, optimum 19; and of instance (threshold model, ): Optimal 14, optimum 11. The saved threshold model omits the constant of its objective, so its values are 9 and 6. With presolve disabled both runs returned the optimum. The platform of these runs was not recorded.
Reproduction from the saved model files Both saved files were solved again on macOS 26.6 (arm64) with Python 3.13.5, each HiGHS release installed from PyPI in its own virtual environment, one thread, relative gap zero and presolve on (Table S5); with presolve off every run returned the optimum. The 154 saved solution vectors were checked against the model constraints. The recorded decimal vectors satisfy feasibility within tolerance , and 129 are exactly feasible as recorded. After the documented reconstruction of integer and continuous values, all 154 are feasible in exact rational arithmetic. Thus the discrepancies are optimality claims for suboptimal feasible points.
Table S5: Objective reported as Optimal (equal to the dual bound) for the saved models, presolve on, macOS arm64. Optima: 19 (direct model) and 6 (threshold model file).
| HiGHS | threshold model, default seed | direct model, default seed | direct model, random_seed=15 |
|---|---|---|---|
| 1.11.0, 1.12.0 | 6 | 19 | 19 |
| 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.15.1 | 9 | 19 | 28 |
| development branch, commit f144f50 | 6 | 19 | 28 |
Issue #3433 and follow-up The direct-model failure with random_seed=15 was reported as HiGHS issue #3433 [2] on 16 October 2026. On 17 October 2026 a HiGHS developer reported that it did not reproduce on the latest development branch and closed the issue. Source builds of the commits f144f50 and 8fd6a9a (the latest commit on 17 October 2026) and of release 1.15.1 were then tested on arm64 and, under Rosetta 2, on x86-64 (Table S6). Seed 15 gives the optimum on the x86-64 builds of both development commits, but the seeds 124 and 267 give 28 on both architectures, and seeds 11 and 127 give 24 on x86-64. The failure therefore persisted on the latest development branch at that date; which seeds trigger it depends on the platform and the version. Linux was not tested.
The model files, feasible solutions, scripts, solver logs and environment records are in the directory highs_reproduction/ of the archive.
Table S6: Objective reported as Optimal (equal to the dual bound) for the saved direct model (optimum 19), presolve on, for selected values of random_seed. With presolve off every run returned 19.
| Build | Architecture | 0 | 11 | 15 | 124 | 127 | 267 |
|---|---|---|---|---|---|---|---|
| release 1.15.1 (PyPI) | arm64 | 19 | 19 | 28 | 28 | 19 | 19 |
| commit f144f50 | arm64 | 19 | 19 | 28 | 28 | 19 | 28 |
| commit 8fd6a9a | arm64 | 19 | 19 | 28 | 28 | 19 | 28 |
| release 1.15.1 (PyPI) | x86-64 | 19 | 19 | 28 | 28 | 23 | 19 |
| release 1.15.1 (source) | x86-64 | 19 | 19 | 28 | 28 | 23 | 19 |
| commit f144f50 | x86-64 | 19 | 24 | 19 | 28 | 24 | 28 |
| commit 8fd6a9a | x86-64 | 19 | 24 | 19 | 28 | 24 | 28 |
S6 Two further instances for Remark 12 of Kaur, Dahiya and Verma
This section gives the two instances referred to in Section 7.2 of the main text.
Both instances have , and per-unit costs . Every has the form , with ; denote it . Its cost is 4, 5 and 6 for . Remark 12 of [3] speaks of blocking Phase-II links in both of its cases. We read it as blocking links of the phase that carries all the flow, since blocking Phase-II links cannot make an empty Phase-II carry flow. Under the literal reading the cost-minimal solution remains in both instances below, so the re-solved problem never provides non-zero times of both phases.
Instance S6.1 Let , with link (1,2) in Phase-II and the other links in Phase-I. Then has and leaves Phase-II empty, has (2,1), and has (1,1); the non-dominated points are (3,5) and (2,6). The cost-minimal solution leaves Phase-II empty, so Remark 12 of [3] re-solves the problem with some Phase-I links of time at least 2 blocked, that is, with a non-empty subset of blocked. uses both links, so every choice excludes it, and the algorithm reports only (2,6): it misses the non-dominated point of minimum cost.
Instance S6.2 Let for all links, with Phase-I = and Phase-II = . Then leaves Phase-II empty, leaves Phase-I empty, and , with and cost 5, is the only non-idle solution. The cost-minimal solution leaves Phase-II empty, and every choice of blocked links removes or , both of which uses. Hence is never reached, and the algorithm cannot return the only non-idle solution; under the readings we implemented, it reports that none exists.
S7 Computational checks of the proofs
This section reports exhaustive computational checks of results of Section 4.5 of the main text.
As a check on the proofs, exhaustive search confirmed Lemma 5 of the main text on 5,641 random 3DM instances with , part (a) of Theorem 5 of the main text on 3,146 reduced instances (2,128 with and 1,018 without a perfect matching) and directly on 793 instances that already had unique pairs, part (b) on 3,943 reduced instances, and Proposition 4 of the main text against complete enumeration on 1,000 random instances for each of ; in every case the number of probes stayed within (12) of the main text.
S8 Contents of the archive
The archive three_phase_ni_supplement_matcom.zip (which unpacks into the directory three_phase_ni_supplement/) contains a README with exact commands and checksums for every file, and the following parts.
-
filtering/: the original filtering experiment, regenerated byte for byte from its seeds, with a script that recomputes every number of Section S4 and of the corresponding table of the main text.
-
sensitivity/: the twelve replicate samples and the eight samples with independent phase labels.
-
correctness/: the correctness check on 5,000 instances, with an independent implementation of the algorithm and two exhaustive enumerations.
-
highs_reproduction/: the material of Section S5.
-
jain/: an independent count of the auxiliary problems of the algorithm of Jain et al. on the six-problem example and on random instances.
-
dispatch/: the synthetic dispatch scenario of the main text, its verification by enumeration and by an implementation of the algorithm.
-
original_studies/: the original source code and recorded outputs of the computational study of Section 6 of the main text, including the solver comparison of Section 6.8 of the main text, of the study of Remark 12 of [3] in Section 7.2 of the main text and of the checks of Section S7, with a guide that maps the files to the reported results. These are historical records; they were not rerun for the archive.
-
proposition6_reproduction/: The aggregate log of the October 2026 reproduction of the computational check of Proposition 6, together with a README documenting the execution commands and provenance limitations. The original run records and individual instance-level results are unavailable.
References
[1] E. Jain, K. Dahiya, V. Verma, Three-phase time minimization transportation problem, Engineering Optimization 53 (3) (2021) 461–473. doi:10.1080/0305215X.2020.1739279.
[2] MIP incorrectly reported Optimal (28 vs feasible 19) with random_seed=15 and presolve enabled, HiGHS GitHub issue #3433, https://github.com/ERGO-Code/HiGHS/issues/3433, opened 16 October 2026 (2026).
[3] P. Kaur, K. Dahiya, V. Verma, Bi-objective two phase transportation problem, arXiv preprint arXiv:2609.03671v1 (2026). doi:10.48550/arXiv.2609.03671.