compute_duality_gap clear variables