Optimization-Based Power Management Of Hybrid Power Systems With Applications In Advanced Hybrid Electric Vehicles And Wind Farms With Battery Storage