Some more things I want you to seriously take in mind, coming from personal experience. Having a bed in a safe, warm place is very important, as is access to food (that is safe to eat) and clean water.
Starvation is brutal. I know from nearly starving to death (from medical issues from pain) and from then trying to force the matter to just die and end it. You will want food. Even after months of not having it. You need to dehydrate to die unless you drop to about 12-13 BMI, and it is VERY difficult the last few days, and I caved after 2 mo of effort since I could sip water. It affects not just the throat and mouth but the whole body and can get gruesome at the very end. Having starved and dehydrated, it really messes up your body. You will be sick and weak all the time while starving and for months after--and I have not yet recovered, so I can't say if it is fully possible. You won't really be able to eat much of anything without vomiting even tiny bites of only bland food, and you will have violent stomach aches and GI issues when you do. Also, as a teen and in my 20s, I had fainting spells from hypoglycemia (blood sugar falling too low). If your body gets too hungry, you will be weak and possibly faint. I cracked my head and was out cold for a day in the hospital once, but I fainted often, and that is not pleasant either. Being homeless and having this problem would make it worse and put you in a vulnerable state.
Also, if you get injured, it will be even worse. I am literally bedridden and crippled from muscular-skeletal injuries from a masseuse tearing ligaments and tendons (among other medical errors). Someone beating you up could create the same injuries, and they will NEVER heal. Having that bed is the most important thing, and being protected from elements.
Also, not bathing (a real shower or bath), from personal experience of now having gone 7 mo without doing so (after trying to 1-2 times a month the first year) will create skin issues that will make it worse. I do not find sponge bathing to help. Only a real shower every few days would prevent it, ime. You will itch and smell and skin will turn brown, gray, and yellow and crust, and fall off in chunks. If you want to remove it, you need to soak it for 1/2 hour and then do so by hand with oil, and it takes 7 hrs for a body. Otherwise, you live like that.
Also, if you get sick, it can be brutal. I have been so sick, I was dying. I had a flu that turned to pneumonia for 3 mo. I almost choked on the mucus in the lungs and could barely get it up. I tore 3 muscles coughing. It was like knives stabbing me, and to this day, it is like that with every breath I take, or I feel like someone beat me with a bat in the rib cage. Again, having a bed and someone to lift me off it when I lost the use of those muscles entirely and could not move was important. Pneumonia would be a common thing to catch exposed to elements. It is not fun.
I don't mean to sound harsh, but what I went though with this alone was brutal, but I then went through worse and now am a full-bodied cripple who is very sick. I count myself lucky to have a roof over my head, a bed, and clean food and water. That is not the point here, just that I'd hate for you to set yourself up for something you don't see coming if there are better options available.
So look into any suggestions anyone else had first. Even living in a car is better, but hard to do w/o getting caught and told to move. Also, I hear it is hard to get out of being homeless once homeless b/c you'd need a phone at least to put on a job application, plus you need to look clean, and from experience, you will not look clean or healthy unless you are very lucky and don't encounter anything too bad.