Manuscript Offprint
arXiv:2608.28988B-PWL: GPU-Batched Branch-and-Bound for Piecewise-Linear Optimization with SOS2 Constraints
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
B³-PWL: GPU-Batched Branch-and-Bound for Piecewise-Linear Optimization with SOS2 Constraints
Yilin Guan¹ Shuqing Luo² Pingzhi Li² Tianlong Chen²,† Kaidi Xu³,⁴†
¹Johns Hopkins University ²University of North Carolina, Chapel Hill ³City University of Hong Kong ⁴The Hong Kong Institute of AI for Science
Abstract
Piecewise-linear (PWL) optimization problems arise in many mixed-integer programming (MIP) optimization applications, including portfolio optimization, workforce scheduling, and resource allocation. But solving them to global optimality remains computationally expensive because branch-and-bound repeatedly solves LP relaxation subproblems. Existing solvers are largely CPU-centric, leaving the scalability of modern GPUs underutilized. Few prior GPU-accelerated branch-and-bound either targets neural network which is not suitable for general PWL optimization, or accelerates only auxiliary subroutines such as strong branching heuristics within CPU-centric MIP solvers. To bridge this gap, we propose B³-PWL, a GPU-centric batched branch-and-bound framework for piecewise-linear optimization with Special Ordered Set of type 2 (SOS2) constraints. Our method solves batches of LP relaxation subproblems concurrently on the GPU using a first-order primal-dual solver, enabled by a specialized batched block-tiled sparse matrix kernel. To complement bound computation, we further introduce a unified feasibility search module that combines an SOS2 repair primal heuristic with a batched feasibility pump to rapidly obtain feasible incumbents and improve pruning efficiency. On a benchmark of 43 PWL-MIP instances, B³-PWL achieves a 9.25× geometric-mean speedup over NVIDIA cuOpt while reaching high-quality feasible incumbents on every tested instance. On a public valve-point unit-commitment benchmark, it further outperforms NVIDIA cuOpt and the open-source CPU solvers SCIP and HiGHS, demonstrating the potential of first-order LP methods as the central engine of GPU-accelerated branch-and-bound.
†Corresponding authors. Contact: yguan29@jh.edu, tianlong@cs.unc.edu, kaidixu@cityu.edu.hk.
Preprint.
and sequential pivoting are difficult to parallelize. As a result, although modern GPUs have utilized massive parallel computing cores to revolutionize large-scale machine learning, the same accelerated computing potential remains largely unexploited for PWL optimization problems.
GPU-accelerated branch-and-bound has been studied in two adjacent settings. The first line of work targets neural network verification, where frameworks such as -CROWN Xu et al. [2021], Wang et al. [2021] run B&B almost entirely on the GPU. Their efficiency relies on two properties specific to neural network verification. First, neural networks have a layered structure that supports GPU-friendly bound propagation methods such as LiRPA Xu et al. [2020], which compute linear lower bounds on the network output layer by propagating linear relaxations through the layers, avoiding LP solves at each node. Second, verification only asks whether the worst-case network output violates a safety property, not what its exact value is. Each LP subproblem therefore does not need to be solved exactly: a loose lower bound is enough to prune or further branch the subproblem. This leads to efficient pruning that drastically reduces the number of nodes explored in search tree. However, PWL optimization is more general in structure and it requires solving each LP subproblem precisely to get the globally minimal objective value. Obtaining tight enough bounds and preventing the search tree from exploding are therefore both substantially harder in PWL optimization.
The second line of work uses GPU-accelerated LP solving as an auxiliary component of MIP solvers. NVIDIA cuOpt NVIDIA [2025], Blin et al. [2026] apply GPU-batched first-order LP methods to specific subroutines such as full strong branching (FSB) [Achterberg et al., 2005] and optimization-based bound tightening (OBBT) Gleixner et al. [2017]. However, the LP relaxation at each node of the main search tree is still solved on the CPU using simplex-based methods such as dual simplex. The GPU here only accelerates expensive auxiliary procedures rather than the core B&B loop.
In this paper, we propose -PwL, a GPU-batched branch-and-bound framework for piecewise-linear optimization problems with Special Ordered Set of type 2 (SOS2) constraints. Unlike prior work that relegates GPU LP solving to auxiliary subroutines, -PwL puts batched LP relaxations of subproblems on the GPU as the central compute primitive of the B&B loop. To support this paradigm, we extend the first-order method cuPDLPx Lu et al. [2025] to concurrently solve multiple node-specific LP relaxations within a single batched dispatch, backed by a custom block-tiled sparse matrix kernel that handles the ragged constraint matrices. In addition, we introduce a unified feasibility search module that integrate an SOS2 repair primal heuristic [Keha et al., 2006] and batched feasibility pump strategy tightly and seamlessly into our solving pipeline. It effectively and rapidly repairs and finds feasible solutions to update the best incumbent and tighten the global upper-bound for efficient search tree pruning.
Our contributions are as follows:
- We present -PwL, a GPU-batched branch-and-bound framework for piecewise-linear optimization with SOS2 constraints, in which routine node LP relaxations are batched and solved on the GPU via a modified first-order solver for batched LP problems.
- We develop a unified feasibility search module combining an SOS2 repair primal heuristic and a batched feasibility pump to rapidly obtain feasible incumbents for efficient pruning.
- On a 43-instance benchmark, -PwL achieves a geometric-mean speedup and obtain higher quality solutions over cuOpt. We further evaluate on a public valve-point unit-commitment benchmark, where -PwL outperforms cuOpt, and open-source CPU solvers SCIP and HiGHS, highlighting the potential of first-order LP methods for GPU-accelerated branch-and-bound.
2 Related Work
First-order methods for linear programming. Simplex algorithm [Dantzig, 1990] and interior-point methods [Wright, 1997, Karmarkar, 1984] have long dominated linear programming solving. While these algorithms remain the formidable foundation of state-of-the-art CPU solvers, their reliance on matrix factorizations and sequential computations limits their scalability on GPUs. To unlock GPU acceleration for large-scale optimization, first-order methods (FOMs) have emerged as a scalable alternative. PDLP [Applegate et al., 2021, 2025] reformulates LP as a saddle-point problem and solve it via primal-dual hybrid gradient (PDHG) iterations [Chambolle and Pock, 2011] with a range of practical enhancements, which transforms FOMs into a practical, numerically stable paradigm for large-scale LPs. To leverage the massive memory bandwidth of modern accelerators, cuPDLP [Lu and Yang, 2025, Lu et al., 2023] extends the CPU-based PDLP to GPUs by offloading core sparse matrix computations and introducing hardware-aware heuristics. cuPDLPx [Lu et al., 2025] further accelerates this paradigm by tailoring the algorithm, achieving multi-fold speedups over its predecessor on large-scale benchmarks. Nevertheless, these works focus primarily on accelerating individual LP solves, rather than integrating batched LP computation into B&B.
GPU-accelerated branch-and-bound. GPU acceleration of B&B has been particularly successful in neural network verification, where -CROWN [Xu et al., 2021, Wang et al., 2021] pioneered this problem by combining branch-and-bound with GPU-accelerated linear bound propagation (e.g., LiRPA) [Xu et al., 2020] and tightening loose bounds with batched gradient descent on GPUs. In traditional mixed-integer programming (MIP), however, the use of GPUs within exact LP-based branch-and-bound remains more limited. Early efforts incorporating GPUs, such as Neural Branching [Nair et al., 2020] uses a GPU-scalable ADMM-based variant of full strong branching to generate offline imitation-learning targets for branching policies. More recently, Blin et al. [2026] extended batched primal-dual hybrid gradient (PDHG) [Chambolle and Pock, 2011] methods to execute online, exact LP batches on GPUs. However, their application is limited to accelerating specific heuristic sub-routines, including full strong branching (FSB) [Achterberg et al., 2005] and optimization-based bound tightening (OBBT) [Gleixner et al., 2017]. In contrast, we use batched GPU LP solving as the core engine for routine node processing in exact B&B for PWL optimization with SOS2 constraints.
3 Preliminaries
3.1 PWL Problem Formulation with SOS2 Constraints
We consider an optimization problem in variables , where the first components are linked to PWL functions. Each PWL function is defined over the interval with ordered breakpoints , partitioning the domain into linear segments with corresponding values . Using the -formulation with Special Ordered Sets of type 2 (SOS2), we formulate the problem as:
Here, denotes the value of , and are convex combination weights. The SOS2 constraint requires that to have at most two nonzero components at adjacent indices. That is, if and with , then . This ensures that lies on a single linear segment or exactly on a breakpoint of the PWL graph of .
3.2 Branch and Bound (B&B) for SOS2 Constraints
The combinatorial difficulty of the PWL optimization arises from the SOS2 constraints. Each PWL function admits several candidate active segments, and identifying the correct one for every requires searching over an exponentially large combination of segment choices. Branch-and-bound (B&B) solves this problem by recursively restricting the admissible breakpoint range for each PWL function. At the root node, all breakpoints are admissible. Each node is characterized by per-function index intervals and adds the restriction

