solving SLP problems