Analytical Methods for Energy Diversity and Security