Figure 1: Overall workflow for B³-PWL. Each round alternates between CPU-side B&B management and GPU-side batched LP solving. The CPU (left) selects active subproblems from the search tree (①), packs their LP relaxations into a batch (②), and after the GPU returns solutions, verifies feasibility and updates the tree by pruning, updating the incumbent, or branching (④). The GPU (right) executes a batched cuPDLPx pipeline (③): per-task PSLP presolve and Ruiz scaling produce heterogeneous constraint matrices, batched PDHG iterations (built on our B²-SpMV kernel) run until convergence, and postsolve and rescaling yield primal-dual solutions for the entire batch. The outer loop continues until the active queue is empty or the global gap closes.
The subproblem at is therefore the original SOS2 formulation (1)–(3) together with the interval restriction (4). Its LP relaxation, obtained by dropping the SOS2 constraints, provides a lower bound for . Three cases may arise after the LP problem is solved: (i) if the LP is infeasible or its optimum is no better than the incumbent, is fathomed; (ii) if the LP solution satisfies all SOS2 constraints, it updates the incumbent if improved and is fathomed; (iii) otherwise, is branched by splitting one active range into two children. The algorithm terminates when the active queue is empty or the global gap falls within tolerance.
4 Method
We introduce B³-PWL, a GPU-batched branch-and-bound framework for piecewise-linear optimization with SOS2 constraints. In our framework, batched LP solving is the central compute primitive: the CPU organizes the global search state and assembles task batches, while the GPU executes batches of LP tasks and returns primal and dual solutions. We describe the end-to-end workflow in Section 4.1, then present the batched node-LP solver in Section 4.2, the block-tiled sparse backend for heterogeneous matrices in Section 4.3, and the unified feasibility-search module in Section 4.4.
4.1 Overall Workflow
Different node subproblems within a single PWL B&B tree descend from a common root formulation and differ only in their variable bounds (the active breakpoint ranges), which is naturally suited to batching. Exploiting this, we extend the GPU LP solver cuPDLPx [Lu et al., 2025] to concurrently solve multiple node LP relaxations within a single batched dispatch.
Building on this batched solver, our framework proceeds in rounds of three stages. (1) In the assembly stage, the CPU selects active nodes from the active nodes queue according to the current B&B policy and packs their LP relaxations into a single GPU batch. (2) In the solve stage, the GPU solves all LP relaxations in the batch in parallel through batched matrix operations, and returns their primal-dual solutions. (3) In the postprocess stage, the CPU uses the returned LP solutions to update the global lower and upper bounds, prune fathomed nodes, and branch unresolved nodes.
into new subproblems that are enqueued into the active node queue. Beyond these standard B&B operations, we further exploit the LP solutions through a unified feasibility-search module which aims at recovering high-quality feasible incumbents that tighten the upper bound (Section 4.4). The next round then assembles its batch from the updated queue, and the loop continues until the active queue is empty or the global gap falls within tolerance.
4.2 Heterogeneous Batched LP Engine on GPU
Each batch consists of tasks , each corresponding to one node LP relaxation. SOS2 constraints are dropped, and the active breakpoint range is encoded through the fixings for . The objective is either the original node objective for regular B&B search tasks or a feasibility-pump objective for feasibility tasks (see Section 4.4). Each task is independently transformed by task-local presolve and Ruiz rescaling into the reduced-space boxed LP form
yielding reduced matrices that differ across tasks in dimensions and sparsity patterns. Unlike the prior batched LP engine for heuristic subroutines in cuOpt, where approximate estimation allows presolve to be skipped so that all tasks share a common constraint matrix , our setting requires presolve and therefore motivates a dedicated batched SpMV implementation for heterogeneous matrices (Section 4.3).
Building on cuPDLPx, our engine batches its inner PDHG operator across all tasks in a single GPU dispatch, while task-local stepsizes, primal weights, projections, restart states, and stopping criteria are maintained independently. The surrounding reflected Halpern updates and adaptive-restart logic follow cuPDLPx and are described in Appendix C. The inner PDHG operator is dominated by two sparse matrix-vector products.
Let and , and let and denote the batch-wise primal and dual iterates at PDHG iteration . For each task , the inner PDHG operator takes the form
Here, and are the task-local primal and dual stepsizes induced by the cuPDLPx stepsize and primal weight . The row-bound proximal operator projects onto . Full details of cuPDLPx, including the reflected Halpern scheme, adaptive restarting, and primal-weight updates, are provided in Appendix C.
4.3 Accelerating Ragged SpMV with Batched Blocking
A key challenge in our approach is that different B&B nodes may produce LP relaxations with different numbers of active variables and constraints after presolve, delivering a ragged collection of sparse matrices with heterogeneous dimensions. Standard GPU-accelerated sparse linear algebra libraries such as cuSPARSE NVIDIA Corporation [2024] provide no batched SpMV primitives. Sequentially launching an SpMV kernel per subproblem fails to fully utilize the GPU parallel resources, while flattening the batch into a single block-diagonal sparse matrix leads to poor load balance and inefficient indexing overhead. To support efficient batching on such heterogeneous workloads, we introduce a batched blocking scheme for efficient and parallel

