Commit 675f902
authored
Fix root LP solution copy in diversity_manager_t (#685)
This PR fixes a missing copy in diversity_manager_t after the root node solve, which caused uninitialized data to remain in the lp_optimal_solution vector and causing errors later down the line.
## Summary by CodeRabbit
* **Refactor**
* Streamlined solution handling to copy LP primal/dual results directly and avoid redundant temporary allocations; preserved synchronization behavior.
* Adjusted feasibility validation to operate on a separate scaled copy to prevent unintended mutation.
* **Bug Fixes**
* Added size and finiteness checks to validate solutions before use.
* **User-facing**
* Deterministic fallback names for unnamed variables so every column has a label.
* **Tests**
* Relaxed numerical tolerances in some objective and variable checks.
<sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub>
Authors:
- Alice Boucher (https://github.com/aliceb-nv)
Approvers:
- Nicolas L. Guidotti (https://github.com/nguidotti)
- Ramakrishnap (https://github.com/rgsl888prabhu)
- Hugo Linsenmaier (https://github.com/hlinsen)
URL: #6851 parent 61beec8 commit 675f902
File tree
4 files changed
+27
-11
lines changed- cpp/src
- linear_programming
- mip/diversity
- python/cuopt/cuopt/tests/linear_programming
4 files changed
+27
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
365 | 363 | | |
366 | 364 | | |
367 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | | - | |
| 371 | + | |
370 | 372 | | |
371 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
372 | 378 | | |
373 | 379 | | |
374 | 380 | | |
| |||
382 | 388 | | |
383 | 389 | | |
384 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
385 | 396 | | |
386 | 397 | | |
387 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
813 | 813 | | |
814 | | - | |
815 | | - | |
| 814 | + | |
| 815 | + | |
0 commit comments