Most homeless people are homeless because they have problems with alcohol, drugs or mental health issues: they need more than soup kitchens to address the underlying issues.
My solution: arrest the homeless for vagrancy, put them in prison for 6 months, where they are well fed and provided with a bed and shelter, and protected from each other and from themselves. While they are there, give them access to psychologists and deny them access to alcohol or drugs. Give them vocational training and help them find work and affordable accommodation on their release. At the end of 6 months’ care, they should be clear of addictions, well fed, and hopefully capable of improving their lot. In the worst case scenario, repeat as many times as needed.
It has to be better than what we are doing now, which is accepting homelessness as OK.