Anfonwch hwn fel neges destun: Optimal processes in irreversible thermodynamics and microeconomics