Intelligent Energy Management for Off Grid Storage and Power Systems