| 34 | } |
| 35 | |
| 36 | void dualizeTest(Highs& highs) { |
| 37 | const HighsInfo& info = highs.getInfo(); |
| 38 | highs.setOptionValue("presolve", "off"); |
| 39 | highs.setOptionValue("simplex_dualize_strategy", kHighsOptionOff); |
| 40 | highs.setBasis(); |
| 41 | highs.run(); |
| 42 | // if (dev_run) highs.writeSolution("", true); |
| 43 | double primal_objective = info.objective_function_value; |
| 44 | highs.setOptionValue("simplex_dualize_strategy", kHighsOptionOn); |
| 45 | highs.setBasis(); |
| 46 | // detailedOutput(highs); |
| 47 | highs.run(); |
| 48 | // if (dev_run) highs.writeSolution("", true); |
| 49 | double dual_objective = info.objective_function_value; |
| 50 | double dl = fabs(primal_objective - dual_objective); |
| 51 | REQUIRE(dl < double_equal_tolerance); |
| 52 | } |
| 53 | |
| 54 | HighsLp distillationLp() { |
| 55 | HighsLp lp; |
no test coverage detected