adding lp relaxation code