Skip to content
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 lib/highs_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,8 +906,8 @@ double POIHighsModel::get_normalized_rhs(const ConstraintIndex &constraint)
nullptr, nullptr);
check_error(error);

bool lb_inf = lb < -kHighsInf + 1.0;
bool ub_inf = ub > kHighsInf - 1.0;
bool lb_inf = lb <= -kHighsInf;
bool ub_inf = ub >= kHighsInf;

if (!lb_inf)
return lb;
Expand All @@ -926,8 +926,8 @@ void POIHighsModel::set_normalized_rhs(const ConstraintIndex &constraint, double
nullptr, nullptr);
check_error(error);

bool lb_inf = lb < -kHighsInf + 1.0;
bool ub_inf = ub > kHighsInf - 1.0;
bool lb_inf = lb <= -kHighsInf;
bool ub_inf = ub >= kHighsInf;

if (!lb_inf)
lb = value;
Expand Down