_set_linear_objective_term(variable, new_coeff) will replace ... + coeff*variable + ... with new_coeff*variable
_set_linear_objective_term(variable, new_coeff) will replace ... + coeff*variable + ... with new_coeff*variable

The current implementation is very slow for objectives with many terms.

biosustain/optlang,biosustain/optlang