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

Method ftran

highs/qpsolver/basis.cpp:347–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347QpVector Basis::ftran(const QpVector& rhs, bool buffer, HighsInt q) {
348 HVector rhs_hvec = vec2hvec(rhs);
349 basisfactor.ftranCall(rhs_hvec, 1.0);
350 if (buffer) {
351 col_aq.copy(&rhs_hvec);
352 for (HighsInt i = 0; i < rhs_hvec.packCount; i++) {
353 col_aq.packIndex[i] = rhs_hvec.packIndex[i];
354 col_aq.packValue[i] = rhs_hvec.packValue[i];
355 }
356 col_aq.packCount = rhs_hvec.packCount;
357 col_aq.packFlag = rhs_hvec.packFlag;
358 buffered_q = q;
359 }
360 return hvec2vec(rhs_hvec);
361}
362
363QpVector Basis::recomputex(const Instance& inst) {
364 assert((HighsInt)active_constraint_index.size() == inst.num_var);

Callers 2

recomputeMethod · 0.45
update_weightsMethod · 0.45

Calls 2

ftranCallMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected