Homeless despite Yale degree; mental illness? drug addiction? choice?

Of course, what if the homeless person refuses to go to the shelter, or leaves the shelter and returns to now-illegal living on the street? Then is the solution to put him/her in (more expensive to taxpayers) jail?