Skip to content

Commit 84716ab

Browse files
committed
Clean up
1 parent 3d121d5 commit 84716ab

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

highs/ipm/hipo/ipm/Model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Model {
128128
Int64 nzAS() const { return AS_nz_; }
129129
Int64 nzNElb() const { return NE_nz_lb_; }
130130
Int64 nzNEub() const { return NE_nz_ub_; }
131-
bool free(Int i) const { return is_free_[i]; }
131+
bool isFree(Int i) const { return is_free_[i]; }
132132

133133
Int loadIntoIpx(ipx::LpSolver& lps) const;
134134

highs/ipm/hipo/ipm/PreProcess.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,11 @@ void PreprocessScaling::undo(PreprocessorPoint& point, const Model& model,
483483

484484
// set variables that were ignored
485485
for (Int i = 0; i < n_post; ++i) {
486-
if (!model.hasLb(i) || model.is_free_[i]) {
486+
if (!model.hasLb(i) || model.isFree(i)) {
487487
point.xl[i] = kHighsInf;
488488
point.zl[i] = 0.0;
489489
}
490-
if (!model.hasUb(i) || model.is_free_[i]) {
490+
if (!model.hasUb(i) || model.isFree(i)) {
491491
point.xu[i] = kHighsInf;
492492
point.zu[i] = 0.0;
493493
}
@@ -561,11 +561,11 @@ void PreprocessFormulation::undo(PreprocessorPoint& point, const Model& model,
561561

562562
// force unused entries to have correct value
563563
for (Int i = 0; i < n_pre; ++i) {
564-
if (!model.hasLb(i) || model.is_free_[i]) {
564+
if (!model.hasLb(i) || model.isFree(i)) {
565565
point.xl[i] = kHighsInf;
566566
point.zl[i] = 0.0;
567567
}
568-
if (!model.hasUb(i) || model.is_free_[i]) {
568+
if (!model.hasUb(i) || model.isFree(i)) {
569569
point.xu[i] = kHighsInf;
570570
point.zu[i] = 0.0;
571571
}

0 commit comments

Comments
 (0)