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

Function iterate

check/TestFactor.cpp:193–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool iterate(const HighsInt variable_out, const HighsInt variable_in) {
194 const HighsInt row_out = rowOut(variable_out);
195 if (row_out < 0) return false;
196 row_ep.clear();
197 row_ep.count = 1;
198 row_ep.index[0] = row_out;
199 row_ep.array[row_out] = 1;
200 row_ep.packFlag = true;
201 factor.btranCall(row_ep, 1);
202
203 col_aq.clear();
204 col_aq.packFlag = true;
205 lp.a_matrix_.collectAj(col_aq, variable_in, 1);
206 factor.ftranCall(col_aq, 1);
207
208 basic_set[row_out] = variable_in;
209 HighsInt rebuild_reason = 0;
210 HighsInt lc_row_out = row_out;
211 factor.update(&col_aq, &row_ep, &lc_row_out, &rebuild_reason);
212 if (rebuild_reason) return false;
213
214 return testSolve();
215}
216
217bool testSolve() {
218 const bool test_all = true;

Callers 5

solvePhase1Method · 0.85
solvePhase2Method · 0.85
solvePhase1Method · 0.85
solvePhase2Method · 0.85
TestFactor.cppFile · 0.85

Calls 7

rowOutFunction · 0.85
testSolveFunction · 0.85
btranCallMethod · 0.80
collectAjMethod · 0.80
ftranCallMethod · 0.80
clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected