Thermodynamics and evolutionary biology through optimal control. (August 2019)