There was an error while loading. Please reload this page.
1 parent bc6796e commit 1a60d70Copy full SHA for 1a60d70
1 file changed
highs/ipm/hipo/ipm/Model.cpp
@@ -443,6 +443,14 @@ void Model::scale() {
443
for (Int i = 0; i < n_; ++i) colscale_[i] = std::ldexp(1.0, colexp[i]);
444
for (Int i = 0; i < m_; ++i) rowscale_[i] = std::ldexp(1.0, rowexp[i]);
445
446
+ bool scaling_failed = isInfVector(colscale_) || isNanVector(colscale_) ||
447
+ isInfVector(rowscale_) || isNanVector(rowscale_);
448
+ if (scaling_failed) {
449
+ colscale_.clear();
450
+ rowscale_.clear();
451
+ return;
452
+ }
453
+
454
// *********************************************************************
455
// Apply scaling
456
0 commit comments