static void SetGoalCoefficient(double coeff, int xId, int yId) { var existingCoef = solver.GetCoefficient(goal, xId, yId); solver.SetCoefficient(goal, existingCoef + coeff, xId, yId); }