Text this: GENERALIZED PROGRAMMING BY LINEAR APPROXIMATION OF THE DUAL GRADIENT