In response to a query from a user, I added a new feature to my sfc_models Python package. This article discusses the feature. There is not any economic analysis tied to this, other than perhaps being of interest to people who have not looked at these models. (My book An Introduction to SFC Models Using Python describes my software package.)
Please note that I added the feature without looking into how other modellers have dealt with these issues.
The script that runs the example models in this article is found in the examples of the development branch of sfc_models: https://github.com/brianr747/SFC_models/blob/development/sfc_models/examples/scripts/ex20220206_flexprice_intro.py This code will not work in the “production” branch — which is what is installed by pip. Users would need to understand how to work with GitHub (and Python paths) to be able to access this feature.