Multi-configurational sizing and analysis in a nanogrid using nested integer linear programming. (10th November 2021)