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

Function lp0

check/TestUserScale.cpp:172–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172HighsLp lp0(const double cost, const double bound) {
173 // This LP is unbounded and causes assert in presolve!
174 HighsLp lp;
175 lp.num_col_ = 2;
176 lp.num_row_ = 2;
177 lp.col_cost_ = {cost, -2 * cost};
178 lp.col_lower_ = {0, 1e-8};
179 lp.col_upper_ = {bound, bound};
180 lp.row_lower_ = {-kHighsInf, bound};
181 lp.row_upper_ = {bound, kHighsInf};
182 lp.a_matrix_.start_ = {0, 2, 4};
183 lp.a_matrix_.index_ = {0, 1, 0, 1};
184 lp.a_matrix_.value_ = {1, 1, 1, -1};
185 return lp;
186}
187
188HighsLp mip0(const double cost, const double bound) {
189 HighsLp lp = lp0(cost, bound);

Callers 1

mip0Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected