MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / dualizeTest

Function dualizeTest

check/TestDualize.cpp:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void 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
54HighsLp distillationLp() {
55 HighsLp lp;

Callers 7

simpleTestFunction · 0.85
distillationTestFunction · 0.85
freeColumnTestFunction · 0.85
fixedColumnTestFunction · 0.85
colUpperBoundTestFunction · 0.85
rowUpperBoundTestFunction · 0.85
instanceTestFunction · 0.85

Calls 4

getInfoMethod · 0.45
setOptionValueMethod · 0.45
setBasisMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected