User Interface to calculate optimized gradients