Optimal configuration of island?s energy supply system