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

Function simpleTest

check/TestDualize.cpp:77–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void simpleTest(Highs& highs) {
78 HighsModel model;
79 HighsLp& lp = model.lp_;
80 lp.num_col_ = 2;
81 lp.num_row_ = 1;
82 lp.col_cost_ = {2, 1};
83 lp.col_lower_ = {1, 0};
84 lp.col_upper_ = {inf, inf};
85 lp.row_lower_ = {2};
86 lp.row_upper_ = {inf};
87 lp.a_matrix_.start_ = {0, 1, 2};
88 lp.a_matrix_.index_ = {0, 0};
89 lp.a_matrix_.value_ = {1, 1};
90 lp.a_matrix_.format_ = MatrixFormat::kColwise;
91 highs.passModel(model);
92 dualizeTest(highs);
93 highs.clear();
94}
95
96void distillationTest(Highs& highs) {
97 HighsModel model;

Callers

nothing calls this directly

Calls 3

dualizeTestFunction · 0.85
passModelMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected