A bi-level optimization model for technology selection. (17th November 2021)