Figure 2: Building stacked tiles for -SpMV.
solving, dubbed B²-SpMV. It partitions each sparse matrix into fixed-size tiles, removes all-zero tiles, and packs the remaining nonzero tiles from all subproblems into a single contiguous GPU tensor. For each subproblem, we build a tile index map that identifies, for every tile position, either the location of the corresponding nonzero tile in the packed tensor or an empty marker, enabling both sparse computing for each LP sub-problem and coalesced memory access for efficient GPU execution. B²-SpMV executes both and with a single batched kernel over the entire ragged batch, where each thread block processes one tiled row or column for one subproblem, with empty tiles skipped based on the index map.
4.4 Unified Feasibility Search for Efficient Upper-Bound Tightening
Efficient pruning in B&B depends on tightening either the lower bounds for each node or the global upper bound from the best feasible incumbent. Therefore, high-quality incumbents are critical for pruning by bounding and help drastically reducing the search space. However, LP solutions typically violate SOS2 constraints. We therefore introduce a feasibility-search module that attempts to convert LP primal solutions into feasible incumbents through two-stage procedure: a fast and direct SOS2 repair primal heuristic, followed by a batched feasibility pump when direct repair fails.
SOS2 repair primal heuristic. Consider an LP solution at node . We attempt to repair it into an SOS2-feasible one by re-interpolating for each PWL function. The idea is to use to identify the active segment it lies on and reset . to the convex-combination weights of that segment's two endpoints.
Concretely, for each PWL function with active breakpoint range , we clip to , locate the current segment with , and reset . as the convex-combination weights of and :
with for all other . The repaired outputs follow as and , yielding a candidate that satisfies SOS2 by construction.
Since the repaired candidate satisfies SOS2 by construction, it remains to verify the original linear constraints and variable bounds. If satisfied, is feasible for the original PWL problem and updates the incumbent upper bound.
Batched Feasibility-Pump (FP). When first-stage repair fails, the repaired vector still encodes which SOS2 segment each most naturally suggests. The idea of objective feasibility pump (OFP) Achterberg and Berthold [2007] is to treat as a soft target and re-solve the LP under a combined objective that balances the original PWL minimization objective with proximity to , so that successive LP solves are pulled toward an SOS2-feasible point while remaining close to optimality, until repair eventually succeeds.
We adapt OFP to our pipeline in two ways: the objective is tailored to the SOS2 formulation, and FP tasks are integrated into the same GPU batch with our B&B search LP tasks. Specifically, each pump round solves the same node LP with the original constraints intact but a modified objective:
where has entries on the block and zero elsewhere, so that minimizing it rewards -mass on the two breakpoints selected by repair, thus pulls the LP solution toward the SOS2 target . is the original objective matrix and keeps the solution close to optimal. trades off feasibility against quality, and the rescaling factor aligns their magnitudes so remains effective. We set and decay on each failure.
Since FP tasks differ from search tasks only in their objective vectors and share the same constraint structure, our batched cuPDLPx solver, which supports per-task objectives, can dispatch them in the same GPU batch as regular B&B search tasks at no additional scheduling cost. After each FP solve, the returned primal is repaired and checked: accepted candidates update the incumbent, otherwise the repaired point becomes for the next round.
5 Experiments
5.1 Experimental Setup
Benchmarks. Public PWL-MIP instances that keep SOS2 constraints in native form are limited (detailed in Appendix G), e.g. MIPLIB 2017, the most widely used MIP benchmark library, contains no instance with SOS or piecewise-linear constraints, even though the MPS format supports them [Gleixner et al., 2021]. Recent PWL work also relies on its own instance generators [Hübner et al., 2026]. We therefore evaluate -PWL on two benchmarks.
The first is a suite of 43 synthetic PWL-MIP instances from three application families: portfolio optimization, workforce scheduling, and resource allocation. The suite contains 18 portfolio, 9 workforce, and 16 resource-allocation instances, with 100–1,200 PWL functions and 15–25 breakpoints per function. We can control LP size, breakpoint count, sparsity, and SOS2 density through generator to characterize the behavior of our GPU B&B framework across different scales and structures. Appendix G reports the formulations, generator parameters, seeds, and per-instance size statistics.
The second is the public valve-point unit commitment benchmark of Pedroso et al. [2014] built on real-world cost data. This benchmark considers thermal unit commitment, where the objective is to determine unit commitment and generation schedules that satisfy multi-period demand while minimizing valve-point fuel costs.
Hardware Settings. All end-to-end solver comparisons are run on the same Blackwell node, equipped with NVIDIA RTX PRO 6000 Blackwell Server Edition GPUs (96 GB each) and a dual-socket x86-64 host with 192 physical cores (384 logical threads) and 718 GB RAM.
Solver Configurations. Both solvers are run with a 1% relative MIP gap and a 300-second wall-clock limit. -PWL uses a PDLP feasibility/optimality tolerances of . The feasibility-pump module is enabled in the main configuration. cuOpt is run with v26.02.00 which combines CPU-side dual simplex for node LPs, PaPILO presolve, MIR / Gomory / knapsack cutting planes, and GPU-accelerated batched LP for FSB and OBBT.
Metrics. Our evaluation focuses on two aspects: solution quality and solve speed.
Solution quality. we use Gurobi as an external oracle reference. We run Gurobi with tight tolerance gap () and denote its reference objective by . We evaluate solvers on (1) Exact Match counts instances on which the solver returns the objective value that exactly matches the solution of Gurobi. (2) Eff-Opt counts instances on which the solver's objective value satisfying
Thus, Eff-Opt corresponds to finding a feasible incumbent within 1% of the Gurobi reference objective.
Solve time. All solvers terminate upon reaching a 1% MIP gap, exhausting the active search queue, or hitting the 300 s wall-clock budget, whichever comes first; total time is the wall-clock time from solver start to termination. For aggregate runtimes, we report shifted geometric means with shift s following standard MIP benchmarking practice [Achterberg, 2007, 2009]:
The shift reduces the influence of trivially easy instances and avoids overweighting sub-second timing differences. Arithmetic means report the average of wall-clock times. Geo-Spd is the geometric mean of per-instance speedup ratios:
Table 1: Solution quality and solve time of B³-PWL vs. cuOpt on 43 PWL-MIP instances.
| Category | Eff-Opt | Exact | Arith. Time (s) | Geo. Time (s) | Geo-Spd(cu/B³-PWL) | B³-PWL | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| n | B³-PWL | cuOpt | B³-PWL | cuOpt | B³-PWL | cuOpt | B³-PWL | cuOpt | Wins | ||
| Portfolio | 18 | 18 | 10 | 15 | 0 | 2.5 | 142.2 | 2.1 | 57.0 | 29.35× | 18/18 |
| Workforce | 9 | 9 | 8 | 9 | 1 | 2.6 | 68.9 | 2.2 | 35.7 | 17.69× | 9/9 |
| Resource Alloc. | 16 | 16 | 12 | 13 | 8 | 82.3 | 107.9 | 39.0 | 67.3 | 1.75× | 11/16 |
| Total | 43 | 43 | 30 | 37 | 9 | 32.2 | 114.1 | 7.0 | 55.0 | 9.25× | 38/43 |
Table 2: Comparison with established CPU MIP solvers on the same 43 instances.
| Solver | Eff-Opt | Shifted Geo. Time (s) |
|---|---|---|
| B³-PWL | 43/43 | 7.0 |
| Gurobi 13.0.2 | 43/43 | 1.0 |
| SCIP 10.0.1 | 37/43 | 27.1 |
| HiGHS 1.15.1 | 40/43 | 25.2 |
| cuOpt 26.02 | 30/43 | 55.0 |
with values > 1 indicating B³-PWL is faster on average. We additionally report Time to Best Incumbent (TTB): the wall-clock time at which a solver first reaches the incumbent it ultimately returns, censored at 300 s for runs that fail to reach Eff-Opt.
5.2 Main Results
Table 1 reports the performance comparisons between B³-PWL and cuOpt across our PWL benchmark. Detailed per-instance objectives and wall-clock times are provided in Appendix E.
Solution quality. B³-PWL reaches Eff-Opt on all 43 instances, compared with 30 / 43 for cuOpt, and matches the Gurobi reference objective (Exact Match) on 37 / 43 instances, compared with 9 / 43 for cuOpt. These results indicate that B³-PWL consistently returns higher-quality feasible incumbents than cuOpt on our benchmarks.
Solve speed. In total wall-clock time, B³-PWL achieves a shifted geometric mean of 7.0 seconds, compared with 55.0 seconds for cuOpt, and an arithmetic mean of 32.2 seconds, compared with 114.1 seconds for cuOpt. Under the reported Geo-Spd metric, this corresponds to a 9.25× aggregate speedup. We say B³-PWL wins on an instance if it reaches Eff-Opt while cuOpt does not, or if both reach Eff-Opt and B³-PWL terminates faster. Under this criterion B³-PWL wins on 38 / 43 instances.
Comparison with established CPU solvers. Table 2 places these results in the context of mature CPU MIP solvers. Gurobi remains the fastest solver on this benchmark, reaching Eff-Opt on all 43 instances with a shifted geometric-mean time of 1.0s, compared with 7.0s for B³-PWL. B³-PWL nevertheless reaches Eff-Opt on all 43 instances and achieves substantially lower aggregate runtime than the open-source CPU solvers SCIP and HiGHS, which reach Eff-Opt on 37/43 and 40/43 instances, respectively. These results position B³-PWL as a proof of concept that batched first-order LP solving can serve as the core engine of GPU-centric branch-and-bound, rather than as a replacement for mature commercial MIP solvers.
5.3 Public valve-point UC benchmark
We further evaluate B³-PWL on the public valve-point unit commitment benchmark of Pedroso et al. [2014]. Since valve-point costs are nonconvex and nonsmooth, the original paper solves the problem through an adaptive piecewise-linear approximation, yielding a sequence of PWL-MIP instances. We use the public 40-unit e1d40/ucp40 data with the original horizons . Unlike the adaptive breakpoint-refinement procedure of the original paper, we fix each cost curve to a static breakpoint count (20 unless noted) to obtain deterministic solver-comparison instances.
As shown in Table 3, Gurobi remains fastest and we do not claim otherwise. Against the open-source simplex-based solvers B³-PWL is faster on 6 of 7 instances (geomean 10.3× over SCIP, 5.1× over
Table 3: Time to a 1% relative MIP gap (s) on the valve-point UC benchmark. Rows 1-5 sweep the horizon at 20 breakpoints; rows 5-7 sweep breakpoints at . Geo-Spd is the geometric mean of per-instance ratios against B³-PWL.
| Instance | B³-PWL | Gurobi | SCIP | HiGHS | cuOpt |
|---|---|---|---|---|---|
| 1.13 | 4.02 | 0.12 | 0.06 | 3.33 | |
| 3.47 | 0.45 | 37.8 | 211.4 | 245.9 | |
| 2.12 | 0.61 | 21.1 | 11.0 | 10.9 | |
| 2.92 | 1.19 | 36.4 | 14.2 | 209.0 | |
| 5.93 | 3.04 | >300 | 39.9 | >300 | |
| 5.73 | 2.36 | >300 | 34.6 | >300 | |
| 9.02 | 3.95 | >300 | 254.0 | >300 | |
| Geo-Spd | — | 0.47× | 10.34× | 5.13× | 25.40× |
Table 4: Final relative gap (%) and best objective on the valve-point UC benchmark. “n/a”: no feasible solution within the budget.
| Instance | B³-PWL | Gurobi | SCIP | HiGHS | cuOpt | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Gap | Obj. | Gap | Obj. | Gap | Obj. | Gap | Obj. | Gap | Obj. | |
| 0.052 | 122,356 | 0.485 | 122,889 | 0.258 | 122,609 | 0.010 | 122,305 | 0.086 | 122,401 | |
| 0.999 | 293,101 | 0.990 | 293,375 | 0.929 | 293,394 | 0.460 | 292,890 | 0.876 | 293,266 | |
| 0.544 | 587,487 | 0.371 | 586,675 | 0.634 | 588,350 | 0.288 | 586,440 | 0.436 | 586,981 | |
| 0.327 | 1,192,044 | 0.673 | 1,196,353 | 0.827 | 1,198,228 | 0.289 | 1,191,898 | 0.905 | 1,199,171 | |
| 0.369 | 2,401,839 | 0.182 | 2,397,989 | 6.781 | 2,556,152 | 0.262 | 2,400,451 | 5.721 | 2,538,496 | |
| 0.345 | 2,404,897 | 0.201 | 2,402,118 | 6.242 | 2,547,243 | 0.233 | 2,403,133 | 1.682 | 2,437,913 | |
| 0.414 | 2,398,461 | 0.189 | 2,393,431 | n/a | 0.115 | 2,391,921 | 1.894 | 2,434,827 | ||
HiGHS). The exception is , too small to amortize GPU setup. The margin widens with horizon length. At , SCIP and cuOpt exhaust the budget at every breakpoint setting while B³-PWL certifies the gap in under 10 s.
5.4 Time to Best Incumbent
Total wall-clock time conflates two phases of branch-and-bound: finding a high-quality feasible incumbent and closing the final dual-bound gap. We separate them by reporting Time to Best Incumbent (TTB) (defined in Section 5.1), censored at 300 s for runs that do not reach Eff-Opt. Since B³-PWL reaches Eff-Opt on every instance, its TTB is observed in all 43 cases. cuOpt’s TTB is censored on the 13 instances where it fails to reach Eff-Opt within the budget.
Table 5 reports the comparison. Across all 43 instances, B³-PWL achieves a 12.28× geometric-mean TTB speedup over cuOpt overall (4.22 s vs. 45.77 s shifted geomean), and a strictly lower TTB on every instance. Per-category speedups follow the same pattern as total runtime in Table 1: 28.66× on portfolio and 17.56× on workforce, narrowing to 3.87× on resource allocation, where cuOpt finds incumbents quickly via dual simplex.
Comparing Table 5 with the total solve times in Table 1 reveals B³-PWL’s end-to-end advantage stems primarily from rapid primal progress: high-quality incumbents are typically found within the first few GPU batches, after which most of the remaining wall-clock budget is spent on dual-bound tightening to certify optimality. This profile suggests that further end-to-end gains will come from accelerating dual-side convergence such as tighter LP relaxations.
5.5 Unified Feasibility Search Module Ablation
We ablate the two stages of the feasibility-search module in Section 4.4, the SOS2 repair primal heuristic and the batched Feasibility Pump (FP), under three configurations: (i) no feasibility heuristic, (ii) repair only, and (iii) repair + FP. Table 6 reports solve time across the 43-instance benchmark.
Table 5: Time to best incumbent (TTB) on the 43-instance benchmark. Geo. TTB is the shifted geometric mean with shift s; Geo-Spd is the geometric mean of per-instance cuOpt/B-PWL TTB ratios.
| Category | Geo. TTB (s) | Arith. TTB (s) | ||||
|---|---|---|---|---|---|---|
| B-PWL | cuOpt | Geo-Spd | B-PWL | cuOpt | ||
| Portfolio | 18 | 2.08 | 55.70 | 28.66× | 2.5 | 141.9 |
| Workforce | 9 | 2.15 | 35.23 | 17.56× | 2.5 | 68.4 |
| Resource Alloc. | 16 | 11.53 | 42.48 | 3.87× | 60.4 | 96.0 |
| Total | 43 | 4.22 | 45.77 | 12.28× | 24.1 | 109.4 |
Table 6: Ablation of the feasibility-search module on the 43-instance benchmark. Feas reports instances on which a feasible incumbent is recorded; configurations (ii) and (iii) achieve 43/43 on every category. The last column reports the runtime ratio (ii)/(iii); values > 1 mean FP accelerates over repair alone.
| Category | (i) No heuristic | (ii) Repair only | (iii) Repair + FP | FP Speedup | ||||
|---|---|---|---|---|---|---|---|---|
| Feas | Geo. (s) | Geo. (s) | Arith. (s) | Geo. (s) | Arith. (s) | (ii)/(iii) | ||
| Portfolio | 18 | 0/18 | 300.0 | 4.97 | 36.2 | 2.09 | 2.5 | 2.18× |
| Workforce | 9 | 0/9 | 300.0 | 6.10 | 37.2 | 2.17 | 2.6 | 2.61× |
| Resource Alloc. | 16 | 0/16 | 39.8 | 38.98 | 82.3 | 38.98 | 82.3 | 1.00× |
| Total | 43 | 0/43 | 142.1 | 11.56 | 53.6 | 7.05 | 32.2 | 1.69× |
SOS2 repair primal heuristic is necessary for PDLP outputs. Unlike simplex-based solvers, which return vertex solutions that naturally satisfy integrality at leaf nodes, PDHG iterates in PDLP converge from the interior of the LP polytope. Its postsolved primal iterate may satisfy the LP relaxation within global tolerance while still leaving small nonzero mass on SOS2 coefficients that should be exactly zero. Consequently, even leaf nodes whose branching restrictions identify a single admissible SOS2 segment may fail the strict incumbent check. Column (i) of Table 6 confirms this empirically: no feasible incumbent is recorded on any of the 43 instances. The SOS2 repair step resolves the mismatch by projecting each PWL component onto an admissible segment. With repair enabled (column (ii)), feasibility is recovered on all 43 instances at low overhead (Table 7).
FP provides category-dependent acceleration. The Feasibility Pump injects proximity-objective LP tasks into the GPU batch to accelerate discovery of high-quality incumbents. Its benefit depends on whether early incumbent quality is the bottleneck for pruning. On portfolio and workforce instances, where the first high-quality incumbent dominates total solve time, FP yields geometric-mean speedups of 2.18× and 2.61× respectively over repair alone. On resource allocation, however, the branching heuristic already discovers incumbents cheaply at nearby leaves, so FP yields no measurable acceleration (1.00×).
5.6 Accelerating Ragged SpMV with Batched Blocking
We benchmark the efficiency of B-SpMV with varied batch size, where the size of the constraint matrix per sample is randomly generated within 8000 ~ 25000. We use the default SpMV interface from cuSPARSE as baseline, with looped execution for batching. It scales with batch size and saturates beyond 50× at larger batches, confirming that the kernel effectively amortizes per-task launch and memory overhead across the batch.
5.7 Time Breakdown
Table 7 reports the time-weighted breakdown across the 43 instances. Batched LP solving (PDHG loop, task-local PSLP presolve and rescaling) consumes over 85% of B&B

