OptInvest Code for optimization of investment in carbon mitigation scenarios Gekko code to find the optimal pathways for investment. Parameters can be changed to reproduce the figures in the paper.