From 0100a209178bb22b231d3644266b5c6d54a6a0f9 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Thu, 9 Jan 2020 19:30:38 +0100 Subject: [PATCH] Change perfect foresight example code to suggested new syntax (cherry picked from commit f8e415a8681b9d6dcb792308e95abcaa27714c2c) --- doc/manual/source/the-model-file.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/manual/source/the-model-file.rst b/doc/manual/source/the-model-file.rst index 839e7a7870..4f72112468 100644 --- a/doc/manual/source/the-model-file.rst +++ b/doc/manual/source/the-model-file.rst @@ -1487,7 +1487,9 @@ in this case ``initval`` is used to specify the terminal conditions. steady; - simul(periods=200); + perfect_foresight_setup(periods=200); + perfect_foresight_solver; + In this example, the problem is finding the optimal path for consumption and capital for the periods :math:`t=1` to @@ -1527,7 +1529,9 @@ in this case ``initval`` is used to specify the terminal conditions. x = 1.1; end; - simul(periods=200); + perfect_foresight_setup(periods=200); + perfect_foresight_solver; + In this example, there is no `steady` command, hence the conditions are exactly those specified in the `initval` and `endval` blocks. -- GitLab