/** * Virtual function calling AddProjectedCostToAll on the set of variables. * @param A double representing the current cost of the constraint. */ public virtual void UpdateProjectedCost(double cost) { Variables.AddProjectedCostToAll(cost); }