# Numerical stability issues

**URL:** <https://forums.developer.nvidia.com/t/numerical-stability-issues/344048>\
**Category:** cuOpt\
**Tags:** cuopt\
**Created:** [September 4, 2025, 4:00pm UTC](https://forums.developer.nvidia.com/t/numerical-stability-issues/344048 "2025-09-04T16:00:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chintasunny](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chintasunny](https://forums.developer.nvidia.com/u/chintasunny)\
**Post date:** [September 4, 2025, 4:00pm UTC](https://forums.developer.nvidia.com/t/numerical-stability-issues/344048/1 "2025-09-04T16:00:46Z")

</div>

I am running a small scheduling problem using cuopt. It has got large penalty values and some Big M kind of variables as well. It’s running into the below error. While the same instance is getting solved easily on coin-or CBC and other solvers. Any special care or normalization we need to take care for cuopt?

super().set\_constraint\_bounds(b)  
Setting parameter infeasibility\_detection to true  
Setting parameter log\_to\_console to true  
Solving a problem with 356 constraints 233 variables (104 integers) and 902 nonzeros  
Objective offset 0.000000 scaling\_factor 1.000000  
After trivial presolve updated 356 constraints 233 variables. Objective offset 0.000000  
Running presolve!  
Solving LP root relaxation  
Scaling matrix. Maximum column norm 1.423784e+00  
Dual Simplex Phase 1  
Dual feasible solution found.  
Dual Simplex Phase 2  
Iter Objective Num Inf. Sum Inf. Perturb Time  
1 +0.0000000000000000e+00 56 1.25780041e+08 1.00e-07 0.00  
Removed perturbation of 1.02e-05.

Root relaxation solution found in 163 iterations and 0.00s  
Root relaxation objective +2.71420000e+04

Strong branching using 4 threads and 58 fractional variables  
| Explored | Unexplored | Objective | Bound | Depth | Iter/Node | Gap | Time  
0 1 +inf +2.714200e+04 1 0.0e+00 - 0.02  
Numerical issue node 442. Resolving from scratch.  
Numerical issue node 487. Resolving from scratch.  
Numerical issue node 509. Resolving from scratch.  
Numerical issue node 708. Resolving from scratch.  
python: /tmp/conda-bld-output/bld/rattler-build\_libmps-parser/work/cpp/src/dual\_simplex/basis\_solves.cpp:352: i\_t cuopt::linear\_programming::dual\_simplex::factorize\_basis(const csc\_matrix\_t\<i\_t, f\_t\>&, const simplex\_solver\_settings\_t\<i\_t, f\_t\>&, const std::vector\<i\_t\>&, csc\_matrix\_t\<i\_t, f\_t\>&, csc\_matrix\_t\<i\_t, f\_t\>&, std::vector\<i\_t\>&, std::vector\<i\_t\>&, std::vector\<i\_t\>&, std::vector\<i\_t\>&, std::vector\<i\_t\>&) [with i\_t = int; f\_t = double]: Assertion `Snz \<= Snz\_max && (Sdim \> 0 && Snz \> 0)’ failed.  
Aborted

_ **CBC solver:** _  
Probing was tried 250 times and created 1890 cuts of which 0 were active after adding rounds of cuts (0.056 seconds)  
Gomory was tried 243 times and created 525 cuts of which 0 were active after adding rounds of cuts (0.029 seconds)  
Knapsack was tried 37 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.002 seconds)  
Clique was tried 37 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.001 seconds)  
MixedIntegerRounding2 was tried 243 times and created 412 cuts of which 0 were active after adding rounds of cuts (0.034 seconds)  
FlowCover was tried 37 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.006 seconds)  
TwoMirCuts was tried 1 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)  
ZeroHalf was tried 1 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)

Result - Optimal solution found

Objective value: 31966.00000000  
Enumerated nodes: 767  
Total iterations: 18177  
Time (CPU seconds): 1.96  
Time (Wallclock seconds): 1.98

Option for printingOptions changed from normal to all  
Total time (CPU seconds): 1.97 (Wallclock seconds): 1.98

---

<div class="post-metadata">

**Author:** ![ramakrishnap](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ramakrishnap/32/231202_2.png) [@ramakrishnap](https://forums.developer.nvidia.com/u/ramakrishnap)\
**Post date:** [September 4, 2025, 4:27pm UTC](https://forums.developer.nvidia.com/t/numerical-stability-issues/344048/2 "2025-09-04T16:27:48Z")

</div>

Hi, thank you for creating an issue, I have moved this issue to github [[BUG] Numerical stability issue · Issue #376 · NVIDIA/cuopt · GitHub](https://github.com/NVIDIA/cuopt/issues/376) , it is easier to track issues in github and prioritize. Hence forward please create github issue for better visibility.

And is it possible to share dataset to reproduce this issue?

And also please provide details on cuOpt version and GPU being used.

---

<div class="post-metadata">

**Author:** ![chintasunny](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chintasunny](https://forums.developer.nvidia.com/u/chintasunny)\
**Post date:** [September 4, 2025, 4:41pm UTC](https://forums.developer.nvidia.com/t/numerical-stability-issues/344048/3 "2025-09-04T16:41:41Z")

</div>

Sure. Here is the .lp file.

[model\_pulp.zip](https://forums.developer.nvidia.com/uploads/short-url/mVMdy40irJ73Xfp3u0UAtW7BtGb.zip) (4.1 KB)

Also, it’s run on **GPU** NVIDIA T4 x 1(GCP)

---

<div class="post-metadata">

**Author:** ![ramakrishnap](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ramakrishnap/32/231202_2.png) [@ramakrishnap](https://forums.developer.nvidia.com/u/ramakrishnap)\
**Post date:** [September 4, 2025, 4:53pm UTC](https://forums.developer.nvidia.com/t/numerical-stability-issues/344048/4 "2025-09-04T16:53:13Z")

</div>

Hi, I have copied data and other details back to github, please follow-up on the issue in the github issue [[BUG] Numerical stability issue · Issue #376 · NVIDIA/cuopt · GitHub](https://github.com/NVIDIA/cuopt/issues/376)

---

<div class="post-metadata">

**Author:** ![ramakrishnap](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ramakrishnap/32/231202_2.png) [@ramakrishnap](https://forums.developer.nvidia.com/u/ramakrishnap)\
**Post date:** [September 5, 2025, 3:40pm UTC](https://forums.developer.nvidia.com/t/numerical-stability-issues/344048/5 "2025-09-05T15:40:35Z")

</div>

Please follow this issue for updates [[BUG] Numerical stability issue · Issue #376 · NVIDIA/cuopt · GitHub](https://github.com/NVIDIA/cuopt/issues/376)
