Applications of variable discounting dynamic programming to iterated function systems and related problems. (8th February 2019)