You have to take each person one at a time, There is no mass solution. This is what the liberals fail to grasp, because they see people as undifferentiated units of some identity or socioeconomic group.
It doesnt work that way and never will.
parolees and mentally ill unsupervised living on the street will not take their meds. We do need to screen for mentally ill and put them somewhere. The rest should be held strictly to the letter of the law and job trained.
Lastly, there is no right to live under the pier by the ocean. Move where you can afford to live and most people do.