Commit 09aa8c9
Fix obj constant on max. Fix undefined memory access at root (#52)
This PR fixes two bugs discovered while testing the AMPL interface:
1) We weren't correctly calculating the objective constant when presolve
eliminated variables on a maximization problem.
Thanks to Alice for the quick fix!
2) We had an undefined memory access on the number of nodes and simplex
iterations when solving a MIP at the root node.
---------
Co-authored-by: Ramakrishnap <42624703+rgsl888prabhu@users.noreply.github.com>1 parent 5314217 commit 09aa8c9
File tree
3 files changed
+7
-2
lines changed- cpp/src
- dual_simplex
- linear_programming/utilities
- mip/presolve
3 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
468 | 470 | | |
469 | 471 | | |
470 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
0 commit comments