cpmodel / FTT_StandAlone

Future Technology Transformation models
GNU General Public License v3.0
9 stars 1 forks source link

vectorise get_lcoe #136

Open Femkemilene opened 1 month ago

Femkemilene commented 1 month ago

Vectorisation (rewriting the code to avoid loops) in Python can make the code 10-100x faster. The profiler identifies get_lcoe as the most costly function for ftt-p, and it should not be too difficult to vectorise.

I think if this one comes down from 20 s to <1 s, this should be the moment we can switch from no_it to 20 without it impeding development too much.