Figure 3: Speedup Visualization for B-SpMV vs. Looped cuSPARSE.
Table 7: Time-weighted breakdown of B³-PWL's branch-and-bound phase. Each entry reports within the corresponding category.
| Component | Portfolio | Workforce | Resalloc | Overall |
|---|---|---|---|---|
| PDHG loop & GPU setup | 82.1% | 70.4% | 73.9% | 74.0% |
| PSLP presolve/rescale | 9.1% | 15.9% | 11.4% | 11.3% |
| SOS2 check & primal heuristic | 2.0% | 1.0% | 6.0% | 5.9% |
| Branch selection & node expansion | 4.4% | 4.9% | 3.7% | 3.8% |
| Batch construction | 3.8% | 4.7% | 3.3% | 3.3% |
| Other postprocessing | 0.1% | 3.2% | 2.0% | 2.0% |
time, while all CPU-side operations (SOS2 checking, primal heuristics, branching, batch construction, and postprocessing) account for less than 15% combined. This pattern holds consistently across all three categories, indicating that B³-PWL is bound by GPU-side LP throughput rather than CPU-side tree management.
6 Conclusion
We introduced B³-PWL, a GPU-batched branch-and-bound framework for PWL optimization with SOS2 constraints that solves batched node LP relaxations on the GPU as the main engine of the B&B loop. On a 43-instance benchmark, B³-PWL achieves a 9.25× geometric-mean speedup over NVIDIA cuOpt while reaching high-quality incumbents on every tested instance. We see this work as a first step toward using batched first-order method for LP as the core engine of B&B, beyond its current role as auxiliary acceleration. Extending the paradigm to broader PWL and MIP settings, including the incorporation of cutting planes for tighter dual bounds and more general branching heuristics for efficient tree exploration, remains an open direction for future work.
References
T. Achterberg. Constraint integer programming. PhD thesis, 2007.
T. Achterberg. Scip: solving constraint integer programs. Mathematical Programming Computation, 1(1):1–41, 2009.
T. Achterberg and T. Berthold. Improving the feasibility pump. Discrete Optimization, 4(1):77–86, 2007.
T. Achterberg, T. Koch, and A. Martin. Branching rules revisited. Operations Research Letters, 33(1):42–54, 2005.
D. Applegate, M. Díaz, O. Hinder, H. Lu, M. Lubin, B. O'Donoghue, and W. Schudy. Practical large-scale linear programming using primal-dual hybrid gradient. Advances in Neural Information Processing Systems, 34:20243–20257, 2021.
D. Applegate, M. Díaz, O. Hinder, H. Lu, M. Lubin, B. O'Donoghue, and W. Schudy. Pdlp: A practical first-order method for large-scale linear programming. arXiv preprint arXiv:2501.07018, 2025.
N. Blin, S. Gualandi, C. Maes, A. Lodi, and B. Stellato. Batched first-order methods for parallel lp solving in mip. arXiv preprint arXiv:2601.21990, 2026.
A. Chambolle and T. Pock. A first-order primal-dual algorithm for convex problems with applications to imaging. Journal of mathematical imaging and vision, 40(1):120–145, 2011.
G. B. Dantzig. Origins of the simplex method, page 141–151. Association for Computing Machinery, New York, NY, USA, 1990. ISBN 0201508141. URL https://doi.org/10.1145/87252.88081.
A. T. Ernst, H. Jiang, M. Krishnamoorthy, and D. Sier. Staff scheduling and rostering: A review of applications, methods and models. European journal of operational research, 153(1):3–27, 2004.
A. Gleixner, G. Hendel, G. Gamrath, T. Achterberg, M. Bastubbe, T. Berthold, P. Christophel, K. Jarck, T. Koch, J. Linderoth, et al. Miplib 2017: data-driven compilation of the 6th mixed-integer programming library. Mathematical Programming Computation, 13(3):443–490, 2021.
A. M. Gleixner, T. Berthold, B. Müller, and S. Weltge. Three enhancements for optimization-based bound tightening. Journal of Global Optimization, 67(4):731–757, 2017.
T. Hübner, A. Gupte, and S. Rebennack. Spatial branch-and-bound for nonconvex separable piecewise linear optimization. INFORMS Journal on Computing, 38(2):645–675, 2026.
B. Karimi, S. F. Ghomi, and J. Wilson. The capacitated lot sizing problem: a review of models and algorithms. Omega, 31(5):365–378, 2003.
N. Karmarkar. A new polynomial-time algorithm for linear programming. In Proceedings of the sixteenth annual ACM symposium on Theory of computing, pages 302–311, 1984.
A. B. Keha, I. R. de Farias Jr, and G. L. Nemhauser. A branch-and-cut algorithm without binary variables for nonconvex piecewise linear optimization. Operations research, 54(5):847–858, 2006.
B. Knueven, J. Ostrowski, and J.-P. Watson. On mixed-integer programming formulations for the unit commitment problem. INFORMS Journal on Computing, 32(4):857–876, 2020.
A. H. Land and A. G. Doig. An automatic method for solving discrete programming problems. In 50 Years of Integer Programming 1958-2008: From the Early Years to the State-of-the-Art, pages 105–132. Springer, 2009.
M. S. Lobo, M. Fazel, and S. Boyd. Portfolio optimization with linear and fixed transaction costs. Annals of Operations Research, 152(1):341–365, 2007.
H. Lu and J. Yang. cupdlp. jl: A gpu implementation of restarted primal-dual hybrid gradient for linear programming in julia. Operations Research, 73(6):3440–3452, 2025.
H. Lu, J. Yang, H. Hu, Q. Huangfu, J. Liu, T. Liu, Y. Ye, C. Zhang, and D. Ge. cupdlp-c: A strengthened implementation of cupdlp for linear programming by c language. arXiv preprint arXiv:2312.14832, 2023.
H. Lu, Z. Peng, and J. Yang. cupdlpx: A further enhanced gpu-based first-order solver for linear programming. arXiv preprint arXiv:2507.14051, 2025.
V. Nair, S. Bartunov, F. Gimeno, I. Von Glehn, P. Lichocki, I. Lobov, B. O'Donoghue, N. Sonnerat, C. Tjandraatmadja, P. Wang, et al. Solving mixed integer programs using neural networks. arXiv preprint arXiv:2012.13349, 2020.
G. L. Nemhauser and L. A. Wolsey. Integer and combinatorial optimization, volume 18. Wiley New York, 1988.
NVIDIA. Nvidia cuopt: GPU accelerated decision optimization, 2025. URL https://github.com/NVIDIA/cuopt.
NVIDIA Corporation. cuSPARSE Library, 2024. URL https://developer.nvidia.com/cusparse. Included in CUDA Toolkit.
J. P. Pedroso, M. Kubo, and A. Viana. Unit commitment with valve-point loading effect. arXiv preprint arXiv:1404.4944, 2014.
S. Wang, H. Zhang, K. Xu, X. Lin, S. Jana, C.-J. Hsieh, and J. Z. Kolter. Beta-crown: Efficient bound propagation with per-neuron split constraints for neural network robustness verification. Advances in neural information processing systems, 34:29909–29921, 2021.
S. J. Wright. Primal-dual interior-point methods. SIAM, 1997.
K. Xu, Z. Shi, H. Zhang, Y. Wang, K.-W. Chang, M. Huang, B. Kailkhura, X. Lin, and C.-J. Hsieh. Automatic perturbation analysis for scalable certified robustness and beyond. Advances in Neural Information Processing Systems, 33:1129–1141, 2020.
K. Xu, H. Zhang, S. Wang, Y. Wang, S. Jana, X. Lin, and C.-J. Hsieh. Fast and complete: Enabling complete neural network verification with rapid and massively parallel incomplete verifiers. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=nVZtXBI6LNn.
A Broader Impacts
B³-PWL is a foundational systems contribution: a GPU-accelerated framework for solving piecewise-linear mixed-integer optimization problems to global optimality. It is not tied to any specific deployed application, but PWL-MIP formulations underlie a wide range of decision-making tasks, including portfolio optimization, workforce scheduling, energy and resource allocation, and supply-chain planning. Faster and more accessible exact solvers for this class of problems reduce the computational and energy cost of solving real-world planning problems, and lower the barrier for smaller organizations and academic users who lack access to commercial-grade CPU solvers.
We do not foresee direct negative societal impacts from this work. The framework solves classical optimization problems whose objectives and constraints are specified by the user; it does not learn from data, generate content, or make autonomous decisions. As with any general-purpose optimization tool, downstream impact depends on the application, and we view such considerations as properties of mathematical optimization as a whole rather than risks specific to our contribution.
B Limitations and Future Work
While B³-PWL demonstrates that batched first-order LP solvers can serve as the central engine of branch-and-bound for PWL optimization, the current framework has several limitations that point to natural directions for future work.
Slow dual-bound certification. First-order methods such as PDHG converge sublinearly in high-accuracy regimes, making dual-bound tightening substantially slower than with simplex-based solvers. Empirically (Section 5.4), B³-PWL typically locates a high-quality incumbent within the first few GPU batches, but the remaining wall-clock budget is dominated by closing the final dual gap to certify optimality, and on a small number of instances (e.g., the largest resource-allocation cases in Appendix E) the 1% MIP gap is not closed within the 300 s budget despite a near-optimal incumbent being found early. Hybridizing first-order LP solves with simplex- or interior-point-based crossover for high-accuracy phases is a promising direction for narrowing this gap.
No warm starting between subproblems. Simplex-based MIP solvers exploit the structural similarity between parent and child node LPs through dual-simplex warm starting from the parent basis, which often resolves a child node in only a handful of pivots. PDHG, in contrast, lacks a basis representation, and our batched first-order method solvers re-solve each subproblem essentially from scratch despite the high similarity between sibling LPs. Designing warm-start strategies for batched first-order B&B (e.g., transferring iterate scaling, primal weights, or partial restart history across related subproblems) could substantially reduce per-node work and is, to our knowledge, an open problem in the first-order MIP literature.
Simple branching and no cutting planes. PWL optimization is a broad problem class with highly heterogeneous structure across applications. Our current pipeline focuses primarily on GPU-batched node-LP solving and SOS2-aware feasibility search, but it does not yet incorporate the full range of solver machinery used by highly engineered commercial MIP solvers, such as sophisticated branching rules, cut generation, bound tightening, and advanced presolve strategies. Future work could explore branching heuristics that are robust across diverse PWL structures, as well as GPU-compatible cutting-plane and bound-tightening routines that can be integrated into the batched first-order pipeline. By tightening LP relaxations and guiding the search toward more informative regions of the B&B tree, these extensions may substantially improve pruning efficiency, reduce dual-bound certification time, and narrow the gap between first-order GPU-centric B&B and mature commercial solvers.
C cuPDLPx: GPU-Accelerated First-Order LP Solver
Our framework utilizes cuPDLPx [Lu et al., 2025] as the linear programming solver of subproblem relaxations in the B&B search tree, as it is the state-of-the-art, GPU-accelerated first-order solver designed to solve LP problems as an equivalent primal-dual saddle point problem.
Primal-Dual Hybrid Gradient (PDHG) The foundational algorithm of cuPDLPx is the Primal-Dual Hybrid Gradient (PDHG). Given primal variables , dual variables , objective vector , and constraint matrix , PDHG iteratively updates the primal-dual iterate by alternating between a primal projection step and a dual update step:
where and denote the primal and constraint feasible domains respectively, and are the primal and dual step sizes. cuPDLPx further reparameterizes with a base step size and a primal weight (i.e., , ). Because operations in (9) and (10) are dominated by matrix-vector multiplications, PDHG are well suited for GPU acceleration.
Algorithmic Enhancements in cuPDLPx To overcome the slow tail convergence of vanilla PDHG algorithm, cuPDLPx augments this base routine with four advanced mechanisms, achieving robust and accelerated convergence for large-scale LPs.
Reflected Halpern Scheme Instead of standard average schemes, cuPDLPx employs a Reflected Halpern update. It interpolates between an over-relaxed PDHG step and an anchor point :
where is the reflection parameter. This mechanism enables larger effective step sizes and strictly bounds the fixed-point residual.
Adaptive Restart The anchor is periodically dynamically reset. cuPDLPx monitors the fixed-point error metric . When specific decay conditions are met (e.g., sufficient decay or lack of local progress), it restarts by resetting to the current iterate, keeping the search tightly focused on the optimal neighborhood.
Constant Stepsize To maximize parallel efficiency on GPUs, cuPDLPx eschews the sequential adaptive stepsize heuristics typical of CPU solvers. Instead, it adopts a constant stepsize , efficiently approximated via power iteration.
PID-Controlled Primal Weight To balance the progress between primal and dual spaces, the primal weight is dynamically regulated. At each restart occurrence, cuPDLPx updates using a Proportional-Integral-Derivative (PID) controller based on the logarithmic gap between the primal and dual distances to optimality.
D Numerical Robustness and Stopping-Criterion Sensitivity
We further examine the numerical robustness of B-PWL with respect to the PDLP feasibility/optimality tolerance and the global B&B stopping criterion. Specifically, we evaluate the feasibility and stability of the returned incumbents, the validity and stability of the final lower bounds, and sensitivity to tighter target MIP gaps.
Incumbent feasibility and stability. We rerun all 43 instances with the PDLP feasibility and optimality tolerances tightened from to and . Under all three tolerance settings, every instance returns an incumbent within 1% of the Gurobi reference objective. Relative to the baseline, the maximum change in the solver-reported incumbent objective is only 0.0213% under the tighter and tolerances.
We additionally validate each returned incumbent by fixing its integer/SOS2 pattern and re-solving the remaining continuous LP with HiGHS at a feasibility tolerance. Across the three PDLP tolerance settings, this yields incumbent patterns. All 129 patterns yield feasible solutions, with a maximum constraint violation of . The maximum objective adjustment introduced by this validation is 0.0180% at , 0.000457% at , and 0.000933% at .
Lower-bound stability and validity. For each tighter PDLP tolerance, we compare the final lower bounds against the baseline. We also verify
Table 8: Validity and stability of final lower bounds under tighter PDLP feasibility/optimality tolerances. LB shifts are instance-wise relative changes from the baseline.
| PDLP tolerance | Valid finite bounds | Median LB shift | 95th-percentile LB shift | Maximum LB shift |
|---|---|---|---|---|
| 43/43 | Baseline | Baseline | Baseline | |
| 43/43 | 0.00193% | 0.167% | 0.206% | |
| 43/43 | 0.00329% | 0.371% | 0.989% |
Table 9: Sensitivity to the global B&B target MIP gap. Incumbent and final-LB shifts are measured relative to the 1% configuration.
| Target MIP gap | Eff-Opt | Maximum incumbent shift | Maximum final-LB shift | Valid finite bounds | Time-limit runs |
|---|---|---|---|---|---|
| 1% | 43/43 | Baseline | Baseline | 43/43 | 3 |
| 0.5% | 43/43 | 0.000217% | 0.0989% | 43/43 | 7 |
| 0.1% | 43/43 | 0.000217% | 0.102% | 43/43 | 12 |
for every available finite lower bound, where denotes the objective of the independently validated incumbent. Table 8 reports instance-wise relative changes in the final lower bounds with respect to the baseline.
The final lower bounds remain valid for all 43 instances under each tolerance setting and exhibit only small changes relative to the baseline.
Sensitivity to the B&B stopping criterion. We further tighten the target relative MIP gap from 1% to 0.5% and 0.1%, while keeping the PDLP tolerance and 300-second wall-clock limit fixed. Table 9 reports incumbent and final-LB shifts relative to the 1% baseline.
Tightening the MIP-gap criterion does not materially change the returned incumbents or final lower bounds. Its primary effect is to increase the cost of dual-bound certification: the number of runs reaching the 300-second limit increases from 3 at a 1% target gap to 12 at a 0.1% target gap. Thus, the main solution-quality conclusions remain stable under stricter stopping criteria, while closing a tighter global optimality gap requires substantially more computation.
E Per-Instance Detailed Results
Tables 10–12 give per-instance wall-clock time and returned objective for PWL-BaB and cuOpt on every canonical instance, alongside the Gurobi certified optimum (, separate 32-thread Xeon CPU run; Gurobi runtime is omitted because it is not directly comparable to the GPU-accelerated PWL/cuOpt times). TO marks the 300 s budget exhaustion; — marks no feasible incumbent returned. Each instance is tagged pw1{N}_s{seed}, where N is the number of PWL functions in the instance and seed is the random-generator seed. Within resource allocation, two pairs of size groups share the same N (pw1300 and pw1500); we disambiguate them with the suffixes a/b, whose generator parameters are listed in Appendix G.
F Implementation Details
Multi-level branching for batch filling. GPU throughput is maximized when all slots are occupied, but the B&B queue may contain fewer than nodes, particularly in early iterations. Inspired by the split-depth mechanism in -CROWN [Xu et al., 2021], we preemptively branch nodes multiple levels before solving. Specifically, when the queue size , we compute a split depth
and expand each seed node into up to leaf nodes via BFS-style recursive branching, using the branching heuristic to select variables at each level. This ensures the GPU batch is consistently saturated.
Table 10: Per-instance results: Portfolio (18 instances).
| Instance | PWL-BaB | cuOpt | Gurobi | ||
|---|---|---|---|---|---|
| Time (s) | Objective | Time (s) | Objective | Objective | |
| pwl100_s42 | 0.6 | -1636.0085 | TO | — | -1636.0084 |
| pwl100_s123 | 0.6 | -1591.3689 | TO | — | -1591.3686 |
| pwl100_s999 | 0.5 | -1702.2300 | TO | — | -1702.2300 |
| pwl200_s42 | 1.2 | -3329.2898 | TO | -3103.7171 | -3329.2898 |
| pwl200_s123 | 1.7 | -3493.2999 | TO | — | -3493.2999 |
| pwl200_s999 | 1.2 | -2820.2763 | TO | -2752.9085 | -2820.2763 |
| pwl300_s42 | 1.4 | -5132.8143 | 7.8 | -5092.7688 | -5132.8144 |
| pwl300_s123 | 1.3 | -5312.8877 | 8.8 | -5270.0022 | -5313.4625 |
| pwl300_s999 | 1.3 | -4326.8367 | 10.1 | -4314.2420 | -4326.8434 |
| pwl400_s42 | 2.6 | -6729.8250 | 12.9 | -6717.2791 | -6729.8211 |
| pwl400_s123 | 3.0 | -6930.5113 | 12.0 | -6908.1034 | -6930.5117 |
| pwl400_s999 | 2.1 | -6186.0892 | 13.8 | -6150.4538 | -6189.1684 |
| pwl500_s42 | 5.8 | -8793.2572 | 17.8 | -8752.8616 | -8793.2572 |
| pwl500_s123 | 2.9 | -8844.0370 | 18.7 | -8822.4380 | -8844.0369 |
| pwl500_s999 | 3.2 | -8396.4138 | TO | — | -8398.0055 |
| pwl600_s42 | 3.6 | -9917.6555 | TO | — | -9918.4741 |
| pwl600_s123 | 3.4 | -10257.0782 | 27.1 | -10242.9353 | -10257.0767 |
| pwl600_s999 | 8.6 | -10361.3325 | 30.3 | -10332.3481 | -10361.3306 |
Table 11: Per-instance results: Workforce (9 instances).
| Instance | PWL-BaB | cuOpt | Gurobi | ||
|---|---|---|---|---|---|
| Time (s) | Objective | Time (s) | Objective | Objective | |
| pwl300_s42 | 0.8 | 281.7799 | 12.5 | 283.5340 | 281.7799 |
| pwl300_s123 | 0.8 | 279.7645 | 11.6 | 279.7645 | 279.7645 |
| pwl300_s999 | 0.8 | 277.9249 | 12.2 | 279.3438 | 277.9249 |
| pwl600_s42 | 2.1 | 563.5598 | 27.9 | 567.8821 | 563.5598 |
| pwl600_s123 | 1.8 | 559.5290 | 14.8 | 563.2236 | 559.5290 |
| pwl600_s999 | 2.1 | 555.8498 | 35.8 | 559.9900 | 555.8498 |
| pwl1200_s42 | 4.8 | 1121.4303 | 107 | 1127.8207 | 1121.4303 |
| pwl1200_s123 | 5.5 | 1115.9629 | TO | — | 1115.9629 |
| pwl1200_s999 | 4.2 | 1121.4227 | 98.3 | 1125.9802 | 1121.4227 |
Adaptive batch sizing. We dynamically adjust based on GPU memory utilization. After each solving round, we query the available GPU memory and compute a capacity factor , where . The batch size is updated as , subject to a minimum increase threshold, ensuring stable growth without out-of-memory failures.
G Benchmark Details
To our knowledge, there is no broadly adopted, MIPLIB-like benchmark suite specifically for large-scale nonconvex PWL optimization that preserves native SOS2 structure. In particular, the MIPLIB 2017 paper reports that, although its input format permits SOS and piecewise-linear constraints, none of the submitted instances used these structures. Existing PWL studies therefore often rely on generated application-oriented families. Recent external studies have released reproducible generators and instances for nonconvex PWL network-flow and knapsack problems, but these remain generated benchmarks rather than a broadly adopted standard [Hübner et al., 2026]. Public application-specific libraries also exist, notably PGLib-UC, which combines convex piecewise-linear production costs with ordinary binary commitment, startup, and shutdown decisions, and therefore targets a different problem scope [Knueven et al., 2020].
Given this landscape, we construct a controlled systems benchmark to characterize the behavior of our GPU B&B framework, rather than to claim broad industrial representativeness. We selected three classical PWL application classes, portfolio optimization, workforce scheduling, and resource allocation, whose generators allow us to systematically vary LP size, breakpoint count, sparsity, and
Table 12: Per-instance results: Resource Allocation (16 instances).
| Instance | PWL-BaB | cuOpt | Gurobi | ||
|---|---|---|---|---|---|
| Time (s) | Objective | Time (s) | Objective | Objective | |
| pwl300a_s42 | 64.1 | 316.2431 | 28.5 | 316.2431 | 316.2431 |
| pwl300a_s123 | 64.5 | 316.2431 | 38.4 | 316.2431 | 316.2431 |
| pwl300a_s999 | 64.0 | 316.2431 | 25.4 | 316.2431 | 316.2431 |
| pwl300b_s123 | 43.4 | 316.2431 | 23.2 | 316.2431 | 316.2431 |
| pwl400_s42 | 9.0 | 421.6067 | 31.0 | 421.6067 | 421.6067 |
| pwl400_s123 | 8.9 | 421.6067 | TO | — | 421.6067 |
| pwl400_s999 | 8.9 | 421.6067 | 31.4 | 425.3778 | 421.6067 |
| pwl500a_s42 | 40.0 | 527.0718 | 69.0 | 527.0718 | 527.0718 |
| pwl500a_s123 | 40.0 | 527.0718 | 37.4 | 527.0718 | 527.0718 |
| pwl500a_s999 | 39.8 | 527.0718 | 81.0 | 527.7716 | 527.0718 |
| pwl500b_s42 | 11.3 | 527.0083 | 48.2 | 527.0083 | 527.0083 |
| pwl500b_s123 | 11.4 | 527.0083 | 60.7 | 531.4298 | 527.0083 |
| pwl500b_s999 | 11.4 | 527.0083 | 52.1 | 531.7667 | 527.0083 |
| pwl1200_s42 | TO | 1278.4221 | TO | — | 1278.1789 |
| pwl1200_s123 | TO | 1280.2254 | TO | — | 1280.0844 |
| pwl1200_s999 | TO | 1287.2700 | TO | — | 1287.0155 |
SOS2 density and thereby characterize the behavior of our GPU B&B framework across different scales and structures. We remove root-trivial instances, since they primarily benchmark a single LP relaxation rather than the batched B&B mechanism studied here. Synthetic generation also allows us to control instance difficulty within an informative range, avoiding cases that are either too easy or too difficult to meaningfully distinguish our framework from CPU simplex-based solvers.
Our benchmark suite spans three problem families that exercise complementary structural regimes for branch-and-bound with batched LP relaxations. The portfolio benchmark (Section G.1) features dense SOS2 coverage—one SOS2 substructure per asset—coupled through a small number of global linear constraints. The workforce scheduling benchmark (Section G.2) features a multi-period grid of SOS2 substructures coupled through skill-coverage and budget constraints. The resource allocation benchmark (Section G.3) concentrates combinatorial structure on a sparse subset of variables under a block-angular linear coupling. All three families share the same univariate PWL cost-curve generator (described in Section G.1) so that differences in solver behavior across families reflect coupling structure rather than curve shape.
G.1 Portfolio Benchmark with Piecewise-Linear Transaction Costs
Problem Formulation. We consider a portfolio optimization benchmark with separable PWL transaction-cost penalties. This problem models capital allocation across assets under a global budget, sparse factor-risk limits, and sector exposure caps. The objective balances expected return against a per-asset transaction penalty.
For each asset , let denote the dollar holding and let denote the transaction-cost penalty associated with . The objective is
where is the expected return of asset , and controls the trade-off between return and transaction cost.
The portfolio is subject to three classes of linear coupling constraints. First, the total capital invested cannot exceed the budget :
Second, for each risk factor , the factor exposure is bounded by a risk budget :
where is the loading of asset on factor . Third, sector allocations are capped. Let denote the sector of asset ; then for each sector ,
Transaction cost is modeled independently for each asset by a univariate PWL function. For asset , let be the breakpoints of its cost curve, where is a breakpoint on the holding axis and is the corresponding penalty value. We use the standard SOS2 formulation with convex-combination variables
together with an SOS2 constraint on , so that at most two adjacent breakpoints are active. This enforces that lies on the graph of the PWL penalty function.
The complete formulation is
Data Generation. The holding interval for each asset is restricted to a tight box around a reference point :
This narrow box is chosen deliberately so that no single SOS2 segment is admissible at the LP relaxation, ensuring that branch-and-bound must explore multiple segment combinations rather than terminating at the root LP. The breakpoints are sampled from a univariate U-shaped curve generator that combines a low-volume penalty region, a flat economical mid-range, and a steeply rising tail; the same generator is reused across all three benchmark families to isolate the effect of coupling structure.
Expected returns are sampled independently as , and the global transaction-cost weight is fixed to . Asset-wise scales are drawn as . Assets are assigned to sectors in round-robin order, . For each factor , the loading matrix has approximately 30% of entries nonzero (each entry independently masked with probability 0.7), with nonzero values drawn from . Let denote the upper end of the tight box. The total budget is set to
Risk budgets are set by
and sector budgets by
Problem Size. For assets and breakpoints per asset, the model contains
variables in total. The number of global coupling constraints is , while the PWL representation contributes local constraints. This benchmark is therefore characterized by many homogeneous SOS2 substructures coupled through a relatively small set of sparse linear constraints.
G.2 Workforce Scheduling with Overtime Costs
Problem Formulation. We consider a multi-period workforce scheduling problem with skill coverage and budget constraints. Let index workers, index periods, and index skills. The decision variable denotes the number of hours assigned to worker in period , and denotes the corresponding labor cost. Each worker has a skill coefficient for skill , and each period requires at least effective hours of each skill . In addition, each period is subject to a payroll budget .
To model overtime and other nonlinear labor costs, each worker-period pair is associated with a piecewise-linear cost function . We represent this function using breakpoints and SOS2 variables , yielding
together with an SOS2 constraint on .
The full optimization problem is
Data Generation. Worker-specific maximum hours are sampled as , wage rates as , and staffing requirements as . The skill matrix has approximately 40% of entries nonzero, with nonzero entries sampled from ; if a worker draws no nonzero skill, one randomly chosen entry is resampled from to ensure every worker is qualified for at least one skill. Period budgets are set to 0.7–0.9 times a reference full-capacity payroll level. Each worker-period pair receives an independently sampled PWL cost curve from the same generator used in Section G.1, with curves associated with the same worker sharing a common hour range determined by that worker's feasible shift length.
Problem Size. For W workers, P periods, and J breakpoints per cost curve, the model contains
variables in total, plus TP skill-coverage constraints, P payroll-budget constraints, and 3WP local linear equations from the PWL encoding. In our benchmark suite, the number of local PWL functions (WP) typically ranges from 200 to 2000.
G.3 Block-Angular Resource Allocation with Piecewise-Linear Costs
Problem Formulation. We consider a multi-line production-planning benchmark with block-angular resource structure and separable PWL operating-cost penalties on a subset of products. This problem models a manufacturer operating G product groups (e.g., plants or product lines), in which each group draws on its own dedicated equipment (local resources) but also competes for a shared pool of global resources (e.g., raw-material budget, warehouse capacity, logistics throughput). A subset of products carries a non-convex production-cost curve—capturing setup amortization at low volume, economies of scale at medium volume, and overtime or congestion at high volume—which we model as a univariate PWL penalty.
For each group , let denote the set of products in that group, with and . For each product the decision variable is the production level. A subset of size carries a PWL cost variable , and the objective minimizes the total PWL operating cost,
The constraint matrix exhibits a block-angular structure: diagonal local blocks coupled through one shared global block. For each group , local capacity constraints couple only products in :
while M global capacity constraints couple all N products:
All linear coupling constraints are inequalities. For each , the PWL operating cost is parameterized by breakpoints , encoded with SOS2 convex-combination variables
together with an SOS2 constraint on
The complete formulation is
where is a tight box for (specified below) and the wider default range for .
Data Generation. For each group , the local block is generated with target sparsity ; nonzero positions are drawn uniformly at random and nonzero values are sampled independently from . The global block is generated with sparsity and the same value distribution; allowing both signs in models global rows that aggregate signed contributions across products (e.g., net demand vs. supply of a shared resource). Capacities are sampled as .
The PWL-active subset is drawn uniformly at random without replacement from ; breakpoint values are obtained from the same univariate U-shaped curve generator described in Section G.1, applied over the nominal production range .
To force a non-trivial branch-and-bound search, every is restricted to a tight box of width around the midpoint of the PWL range,
with and ; products outside take the wider default range . After the boxes are imposed, the right-hand sides of both blocks are post-processed by adding a uniform slack on top of the worst-case left-hand side for each row , so that the linear feasibility region is non-empty by construction.
Problem Size. For products, an active subset of size , and breakpoints per PWL function, the model has
variables in total. The number of linear coupling constraints is (block-diagonal local plus dense global), while the PWL representation contributes local linear equations. In contrast to the portfolio and workforce benchmarks—where every primary variable carries an SOS2 substructure—this benchmark concentrates combinatorial structure on only a fraction of the variable set while keeping a sparse, hierarchical linear coupling.
H Problem Characteristics and Solver Behavior
We analyze how structural differences across the three problem families affect the behavior of our GPU B&B framework.
PWL coverage and sparsity. Resource-allocation instances embed a relatively small fraction of PWL variables in a much larger sparse block-angular LP. Because branching on one PWL variable modifies only a local part of this structure, its improvement to the global lower bound can be small relative to the cost of solving the full node LP. Consequently, more branching may be required before effective pruning occurs. Meanwhile, this sparse structure favors mature simplex-based solvers through basis reuse, sparse factorization, cuts, and other B&B enhancements.
LP size. The node LPs in the resource-allocation family are also substantially larger, reducing the maximum batch size that fits within the same GPU memory and increasing the cost of each batched iteration.
Search-tree structure. These properties tend to produce narrower, deeper search trees because each local PWL branch provides limited global tightening. In contrast, portfolio and workforce expose many independent PWL decisions and tend to generate shallower, wider frontiers that better match GPU batching. Branching quality is consequently more important for resource allocation: an unproductive early decision can send the search deep into a poor direction and require many weak or infeasible node LPs to be solved before pruning. Unlike simplex methods, first-order methods do not return basic vertex solutions and converge slowly at high dual accuracy, weakening lower-bound-based pruning, especially in deeper search trees.