Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dualtol in HEkkDual::computeExactDualObjectiveValue() #1182

Open
wants to merge 1 commit into
base: latest
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/simplex/HEkkDual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2876,9 +2876,9 @@ double HEkkDual::computeExactDualObjectiveValue(HVector& dual_col,
// flipping the sign of its dual and for a basic variable we may need to add
// to the dual objective using one of the bounds when its dual is not zero.
double active_value;
if (exact_dual > ekk_instance_.options_->small_matrix_value)
if (exact_dual > ekk_instance_.options_->dual_feasibility_tolerance)
active_value = lp.col_lower_[iCol];
else if (exact_dual < -ekk_instance_.options_->small_matrix_value)
else if (exact_dual < -ekk_instance_.options_->dual_feasibility_tolerance)
active_value = lp.col_upper_[iCol];
else
active_value = info.workValue_[iCol];
Expand Down Expand Up @@ -2909,9 +2909,9 @@ double HEkkDual::computeExactDualObjectiveValue(HVector& dual_col,
// basic variable we may need to add to the dual objective using one of the
// bounds when its dual is not zero.
double active_value;
if (exact_dual > ekk_instance_.options_->small_matrix_value)
if (exact_dual > ekk_instance_.options_->dual_feasibility_tolerance)
active_value = lp.row_lower_[iRow];
else if (exact_dual < -ekk_instance_.options_->small_matrix_value)
else if (exact_dual < -ekk_instance_.options_->dual_feasibility_tolerance)
active_value = lp.row_upper_[iRow];
else
active_value = -info.workValue_[iVar];
Expand Down