diff --git a/examples/ramst.mod b/examples/ramst.mod
index df4029ad4b480edd0f54f90b2636586796df04a9..90654a4ef7fb512490534d743a38d1225d0c1c4c 100644
--- a/examples/ramst.mod
+++ b/examples/ramst.mod
@@ -74,8 +74,11 @@ periods 1;
 values 1.2;
 end;
 
-// Deterministic simulation of the model for 200 periods
-simul(periods=200);
+// Prepare the deterministic simulation of the model over 200 periods
+perfect_foresight_setup(periods=200);
+
+// Perform the simulation
+perfect_foresight_solver;
 
 // Display the path of consumption and capital
 rplot c;