# Problems concerning about the \`nostrict\` option

**URL:** <https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136>\
**Category:** Stochastic simulations\
**Created:** [12 July 2019 06:42 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136 "2019-07-12T06:42:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![whtxy001](https://forum.dynare.org/letter_avatar_proxy/v4/letter/w/858c86/32.png) [@whtxy001](https://forum.dynare.org/u/whtxy001)\
**Post date:** [12 July 2019 06:42 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/1 "2019-07-12T06:42:24Z")

</div>

Configuring Dynare …

[mex] Generalized QZ.

[mex] Sylvester equation solution.

[mex] Kronecker products.

[mex] Sparse kronecker products.

[mex] Local state space iteration (second order).

[mex] Bytecode evaluation.

[mex] k-order perturbation solver.

[mex] k-order solution simulation.

[mex] Quasi Monte-Carlo sequence (Sobol).

[mex] Markov Switching SBVAR.

Using 64-bit preprocessor

Starting Dynare (version 4.5.7).

Starting preprocessing of the model file …

ERROR: epsR\_eps data\_unempdiffU\_eps not used in model block. To bypass this error, use the `nostrict` option. This may lead to crashes or unexpected behavior.

Error using dynare (line 229)

DYNARE: preprocessing failed

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [12 July 2019 06:49 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/2 "2019-07-12T06:49:02Z")

</div>

You need to call this mod-file named `finfric158` passing the additional `nostrict` option:

```auto
dynare finfric158 nostrict

```

---

<div class="post-metadata">

**Author:** ![whtxy001](https://forum.dynare.org/letter_avatar_proxy/v4/letter/w/858c86/32.png) [@whtxy001](https://forum.dynare.org/u/whtxy001)\
**Post date:** [13 July 2019 01:37 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/3 "2019-07-13T01:37:13Z")

</div>

thank you very much!

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [15 November 2021 00:40 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/4 "2021-11-15T00:40:01Z")

</div>

Hello,  
I am also getting same error can you please explain how i can fix this?

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [15 November 2021 14:36 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/5 "2021-11-15T14:36:24Z")

</div>

Does the `nostrict`-option not work?

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [15 November 2021 19:44 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/6 "2021-11-15T19:44:10Z")

</div>

It works now. I am working on optimal fiscal policy and i am also facing same error as most of the other scholars have mentioned on dyanre forum related to optimal policy. Error which i am receiving is

Ramsey: The steady state file does not solve the static first order conditions conditional on the  
instruments

I am doing every step as you suggested to different people but error is same .Can you please explain me little bit about this how i can fix this problem?

I will be thank full to you.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [17 November 2021 11:14 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/7 "2021-11-17T11:14:31Z")

</div>

Search the forum, it has been explained numerous times, e.g. [Interpretation of Ramsey Steady State - #4 by jpfeifer](https://forum.dynare.org/t/interpretation-of-ramsey-steady-state/19280/4)  
If you have specific questions, please ask them or provide the files for feedback.

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [18 November 2021 13:09 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/8 "2021-11-18T13:09:14Z")

</div>

Hello,

Can you please help me why i m receiving thsi error

terminate called after throwing an instance of ‘std::filesystem::\_\_cxx11::filesystem\_error’  
what(): filesystem error: cannot rename [+fiscaloptimal] [YjLu0asVxy]

I am using dynare 4.6.4 version on Matlab R2021b. I downloaded both and setting the path in correct way but i dot know why i am receiving this error again and again.  
I am working on Ramsey optima policy is there any specific version i should use to run this policy.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [18 November 2021 15:14 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/9 "2021-11-18T15:14:36Z")

</div>

See

> [@Filesystem error: cannot remove all \[YjLu0asVxy\]](https://forum.dynare.org/t/filesystem-error-cannot-remove-all-yjlu0asvxy/17630/2):
>
> Unfortunately, no. Dynare will try to delete that folder itself, but sometimes this operation is blocked. On my machine that happens particularly if the folder is synchronized by a cloud drive.

But just to be sure, please try the 4.7 beta version at [Index of /beta](https://www.dynare.org/beta/)

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [18 November 2021 20:42 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/10 "2021-11-18T20:42:31Z")

</div>

Thank you so much for your help. I don’t understand where I have to put [~,~]=rmdir([’+’,M\_.fname],‘s’); so I only downloaded 4.7-beta2 version and now I am not receiving any error and I am hoping that I will not receive in future. Should I always use this version of Dynare on my laptop?  
I also need help in Ramsey optimal fiscal policy. I am using search and matching friction (on-the-job-search) model where in firm’s problem I have two types of output Ygt,Ybt . My model works fine with linearized equation without ramsey policy. I calculated steady states of all my variables so for Ramsey I am using same steady sate values of few variables in nonlinear model.  
I have two instruments firing tax, and subsidy of posting a vacancy .I used 0 for both instruments to calculate steady states but it does not work. Do I need to add more equilibrium equations from labor market or this is fine for ramsey?.  
Mod file is attach herewith for your consideration.  
[Ramsey\_policy.mod](https://forum.dynare.org/uploads/short-url/8l2Fyyz8x07tG4mvvNvWWsQp5hP.mod) (3.0 KB)

Thanking in anticupation

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [19 November 2021 08:23 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/11 "2021-11-19T08:23:13Z")

</div>

1, Please stick to 4.7. There should be an official release very soon.  
2, A `steady_state_model`-block requires you to provide steady state values for all variables for all feasible parameter values. It seems you hardcoded some values.

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [19 November 2021 13:36 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/12 "2021-11-19T13:36:42Z")

</div>

Thank you for your prompt reply. You mean to say that i need to change my parameters values or the steady states values are hardcoded? I am using steady states values of my linear model and i am using them for this nonlinear model. Is this right to proceed like this?

Best

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [20 November 2021 12:40 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/13 "2021-11-20T12:40:25Z")

</div>

I am saying that you need to change the hardcoded steady state computation. Dynare will provide a parameter vector as an input and given these values, you need to provide the steady state values for the endogenous variables.

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [22 November 2021 02:30 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/14 "2021-11-22T02:30:48Z")

</div>

Thank you so much for your reply. I solved steady state values numerically of some variables (Un, T,Vgt,Vbt) and used them as parameter and modified the steady state block. Now i am receiving error in my two equations  
evaluate\_steady\_state: The steady state file does not solve the steady state for the Ramsey problem.  
evaluate\_steady\_state: Conditional on the following instrument values:  
F 0.000000  
chi 0.000000  
evaluate\_steady\_state: the following equations have non-zero residuals:  
Equation number 2: 1.169141  
Equation number 6: -0.048159

MODEL\_DIAGNOSTICS: The steady state cannot be computed  
Eq 2 is aggregate output and 6 is govt. spending shock. I dont understand why i am receiving this error. Can you please have a look in my mod file and tell me how i can solve this problem.  
[ramsey\_policy1.mod](https://forum.dynare.org/uploads/short-url/4L4iR8uAZowy0j5iUdwbuSGj5qd.mod) (2.7 KB)

Best

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [22 November 2021 18:46 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/15 "2021-11-22T18:46:22Z")

</div>

That still does not look like a proper steady state file. How do you know that for every value of the instrument `N=0.88` for example?

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [23 November 2021 22:23 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/16 "2021-11-23T22:23:21Z")

</div>

Hello,

Thank you for your reply. As I stated above I am working on on-Job-Search labor market by following Krause and Lubik (2006). According to them

“On the job is motivated in a straightforward manner by the presence two types of

jobs, which different in terms of profitability and thus the returns to working. Workers

in low-wage (‘bad’) jobs search in order to gain employment in high-wage (‘good’)

jobs”.

Therefore in my model total unemployment Ut=(Ugt)+(Ubt)=1-Ntg-Ntb=1-Nt

SS value of Ngt Nbt are calculated analytically which are 0.60 and 0.35 respectively. Likewise SS values of Ugt,Ubt are 0.019 and 0.028. by inserting these values in above equation Nt=0.953 and Ut=0.047. Also Ygt=At_Ntg and Ybt=At_Ntb therefore Ygt and Ybt are also 0.60 and 0.35.

After using these values I calculated SS values of rest of the variables. Please see attached. In my mode there is no capital. I modified the SS equations but ow I am getting this error.

Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.  
I will be really thankful if you please help me in this regard?  
Please see attached file for your consideration.[Ramsey\_policy2.mod](https://forum.dynare.org/uploads/short-url/wfRScJFZ0bLekZzJXd8k1ES8vGK.mod) (2.2 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [25 November 2021 14:54 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/17 "2021-11-25T14:54:41Z")

</div>

1. Why do you think these steady states are invariant to changes in the values for the instruments?
2. Your model now only has 6 equations plus 2 instruments, but 10 variables. There are two equations missing.

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [25 November 2021 22:43 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/19 "2021-11-25T22:43:32Z")

</div>

Hello,  
Hope you are doing well. Thank you for your reply. I updated my codes and finally i got steady states values for ramsey and als owithout Ramsey as well. But my results are still giving me some error. e.g,there is only one IRF G to Govet.spending shock. Also in results there ae some values which shows NAN. Can you please tell me why is this so?  
I will be really thankful to you.  
Updated mod file is attached herewith.  
[Ramsey\_updated.mod](https://forum.dynare.org/uploads/short-url/21flCBEjIo9cd2IhSw74pR585bY.mod) (2.3 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [26 November 2021 11:47 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/20 "2021-11-26T11:47:19Z")

</div>

Your steady state does not make sense. Y=0.3958 with G=1 implies negative consumption, for example.

---

<div class="post-metadata">

**Author:** ![Emily1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@Emily1](https://forum.dynare.org/u/Emily1)\
**Post date:** [28 November 2021 20:33 UTC](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136/21 "2021-11-28T20:33:50Z")

</div>

Hello professor,

Thank you so much for your reply. I updated my codes by adding more nonlinear equations (wages and prices) which has instruments. I got SS of all variables but SS of G is still weird from other variables. I also got IRF for A shock but still i have some NAN values for some variables in my results. Please have a look on my mode file and guide me where is problem in my model. I got SS by setting instruments equal to zero.

Updated mod file is attached herewith for your consideration please.  
[ramsey\_model.mod](https://forum.dynare.org/uploads/short-url/eowBqEgbYfQCXh894MtfvBUamMV.mod) (4.6 KB)

Best

[Next page](https://forum.dynare.org/t/problems-concerning-about-the-nostrict-option/14136.md?page=2)
