get_primal_by_id uses x_dict now