Skip to content
Merged
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
15 changes: 11 additions & 4 deletions src/core/Activity.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,15 +704,22 @@ Altered_Activity update_activity_coeff_change(Activity *act, double lb, double u
#endif

// recompute from scratch if necessary
if (act->n_inf_min == 0 && n_inf_min_before == 1)
bool recompute_min = (act->n_inf_min == 0 && n_inf_min_before == 1);
bool recompute_max = (act->n_inf_max == 0 && n_inf_max_before == 1);

if (recompute_max && recompute_min)
{
return MIN_ALTERED_RECOMPUTE;
assert(new_coeff == 0.0);
return MIN_ALTERED_RECOMPUTE | MAX_ALTERED_RECOMPUTE;
}

if (act->n_inf_max == 0 && n_inf_max_before == 1)
else if (recompute_max)
{
return MAX_ALTERED_RECOMPUTE;
}
else if (recompute_min)
{
return MIN_ALTERED_RECOMPUTE;
}

return NO_RECOMPUTE;
}
Expand Down
Loading