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

Method getScaledAMatrixPointer

highs/simplex/HEkk.cpp:439–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439HighsSparseMatrix* HEkk::getScaledAMatrixPointer() {
440 // Return a pointer to either the constraint matrix or a scaled copy
441 // (that is a member of the HEkk class), with the latter returned if
442 // the LP has scaling factors but is unscaled.
443 HighsSparseMatrix* local_scaled_a_matrix = &(this->lp_.a_matrix_);
444 if (this->lp_.scale_.has_scaling && !this->lp_.is_scaled_) {
445 scaled_a_matrix_ = this->lp_.a_matrix_;
446 scaled_a_matrix_.applyScale(this->lp_.scale_);
447 local_scaled_a_matrix = &scaled_a_matrix_;
448 }
449 return local_scaled_a_matrix;
450}
451
452HighsStatus HEkk::dualize() {
453 assert(lp_.a_matrix_.isColwise());

Callers

nothing calls this directly

Calls 1

applyScaleMethod · 0.45

Tested by

no test coverage detected