Fuel Cell and Battery Hybrid System Optimization