Was having some issues with obj_min but this thread helped greatly and I figured my problem out