Chosen Solution

I turn on the computer, the loading bar comes on and it either turns off half way or turns off at the lock screen. I do have an aftermarket battery installed, the percentage says 92% I tried reseating the battery, the computer was unresponsive afterwards for a minute when it finally came on the reseat proved unsuccessful. Help would be great!

My mbp did something similar; it would keep restarting and messagae would keep appearing that macbook had to restart and that the normal boot would happen in a few seconds; after that about 5 times it shut down. But I knew what the problem was; I downloaded and reinstalled 10.11 without my charger and the computer lost all power during installation. So I just used command and R during start up, downloaded and reinstalled osx again and let it install with the charger in and it is fine now. Sounds like you could also have a corrupted startup/boot segment for your osx for whatever reason.