File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,7 @@ void HighsPrimalHeuristics::RENS(const std::vector<double>& tmp) {
447447 fixval = std::ceil (fracval);
448448 else if (rootchange <= -0.4 )
449449 fixval = std::floor (fracval);
450- if (mipsolver.model_ ->col_cost_ [col] > 0.0 )
450+ else if (mipsolver.model_ ->col_cost_ [col] > 0.0 )
451451 fixval = std::ceil (fracval);
452452 else if (mipsolver.model_ ->col_cost_ [col] < 0.0 )
453453 fixval = std::floor (fracval);
@@ -676,7 +676,7 @@ void HighsPrimalHeuristics::RINS(const std::vector<double>& relaxationsol) {
676676 fixval = std::ceil (fracval);
677677 else if (rootchange <= -0.4 )
678678 fixval = std::floor (fracval);
679- if (mipsolver.model_ ->col_cost_ [col] > 0.0 )
679+ else if (mipsolver.model_ ->col_cost_ [col] > 0.0 )
680680 fixval = std::ceil (fracval);
681681 else if (mipsolver.model_ ->col_cost_ [col] < 0.0 )
682682 fixval = std::floor (fracval);
You can’t perform that action at this time.
0 commit comments