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

Issue-1259 - HiGHS returns wrong solution #1307

Open
wants to merge 3 commits 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/lp_data/HighsSolution.cpp
Expand Up @@ -766,6 +766,9 @@ HighsStatus ipxSolutionToHighsSolution(
double primal_truncation = 0;
double dual_infeasibility = 0;
double residual = std::fabs(std::max(lower - value, value - upper));
double var_range = upper - lower;
double residual_rate = residual / var_range;
residual = std::max(residual, residual_rate);
double new_value = value;
double new_dual = dual;
const bool at_lower = value <= lower + primal_feasibility_tolerance;
Expand Down