Although perhaps on the first iteration it tries to delete a bound that doesn’t exist? What if you use:
if has_upper_bound(x[i])
delete_upper_bound(x[i])
end
Although perhaps on the first iteration it tries to delete a bound that doesn’t exist? What if you use:
if has_upper_bound(x[i])
delete_upper_bound(x[i])
end